/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px;
    text-align: center;
}

header h1 {
    font-size: 1.8em;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
}

.company-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #f8f9fa;
    margin: 8px 0 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Seções */
.section {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.section h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 400;
}

.section h3 {
    color: #34495e;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.section h4 {
    color: #34495e;
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* Alertas */
.alert {
    padding: 10px 15px;
    margin: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9em;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Formulários */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group select:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Botões */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.form-actions {
    margin-top: 15px;
    text-align: center;
}

/* Informações dos produtos */
.produtos-info {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #667eea;
}

.produtos-info p {
    margin-bottom: 3px;
    color: #495057;
    font-weight: 500;
    font-size: 0.9em;
}

/* Produto atual */
.produto-atual {
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.1);
}

.produto-atual h3 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 1.1em;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* Validação de campos */
.form-group input.valid {
    border-color: #28a745;
    background-color: #f8fff9;
}

.form-group input.invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Notificações */
.notification,
.auto-save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.auto-save-notification {
    background: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Barra de progresso */
.progress-bar {
    background: #e9ecef;
    border-radius: 8px;
    height: 16px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7em;
    font-weight: bold;
    color: #495057;
}

/* Estilos para seleção de fabricante */
.fabricante-form {
    margin-top: 20px;
}

.fabricante-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fabricante-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.fabricante-select:hover {
    border-color: #007bff;
}

/* Alerta de sucesso */
.alert.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
}

/* Melhorias nos cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card h2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.3em;
    color: #495057;
}

.card .section {
    padding: 20px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-overlay p {
    font-size: 18px;
    margin: 0;
}

/* Estilos modernos para estatísticas */
.stats-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

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

.fabricante-icon {
    font-size: 48px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
}

.fabricante-details h2.fabricante-name {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.fabricante-subtitle {
    margin: 2px 0 0 0;
    color: #6c757d;
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fabricante-subtitle .progress-percentage {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.25);
    line-height: 1;
}

/* Círculo de progresso removido - percentual agora inline */

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-card.total {
    border-left-color: #007bff;
}

.stat-card.completed {
    border-left-color: #28a745;
}

.stat-card.pending {
    border-left-color: #ffc107;
}

.stat-icon {
    font-size: 32px;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    margin-top: 4px;
}

.progress-bar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #495057;
}

.progress-bar-label span:last-child {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}

.progress-bar-modern {
    background: #e9ecef;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill-modern {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsividade para estatísticas */
@media (max-width: 768px) {
    .stats-container {
        padding: 4px;
        margin-bottom: 4px;
        border-radius: 8px;
    }
    
    .stats-header {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 4px;
        margin-bottom: 4px;
        padding-bottom: 2px;
    }
    
    .fabricante-info {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 1;
    }
    
    .fabricante-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .fabricante-details {
        flex: 1;
        min-width: 0;
    }
    
    .fabricante-details h2.fabricante-name {
        font-size: 1em;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
        letter-spacing: 0.3px;
    }
    
    .fabricante-subtitle {
        font-size: 0.7em;
        margin: 2px 0 0 0;
        line-height: 1.1;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .fabricante-subtitle .progress-percentage {
        font-size: 0.9em;
        padding: 1px 4px;
        border-radius: 8px;
    }
    
    /* Progress circle removido */
    
    .stats-cards {
        display: flex;
        flex-direction: row;
        gap: 4px;
        margin-bottom: 4px;
        overflow-x: auto;
        padding-bottom: 1px;
    }
    
    .stat-card {
        min-width: 100px;
        padding: 6px 4px;
        flex-shrink: 0;
        flex-direction: column;
        text-align: center;
        gap: 4px;
        border-radius: 6px;
    }
    
    .stat-icon {
        font-size: 20px;
        margin: 0 auto;
    }
    
    .stat-content {
        flex: none;
    }
    
    .stat-number {
        font-size: 1.2em;
        margin: 1px 0;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.8em;
        margin-top: 2px;
    }
    
    .progress-bar-container {
        padding: 12px;
    }
    
    .progress-bar-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 8px;
    }
    
    .progress-bar-label span:first-child {
        font-size: 0.9em;
    }
    
    .progress-bar-label span:last-child {
        font-size: 0.8em;
    }
    
    .progress-bar-modern {
        height: 8px;
    }
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
    .stats-container {
        padding: 3px;
        margin-bottom: 3px;
        border-radius: 6px;
    }
    
    .stats-header {
        margin-bottom: 3px;
        padding-bottom: 2px;
    }
    
    .fabricante-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .fabricante-details h2.fabricante-name {
        font-size: 0.9em;
        line-height: 1.2;
        letter-spacing: 0.2px;
    }
    
    .fabricante-subtitle {
        font-size: 0.65em;
        line-height: 1.1;
        margin: 1px 0 0 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .fabricante-subtitle .progress-percentage {
        font-size: 0.8em;
        padding: 1px 3px;
        border-radius: 6px;
    }
    
    /* Progress circle removido */
    
    .stats-cards {
        gap: 3px;
        margin-bottom: 3px;
    }
    
    .stat-card {
        min-width: 80px;
        padding: 4px 3px;
        border-radius: 6px;
    }
    
    .stat-icon {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 1em;
        margin: 0;
    }
    
    .stat-label {
        font-size: 0.6em;
        line-height: 1;
        margin: 0;
    }
    
    .progress-bar-container {
        padding: 8px;
        border-radius: 8px;
    }
    
    .progress-bar-label span:first-child {
        font-size: 0.85em;
    }
    
    .progress-bar-label span:last-child {
        font-size: 0.75em;
    }
    
    .progress-bar-modern {
        height: 6px;
        border-radius: 6px;
    }
}

/* Estilos modernos para edição de produtos */
.edit-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.edit-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-icon {
    font-size: 28px;
    background: linear-gradient(135deg, #6c63ff, #4c46d6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(108, 99, 255, 0.3);
}

.edit-info h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
}

.edit-subtitle {
    margin: 2px 0 0 0;
    color: #6c757d;
    font-size: 0.8em;
    font-weight: 500;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    text-decoration: none;
    color: white;
}

.back-icon {
    font-size: 1.2em;
}

.product-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 8px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.product-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2px 6px;
    margin-left: 8px;
}

.product-id {
    font-size: 0.7em;
    font-weight: 500;
    color: white;
}

.product-details {
    position: relative;
    z-index: 1;
}

.product-name {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.meta-icon {
    font-size: 1.1em;
}

.barcode-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.input-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(108, 99, 255, 0.2);
}

.input-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.input-icon {
    font-size: 20px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-info {
    flex: 1;
}

.input-label {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 2px 0;
}

.input-description {
    margin: 0;
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 500;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.modern-input:focus {
    outline: none;
    border-color: #6c63ff;
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.modern-input.valid {
    border-color: #28a745;
    background: #f8fff9;
}

.modern-input.invalid {
    border-color: #dc3545;
    background: #fff8f8;
}

.input-status {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-top: 4px;
}

.save-info {
    flex: 1;
}

.save-tip {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}

.btn-save {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997, #28a745);
}

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

.btn-icon, .btn-arrow {
    font-size: 1.2em;
}

.btn-text {
    font-weight: 600;
}

.btn-back-card {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.75em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-back-card:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Notificações Toast Discretas */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 300px;
    word-wrap: break-word;
}

.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-toast.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-toast.notification-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.notification-toast.notification-warning {
    background: linear-gradient(135deg, #ffc107, #f39c12);
    color: #212529;
}

.notification-toast.notification-info {
    background: linear-gradient(135deg, #17a2b8, #3498db);
}

/* Responsividade e Coletores de Dados */
@media (max-width: 768px) {
    body {
        padding: 5px;
        font-size: 13px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    header {
        padding: 12px;
    }
    
    header h1 {
        font-size: 1.3em;
        margin-bottom: 4px;
    }
    
    .company-name {
        font-size: 1em;
        letter-spacing: 1px;
        margin: 4px 0 0 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 2px;
    }
    
    .container {
        border-radius: 6px;
        margin: 2px;
    }
    
    header {
        padding: 8px;
    }
    
    header h1 {
        font-size: 1.1em;
        margin-bottom: 2px;
    }
    
    .company-name {
        font-size: 0.9em;
        letter-spacing: 0.5px;
        margin: 2px 0 0 0;
    }
    
    /* Responsividade da seção de edição */
    .edit-container {
        padding: 8px;
        border-radius: 10px;
        margin-bottom: 8px;
    }
    
    .product-card {
        padding: 6px 10px;
        border-radius: 6px;
        margin-bottom: 6px;
        min-height: 32px;
    }
    
    .product-name {
        font-size: 0.9em;
        line-height: 1.1;
    }
    
    .product-badge {
        padding: 2px 4px;
        margin-left: 6px;
        border-radius: 8px;
    }
    
    .product-id {
        font-size: 0.65em;
    }
    
    .btn-back-card {
        padding: 3px 6px;
        font-size: 0.7em;
        gap: 2px;
        border-radius: 4px;
    }
    
    .barcode-inputs {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    /* Notificações mobile */
    .notification-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.8em;
        padding: 10px 16px;
    }
    
    .input-card {
        padding: 12px;
        border-radius: 10px;
    }
    
    .input-header {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .input-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .input-label {
        font-size: 0.9em;
    }
    
    .input-description {
        font-size: 0.75em;
    }
    
    .modern-input {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        text-align: center;
    }
    
    .save-tip {
        font-size: 0.8em;
    }
    
    .btn-save {
        padding: 12px 16px;
        font-size: 0.9em;
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: 10px;
    }
    
    .produto-atual {
        padding: 12px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group label {
        font-size: 0.9em;
        margin-bottom: 3px;
    }
    
    .form-group select,
    .form-group input[type="text"] {
        padding: 6px 10px;
        font-size: 0.9em;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.95em;
        width: 100%;
    }
    
    .produtos-info {
        padding: 8px 12px;
        margin-bottom: 10px;
    }
    
    .produtos-info p {
        font-size: 0.85em;
        margin-bottom: 2px;
    }
    
    .progress-bar {
        height: 14px;
        margin-top: 5px;
    }
    
    .progress-text {
        font-size: 0.65em;
    }
}

/* Coletores de dados - Telas muito pequenas */
@media (max-width: 480px) {
    body {
        padding: 3px;
        font-size: 12px;
    }
    
    header {
        padding: 8px;
    }
    
    header h1 {
        font-size: 1.3em;
        letter-spacing: 0.5px;
    }
    
    .section {
        padding: 8px;
    }
    
    .section h2 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .produto-atual {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .produto-atual h3 {
        font-size: 1em;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group label {
        font-size: 0.85em;
        margin-bottom: 2px;
    }
    
    .form-group select,
    .form-group input[type="text"] {
        padding: 5px 8px;
        font-size: 0.85em;
        border-radius: 4px;
    }
    
    .btn {
        width: 100%;
        padding: 6px 12px;
        font-size: 0.9em;
        border-radius: 4px;
    }
    
    .form-actions {
        margin-top: 10px;
    }
    
    .produtos-info {
        padding: 6px 10px;
        margin-bottom: 8px;
    }
    
    .produtos-info p {
        font-size: 0.8em;
        margin-bottom: 1px;
    }
    
    .progress-bar {
        height: 12px;
        margin-top: 3px;
    }
    
    .progress-text {
        font-size: 0.6em;
    }
    
    .alert {
        padding: 6px 10px;
        margin: 5px 8px;
        font-size: 0.8em;
    }
}

/* Estilos para Estatísticas */
.stats-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
}

.fabricante-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fabricante-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.fabricante-details h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card.total {
    border-left: 4px solid #007bff;
}

.stat-card.completed {
    border-left: 4px solid #28a745;
}

.stat-card.pending {
    border-left: 4px solid #ffc107;
}

.stat-icon {
    font-size: 2em;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    margin-top: 4px;
}

/* Estilos para Seção de Edição */
.edit-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsividade para Estatísticas */
@media (max-width: 768px) {
    .stats-container {
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .stats-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .fabricante-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .fabricante-details h2 {
        font-size: 1.3em;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 10px;
        gap: 8px;
    }
    
    .stat-icon {
        font-size: 1.5em;
    }
    
    .stat-number {
        font-size: 1.4em;
    }
    
    .edit-container {
        padding: 20px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .stats-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .fabricante-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .fabricante-details h2 {
        font-size: 1.2em;
    }
    
    .stats-cards {
        gap: 12px;
    }
    
    .stat-card {
        padding: 8px;
        gap: 6px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        font-size: 1.3em;
    }
    
    .stat-number {
        font-size: 1.2em;
    }
    
    .edit-container {
        padding: 15px;
        border-radius: 10px;
    }
}

/* Estilos ULTRA compactos para cards */
.stats-container {
    padding: 4px !important;
    margin-bottom: 4px !important;
    border-radius: 6px !important;
    background: #f8f9fa !important;
    box-shadow: none !important;
}

.stats-header {
    margin-bottom: 4px !important;
    padding-bottom: 3px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.fabricante-icon {
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
}

.fabricante-details h2 {
    font-size: 0.9em !important;
    margin: 0 !important;
    font-weight: 600 !important;
}

.stats-cards {
    gap: 3px !important;
    margin-bottom: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
}

.stat-card {
    padding: 4px 6px !important;
    gap: 4px !important;
    border-radius: 4px !important;
    min-height: auto !important;
    flex-direction: column !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.stat-icon {
    font-size: 0.9em !important;
    margin: 0 !important;
}

.stat-number {
    font-size: 1em !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-weight: 700 !important;
}

.stat-label {
    font-size: 0.8em !important;
    margin-top: 1px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
}

/* Para mobile ULTRA compacto */
@media (max-width: 768px) {
    .stats-container {
        padding: 3px !important;
        margin-bottom: 3px !important;
    }
    
    .stats-header {
        margin-bottom: 3px !important;
        padding-bottom: 2px !important;
    }
    
    .fabricante-icon {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
    }
    
    .fabricante-details h2 {
        font-size: 0.8em !important;
    }
    
    .stats-cards {
        gap: 2px !important;
    }
    
    .stat-card {
        padding: 3px 4px !important;
        gap: 2px !important;
    }
    
    .stat-icon {
        font-size: 0.8em !important;
    }
    
    .stat-number {
        font-size: 0.9em !important;
    }
    
    .stat-label {
        font-size: 0.7em !important;
        margin-top: 0px !important;
    }
}
