.return-success {
    text-align: center;
    padding: 3rem 0;
}

.return-success .fa {
    font-size: 48px;
    color: #52ca27;
    margin-bottom: 16px;
}

.return-success h3 {
    font-weight: 600;
    font-size: 18px;
    color: #222;
    margin-bottom: 8px;
}

.return-success p {
    color: #666;
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* Tipo de Pedido — flexbox, supports any number of types */
.tipo-pedido-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 2px 0;
}

.tipo-col {
    flex: 1 1 calc(50% - 4px);
    min-width: 220px;
}

@media (max-width: 767px) {
    .tipo-col {
        flex: 1 1 100%;
    }
}

.tipo-pedido-card {
    border: 1px solid #222;
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.tipo-pedido-card:hover {
    border-color: #000;
}

.tipo-pedido-card.active {
    border-color: #000;
    background: #f5f5f5;
    box-shadow: 0 0 0 1px #000;
}

.tipo-pedido-card .tipo-icon {
    font-size: 16px;
    color: #999;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.tipo-pedido-card.active .tipo-icon {
    color: #111;
}

.tipo-pedido-card .tipo-text {
    flex: 1;
    min-width: 0;
}

.tipo-pedido-card .tipo-titulo {
    font-weight: 600;
    font-size: 13px;
    color: #111;
    line-height: 1.2;
}

.tipo-pedido-card .tipo-desc {
    font-size: 10px;
    color: #999;
    line-height: 1.2;
}

.tipo-pedido-card .tipo-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.tipo-pedido-card.active .tipo-dot {
    border-color: #000;
    background: #000;
    box-shadow: inset 0 0 0 3px #fff;
}

.produto-check-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    flex-wrap: wrap;
    gap: 6px;
}

.produto-check-header label {
    margin-bottom: 0;
}

.produto-check-header .btn-select-all {
    margin-left: auto;
}

.btn-select-all {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-select-all:hover {
    background: #000;
}

.produto-check-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.produto-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
    flex-wrap: wrap;
}

.produto-check-item:hover {
    border-color: #999;
}

.produto-check-item.active {
    border-color: #000;
    background: #f5f5f5;
}

.produto-check-item input[type="checkbox"] {
    display: none;
}

.produto-check-info {
    flex: 1;
    min-width: 0;
}

.produto-check-info strong {
    display: block;
    font-size: 12px;
    color: #222;
}

.produto-check-info small {
    color: #999;
    font-size: 11px;
}

#returnForm .produto-check-item .qtys-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    width: auto;
    float: none;
}

#returnForm .produto-check-item .qtys-section .button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
}

#returnForm .produto-check-item .qtys-section .prod-quantidades {
    width: 36px;
    height: 28px;
    min-width: 36px;
    max-width: 36px;
    text-align: center;
    padding: 0;
    margin: 0;
    float: none;
    display: block;
    border: none;
}

#returnForm .produto-check-item .qtys-section .prod-quantidades[readonly] {
    background-color: #fff;
    cursor: default;
}

@media (max-width: 767px) {
    #returnForm .produto-check-info {
        min-width: calc(100% - 70px);
    }

    #returnForm .produto-check-item .qtys-section {
        margin-left: auto;
        margin-top: 4px;
    }
}

.produtos-empty {
    color: #999;
    font-style: italic;
    font-size: 12px;
    padding: 8px 0;
}

.produtos-empty i {
    margin-right: 4px;
}

.produtos-login-msg {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}

.produtos-login-msg p {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.produtos-login-msg a {
    font-size: 13px;
    font-weight: 600;
}

.produtos-error-msg {
    color: #ff4652;
    font-size: 12px;
    margin-top: 4px;
}

#returnForm .row.normal-text {
    clear: both;
}

#returnForm textarea.form-control {
    width: 100%;
}

label.error, .error {
    color: #ff4652;
}

.form-control.error {
    border-color: #ff4652;
}

select.form-control.error {
    border-color: #ff4652;
}

input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.processos-lista {
    margin: 16px 0;
    text-align: left;
}

.processos-titulo {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.processo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 6px;
    background: #fff;
    flex-wrap: wrap;
    gap: 8px;
}

.processo-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.processo-info strong {
    font-size: 13px;
    color: #222;
}

.processo-tipo {
    font-size: 11px;
    background: #f0f0f0;
    color: #555;
    padding: 2px 8px;
    border-radius: 10px;
}

.processo-info small {
    color: #999;
    font-size: 11px;
}

.estado-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
}

.estado-pending {
    background: #fff3cd;
    color: #856404;
}

.estado-approved {
    background: #d4edda;
    color: #155724;
}

.estado-rejected {
    background: #f8d7da;
    color: #721c24;
}

input.prod-qty-input{
    max-width: 40px;
    max-height: 25px;
    font-size: 16px!important;
    padding: 0px!important;
    text-align: center;
    border:none!important;
}

@media (max-width: 800px) {
    #returnForm {
        margin: 0 -30px;
    }
}