/* us-table-non-critical.css - Professional UI */
/* Summary tables - professional design */
.us-summary-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.us-summary-section {
    background: white;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    border-top: 3px solid #28a745;
}

.us-summary-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
}

.us-summary-title:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #28a745;
    margin-right: 10px;
    border-radius: 2px;
}

.us-summary-text {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.5;
    color: #495057;
    border-left: 3px solid #dee2e6;
}

.us-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.us-summary-table th {
    background: #f8f9fa;
    color: #495057;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.us-summary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

.us-summary-table tr:last-child td {
    border-bottom: none;
}

.us-summary-table tr:hover {
    background: #f8f9fa;
}

.positive-value {
    color: #198754;
    font-weight: 600;
}

.negative-value {
    color: #dc3545;
    font-weight: 600;
}

/* Main table styling */
.us-table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.us-table-container th {
    background-color: #2c3e50;
    color: white;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    border-bottom: 2px solid #28a745;
}

.us-table-container td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.us-table-container tr:nth-child(even) {
    background-color: #f8f9fa;
}

.us-table-container tr:hover {
    background-color: #e8f4ff;
}

/* Table scroll containers */
.us-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.us-main-table-wrap {
    max-height: 450px;
    overflow-y: auto;
}

/* Filter table specific */
#us-filtered-table-container {
    margin: 20px 0;
    background: #f8f9fa;
    padding: 18px;
    border: 1px solid #28a745;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
}

#us-filtered-table th {
    background-color: #28a745;
}

/* Control bar desktop optimization */
@media (min-width: 769px) {
    .us-control-frame {
        background: linear-gradient(135deg, #28a745, #20c997);
        padding: 20px;
    }
    
    .us-control-bar {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        flex-wrap: nowrap;
    }
    
    .us-control-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .us-control-bar label {
        margin-bottom: 0;
        margin-right: 0;
        white-space: nowrap;
    }
    
    #us-ticker-dropdown, #us-alpha-dropdown {
        width: 140px;
        min-width: 140px;
    }
    
    .us-date-picker {
        width: 150px;
        min-width: 150px;
    }
    
    #us-calculate-var-btn {
        padding: 10px 24px;
        width: auto;
        min-width: 140px;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .us-summary-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .us-summary-section {
        padding: 15px;
    }
    
    .us-table-container {
        font-size: 13px;
    }
    
    .us-table-container th, 
    .us-table-container td {
        padding: 8px 6px;
        min-width: 80px;
    }
    
    .us-main-table-wrap {
        max-height: 350px;
    }
}