/* COT Page Styles - /templates/css/cot.css */

/* Container spacing */
.chett-page-wrapper {
    min-height: calc(100vh - 100px);
}

/* Data section */
.data-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Table container - ALWAYS visible */
.data-table-container {
    display: block;
}

.data-table-wrapper {
    width: 100%;
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 0.6rem 1.25rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.8rem;
    color: #6b7280;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 0.875rem;
}

.data-table td.numeric,
.data-table th.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table td.positive {
    color: #10b981;
}

.data-table td.negative {
    color: #ef4444;
}

.data-table td small {
    color: inherit;
    opacity: 0.8;
    font-size: 0.8rem;
}

.data-table tbody tr:hover {
    background: #f3f4f6;
}

.data-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.data-table tbody tr:nth-child(even):hover {
    background: #f3f4f6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .data-section {
        margin-bottom: 2rem;
    }
    
/* Make table scrollable horizontally */
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Compact sizing */
    .data-table th,
    .data-table td {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
    }
    
    .section-title {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}
