/**
 * Contract Reports Module Styles
 */

.contract-reports-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #f8f9fa;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.report-header h2 {
    margin: 0;
    color: #333;
}

.report-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.report-controls .form-select {
    min-width: 250px;
}

.report-filters {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0;
}

.report-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.report-summary {
    border: 1px solid #dee2e6;
}

.report-summary h5 {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Table Styles */
.contract-report-table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.contract-report-table thead th {
    background-color: #343a40;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 8px;
}

.contract-report-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.contract-report-table th.sortable:hover {
    background-color: #495057;
}

.contract-report-table th.sortable i {
    font-size: 0.75rem;
    margin-left: 5px;
    opacity: 0.6;
}

.contract-report-table tbody tr:hover {
    background-color: #f8f9fa;
}

.contract-report-table td {
    padding: 8px;
    vertical-align: middle;
}

.contract-report-table .text-end {
    text-align: right;
}

/* Status Cell */
.status-cell {
    cursor: pointer;
}

.status-cell:hover {
    opacity: 0.8;
}

/* Responsive Table */
.table-responsive {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

/* Buttons */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
}

/* Summary Section */
.report-summary .row > div {
    padding: 10px;
}

.report-summary small.text-muted {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-summary strong {
    font-size: 1.1rem;
}

/* Loading State */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Print Styles */
@media print {
    .report-header,
    .report-filters,
    .btn,
    .btn-group {
        display: none !important;
    }
    
    .contract-report-table {
        font-size: 10pt;
    }
    
    .table-responsive {
        max-height: none;
        overflow: visible;
    }
}