/* Modern Representative Shipments Dashboard Styles */

/* Main Container */
.representative-shipments-section-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Vazir', 'IRANSans', Arial, sans-serif;
}

/* Modern Section Header */
.section-header-modern {
    background: linear-gradient(135deg, #58992e 0%, #6c757d 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(88, 153, 46, 0.3);
}

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

.header-title h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title .dashicons {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.header-description {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modern Buttons */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary-modern {
    background: linear-gradient(135deg, #58992e 0%, #6c757d 100%);
    color: white;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 153, 46, 0.4);
}

.btn-secondary-modern {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.btn-success-modern {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-success-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-info-modern {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.btn-info-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

/* No Shipments Message */
.no-shipments-message-modern {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.message-icon {
    margin-bottom: 30px;
}

.message-icon .dashicons {
    font-size: 80px;
    color: #667eea;
    opacity: 0.7;
}

.message-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.message-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Statistics */
.shipments-stats-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Shipment Stat Cards - Similar to Warranty Stat Cards */
.shipment-stat-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    user-select: none;
}

.shipment-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.shipment-stat-card.active {
    background: #58992e;
    color: white;
    border-color: #58992e;
    box-shadow: 0 4px 15px rgba(88, 153, 46, 0.3);
}

.shipment-stat-card.active .stat-number,
.shipment-stat-card.active .stat-label {
    color: white;
}

.shipment-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shipment-stat-card .stat-icon i {
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipment-stat-card .stat-content {
    flex: 1;
}

.shipment-stat-card .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.shipment-stat-card .stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy stat-card-modern for backward compatibility */
.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-card-modern .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #58992e 0%, #6c757d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.stat-card-modern .stat-icon .dashicons {
    font-size: 28px;
    color: white;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Warranty Codes Report */
.warranty-codes-report-modern {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.report-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.report-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.report-header h3 .dashicons {
    color: #0073aa;
    font-size: 28px;
}

.report-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

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

.warranty-stat-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    user-select: none;
}

.warranty-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.warranty-stat-card.active {
    background: #58992e;
    color: white;
    border-color: #58992e;
    box-shadow: 0 4px 15px rgba(88, 153, 46, 0.3);
}

.warranty-stat-card.active .stat-number,
.warranty-stat-card.active .stat-label {
    color: white;
}

.warranty-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.warranty-stat-card .stat-icon i {
    font-size: 24px;
}

.warranty-stat-card .stat-content {
    flex: 1;
}

.warranty-stat-card .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.warranty-stat-card .stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Filters Modern */
.table-filters-modern {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.filters-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.filter-select, .search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.filter-select:focus, .search-input:focus {
    outline: none;
    border-color: #58992e;
    box-shadow: 0 0 0 3px rgba(88, 153, 46, 0.1);
}

.search-input {
    flex: 2;
    min-width: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .warranty-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .warranty-stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .warranty-stat-card .stat-icon {
        width: 40px;
        height: 40px;
        background: #58992e !important;
    }
    
    .warranty-stat-card .stat-icon i {
        font-size: 20px;
        color: white !important;
    }
    
    .warranty-stat-card .stat-number {
        font-size: 20px;
    }
    
    .warranty-stat-card .stat-label {
        font-size: 12px;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    /* Fix shipment stat card icons in mobile */
    .shipment-stat-card .stat-icon {
        background: #58992e !important;
    }
    
    .shipment-stat-card .stat-icon i {
        color: white !important;
    }
    
    /* Fix warranty stat card icons in mobile */
    .warranty-stat-card .stat-icon {
        background: #58992e !important;
    }
    
    .warranty-stat-card .stat-icon i {
        color: white !important;
    }
}

/* Modern Shipment Cards */
.shipments-list-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.shipment-card-modern {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

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

/* Shipment Card Header */
.shipment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
    flex-shrink: 0;
}

.shipment-basic-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.shipment-title-info {
    width: 100%;
}

.shipment-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

/* Badges Container */
.shipment-badges-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.shipment-id-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #58992e 0%, #6c757d 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: auto;
    width: fit-content;
    flex-shrink: 0;
}

.shipment-id-badge .badge-label {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 0;
}

.shipment-id-badge .badge-value {
    font-size: 12px;
    font-weight: 600;
}

.shipment-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 12px;
    width: 100%;
}

.shipment-date .dashicons {
    color: #58992e;
}

/* Status Badge */
.status-badge-modern {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    justify-content: center;
}

/* Shipment Details */
.shipment-details-modern {
    margin-bottom: 20px;
    flex-grow: 1;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-label .dashicons {
    color: #58992e;
    font-size: 16px;
}

.detail-value {
    color: #333;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
}

.detail-value em {
    color: #999;
    font-style: italic;
    font-weight: 400;
}

/* Shipment Actions */
.shipment-actions-modern {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-top: auto;
}

/* Modern Modals */
.modal-modern {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-modern.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-modern {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header-modern {
    padding: 25px 30px;
    border-bottom: 2px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header-modern h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header-modern .dashicons {
    color: #58992e;
}

.close-modern {
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modern:hover {
    color: #333;
    background: #f8f9fa;
}

.modal-body-modern {
    padding: 30px;
}

.shipment-details-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.shipment-info-section,
.shipment-products-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Form Styles */
.form-modern {
    display: grid;
    gap: 20px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-modern label {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.input-modern,
.textarea-modern {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-modern:focus,
.textarea-modern:focus {
    outline: none;
    border-color: #58992e;
    background: white;
    box-shadow: 0 0 0 3px rgba(88, 153, 46, 0.1);
}

.textarea-modern {
    resize: vertical;
    min-height: 80px;
}

.form-actions-modern {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f8f9fa;
}

/* Shipment Details Content */
.shipment-details-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.shipment-info-section,
.shipment-products-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.shipment-info-section h4,
.shipment-products-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-item-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item-modern.full-width {
    grid-column: 1 / -1;
}

.info-item-modern .label {
    color: #666 !important;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item-modern .value {
    color: #333 !important;
    font-weight: 600;
    font-size: 15px;
}

/* Shipment Info Grid - Force dark text */
.shipment-info-grid {
    color: #333 !important;
}

.shipment-info-grid * {
    color: #333 !important;
}

.shipment-info-grid .info-card {
    color: #333 !important;
}

.shipment-info-grid .info-content {
    color: #333 !important;
}

.shipment-info-grid label {
    color: #666 !important;
}

.shipment-info-grid span {
    color: #333 !important;
}

.shipment-info-grid .info-item {
    color: #333 !important;
}

.shipment-info-grid .info-label {
    color: #666 !important;
}

.shipment-info-grid .info-value {
    color: #333 !important;
}

/* Force all modal text to be dark */
.modal-body-modern * {
    color: #333 !important;
}

.modal-body-modern label,
.modal-body-modern .label {
    color: #666 !important;
}

.modal-body-modern .info-grid-modern * {
    color: #333 !important;
}

.modal-body-modern .shipment-details-content * {
    color: #333 !important;
}

/* Classic Modal Info Grid - Apply same grid design */
.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 0;
}

.info-item-modern {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-item-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0073aa;
}

.info-item-modern .label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.info-item-modern .value {
    font-size: 14px;
    font-weight: 500;
    color: #333 !important;
    word-break: break-word;
    display: block;
}

.info-item-modern.full-width {
    grid-column: 1 / -1;
}

/* Responsive adjustments for classic modal */
@media (max-width: 768px) {
    .info-grid-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-item-modern {
        padding: 15px;
    }
}

/* Specific overrides for modal content */
#shipment-details-body * {
    color: #333 !important;
}

#shipment-details-body label,
#shipment-details-body .label {
    color: #666 !important;
}

/* Shipment Info Grid - Simple and Minimal Design */
.shipment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 0;
}

.shipment-info-grid .info-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shipment-info-grid .info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #58992e;
}

.shipment-info-grid .info-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shipment-info-grid .info-icon i {
    font-size: 18px;
    color: #58992e;
}

.shipment-info-grid .info-content {
    flex: 1;
    min-width: 0;
}

.shipment-info-grid .info-content label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.shipment-info-grid .info-content span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shipment-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .shipment-info-grid .info-card {
        padding: 15px;
    }
    
    .shipment-info-grid .info-icon {
        width: 35px;
        height: 35px;
    }
    
    .shipment-info-grid .info-icon i {
        font-size: 16px;
    }
}

/* Products Table */
.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: right;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.products-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #333;
}

.products-table tr:hover {
    background: #f8f9fa;
}

.products-table code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #58992e;
}

.product-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.product-status.active {
    background: #d4edda;
    color: #155724;
}

.product-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Loading States */
.loading-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-products .dashicons {
    font-size: 32px;
    margin-bottom: 15px;
    color: #58992e;
    animation: spin 1s linear infinite;
}

.loading-products .dashicons:before {
    content: "\f463";
}

.loading-products .dashicons.dashicons-update:before {
    content: "\f463";
}

.loading-products .dashicons.dashicons-update {
    animation: spin 1s linear infinite;
}

.loading-products .dashicons.dashicons-update:before {
    content: "\f463";
    animation: spin 1s linear infinite;
}

.no-products-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products-message i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products-message .dashicons {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products-message .dashicons:before {
    content: "\f346";
}

.no-products-message .dashicons.dashicons-box-open:before {
    content: "\f346";
}

.no-products-message h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.no-products-message p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #dc3545;
}

.error-message i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-message .dashicons {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-message .dashicons:before {
    content: "\f534";
}

.error-message .dashicons.dashicons-warning:before {
    content: "\f534";
}

.error-message p {
    margin: 0;
    color: #dc3545;
    font-size: 16px;
    font-weight: 600;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shipments-list-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .representative-shipments-section-new {
        padding: 15px;
    }
    
    .section-header-modern {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-title h2 {
        font-size: 24px;
        justify-content: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .shipments-stats-modern {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .stat-card-modern {
        padding: 20px;
    }
    
    .shipments-list-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shipment-card-modern {
        padding: 20px;
    }
    
    .shipment-card-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .shipment-basic-info {
        align-items: center;
        text-align: center;
    }
    
    .shipment-badges-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .status-badge-modern {
        flex: none;
        width: 100%;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .shipment-actions-modern {
        justify-content: center;
    }
    
    .modal-content-modern {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header-modern,
    .modal-body-modern {
        padding: 20px;
    }
    
    .form-actions-modern {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .shipments-stats-modern {
        grid-template-columns: 1fr;
    }
    
    .stat-card-modern {
        text-align: center;
    }
    
    .stat-card-modern .stat-icon {
        margin: 0 auto 20px auto;
    }
    
    .shipments-list-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shipment-basic-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
    
    .shipment-badges-container {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .status-badge-modern {
        flex: none;
        width: 100%;
    }
    
    .shipment-id-badge {
        min-width: auto;
        width: 100%;
        max-width: 150px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .shipment-card-modern,
    .stat-card-modern,
    .modal-content-modern {
        background: #ffffff;
        color: #e2e8f0;
    }
    
    .detail-value,
    .info-item-modern .value {
        color: #0c0c0c;
    }
    
    .detail-label,
    .info-item-modern .label {
        color: #a0aec0;
    }
    
    .input-modern,
    .textarea-modern {
        background: #4a5568;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .input-modern:focus,
    .textarea-modern:focus {
        background: #2d3748;
        border-color: #58992e;
    }
}

/* Enhanced Mobile Fixes for Live Site - High Specificity for Shipments */
@media (max-width: 768px) {
    /* Force icon visibility with maximum specificity for live site */
    body .representative-shipments-section-new .stat-card-modern .stat-icon .dashicons,
    body .representative-shipments-section-new .warranty-stat-card .stat-icon .dashicons,
    body .representative-shipments-section-new .shipment-stat-card .stat-icon .dashicons,
    html body .representative-shipments-section-new .stat-card-modern .stat-icon .dashicons,
    html body .representative-shipments-section-new .warranty-stat-card .stat-icon .dashicons,
    html body .representative-shipments-section-new .shipment-stat-card .stat-icon .dashicons {
        color: white !important;
        font-size: 24px !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force icon background with maximum specificity for live site */
    body .representative-shipments-section-new .stat-card-modern .stat-icon,
    body .representative-shipments-section-new .warranty-stat-card .stat-icon,
    body .representative-shipments-section-new .shipment-stat-card .stat-icon,
    html body .representative-shipments-section-new .stat-card-modern .stat-icon,
    html body .representative-shipments-section-new .warranty-stat-card .stat-icon,
    html body .representative-shipments-section-new .shipment-stat-card .stat-icon {
        background: #58992e !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Additional fallback with even higher specificity */
    body.wp-admin .representative-shipments-section-new .stat-card-modern .stat-icon .dashicons,
    body.wp-admin .representative-shipments-section-new .warranty-stat-card .stat-icon .dashicons,
    body.wp-admin .representative-shipments-section-new .shipment-stat-card .stat-icon .dashicons {
        color: white !important;
        font-size: 24px !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    body.wp-admin .representative-shipments-section-new .stat-card-modern .stat-icon,
    body.wp-admin .representative-shipments-section-new .warranty-stat-card .stat-icon,
    body.wp-admin .representative-shipments-section-new .shipment-stat-card .stat-icon {
        background: #58992e !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}