/* ========================================
   MODAL: PLANEJAR ITEM
   ======================================== */

.modal-planejar {
    width: 600px;
    max-width: 95vw;
    max-height: 90vh;
}

.modal-body-planejar {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Informações do Produto */
.planejar-info-section {
    background: #F7F7F8;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.planejar-info-label {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #697282;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.planejar-info-produto {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #18191A;
    margin: 0 0 8px 0;
}

.planejar-info-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}

.planejar-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.planejar-stat-label {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #697282;
}

.planejar-stat-value {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #18191A;
}

/* Formulário */
.planejar-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #18191A;
}

.form-select,
.form-input {
    padding: 10px 12px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    color: #18191A;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    transition: all 200ms ease;
    width: 100%;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #0068AB;
    box-shadow: 0 0 0 3px rgba(0, 104, 171, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23697282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-input[type="number"]::-webkit-inner-spin-button,
.form-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-input[type="number"] {
    -moz-appearance: textfield;
}

.form-input[type="date"] {
    cursor: pointer;
}

.form-input::placeholder {
    color: #9CA3AF;
}

/* Footer */
.modal-footer-planejar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #E7E9E9;
    background: #FFFFFF;
    border-radius: 0 0 8px 8px;
}

.btn-cancelar-text {
    padding: 10px 20px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0068AB;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-cancelar-text:hover {
    background: #F0F7FB;
}

.btn-confirmar-op {
    padding: 10px 20px;
    font-family: 'Archivo', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    background: #0068AB;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 200ms ease;
}

.btn-confirmar-op:hover {
    background: #005A94;
}

/* Responsivo */
@media (max-width: 768px) {
    .modal-planejar {
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body-planejar {
        max-height: calc(100vh - 180px);
    }

    .planejar-info-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
