/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid #e5e5e5;
}

.header-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.header-content h1 i {
    color: #d4af37;
    margin-right: 12px;
}

.header-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.date-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.date-input-container label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.date-input-container input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    color: #333;
    cursor: pointer;
}

.date-input-container input[type="date"]:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
}

.form-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Alinhamento Receitas e Vendedores */
.form-column .form-section:first-child {
    min-height: 270px; /* ajuste conforme necessário para igualar as alturas */
    display: flex;
    flex-direction: column;
}
.form-column:nth-child(2) .form-section:first-child {
    min-height: 270px;
    display: flex;
    flex-direction: column;
}

/* Form Sections */
.form-section {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.form-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 8px;
}

.form-section h3 i {
    color: #d4af37;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 18px;
}

.form-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.vendedores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 18px;
}

.vendedores-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 50px;
}

/* Totals Section */
.totals-section {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    border: 1px solid #e0e0e0;
}

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.total-item:last-child {
    border-bottom: none;
}

.total-item.highlight {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    margin: 0 -16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #d4af37;
}

.total-item.highlight label {
    color: white;
}

.total-value {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.total-item.highlight .total-value {
    color: #d4af37;
}

/* Actions Section */
.actions-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 25px 0;
    border-top: 2px solid #e0e0e0;
    margin-top: 18px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #d4af37;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #333, #1a1a1a);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #d0d0d0;
}

.btn-secondary:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
    border-color: #d4af37;
}

/* Modal de Visualização */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d4af37;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    background: #f5f5f5;
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
}

/* Conteúdo de Impressão */
.print-content {
    padding: 30px;
    background: white;
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
}

.print-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.print-header h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.print-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.print-date {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.print-section {
    margin-bottom: 25px;
}

.print-section h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 5px;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.print-table th,
.print-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.print-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #1a1a1a;
}

.print-table td {
    background-color: white;
}

.print-totals {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.print-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.print-total-row:last-child {
    margin-bottom: 0;
    font-weight: bold;
    font-size: 1.1rem;
    color: #1a1a1a;
    border-top: 1px solid #ddd;
    padding-top: 8px;
}

.print-observations {
    margin-top: 20px;
}

.print-observation-item {
    margin-bottom: 15px;
}

.print-observation-label {
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.print-observation-text {
    color: #333;
    line-height: 1.4;
}

.print-responsible {
    margin-top: 30px;
    text-align: right;
    font-weight: bold;
    color: #1a1a1a;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Responsividade */
@media (max-width: 1200px) {
    .form-container {
        flex-direction: column;
    }
    
    .form-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 18px;
        margin-bottom: 18px;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .header-content h2 {
        font-size: 1.4rem;
    }
    
    .main-content {
        padding: 18px;
    }
    
    .form-section {
        padding: 18px;
    }
    
    .form-grid,
    .form-grid-compact,
    .vendedores-grid,
    .vendedores-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .actions-section {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.6rem;
    }
    
    .header-content h2 {
        font-size: 1.2rem;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
    }
    
    .total-item.highlight {
        font-size: 0.95rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: fadeIn 0.6s ease-out;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }
.form-section:nth-child(6) { animation-delay: 0.6s; }

/* Estados de foco melhorados */
.form-group input:focus,
.form-group textarea:focus {
    transform: scale(1.01);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a1a1a, #333);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #333, #1a1a1a);
} 

/* Estilos de Impressão */
@media print {
    body * {
        visibility: hidden !important;
        box-shadow: none !important;
        background: white !important;
    }
    #printModal, #printModal * {
        visibility: visible !important;
    }
    #printModal {
        position: absolute !important;
        left: 0;
        top: 0;
        width: 100vw !important;
        height: 100vh !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        z-index: 99999 !important;
        display: block !important;
    }
    .modal-content, .modal-header, .modal-footer, .close-btn {
        display: none !important;
    }
    #printContent {
        display: block !important;
        position: absolute !important;
        left: 0;
        top: 0;
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0.5cm 1cm !important;
        background: white !important;
        color: #222 !important;
        box-shadow: none !important;
        font-size: 1.05em !important;
    }
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        max-height: 50vh;
    }
    
    .print-content {
        padding: 20px;
    }
    
    .print-header h1 {
        font-size: 1.6rem;
    }
    
    .print-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-footer .btn {
        width: 100%;
        max-width: 200px;
    }
} 

.osklen-logo {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto 18px auto;
}
@media print {
    .osklen-logo {
        max-width: 220px;
        margin: 0 auto 8px auto;
        display: block;
    }
} 