/* ---------- Filter row (top header row of each table) ---------- */
#verseTable thead tr:first-child th,
#chapterTable thead tr:first-child th,
#bookTable thead tr:first-child th {
    padding: 4px 6px;
    vertical-align: bottom;
}

#verseTable thead input,
#chapterTable thead input,
#bookTable thead input {
    width: 100%;
    min-width: 60px;
    box-sizing: border-box;
    padding: 3px 5px;
    font-weight: normal;
}

#verseTable thead select.form-control,
#chapterTable thead select.form-control,
#bookTable thead select.form-control {
    min-width: 130px;
    height: 30px;
    padding: 3px 6px;
    font-weight: normal;
}

/* Multiselect and searchable dropdowns in the header */
#verseTable thead .select2-container,
#chapterTable thead .select2-container,
#bookTable thead .select2-container {
    min-width: 160px;
    font-weight: normal;
}

/* ---------- Wide text columns (verse text, descriptions) ---------- */
table.dataTable th.wide-col,
table.dataTable td.wide-col {
    min-width: 600px;
    white-space: normal;
}

#chapterTable th.wide-col,
#chapterTable td.wide-col {
    min-width: 550px;
}

#bookTable th.wide-col,
#bookTable td.wide-col {
    min-width: 650px;
}

table.dataTable td {
    vertical-align: top;
}

/* ---------- Word Count Search ---------- */
.word-count-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    margin: 10px 0 20px 0;
}

.word-count-form .form-group {
    margin-bottom: 0;
}

.word-count-form .wc-text-group {
    flex: 1 1 450px;
    max-width: 700px;
}

.word-count-form .wc-text-group input {
    width: 100%;
}

.word-count-results {
    font-size: 16px;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 700px;
}

.word-count-results .wc-summary {
    font-style: italic;
    margin-bottom: 10px;
}

.word-count-results .wc-line {
    line-height: 1.7;
}