/* Corrispettivi Page Styles */

/* Box Controls */
.box-controls {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.box-controls .row {
    margin: 0;
}

.box-controls .col-md-3,
.box-controls .col-md-2 {
    padding: 0 10px;
}

.box-controls label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

/* Form Controls */
.form-check {
    margin-top: 25px;
}

.form-check-input {
    margin-right: 8px;
}

.form-check-label {
    font-weight: normal;
    cursor: pointer;
}

/* Table Styles */
.table-responsive {
    margin-top: 15px;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    vertical-align: middle;
    min-width: 100px;
}

.table td {
    vertical-align: middle;
    border-color: #dee2e6;
    font-size: 13px;
    min-width: 100px;
}

.table-danger {
    background-color: #f8d7da !important;
}

.table-danger:hover {
    background-color: #f5c6cb !important;
}

/* Text Colors */
.text-success {
    color: var(--color-primary) !important;
}

.text-info {
    color: #000000 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge-info {
    color: #fff;
    background-color: var(--color-info);
}

.badge-success {
    color: #fff;
    background-color: var(--color-primary);
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

/* Button Styles */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-outline-primary {
    color: #000000;
    border-color: #007bff;
}

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

.btn-outline-primary:disabled {
    color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
}

/* Box Footer */
.box-footer {
    padding: 10px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 3px 3px;
}

.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group .btn:not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .box-controls .col-md-3,
    .box-controls .col-md-2 {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-left: 0 !important;
        margin-bottom: 5px;
    }
}

/* Loading States */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

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

/* Utility Classes */
.mt-3 {
    margin-top: 1rem !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.text-center {
    text-align: center !important;
}

/* Hover Effects */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.075);
}

.table-danger:hover {
    background-color: rgba(220, 53, 69, 0.075) !important;
}

/* Icon Sizes */
.fa-3x {
    font-size: 3em;
}

/* Box Subtitle */
.box-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Info Box in Summary */
.info-box {
    margin-bottom: 15px;
}

.info-box-icon {
    color: white;
}

.info-box-number {
    font-size: 18px;
    font-weight: bold;
}

.info-box-text {
    font-size: 12px;
    text-transform: uppercase;
}

/* Chart Styles */
.chart-responsive {
    position: relative;
    overflow: hidden;
    padding: 15px;
    background: white;
    border-bottom: 1px solid #dee2e6;
}

#revenue-chart {
    width: 100%;
    height: 300px;
    background: #fff;
    border-radius: 4px;
}

.no-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

.no-content::before {
    content: "Nessun dato disponibile per il grafico";
}

/* Morris.js Override Styles */
.morris-hover {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.morris-hover-row-label {
    font-weight: bold !important;
    margin-bottom: 4px !important;
}

.morris-hover-point {
    color: white !important;
    margin: 2px 0 !important;
}

/* Chart Loading */
.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.chart-loading .fa-spin {
    font-size: 2em;
    color: #000000;
    margin-bottom: 10px;
}

/* Chart Controls */
.chart-controls {
    padding: 10px 0;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.chart-controls .form-check {
    margin: 0;
}

.chart-controls .form-check-label {
    font-size: 13px;
    color: #495057;
    cursor: pointer;
}

.chart-controls .form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* No Data Message */
.no-data-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
    font-size: 16px;
    border-radius: 4px;
    border: 2px dashed #dee2e6;
}

/* Chart Loading Indicator */
.chart-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
}

.chart-loading-indicator .fa-spin {
    font-size: 2em;
    color: #000000;
    margin-bottom: 10px;
} 