/**
 * Revenue Tracking Styles
 * File: /public/assets/css/revenue-tracking.css
 * Stili dedicati per la registrazione incassi
 */

/* Form registrazione incasso */
.revenue-form {
    grid-column: 1 / -1;
    margin: 8px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

.revenue-form-content {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

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

.revenue-form label {
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
}

.revenue-form .form-control {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

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

.revenue-form input[type="number"] {
    width: 100px;
    text-align: right;
}

.revenue-form input[type="text"] {
    width: 150px;
}

.revenue-form select {
    width: 120px;
}

.revenue-form .form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.revenue-form .btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.revenue-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.revenue-form .btn-success {
    background: #28a745;
    color: white;
}

.revenue-form .btn-success:hover {
    background: #218838;
}

.revenue-form .btn-secondary {
    background: #6c757d;
    color: white;
}

.revenue-form .btn-secondary:hover {
    background: #5a6268;
}

.revenue-form .material-icons {
    font-size: 16px;
}

/* Colonna incasso nella tabella */
.booking-revenue {
    text-align: center;
    font-weight: 500;
}

.revenue-amount {
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}

.revenue-method {
    display: block;
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Pulsante registra incasso */
.btn-outline-primary {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

.btn-outline-primary .material-icons {
    font-size: 14px;
}

/* Animazioni */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .revenue-form-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .revenue-form .form-control {
        width: 100%;
    }
    
    .revenue-form .form-actions {
        justify-content: center;
        margin-top: 12px;
    }
    
    .booking-revenue {
        font-size: 12px;
    }
    
    .revenue-amount {
        font-size: 12px;
    }
}