/* Board CSS */

/* Board container inside widget-main */
.widget-main .colview-board {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    padding-bottom: 20px;
    gap: 12px;
    background-color: #f0f0f0;
    border: none;
    /* Widget provides border */
    min-height: 200px;
    /* CRITICAL: Never set max-height or height to prevent issues from being hidden */
}

/* Standard MantisBT style pagination bar */
.colview-pagination-bar {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 15px;
}

/* Standalone board (if used outside widget) */
.colview-board {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    padding-bottom: 20px;
    gap: 12px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    min-height: 200px;
    /* CRITICAL: Never set max-height or height to prevent issues from being hidden */
}

.colview-column {
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 3px;
    width: 280px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    margin: 5px;
}


.colview-header {
    padding: 10px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e8e8e8;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.colview-cards {
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
    /* Take remaining height */
}

/* CARD STYLING */
.colview-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-left-width: 5px;
    /* Status color indicator */
    border-radius: 3px;
    margin-bottom: 10px;
    padding: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.colview-card:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.colview-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    margin-bottom: 5px;
    color: #888;
}

.colview-card-id {
    font-weight: bold;
    color: #555;
    text-decoration: none;
}

.colview-card-id:hover {
    text-decoration: underline;
}

.colview-card-body {
    margin-bottom: 8px;
}

.colview-card-summary {
    color: #333;
    font-weight: normal;
    text-decoration: none;
    display: block;
}

.colview-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 5px;
}

.colview-project {
    color: #444;
    font-weight: 600;
}

.colview-meta-date {
    font-size: 0.9em;
}

/* === FILTER TABLE STYLES === */

.colview-filter-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 12px;
}

.colview-filter-table th,
.colview-filter-table td {
    border: 1px solid #ddd;
    padding: 4px 8px;
    text-align: left;
    vertical-align: top;
}

/* Filter Headers (Clickable) */
.colview-filter-header {
    background-color: #f9f9f9;
    cursor: pointer;
    position: relative;
    width: 12.5%;
    /* 8 columns */
}

.colview-filter-header:hover {
    background-color: #eef4f9;
}

.colview-filter-title {
    font-weight: bold;
    color: #444;
    display: block;
    margin-bottom: 2px;
}

.colview-filter-value {
    color: #2a8bc8;
    /* Link blue */
    font-weight: normal;
}

/* Dropdown Menu */
.colview-filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -1px;
    /* Align with border */
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-width: 300px;
    padding: 0;
    margin-top: 1px;
}

.colview-filter-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
}

.colview-filter-item {
    display: block;
    padding: 3px 6px;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.colview-filter-item:hover {
    background-color: #f0f0f0;
}

.colview-filter-item input {
    margin-right: 5px;
    vertical-align: middle;
}

.loading,
.no-options,
.error {
    padding: 10px;
    color: #777;
    text-align: center;
}

/* Sort / Options Row */
.colview-options-row td {
    background-color: #f2f2f2;
    padding: 8px;
}

.colview-options-form .form-group {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 0;
}

.colview-options-form label {
    margin-right: 5px;
    font-weight: normal;
}

.colview-options-form select,
.colview-options-form input[type="text"] {
    padding: 2px;
    height: 24px;
    font-size: 12px;
}

/* Sticky row background for table header if we wanted it */
/* .widget-header-small is already used by Mantis structure */