﻿/* Cache Bust: 20250113-1155 - Force CSS Reload - Added Rider Details Modal Styles */
#addProductForm .product-images-action-row,
#editProductForm .product-images-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: end;
    margin-top: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#addProductForm .product-images-left,
#editProductForm .product-images-left {
    max-width: 360px; /* tighter width for better alignment */
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#addProductForm .product-images-left label,
#editProductForm .product-images-left label { margin-bottom: 4px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#addProductForm .product-images-left small,
#editProductForm .product-images-left small { display: block; margin-top: 6px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#addProductForm #productImages,
#editProductForm #editProductImages { height: 40px; padding: 8px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#addProductForm .product-images-right,
#editProductForm .product-images-right {
    display: inline-flex;
    gap: 8px;
    white-space: nowrap;
    justify-content: flex-end;
    align-self: end;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#addProductForm .product-images-right .primary-btn,
#addProductForm .product-images-right .secondary-btn,
#editProductForm .product-images-right .primary-btn,
#editProductForm .product-images-right .secondary-btn { height: 40px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#addProductForm .product-images-right .secondary-btn.cancel-red,
#editProductForm .product-images-right .secondary-btn.cancel-red {
    background: #c62828 !important;
    color: #fff !important;
    border: none !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#addProductForm .product-images-right .secondary-btn.cancel-red:hover,
#editProductForm .product-images-right .secondary-btn.cancel-red:hover {
    background: #b71c1c !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    #addProductForm .product-images-action-row,
    #editProductForm .product-images-action-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    #addProductForm .product-images-left,
    #editProductForm .product-images-left { max-width: none; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    #addProductForm .product-images-right,
    #editProductForm .product-images-right { justify-content: flex-start; flex-wrap: wrap; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-action-row,
#addFarmerForm .farm-size-action-row { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; align-items: end; margin-top: 12px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-left,
#addFarmerForm .farm-size-left { min-width: 0; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-right,
#addFarmerForm .farm-size-right { display: inline-flex; gap: 8px; white-space: nowrap; justify-content: flex-end; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-right .secondary-btn.cancel-red,
#addFarmerForm .farm-size-right .secondary-btn.cancel-red { background:#c62828 !important; color:#fff !important; border:none !important; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-right .secondary-btn.cancel-red:hover,
#addFarmerForm .farm-size-right .secondary-btn.cancel-red:hover { background:#b71c1c !important; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Limit Farm Size input width while keeping layout */
#editFarmerForm .farm-size-left .form-field,
#addFarmerForm .farm-size-left .form-field { max-width: 280px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-left .form-field input[type="number"],
#addFarmerForm .farm-size-left .form-field input[type="number"] { width: 100%; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    #editFarmerForm .farm-size-left .form-field,
    #addFarmerForm .farm-size-left .form-field { max-width: none; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .user-form-right .farm-size-action-row {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .user-form-right .farm-size-left { flex: 1; min-width: 0; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .user-form-right .farm-size-left .form-field { margin: 0; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .user-form-right .farm-size-right {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .user-form-right .farm-size-right .secondary-btn.cancel-red {
    background: #c62828 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .user-form-right .farm-size-right .secondary-btn.cancel-red:hover {
    background: #b71c1c !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    #editFarmerForm .user-form-right .farm-size-action-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    #editFarmerForm .user-form-right .farm-size-right {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .user-form-right .edit-actions-right {
    position: absolute;
    right: 0;
    bottom: 12px;
    margin-top: 0 !important;
    width: auto !important;
    text-align: right !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    #editFarmerForm .user-form-right .edit-actions-right {
        text-align: left !important;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Strengthen the layout so right-column actions can align right reliably */
#editFarmerForm .user-form-right { display: flex; flex-direction: column; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .user-form-right .form-section { display: flex; flex-direction: column; position: relative; padding-bottom: 56px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Keep buttons inline on the right container */
#editFarmerForm .user-form-right .edit-actions-right .primary-btn,
#editFarmerForm .user-form-right .edit-actions-right .secondary-btn {
    display: inline-flex !important;
    vertical-align: middle;
    margin-left: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ensure Cancel button is red in Edit Farmer actions (like earlier) */
#editFarmerForm .user-form-right .edit-actions-right .secondary-btn {
    background: #c62828 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(198, 40, 40, 0.25);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .user-form-right .edit-actions-right .secondary-btn:hover {
    background: #b71c1c !important;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.35);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .form-actions-inline .inline-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.compact-farmer-edit .modal-actions {
    display: none; /* hide bottom bar when using inline actions */
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Align buttons on the same row as Farm Size when space allows */
#editFarmerForm .farm-size-row .farm-size-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: end;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .farm-size-row .farm-size-input {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .farm-size-row .inline-actions {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
    align-self: end;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-row .inline-actions .primary-btn,
#editFarmerForm .farm-size-row .inline-actions .secondary-btn { height: 40px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-row .inline-actions .secondary-btn { background: #c62828; color: #fff; border: none; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-row .inline-actions .secondary-btn:hover { background: #b71c1c; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .farm-size-row { margin-bottom: 0; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-row .farm-size-input label { margin-bottom: 4px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#editFarmerForm .farm-size-row .inline-actions .primary-btn,
#editFarmerForm .farm-size-row .inline-actions .secondary-btn { height: 40px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    #editFarmerForm .farm-size-row .farm-size-actions {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 8px;
        align-items: stretch;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    #editFarmerForm .farm-size-row .inline-actions {
        justify-content: flex-start;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.user-registration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px; /* narrower right column so fields don't clip */
    gap: 16px;
    align-items: start;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Three-column layout for text fields on the left */
.user-form-left {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-form-left .form-field.full-width {
    grid-column: 1 / -1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-form-right .id-photos-grid {
    display: grid;
    grid-template-columns: 1fr; /* stack Front and Back to ensure both are visible without scroll */
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ensure file inputs never overflow the right column */
.user-form-right .form-field {
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-form-right .form-field input[type="file"] {
    width: 100%;
    box-sizing: border-box;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .user-registration-grid {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    .user-form-left {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 1200px) and (min-width: 901px) {
    .user-form-left {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
/* Required field asterisk styling */
.form-field label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Poppins font imported via HTML link tag */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ensure Poppins applies consistently across the app */
html, body, button, input, select, textarea {
    font-family: 'Poppins', sans-serif;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Prevent farmer forms from being scrollable by reducing internal gaps and images */
#editFarmerForm .form-grid,
#addFarmerForm .form-grid {
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .form-field,
#addFarmerForm .form-field {
    margin-bottom: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .image-preview img,
#addFarmerForm .image-preview img {
    max-height: 110px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#editFarmerForm .form-section,
#addFarmerForm .form-section {
    padding: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Keep modal content non-scroll, overlay locked */
.modal-content form {
    max-height: none !important;
    overflow: visible !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    to {
        opacity: 1;
        transform: translateY(0);
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Screen Management */
.screen {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.screen.active {
    display: block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}



.role-info code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Poppins', 'Courier New', monospace;
    font-size: 0.85em;
    color: #495057;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Search Box Styles - Updated to match product listing design */
.search-container {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Refresh button styles */
.refresh-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.refresh-btn:active {
    transform: translateY(0);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.refresh-btn i {
    font-size: 16px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-box {
    position: relative;
    display: block;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    height: 40px;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-box:focus-within {
    border-color: #61a029;
    box-shadow: 0 0 0 3px rgba(97, 160, 41, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-box i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-box i:hover {
    color: #6b7280;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    font-family: inherit;
    padding: 0 40px 0 40px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-box input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-box input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.clear-search-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Header Actions Layout */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-header h3 {
    margin: 0;
    color: #30442d;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Dashboard Common Styles */
.navbar {
    background: #1b370c;; 
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border:none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.nav-brand i {
    font-size: 2rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.nav-user span {
    font-weight: 600;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.logout-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.logout-btn:hover {
    background: #d32f2f;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-btn {
    background: #30442d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(48, 68, 45, 0.3);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 68, 45, 0.4);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-btn span,
.profile-btn i {
    color: white !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-btn i {
    font-size: 1.2em;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-header {
    padding: 20px;
    background: #30442d;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-header .user-name,
.dropdown-header .user-role,
.dropdown-header span,
.dropdown-header * {
    color: white !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-details {
    display: flex;
    flex-direction: column;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 2px;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-role {
    font-size: 0.85em;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-item:hover {
    background: #efe8c0;
    color: #30442d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-item {
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6c757d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dropdown-item:hover i {
    color: #30442d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.logout-item {
    color: #dc3545;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.logout-item:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.logout-item i {
    color: #dc3545;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Profile Section Styles */
.profile-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #30442d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    box-shadow: 0 4px 12px rgba(48, 68, 45, 0.3);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-info h3 {
    margin: 0 0 5px 0;
    color: #30442d;
    font-size: 1.5em;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-role {
    margin: 0 0 5px 0;
    color: #61a029;
    font-weight: 600;
    font-size: 1.1em;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-email {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-field:last-child {
    border-bottom: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-field label {
    font-weight: 600;
    color: #555;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-field span {
    color: #333;
}

.profile-info-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #7a5b00;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 16px;
}

.profile-info-note i {
    font-size: 1.2em;
    color: #d48806;
    margin-top: 2px;
}

.profile-info-note strong {
    display: block;
    color: #8c6b00;
    margin-bottom: 4px;
}

.profile-info-note p {
    margin: 0;
    color: #6b4b00;
}

.profile-id-section {
    margin-top: 20px;
}

.profile-id-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.profile-id-section-header h5 {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.profile-id-section-header span {
    font-size: 0.85em;
    color: #64748b;
}

.profile-id-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.profile-id-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-id-card img {
    width: 100%;
    border-radius: 6px;
    max-height: 220px;
    object-fit: cover;
    border: 1px solid #f1f5f9;
}

.profile-id-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95em;
}

.profile-id-meta {
    font-size: 0.8em;
    color: #94a3b8;
}

.profile-id-actions a {
    font-size: 0.85em;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-id-actions a:hover {
    text-decoration: underline;
}

.profile-id-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #94a3b8;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 14px;
}

.profile-id-placeholder i {
    font-size: 1.4em;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Settings Section Styles */
.settings-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.settings-section h3 {
    margin: 0 0 20px 0;
    color: #30442d;
    font-size: 1.3em;
    border-bottom: 2px solid #61a029;
    padding-bottom: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.setting-item:last-child {
    border-bottom: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.setting-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1em;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.setting-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.setting-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9em;
    min-width: 150px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.setting-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(48, 68, 45, 0.2);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    width: 250px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.08);
    z-index: 10;
    position: relative;
    border-right: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}



.main-content {
    flex: 1;
    padding: 30px;
    background: white;
    overflow-y: auto;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.content-section {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.content-section.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}


.content-section h2 {
    margin-bottom: 25px;
    color: #30442d;
    font-size: 1.8rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}



.stat-card {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    transition: all 0.3s ease;
    min-height: 160px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #61a029, #45a049);
    border-radius: 20px 20px 0 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-card i {
    font-size: 2.8rem;
    color: #4CAF50;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 2.4rem;
    color: #30442d;
    margin: 0;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-info p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, #61a029 0%, #4f8a22 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    height: 40px;
    box-shadow: 0 2px 4px rgba(79, 138, 34, 0.25);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #6ab432 0%, #3f741b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 138, 34, 0.45);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.secondary-btn {
    background: white;
    color: #61a029;
    border: 2px solid #ff9800;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.secondary-btn:hover {
    background: #30442d;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Tabs */
.verification-tabs,
.inventory-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.verification-status-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-tab-btn {
    padding: 10px 16px;
    border: none;
    background: #f5f5f5;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-tab-btn.active {
    background: #2196F3;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-content {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-content.active {
    display: block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: white;
    color: #666;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-btn.active {
    background: #30442d;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-content {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-content.active {
    display: block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Verification Items */
.verification-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.verification-info {
    flex: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.verification-info h4 {
    color: #333;
    margin-bottom: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.verification-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.verification-actions {
    display: flex;
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.approve-btn {
    background: #30442d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.reject-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Staff List */
.staff-member {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-member.deactivated-customer {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    opacity: 0.8;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-member.deactivated-customer .staff-info h4 {
    color: #6c757d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-badge {
    padding: 1px 4px !important;
    border-radius: 8px !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin-top: 5px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-info {
    flex: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-info h4 {
    color: #333;
    margin-bottom: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-active {
    background: #d4e8d4 !important;
    color: #2d4a2d !important;
    border: 1px solid #c3e0c3 !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-inactive {
    background: #ffebee !important;
    color: #f44336 !important;
    border: 1px solid #ffcdd2 !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* More specific selectors for customer record items */
.customer-record-item .status-badge.status-active,
.customer-record-info .status-badge.status-active,
.staff-member .status-badge.status-active,
div .status-badge.status-active {
    background: #d4e8d4 !important;
    color: #2d4a2d !important;
    border: 1px solid #c3e0c3 !important;
    padding: 0px 4px !important;
    font-size: 0.55rem !important;
    border-radius: 4px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-item .status-badge.status-inactive,
.customer-record-info .status-badge.status-inactive,
.staff-member .status-badge.status-inactive,
div .status-badge.status-inactive {
    background: #ffebee !important;
    color: #f44336 !important;
    border: 1px solid #ffcdd2 !important;
    padding: 0px 4px !important;
    font-size: 0.55rem !important;
    border-radius: 4px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-actions {
    display: flex;
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.edit-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.deactivate-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Quick Actions */
.quick-actions {
    margin: 30px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.quick-actions h3 {
    margin-bottom: 20px;
    color: #30442d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.action-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.action-btn:hover {
    border-color: #61a029;
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.action-btn i {
    font-size: 2rem;
    color: #61a029;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.action-btn span {
    font-weight: 600;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Recent Activity */
.recent-activity {
    margin-top: 30px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.recent-activity h3 {
    margin-bottom: 20px;
    color: #30442d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.activity-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    max-height: 300px;
    overflow-y: auto;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.activity-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.activity-item:last-child {
    border-bottom: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.activity-content {
    flex: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.activity-content h5 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.activity-content p {
    margin: 0;
    color: #666;
    font-size: 0.8rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.activity-time {
    color: #999;
    font-size: 0.8rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Online Indicators */
.online-indicator .text-success {
    color: #61a029 !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-card.online-indicator {
    position: relative;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-card.online-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: #30442d;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* System Overview */
.system-overview {
    margin-bottom: 30px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.system-stat {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.system-stat i {
    font-size: 2rem;
    color: #61a029;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.system-stat h4 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.system-stat p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Data Management */
.data-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.data-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.data-card h3 {
    margin-bottom: 10px;
    color: #30442d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.data-card p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Product Listing - Dashboard Layout */
#product-listing {
    background: transparent;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Dashboard Layout Structure */
.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Product Listing Header - Unified Dashboard Style */
.product-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 40px;
    width: 100%;
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .search-box:focus-within {
    border-color: #30442d;
    box-shadow: 0 0 0 2px rgba(48, 68, 45, 0.1);
    background: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .search-icon {
    position: absolute;
    left: 12px;
    color: #6c757d;
    font-size: 0.9rem;
    z-index: 2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 12px 0 35px;
    font-size: 0.9rem;
    color: #2c3e50;
    height: 100%;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .search-input::placeholder {
    color: #6c757d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .clear-search-btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .refresh-btn {
    background: #f8f9fa;
    color: #30442d;
    border: 1px solid #e9ecef;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-listing-header .refresh-btn:hover {
    background: #30442d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 68, 45, 0.2);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Elegant Search */
/* Search Section - Dashboard Style */
.search-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Minimal Search Bar Styling */
.search-input-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-input-container:hover {
    border-color: #d1d5db;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-input-container:focus-within {
    border-color: #61a029;
    box-shadow: 0 0 0 2px rgba(97, 160, 41, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-input-container i {
    color: #9ca3af;
    margin-right: 12px;
    font-size: 16px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-input-container:focus-within i {
    color: #61a029;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-input-container .search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #374151;
    padding: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-input-container .search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Compact Refresh Button Styling */
#refreshProductsBtn {
    padding: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#refreshProductsBtn:hover {
    background: #ffffff;
    border-color: #61a029;
    color: #61a029;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#refreshProductsBtn i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#refreshProductsBtn:hover i {
    transform: rotate(180deg);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.action-btn {
    background: #f8fffe;
    border: 2px solid #e8f5e8;
    color: #4CAF50;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.action-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.view-toggle {
    display: flex;
    background: #f8fffe;
    border-radius: 12px;
    padding: 4px;
    border: 2px solid #e8f5e8;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.view-btn.active,
.view-btn:hover {
    background: #4CAF50;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Modern Products Display */
.products-display {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(48, 68, 45, 0.08);
    border: 1px solid #e8f5e8;
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.products-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f8f0 100%);
    border-bottom: 1px solid #e8f5e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.products-count {
    font-weight: 600;
    color: #30442d;
    font-size: 1rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.sort-select {
    background: white;
    border: 2px solid #e8f5e8;
    border-radius: 8px;
    padding: 8px 12px;
    color: #30442d;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.sort-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Products Grid - Dashboard Style */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    background: transparent;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Elegant Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #61a029 0%, #4f8a22 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover::before {
    opacity: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(97, 160, 41, 0.15);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-info {
    padding: 20px;
    position: relative;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #30442d;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-category {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    background: #f0f8f0;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #61a029;
    margin: 15px 0;
    text-align: center;
    position: relative;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-price::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover .product-price::before {
    left: 100%;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-stock {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-actions button {
    background: linear-gradient(135deg, #f8fffe 0%, #f0f8f0 100%);
    border: 2px solid #e8f5e8;
    color: #61a029;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #61a029 0%, #4f8a22 100%);
    transition: left 0.3s ease;
    z-index: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-actions button:hover::before {
    left: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-actions button:hover {
    color: white;
    border-color: #61a029;
    transform: translateY(-1px);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-actions button span {
    position: relative;
    z-index: 2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}


/* Right Column - Product Actions & Stats */
.product-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.action-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.action-group h4 {
    margin: 0 0 10px 0;
    color: #30442d;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #30442d;
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.filter-select:focus {
    outline: none;
    border-color: #61a029;
    box-shadow: 0 0 0 2px rgba(97, 160, 41, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Product Statistics */
.product-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-item:last-child {
    border-bottom: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-value {
    color: #61a029;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 280px;
    margin: 0 auto;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 160px;
    background: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-info h4 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-info p {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4CAF50;
    margin: 8px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Farmer Management search bar - simple version */
.user-management-content .tab-header .search-container {
    flex: 1;
    max-width: 400px;
    margin-right: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.user-management-content .tab-header .search-box {
    position: relative;
    display: block;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    height: 40px;
    width: 100%;
    transition: all 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.user-management-content .tab-header .search-box:focus-within {
    border-color: #61a029;
    box-shadow: 0 0 0 3px rgba(97, 160, 41, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.user-management-content .tab-header .search-box > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 2;
    transition: color 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.user-management-content .tab-header .search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    padding: 0 40px 0 40px;
    border-radius: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.user-management-content .tab-header .clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.user-management-content .tab-header .clear-search-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.user-management-content .tab-header .clear-search-btn i {
    font-size: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Customer Management search bars use the same look and behavior */
.customer-management-content .search-container { margin: 0; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.customer-management-content .search-box {
    position: relative;
    display: block;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    height: 40px;
    width: 100%;
    transition: all 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.customer-management-content .search-box:focus-within {
    border-color: #61a029;
    box-shadow: 0 0 0 3px rgba(97, 160, 41, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.customer-management-content .search-box > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.customer-management-content .search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    padding: 0 40px 0 40px;
    border-radius: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.customer-management-content .clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.customer-management-content .clear-search-btn:hover { background: #f3f4f6; color: #6b7280; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.customer-management-content .clear-search-btn i { font-size: 12px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Pending/Rejection verification header spacing and search width */
.customer-management-content .verification-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.customer-management-content .verification-header .search-container {
    flex: 1;
    max-width: 400px;
    margin: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-box {
    position: relative;
    display: block;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    height: 40px;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-box:focus-within {
    border-color: #61a029;
    box-shadow: 0 0 0 3px rgba(97, 160, 41, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-icon:hover {
    color: #6b7280;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    font-family: inherit;
    padding: 0 40px 0 40px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.search-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.clear-search-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Products Grid - Enhanced Dashboard Style */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 30px;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* .products-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #30442d 0%, #4CAF50 100%);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
} */

.products-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(48, 68, 45, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    width: 240px;
    height: 340px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(48, 68, 45, 0.15);
    border-color: #30442d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(48, 68, 45, 0.02) 0%, rgba(76, 175, 80, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover::before {
    opacity: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 160px;
    background: white;
    position: relative;
    z-index: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-info h4 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-info p {
    color: #7f8c8d;
    font-size: 0.75rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #4CAF50;
    margin: 12px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0e8 100%);
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid #e8f0e8;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-card:hover .product-price::before {
    left: 100%;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Product Selection */
.product-selection {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #61a029;
    transform: scale(1.2);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.checkbox-label {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Product Status Badge */
.product-status {
    position: absolute;
    top: 10px;
    right: 40px;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Product Menu */
.product-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 15;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-menu-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-menu-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-menu-btn i {
    color: #666;
    font-size: 0.8rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Removed conflicting menu-item rules to ensure consistent styling */

.status-inactive {
    background: #ffebee;
    color: #f44336;
    border: 1px solid #ffcdd2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Product Header and Details */
.product-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-header .product-price {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4CAF50;
    align-self: flex-end;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-details {
    flex: 1;
    margin-bottom: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-details p {
    margin-bottom: 8px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-details p i {
    width: 16px;
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Responsive Design for Product Cards */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .product-listing-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-listing-header .search-container {
        max-width: none;
        margin: 0;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .primary-btn {
        width: 100%;
        justify-content: center;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 15px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-card {
        width: 180px;
        height: 260px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-image {
        height: 110px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-info {
        padding: 12px;
        min-height: 150px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-info h4 {
        font-size: 0.95rem;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-info p {
        font-size: 0.75rem;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-price {
        font-size: 1rem;
        padding: 6px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
        padding: 12px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-card {
        width: 160px;
        height: 240px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-image {
        height: 100px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-info {
        padding: 10px;
        min-height: 140px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-info h4 {
        font-size: 0.9rem;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-info p {
        font-size: 0.7rem;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-price {
        font-size: 0.95rem;
        padding: 6px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Orders Container */
.orders-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-header.collapsible {
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #dee2e6;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-header.collapsible:hover {
    background: #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #6c757d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-details.collapsed {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-id {
    font-weight: 700;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-confirmed {
    background: #d4e8d4;
    color: #2d4a2d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-shipped {
    background: #cce5ff;
    color: #004085;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-delivered {
    background: #d1ecf1;
    color: #0c5460;
}

.status-failed {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-cancellation-requested {
    background: #fee2e2;
    color: #dc2626;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-details {
    margin-bottom: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-details p {
    margin-bottom: 5px;
    color: #666;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-actions {
    display: flex;
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.confirm-btn {
    background: #30442d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.packed-btn {
    background: #FF9800;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.packed-btn:hover {
    background: #F57C00;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.cancel-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.delete-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.delete-btn:hover {
    background: #d32f2f;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.reject-btn {
    background: #ff5722;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.reject-btn:hover {
    background: #e64a19;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.remove-btn:hover {
    background: #c82333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Product Actions - Removed as we now use the three-dot menu */

/* Farmers and Customers Grid */
.farmers-grid,
.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-card,
.customer-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-card:hover,
.customer-card:hover {
    transform: translateY(-3px);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #30442d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-info h4 {
    color: #333;
    margin-bottom: 5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat {
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-value {
    font-weight: 700;
    color: #333;
    display: block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden; /* prevent inner scroll side pane */
    padding: 40px 16px; /* breathing room for tall modals */
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Allow scrolling for rider forms and staff forms */
.modal-overlay.scrollable-overlay {
    overflow-y: auto !important;
    align-items: flex-start !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Ensure modal content can scroll when needed */
.modal-content.scrollable-modal {
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modal-overlay.show {
    display: flex;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 1040px; /* wider modal to fit more fields per row */
    width: 90%;
    height: auto; /* let content define height; overlay will scroll */
    /* Clip inner content to rounded corners to fix right-side radius */
    overflow: hidden;
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modal-header h3 {
    color: #30442d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modal-content form {
    /* Move scrolling to the form body so container radius is preserved */
    max-height: none;
    overflow: visible; /* no internal scrolling */
    flex: initial;
    min-height: auto;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Farmer modals: slightly wider grid, less vertical density */
.farmer-details-modal .form-grid,
#editFarmerForm .form-grid,
#addFarmerForm .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-details-modal .form-field input,
.farmer-details-modal .form-field select,
.farmer-details-modal .form-field textarea,
#editFarmerForm .form-field input,
#editFarmerForm .form-field select,
#editFarmerForm .form-field textarea,
#addFarmerForm .form-field input,
#addFarmerForm .form-field select,
#addFarmerForm .form-field textarea {
    padding: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Make farmer edit/view modals use wider dialog and shorter height */
#modalContent.farmer-modal {
    max-width: 920px !important;
    width: 90% !important;
    padding: 14px !important; /* tighter padding to avoid top/bottom cut */
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Enforce uniform size for all farmer-related modals (Add/Edit/View) */
#modalContent.uniform-farmer-modal {
    max-width: 1040px !important; /* align to default add form */
    width: 90% !important;
    padding: 30px !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Compact variant for Edit Farmer to reduce vertical height */
#modalContent.compact-farmer-edit .form-grid { gap: 8px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .form-field { margin-bottom: 6px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit { padding: 16px !important; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .user-registration-grid { gap: 12px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .form-section { padding: 8px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .form-description { margin-bottom: 8px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .form-field label { margin-bottom: 3px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .form-field textarea { min-height: 56px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .id-photos-grid { gap: 8px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .image-preview img { max-height: 96px !important; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .modal-header { margin-bottom: 8px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
#modalContent.compact-farmer-edit .modal-actions { margin-top: 10px; }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* When farmer modal is open, prevent overlay scrolling entirely */
#modalOverlay.farmer-modal-open {
    /* Avoid scroll; center within frame with minimal gutter */
    overflow-y: hidden !important;
    padding: 8px 10px !important;
    align-items: center !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-details-modal .form-grid,
#editFarmerForm .form-grid,
#addFarmerForm .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Tighter vertical rhythm on farmer forms */
.farmer-details-modal .form-field,
#editFarmerForm .form-field,
#addFarmerForm .form-field {
    margin-bottom: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Farmer details view: match add/edit visual size and add separators */
.farmer-details-view,
.staff-details-view {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-details-view .user-form-left .form-field,
.farmer-details-view .user-form-right .form-field,
.staff-details-view .user-form-left .form-field,
.staff-details-view .user-form-right .form-field {
    background: #fafafa;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 6px 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-details-view .user-form-left .form-field + .form-field,
.farmer-details-view .user-form-right .form-field + .form-field,
.staff-details-view .user-form-left .form-field + .form-field,
.staff-details-view .user-form-right .form-field + .form-field {
    margin-top: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-details-view .form-field label,
.staff-details-view .form-field label {
    font-size: inherit; /* match Add Farmer form */
    color: #6b7280;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-details-view .form-field p,
.staff-details-view .form-field p {
    margin: 0;
    color: #111827;
    font-size: inherit; /* match Add Farmer form */
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-details-view .user-form-left,
.staff-details-view .user-form-left {
    border-right: 1px solid #e9ecef;
    padding-right: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-details-view .user-form-right,
.staff-details-view .user-form-right {
    padding-left: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ensure same overall sizing as Add Farmer (uses same grid and spacing) */
.farmer-details-view .user-registration-grid,
.staff-details-view .user-registration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .farmer-details-view .user-registration-grid,
    .staff-details-view .user-registration-grid {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    .farmer-details-view .user-form-left,
    .staff-details-view .user-form-left {
        border-right: none;
        padding-right: 0;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    .farmer-details-view .user-form-right,
    .staff-details-view .user-form-right {
        padding-left: 0;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Compact, modern sizing for farmer edit/view modals */
#modalContent.farmer-modal .modal-header h3 {
    font-size: 1.15rem; /* keep font size; we trim spacing elsewhere */
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.farmer-modal .modal-header {
    margin-bottom: 10px;
    padding-bottom: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.farmer-modal .form-grid {
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.farmer-modal .form-field label {
    font-size: 0.9rem; /* keep readable label size */
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.farmer-modal .form-field input,
#modalContent.farmer-modal .form-field select,
#modalContent.farmer-modal .form-field textarea {
    padding: 7px 9px; /* compact spacing */
    font-size: 0.95rem; /* restore font size */
    border-radius: 6px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.farmer-modal .form-field textarea {
    min-height: 64px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.farmer-modal .modal-actions {
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.farmer-modal .primary-btn,
#modalContent.farmer-modal .secondary-btn {
    height: 34px;
    padding: 6px 12px; /* compact button spacing */
    border-radius: 6px;
    font-size: 0.9rem; /* keep button font size */
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Modal action buttons layout */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Keep it simple: Cancel left, Add right */
.modal-actions .secondary-btn {
    order: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.modal-actions .primary-btn {
    order: 2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Modern red cancel button scoped to modals */
.modal-actions .secondary-btn {
    background: #c62828;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 4px rgba(198, 40, 40, 0.25);
    height: 40px; /* match primary */
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
.modal-actions .secondary-btn:hover {
    background: #b71c1c;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.35);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ensure primary also uses the same explicit height inside modals */
.modal-actions .primary-btn {
    height: 40px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    .modal-actions .primary-btn,
    .modal-actions .secondary-btn {
        width: 100%;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Wider layouts: show 3 columns to reduce form height */
@media (min-width: 1200px) {
    .form-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    .form-field.full-width {
        grid-column: 1 / -1;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.form-field {
    display: flex;
    flex-direction: column;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.form-field label {
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Red asterisk for required fields */
.form-field label.required::after {
    content: " *";
    color: #e53935;
    font-weight: 700;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Red asterisk for required section headings (e.g., Valid ID Photos) */
.form-section h4.required::after,
h4.required::after {
    content: " *";
    color: #e53935;
    font-weight: 700;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.form-field input,
.form-field textarea,
.form-field select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-clip: padding-box; /* prevent inner background from squaring corners */
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ensure consistent border radius for all form fields - fix for right side border radius issue */
.form-field input,
.form-field textarea,
.form-field select {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Additional specificity for modal form fields */
.modal-content .form-field input,
.modal-content .form-field textarea,
.modal-content .form-field select {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Reset browser defaults and ensure consistent styling */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Specific fix for select elements */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ultra-specific targeting for add product form fields */
#productName,
#category,
#quantity,
#unit,
#price,
#harvestDate,
#description,
#productImages {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Even more specific targeting for modal form fields */
.modal-content #productName,
.modal-content #category,
.modal-content #quantity,
.modal-content #unit,
.modal-content #price,
.modal-content #harvestDate,
.modal-content #description,
.modal-content #productImages {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Force border radius on all form elements within the add product form */
#addProductForm input,
#addProductForm select,
#addProductForm textarea {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Nuclear option - target all possible form elements with maximum specificity */
.modal-overlay .modal-content .form-grid .form-field input,
.modal-overlay .modal-content .form-grid .form-field select,
.modal-overlay .modal-content .form-grid .form-field textarea {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    border-radius: 8px !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Specific fix for file input elements */
input[type="file"] {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    border-radius: 8px !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Additional file input targeting */
#productImages {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    border-radius: 8px !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Add Farmer Section Styles */
.add-farmer-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.add-farmer-section:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.add-farmer-section .primary-btn {
    background: #30442d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.add-farmer-section .primary-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.add-farmer-section .section-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* ID Photo Upload Styles */
.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.form-section h4 {
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.form-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photos-grid {
    display: grid;
    grid-template-columns: 1fr 320px; /* form left, photos column right */
    gap: 16px;
    align-items: start;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.image-preview {
    margin-top: 6px;
    min-height: 36px; /* compact to save vertical space */
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photos-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo h5 {
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Customer Management */
.customer-management {
    max-width: 100%;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.management-header {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.management-header p {
    margin: 5px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.text-warning {
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-info h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-info p {
    margin: 3px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* User Management Tabs */
.user-management-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-content .tab-content {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-content .tab-content.active {
    display: block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-header h3 {
    margin: 0;
    color: #30442d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-description {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Reports & Analytics */
.sales-overview-section {
    margin-bottom: 40px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.time-period-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.time-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.time-btn.active {
    background: #30442d;
    color: white;
    border-color: #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.time-btn:hover:not(.active) {
    border-color: #4CAF50;
    background: #f8f9fa;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.summary-stat {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.summary-stat h4 {
    font-size: 1.8rem;
    color: #4CAF50;
    margin: 0 0 5px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.summary-stat p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Sales Table */
.sales-table-section {
    margin-bottom: 40px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.data-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.analytics-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.analytics-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.top-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.top-item:last-child {
    border-bottom: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.item-name {
    font-weight: 600;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.item-value {
    color: #4CAF50;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.system-health {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status.online {
    color: #4CAF50;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status.offline {
    color: #f44336;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .sidebar {
        width: 100%;
        order: 2;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .main-content {
        order: 1;
        padding: 20px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .form-grid {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .role-buttons {
        flex-direction: column;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    to {
        opacity: 1;
        transform: translateY(0);
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    to {
        opacity: 1;
        transform: translateY(0);
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    100% { transform: rotate(360deg); }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.section-header h2 {
    margin: 0;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Verification Status Tabs */

/* Admin Login Styles */
#adminLogin {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('cabintan.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-container {
    background: rgba(255, 255, 255, .60);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-header i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 16px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-header h2 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 24px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-selection {
    margin-bottom: 30px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-selection h3 {
    margin-bottom: 20px;
    color: #30442d;
    font-size: 1.1rem;
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-btn {
    flex: 1;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-btn:hover {
    border-color: #4CAF50;
    background: #f8f9fa;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-btn.selected {
    border-color: #4CAF50;
    background: #e8f0e8;
    color: #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-btn i {
    font-size: 1.5rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-btn span {
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease-in;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-form.hidden {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .form-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .form-group i {
    position: absolute;
    left: 15px;
    color: #666;
    z-index: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-btn {
    background: linear-gradient(135deg, #4CAF50, #2a3d26);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-btn:hover {
    transform: translateY(-2px);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .error-message {
    color: #f44336;
    background: #ffebee;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .error-message.show {
    display: block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-info {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    font-size: 0.9rem;
    color: #666;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-info.admin {
    border-left-color: #2196F3;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#adminLogin .role-info.staff {
    border-left-color: #ff9800;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Bulk Delete Controls - DISABLED - using sidebar bulk actions instead */
/* Force hide any bulk delete containers that might be created by JavaScript */
.bulk-delete-container {
    display: none !important;
    visibility: hidden !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/*
.bulk-delete-container {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.bulk-delete-container .selected-count {
    font-weight: 600;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.delete-selected-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.delete-selected-btn:hover {
    background: #d32f2f;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.select-all-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.select-all-btn:hover {
    background: #1976D2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
*/

/* Product Selection */
.product-selection {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #61a029;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.checkbox-label {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Category Sections for Product Listing */
.category-section {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 200px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header {
    background: linear-gradient(135deg, #4CAF50, #2a3d26);
    color: white;
    padding: 22px 30px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header.clickable {
    cursor: pointer;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header.clickable:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    pointer-events: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header .category-icon {
    font-size: 16px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header.expanded .category-icon {
    transform: rotate(90deg);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header i:not(.category-icon) {
    font-size: 20px;
    opacity: 0.9;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header .category-name {
    flex: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .category-header .product-count {
    font-size: 14px;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .products-grid {
    padding: 30px;
    background: #fafafa;
    transition: all 0.3s ease;
    max-height: 3000px;
    overflow: visible;
    min-height: 150px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .products-grid.collapsed {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .products-grid .product-card {
    background: white;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-section .products-grid .product-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Rejected Products Module */
.rejected-products-header {
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 36px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 250px;
    flex: 1;
    max-width: 500px;
    width: 100%;
}

.rejected-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.rejected-stats .stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rejected-stats .stat-item:hover::before {
    transform: scaleX(1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-stats .stat-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-actions {
    display: flex;
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-products-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-product-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #f44336;
    position: relative;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-product-info h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-product-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-reason {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-reason h5 {
    color: #c62828;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-reason p {
    color: #d32f2f;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-product-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.detail-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.detail-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-date {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    color: #999;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.empty-rejected {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.empty-rejected i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.empty-rejected h3 {
    margin-bottom: 10px;
    color: #30442d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.empty-rejected p {
    color: #bbb;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Responsive adjustments for category sections */
@media (max-width: 768px) {
    .category-section .category-header {
        padding: 15px 20px;
        font-size: 16px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .category-section .products-grid {
        padding: 16px;
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .products-grid {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-actions button {
        width: 100%;
        min-width: auto;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .rejected-products-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 16px;
    }

    .rejected-stats {
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
    }

    .rejected-stats .stat-item {
        min-width: 100%;
        max-width: 100%;
        padding: 24px 28px;
    }

    .rejected-stats .stat-value {
        font-size: 2rem;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .rejected-stats {
        justify-content: space-between;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .rejected-product-header {
        flex-direction: column;
        gap: 10px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .rejected-product-details {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Confirmed Orders Module Styles */
.confirmed-orders-header {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.confirmed-stats {
    display: flex;
    gap: 30px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.confirmed-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.confirmed-stats .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.confirmed-stats .stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Assigned Orders Module Styles */
.assigned-orders-header {
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.assigned-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.assigned-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 36px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.assigned-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.assigned-stats .stat-item:first-child::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.assigned-stats .stat-item:last-child::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.assigned-stats .stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.assigned-stats .stat-item:hover::before {
    transform: scaleX(1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.assigned-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.assigned-stats .stat-item:last-child .stat-value {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.assigned-stats .stat-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.assigned-orders-container {
    display: grid;
    gap: 20px;
    padding: 20px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Assignment Modal Styles */
.assignment-section {
    margin: 20px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-selection {
    margin: 15px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-selection select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-selection select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.assignment-notes {
    margin: 15px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.assignment-notes label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.assignment-notes textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.assignment-notes textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Order Status Colors for Assigned Orders */
.status-assigned {
    background: #ff9800;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-in-progress {
    background: #2196F3;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Responsive Design for New Modules */
@media (max-width: 768px) {
    .confirmed-stats,
    .assigned-stats {
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
    }

    .assigned-stats .stat-item {
        min-width: 100%;
        max-width: 100%;
        padding: 24px 28px;
    }

    .assigned-stats .stat-value {
        font-size: 2rem;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .confirmed-orders-header,
    .assigned-orders-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 16px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .farmer-selection select,
    .assignment-notes textarea {
        font-size: 16px; /* Prevent zoom on mobile */
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Rejected Product Selection Styles */
.rejected-selection {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff9800;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.checkbox-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-product-card {
    position: relative;
    padding-left: 45px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Bulk Delete Controls for Rejected Products - DISABLED - using sidebar bulk actions instead */
/*
.bulk-delete-container {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.bulk-delete-container .selected-count {
    font-weight: 600;
    color: #e65100;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.bulk-delete-container .delete-selected-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.bulk-delete-container .delete-selected-btn:hover {
    background: #d32f2f;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.bulk-delete-container .select-all-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.bulk-delete-container .select-all-btn:hover {
    background: #1976d2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
*/

/* Rejected Orders: Top-right Delete All button */
.rejected-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-actions-bar .delete-selected-btn {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.25);
    transition: background 0.25s ease, transform 0.06s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-actions-bar .delete-selected-btn:hover {
    background: #d32f2f;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rejected-actions-bar .delete-selected-btn:active {
    transform: translateY(1px);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Collapsible Order Details Styles */
.order-header.clickable {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-header.clickable:hover {
    background-color: #f8f9fa;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-id {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-toggle-icon {
    font-size: 0.9rem;
    color: #666;
    transition: transform 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-details {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-details.collapsed {
    max-height: 0;
    padding: 0 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-info {
    margin-bottom: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-info p {
    margin-bottom: 8px;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-items {
    margin-top: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-items ul {
    margin-top: 8px;
    padding-left: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-items li {
    margin-bottom: 5px;
    color: #555;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Confirmed Orders Layout Styles */
.order-summary {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-products h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-name {
    font-weight: 600;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-quantity {
    color: #666;
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-price {
    color: #666;
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-total {
    font-weight: 600;
    color: #4CAF50;
    text-align: right;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.meta-item i {
    color: #4CAF50;
    width: 16px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.meta-item span {
    color: #333;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Customer Details Modal Styles */
.customer-details {
    padding: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.info-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.info-item span {
    color: #333;
    font-size: 1rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.address-box {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.address-box p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Modern Customer Details Modal Styles */
.modern-customer-details {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modern-customer-details .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modern-customer-details .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modern-customer-details .form-field.full-width {
    grid-column: 1 / -1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modern-customer-details .form-field label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modern-customer-details .form-field label.required::after {
    content: " *";
    color: #e74c3c;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modern-customer-details .form-field input,
.modern-customer-details .form-field textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    color: #495057;
    transition: all 0.2s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modern-customer-details .form-field input:focus,
.modern-customer-details .form-field textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.modern-customer-details .form-field input[readonly],
.modern-customer-details .form-field textarea[readonly] {
    cursor: default;
    background-color: #f8f9fa;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* ID Photos Container */
.id-photos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-item {
    display: flex;
    flex-direction: column;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-display {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    background: white;
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-display img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.no-photo {
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-customer-details .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .id-photos-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .modern-customer-details {
        padding: 16px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Delivery Information Section Styles */
.info-item.full-width {
    grid-column: 1 / -1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.info-item.full-width label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.delivery-address-highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
    position: relative;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.delivery-address-highlight::before {
    content: "ðŸ“";
    position: absolute;
    top: -8px;
    left: 12px;
    background: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    border: 2px solid #2196f3;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.delivery-notes-highlight {
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
    position: relative;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.delivery-notes-highlight::before {
    content: "ðŸ“";
    position: absolute;
    top: -8px;
    left: 12px;
    background: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    border: 2px solid #ff9800;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-badge {
    display: inline-block !important;
    padding: 1px 4px !important;
    border-radius: 8px !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-badge.confirmed {
    background: #e8f0e8;
    color: #2e7d32;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Responsive Design for Confirmed Orders */
@media (max-width: 768px) {
    .product-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-total {
        text-align: center;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .order-meta {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .info-grid {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* User Management Styles */
.user-management-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-tabs .tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-tabs .tab-btn.active {
    background: #30442d;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-tabs .tab-btn:hover {
    background: #e8f0e8;
    color: #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-tabs .tab-btn.active:hover {
    background: #45a049;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-content .tab-content {
    display: none;
    padding: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-content .tab-content.active {
    display: block;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-header h3 {
    color: #30442d;
    font-size: 1.3rem;
    margin: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.tab-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Customer Management Sub-tabs */
.customer-management-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-management-tabs .sub-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-management-tabs .sub-tab-btn.active {
    background: linear-gradient(135deg, #61a029 0%, #4f8a22 100%);
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-management-tabs .sub-tab-btn:hover {
    background: #e8f5e8;
    color: #4f8a22;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-management-tabs .sub-tab-btn.active:hover {
    background: linear-gradient(135deg, #4f8a22 0%, #3d6b1a 100%);
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-management-content .sub-tab-content {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-management-content .sub-tab-content.active {
    display: block !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* More specific rule to override user-management-content .tab-content */
.user-management-content .customer-management-content .sub-tab-content {
    display: none;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-management-content .customer-management-content .sub-tab-content.active {
    display: block !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}


/* User List Styles */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Staff member styles (keep for actual staff) */
.staff-member {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-member:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-info {
    flex: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-info h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-info p {
    color: #666;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-info small {
    color: #999;
    font-size: 0.8rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* ID Photos Preview for Customer Records */
.staff-photos {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photos-preview {
    display: flex;
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-placeholder {
    width: 60px;
    height: 40px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.7rem;
    text-align: center;
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-placeholder:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-placeholder i {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-placeholder span {
    font-size: 0.6rem;
    font-weight: 500;
    line-height: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* ID Photos in Modal/Details View */
.id-photo-placeholder-large {
    width: 100%;
    min-height: 120px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-placeholder-large:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-placeholder-large i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #adb5bd;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-placeholder-large span {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #6c757d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-placeholder-large small {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-display {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photos-container {
    margin-top: 12px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .id-photos-container {
        flex-direction: column;
        gap: 15px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .id-photo-item {
        flex: none !important;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.staff-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Customer item styles (legacy - will be overridden by customer-record-item) */
.customer-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-info {
    flex: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-info h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-info p {
    color: #666;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-info small {
    color: #999;
    font-size: 0.8rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.edit-btn {
    background: #2196F3;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.edit-btn:hover {
    background: #1976d2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.approve-btn {
    background: #30442d;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.approve-btn:hover {
    background: #45a049;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.reject-btn {
    background: #f44336;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.reject-btn:hover {
    background: #d32f2f;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.deactivate-btn {
    background: #2196F3;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.deactivate-btn:hover {
    background: #1976d2;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.secondary-btn {
    background: #ff9800;
    color: white;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.secondary-btn:hover {
    background: #C76E00;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Customer Item Status Styles */
.customer-item.pending {
    border-left: 4px solid #ffc107;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-item.approved {
    border-left: 4px solid #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-item.rejected {
    border-left: 4px solid #f44336;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Modern Customer Records Styling - High Priority */
.customer-record-item {
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #61a029 0%, #4f8a22 100%);
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #61a029;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-item:hover::before {
    width: 6px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-info {
    flex: 1 !important;
    padding-right: 20px !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-info h5 {
    color: #2c3e50 !important;
    margin: 0 0 12px 0 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-info p {
    margin: 6px 0 !important;
    color: #5a6c7d !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-info .status-badge {
    display: inline-block !important;
    padding: 0px 4px !important;
    border-radius: 4px !important;
    font-size: 0.55rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    margin-top: 8px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions {
    display: flex !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    align-items: center !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions button {
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 120px !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions button:hover::before {
    left: 100%;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .view-btn {
    background: #ff9800 !important;
    color: white !important;
    border: 2px solid transparent !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .view-btn:hover {
    background: #e68900 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4) !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .view-btn i {
    font-size: 0.9rem !important;
    transition: transform 0.3s ease !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .view-btn:hover i {
    transform: scale(1.1) !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .edit-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%) !important;
    color: white !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .edit-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4) !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .secondary-btn {
    background: #2196F3 !important;
    color: white !important;
    border: 2px solid transparent !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .secondary-btn:hover {
    background: #1976d2 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4) !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .remove-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
    color: white !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-actions .remove-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4) !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Deactivated Customer Styling */
.customer-record-item.deactivated-customer {
    opacity: 0.7;
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-item.deactivated-customer::before {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-item.deactivated-customer .customer-record-info h5 {
    color: #6c757d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-record-item.deactivated-customer .customer-record-info p {
    color: #868e96;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Status Badge Styles */
.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-badge.approved {
    background: #d4e8d4;
    color: #2d4a2d;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-badge.active {
    background: #d4e8d4 !important;
    color: #2d4a2d !important;
    border: 1px solid #c3e0c3 !important;
    padding: 1px 4px !important;
    font-size: 0.65rem !important;
    border-radius: 8px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-badge.inactive {
    background: #ffebee !important;
    color: #f44336 !important;
    border: 1px solid #ffcdd2 !important;
    padding: 1px 4px !important;
    font-size: 0.65rem !important;
    border-radius: 8px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.status-badge.removed {
    background: #e2e3e5;
    color: #383d41;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Customer Details Modal */
.customer-details-modal, .farmer-details-modal {
    padding: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* ID Photo Display Styles */
.id-photo-display {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-item {
    flex: 1;
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-item strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-container {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin-top: 5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Enhanced ID Photo Rectangle Styling for Admin Dashboard */
.user-form-right .id-photos-grid .id-photo-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-form-right .id-photos-grid .id-photo-item label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-form-right .id-photos-grid .id-photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-form-right .id-photos-grid .id-photo-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.user-form-right .id-photos-grid .id-photo-not-uploaded {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px dashed #ccc;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ensure consistent rectangle sizing across all admin forms */
.farmer-details-view .id-photos-grid .id-photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.farmer-details-view .id-photos-grid .id-photo-not-uploaded {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    background: #f5f5f5;
    border-radius: 8px;
    border: 2px dashed #ccc;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Square reject verification modal */
#modalContent.square-reject-modal {
    width: 600px !important;
    height: 600px !important;
    max-width: 600px !important;
    max-height: 600px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px !important;
    margin: 0 !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Remove unnecessary margins and spacing ONLY in reject modal */
#modalContent.square-reject-modal .modal-header {
    margin-bottom: 5px !important;
    padding: 0 !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.square-reject-modal form .form-field {
    margin-bottom: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.square-reject-modal form .form-field textarea {
    min-height: 400px !important;
    height: 100% !important;
    margin: 0 !important;
    resize: vertical !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

#modalContent.square-reject-modal .modal-actions {
    margin-top: 15px !important;
    padding: 0 !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Analytics card header styling */
.analytics-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.analytics-card-header h4 {
    margin: 0;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.view-all-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.view-all-btn:hover {
    background: #45a049;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.view-all-btn i {
    margin-right: 4px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .analytics-card-header h4 {
    color: #e0e0e0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .view-all-btn {
    background: #61a029;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .view-all-btn:hover {
    background: #5a8f26;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ranking table styling */
.ranking-table-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.ranking-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.ranking-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.ranking-table tr:hover {
    background: #f8f9fa;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.rank-cell {
    font-weight: bold;
    color: #4CAF50;
    text-align: center;
    width: 60px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.name-cell {
    font-weight: 500;
    color: #333;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.value-cell {
    text-align: right;
    font-weight: 600;
    color: #2e7d32;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .ranking-table {
    background: #2d2d2d;
    color: #e0e0e0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .ranking-table th {
    background: #404040;
    color: #e0e0e0;
    border-bottom-color: #555;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .ranking-table td {
    border-bottom-color: #444;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .ranking-table tr:hover {
    background: #404040;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .rank-cell {
    color: #61a029;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .name-cell {
    color: #e0e0e0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .value-cell {
    color: #81c784;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.dark-theme .ranking-table-container {
    border-color: #555;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.id-photo-not-uploaded {
    color: #999;
    font-style: italic;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
    border: 1px dashed #ccc;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Product Details View Styles */
.product-details-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-image-large {
    text-align: center;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-info-details h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.category-badge {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 800;
    color: #4CAF50;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0e8 100%);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e8f0e8;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

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

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-details-grid .detail-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-details-grid .detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-details-grid .detail-item span {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-description label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.product-description p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Responsive Design for Product Details */
@media (max-width: 768px) {
    .product-details-grid {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-price-large {
        font-size: 1.5rem;
        padding: 12px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-details-modal .form-grid, .farmer-details-modal .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-details-modal .form-field, .farmer-details-modal .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-details-modal .form-field label, .farmer-details-modal .form-field label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.customer-details-modal .form-field p, .farmer-details-modal .form-field p {
    color: #333;
    margin: 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Responsive Design for User Management */
@media (max-width: 768px) {
    .staff-member, .customer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .staff-actions, .customer-actions {
        width: 100%;
        justify-content: flex-start;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .staff-photos {
        margin: 10px 0;
        justify-content: center;
        width: 100%;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .id-photos-preview {
        justify-content: center;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .user-management-tabs {
        flex-direction: column;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .customer-management-tabs {
        flex-direction: column;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .customer-details-modal .form-grid, .farmer-details-modal .form-grid {
        grid-template-columns: 1fr;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

    /* Product Listing Dashboard Layout Responsive */
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .dashboard-right {
        order: -1;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .search-section {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .search-input-container {
        max-width: none;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-image {
        height: 180px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-info {
        padding: 15px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-name {
        font-size: 1.1rem;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-price {
        font-size: 1.3rem;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-actions button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .product-actions-panel {
        gap: 15px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
    
    .action-group {
        gap: 8px;
    }

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.no-data {
    text-align: center;
    color: #e0e0e0;
    font-style: italic;
    padding: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

.loading {
    text-align: center;
    color: #4CAF50;
    font-style: italic;
    padding: 20px;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* --- ULTRA SPECIFIC STATUS BADGE OVERRIDE - FORCE COMPACT WIDTH --- */
html body div .customer-record-item .status-badge,
html body div .customer-record-info .status-badge,
html body div .staff-member .status-badge,
html body div .status-badge,
html body .customer-record-item .status-badge,
html body .customer-record-info .status-badge,
html body .staff-member .status-badge,
html body .status-badge,
body .customer-record-item .status-badge,
body .customer-record-info .status-badge,
body .staff-member .status-badge,
body .status-badge {
    padding: 1px 4px !important;
    font-size: 0.65rem !important;
    border-radius: 8px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* --- NUCLEAR STATUS BADGE OVERRIDE - MAXIMUM SPECIFICITY --- */
html body div div .customer-record-item .status-badge.status-active,
html body div div .customer-record-item .status-badge.status-inactive,
html body div div .customer-record-info .status-badge.status-active,
html body div div .customer-record-info .status-badge.status-inactive,
html body div div .staff-member .status-badge.status-active,
html body div div .staff-member .status-badge.status-inactive,
html body div div .status-badge.status-active,
html body div div .status-badge.status-inactive,
html body div .customer-record-item .status-badge.status-active,
html body div .customer-record-item .status-badge.status-inactive,
html body div .customer-record-info .status-badge.status-active,
html body div .customer-record-info .status-badge.status-inactive,
html body div .staff-member .status-badge.status-active,
html body div .staff-member .status-badge.status-inactive,
html body div .status-badge.status-active,
html body div .status-badge.status-inactive {
    padding: 1px 3px !important;
    font-size: 0.6rem !important;
    border-radius: 6px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    height: auto !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* --- Balanced rounded corners for form containers (admin & staff) --- */
.form-section,
.data-card,
.product-card,
.order-card,
.customer-card,
.farmer-card,
.form-card,
.form-container {
	border-radius: 12px;
	overflow: hidden; /* ensure inner backgrounds respect radius */
	background-clip: padding-box;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* Ensure embedded media respect container rounding */
.form-section img,
.data-card img,
.product-card img,
.order-card img,
.customer-card img,
.farmer-card img {
	border-radius: inherit;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* --- User Management detail forms: ensure balanced right-side rounding --- */
.customer-details-modal,
.farmer-details-modal,
.customer-details,
.product-details-view,
.user-management-content .tab-content,
.user-management-content .customer-management-content .sub-tab-content {
	border-radius: 12px;
	overflow: hidden;
	background-clip: padding-box;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* === FINAL STATUS BADGE OVERRIDE - MAXIMUM POWER === */
* .status-badge,
* .status-badge.status-active,
* .status-badge.status-inactive,
.customer-record-item .status-badge,
.customer-record-info .status-badge,
.staff-member .status-badge,
.staff-info .status-badge,
div .status-badge,
span.status-badge {
    padding: 0px 4px !important;
    font-size: 0.55rem !important;
    border-radius: 4px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

/* === STAFF DASHBOARD SPECIFIC OVERRIDE - NUCLEAR === */
#staffDashboard .customer-record-item .status-badge,
#staffDashboard .customer-record-info .status-badge,
#staffDashboard .staff-member .status-badge,
#staffDashboard .status-badge,
.staff-dashboard .customer-record-item .status-badge,
.staff-dashboard .customer-record-info .status-badge,
.staff-dashboard .staff-member .status-badge,
.staff-dashboard .status-badge,
body.staff-dashboard .customer-record-item .status-badge,
body.staff-dashboard .customer-record-info .status-badge,
body.staff-dashboard .staff-member .status-badge,
body.staff-dashboard .status-badge {
    padding: 1px 6px !important;
    font-size: 0.6rem !important;
    border-radius: 6px !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Chat message sender styling */
.message-sender {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    opacity: 0.8;
}

