/* Main container */
.dntzit-products-tabs-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Tabs */
.dntzit-tabs {
    margin-top: 20px;
}

.dntzit-tab-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}

.dntzit-tab-nav li {
    margin-right: 5px;
}

.dntzit-tab-nav a {
    display: block;
    padding: 10px 15px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s;
}

.dntzit-tab-nav a.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    color: #0073aa;
    font-weight: bold;
}

.dntzit-tab-nav a:hover {
    background: #e1e1e1;
}

.dntzit-tab-content {
    display: none;
}

.dntzit-tab-content.active {
    display: block;
}

/* Filters */
.dntzit-products-filters {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dntzit-search-box {
    flex: 1;
    min-width: 250px;
}

.dntzit-search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dntzit-category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dntzit-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

/* Export button */
.dntzit-export-actions {
    margin-bottom: 20px;
    text-align: right;
}

/* Products table */
.dntzit-products-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dntzit-products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dntzit-products-table th, 
.dntzit-products-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}

.dntzit-products-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

.dntzit-products-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.dntzit-products-table tr:hover {
    background-color: #f1f1f1;
}

.dntzit-product-description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* WhatsApp button */
.dntzit-whatsapp-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #61CE70;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 100px;
}

.dntzit-whatsapp-btn:hover {
    background-color: #4fa85c;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dntzit-products-table {
        font-size: 13px;
    }
    
    .dntzit-products-table th, 
    .dntzit-products-table td {
        padding: 10px 8px;
    }
    
    .dntzit-whatsapp-btn {
        padding: 6px 10px;
        min-width: 80px;
    }
    
    /* Stack columns on small screens */
    @media (max-width: 480px) {
        .dntzit-products-table {
            display: block;
        }
        
        .dntzit-products-table thead {
            display: none;
        }
        
        .dntzit-products-table tr {
            display: flex;
            flex-direction: column;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
        .dntzit-products-table td {
            display: flex;
            justify-content: space-between;
            border: none;
            border-bottom: 1px solid #eee;
            padding: 10px;
            text-align: right !important;
        }
        
        .dntzit-products-table td::before {
            content: attr(data-label);
            font-weight: bold;
            margin-right: 10px;
            text-align: left;
            flex: 1;
        }
        
        .dntzit-products-filters {
            flex-direction: column;
            align-items: stretch;
        }
    }
}

/* Loading state for PDF button */
.dntzit-export-pdf[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #808080 !important;
}

/* PDF table styles */
@page {
    size: A4;
    margin: 1cm;
}

/* Error message styling */
.dntzit-pdf-error {
    color: #dc3545;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    border-radius: 4px;
}