/* Chronicle & Coordinator List Tables */
.owc-chronicles-list,
.owc-coordinators-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}

/* Header row — override Elementor global text color and WP Dark Mode in all modes */
.owc-list-header,
.elementor-widget-container .owc-list-header,
.elementor-widget .owc-list-header {
    display: flex;
    background: #2c3e50 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

.owc-list-header > div,
.owc-list-header > div *,
.elementor-widget-container .owc-list-header > div,
.elementor-widget-container .owc-list-header > div * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.owc-list-header > div {
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.owc-list-header > div:hover {
    background: #34495e;
}

/* Sort indicators */
.owc-list-header > div::after {
    content: '⇅';
    margin-left: 6px;
    opacity: 0.4;
    font-size: 11px;
}

.owc-list-header > div.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.owc-list-header > div.sort-desc::after {
    content: '↓';
    opacity: 1;
}

/* Data rows */
.owc-list-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.owc-list-row:nth-child(odd) {
    background: #f9f9f9;
}

.owc-list-row:nth-child(even) {
    background: #fff;
}

.owc-list-row:hover {
    background: #f0f4f8;
}

.owc-list-row > div {
    padding: 8px 12px;
    font-size: 13px;
}

/* Column widths - Chronicles */
.owc-chronicles-list .owc-col-title { flex: 2; min-width: 150px; }
.owc-chronicles-list .owc-col-genres { flex: 1.5; min-width: 100px; }
.owc-chronicles-list .owc-col-region { flex: 1; min-width: 80px; }
.owc-chronicles-list .owc-col-state { flex: 1; min-width: 100px; }
.owc-chronicles-list .owc-col-city { flex: 1; min-width: 100px; }
.owc-chronicles-list .owc-col-type { flex: 0.8; min-width: 70px; }
.owc-chronicles-list .owc-col-status { flex: 1; min-width: 90px; }

/* Column widths - Coordinators */
.owc-coordinators-list .owc-col-office { flex: 2; min-width: 150px; }
.owc-coordinators-list .owc-col-coordinator { flex: 1.5; min-width: 120px; }
.owc-coordinators-list .owc-col-email { flex: 1.5; min-width: 150px; }

/* Links - inherit from theme */
.owc-list-row a {
    text-decoration: none;
}

.owc-list-row a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .owc-list-header {
        display: none;
    }
    
    .owc-list-row {
        flex-direction: column;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .owc-list-row > div {
        padding: 4px 0;
    }
    
    .owc-list-row > div::before {
        content: attr(data-label) ': ';
        font-weight: 600;
    }
    
    .owc-list-row .owc-col-title::before,
    .owc-list-row .owc-col-office::before {
        content: '';
    }

    .owc-list-row > .owc-cell-empty {
        display: none;
    }

    .owc-list-row .owc-col-title {
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 6px;
    }
}

/* Filter inputs */
.owc-chronicles-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.owc-filter-input {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    -webkit-appearance: none;
}

.owc-filter-input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.2);
}

.owc-clear-filters {
    padding: 8px 16px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    -webkit-appearance: none;
}

.owc-clear-filters:hover,
.owc-clear-filters:active {
    background: #c0392b;
}

@media (max-width: 768px) {
    .owc-chronicles-filters {
        flex-direction: column;
        gap: 8px;
    }
    
    .owc-filter-input {
        width: 100%;
        min-width: unset;
        padding: 12px;
        font-size: 16px;
    }
    
    .owc-clear-filters {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* Coordinator group styling */
.owc-coord-group {
    margin-bottom: 30px;
}

.owc-coord-group:last-child {
    margin-bottom: 0;
}

.owc-coord-group-header {
    background: #34495e;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.owc-coord-group .owc-list-header {
    border-radius: 0;
}

.owc-coord-group .owc-list-header > div {
    cursor: default;
}

.owc-coord-group .owc-list-header > div::after {
    content: '';
}

.owc-coord-group .owc-list-header > div:hover {
    background: #2c3e50;
}

@media (max-width: 768px) {
    .owc-coord-group-header {
        font-size: 16px;
        padding: 10px 12px;
    }
}