#stylev3 .search-fab {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    transition: all 0.3s ease;
}

#stylev3 .search-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

#stylev3 .search-fab:active {
    transform: translateY(0);
}

#stylev3 .search-fab--active {
    background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
}

#stylev3 .search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#stylev3 .search-modal__content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#stylev3 .search-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

#stylev3 .search-modal__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

#stylev3 .search-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

#stylev3 .search-modal__close:hover {
    background: #f3f4f6;
    color: #374151;
}

#stylev3 .search-input-container {
    padding: 24px;
}

#stylev3 .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

#stylev3 .search-input {
    flex: 1;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: #f9fafb;
}

#stylev3 .search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#stylev3 .search-input__icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
}

#stylev3 .search-input__button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

#stylev3 .search-input__button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#stylev3 .search-input__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#stylev3 .recent-searches {
    margin-top: 16px;
}

#stylev3 .recent-searches__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

#stylev3 .recent-searches__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#stylev3 .recent-search-item {
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

#stylev3 .recent-search-item:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

#stylev3 .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

#stylev3 .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#stylev3 .error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 0 24px 24px;
    color: #dc2626;
}

#stylev3 .error-message svg {
    flex-shrink: 0;
}

#stylev3 .no-results {
    text-align: center;
    padding: 40px 24px;
    color: #6b7280;
}

#stylev3 .no-results svg {
    margin-bottom: 16px;
    color: #9ca3af;
}

#stylev3 .no-results h3 {
    margin: 0 0 8px;
    color: #374151;
}

#stylev3 .phone-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    margin: 0 24px 24px;
    border-radius: 8px;
}

#stylev3 .phone-info__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

#stylev3 .phone-info__icon {
    flex-shrink: 0;
}

#stylev3 .phone-info__number {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

#stylev3 .phone-info__status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

#stylev3 .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

#stylev3 .status-indicator--active {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

#stylev3 .phone-info__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#stylev3 .meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#stylev3 .meta-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

#stylev3 .meta-value {
    font-size: 1.5rem;
    font-weight: 700;
}

#stylev3 .statistics-container {
    padding: 0 24px 24px;
}

#stylev3 .statistics-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

#stylev3 .statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

#stylev3 .stat-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e5e7eb;
    transition: transform 0.2s;
}

#stylev3 .stat-card:hover {
    transform: translateY(-2px);
}

#stylev3 .stat-card--new {
    border-left-color: #3b82f6;
}

#stylev3 .stat-card--confirmed {
    border-left-color: #10b981;
}

#stylev3 .stat-card--in-progress {
    border-left-color: #f59e0b;
}

#stylev3 .stat-card--delivered {
    border-left-color: #8b5cf6;
}

#stylev3 .stat-card--failed {
    border-left-color: #ef4444;
}

#stylev3 .stat-card--returned {
    border-left-color: #8b5cf6;
}

#stylev3 .stat-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#stylev3 .stat-card__label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}

#stylev3 .stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

#stylev3 .summary-message {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
}

#stylev3 .summary-message p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

#stylev3 .summary-message strong {
    color: #1f2937;
}

#stylev3 .commands-table-container {
    padding: 0 24px 24px;
}

#stylev3 .commands-table-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

#stylev3 .table-responsive {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

#stylev3 .commands-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

#stylev3 .commands-table th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#stylev3 .commands-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

#stylev3 .commands-table tbody tr:hover {
    background: #f9fafb;
}

#stylev3 .reference-code {
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.8rem;
    color: #3b82f6;
    font-weight: 600;
}

#stylev3 .date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#stylev3 .date-label {
    font-size: 0.75rem;
    color: #6b7280;
}

#stylev3 .recipient-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#stylev3 .recipient-name {
    font-weight: 500;
    color: #1f2937;
}

#stylev3 .recipient-phone {
    font-size: 0.75rem;
    color: #6b7280;
}

#stylev3 .product-name {
    color: #374151;
    font-weight: 500;
}

#stylev3 .quantity-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

#stylev3 .amount-value {
    font-weight: 700;
    color: #059669;
}

#stylev3 .status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

#stylev3 .badge-reponce {
    background: #fee2e2;
    color: #dc2626;
}

#stylev3 .agency-name {
    color: #4b5563;
    font-weight: 500;
}

#stylev3 .support-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#stylev3 .support-name {
    font-weight: 500;
    color: #1f2937;
}

#stylev3 .livreur-name {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

#stylev3 .no-support {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.875rem;
}

#stylev3 .no-commands-message {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
@media (max-width: 768px) {
    #stylev3 .search-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    #stylev3 .search-modal__content {
        max-height: 95vh;
        max-width: 95vw;
    }

    #stylev3 .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #stylev3 .phone-info__meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    #stylev3 .meta-item {
        align-items: flex-start;
    }

    #stylev3 .phone-info,
    #stylev3 .statistics-container,
    #stylev3 .commands-table-container,
    #stylev3 .search-input-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    #stylev3 .commands-table-container {
        padding-bottom: 16px;
    }

    #stylev3 .table-responsive {
        border-radius: 6px;
    }

    #stylev3 .commands-table th,
    #stylev3 .commands-table td {
        padding: 8px 12px;
    }
}
@media (max-width: 480px) {
    #stylev3 .statistics-grid {
        grid-template-columns: 1fr;
    }

    #stylev3 .search-input-wrapper {
        flex-direction: column;
    }

    #stylev3 .search-input {
        width: 100%;
    }

    #stylev3 .search-input__button {
        width: 100%;
    }

    #stylev3 .commands-table {
        min-width: 1000px;
    }
}
