/* Organisations page — compact table (aligned with inbounds), modals, filter toolbar */

/* Match compact table styling from inbounds.html */
#organisationsTable tbody tr {
    height: 20px;
}

#organisationsTable tbody td {
    padding: 0.1rem 0.25rem;
    vertical-align: middle;
}

#organisationsTable thead th {
    padding: 0.1rem 0.25rem;
}

/* Make action buttons smaller */
#organisationsTable .btn-group-sm .btn {
    padding: 0.05rem 0.15rem;
    font-size: 0.65rem;
}

/* Make table font smaller */
#organisationsTable {
    font-size: 0.75rem;
}

/* Make table header font even smaller */
#organisationsTable thead th {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Prevent text wrapping in table cells */
#organisationsTable tbody td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Allow text wrapping in header */
#organisationsTable thead th {
    white-space: normal;
}

/* Search Modal styling - mirror organisation modal design */
#organisationSearchModal .form-label {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

#organisationSearchModal .form-control,
#organisationSearchModal .form-select {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.15rem 0.35rem;
    font-size: 0.8rem;
}

#organisationSearchModal .form-check-label {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Filter block styling */
.filter-label {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-right: 0.5rem;
    white-space: nowrap;
    background: linear-gradient(135deg, #314f6f 0%, #416892 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scoped to this page via organisations.css link */
.mb-2,
.mb-3 {
    position: relative;
}

/* Filter toolbar (warehouse / inbounds density) */
.organisations-filter-bar {
    padding: 0.5rem 1rem;
}

.organisations-filter-row {
    min-height: 2.2rem;
}

.organisations-search-row-inner {
    height: 100%;
}

.organisations-search-input-wrap {
    position: relative;
    flex: 1;
}

.organisations-quick-filter-input {
    font-size: 0.75rem;
    padding: 0.1rem 0.25rem;
    height: 1.5rem;
    width: 100%;
}

.organisations-filter-bar .organisations-reset-btn {
    font-size: 0.65rem;
    height: 1.5rem;
    min-height: 1.5rem;
    padding: 0 0.35rem;
    min-width: 72px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.organisations-result-count {
    font-size: 0.75rem;
    white-space: nowrap;
}

.organisations-bottom-spacer {
    height: 80px;
}
