/* Global font and size for the entire website for a professional, consistent look */
body,
table,
th,
td,
input,
select,
.form-control,
.select2-selection,
.pagination,
.modal-content {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif !important;
    font-size: 0.95rem !important;
    color: #222;
}

/* Navbar specific styling for better readability */
.navbar .nav-link {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif !important;
    color: #222;
    transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover {
    color: #0d6efd;
}

/* Prevent navbar navigation items from wrapping to new line */
.navbar-nav {
    flex-wrap: nowrap !important;
}

.navbar-nav .nav-item {
    white-space: nowrap;
}

.navbar-nav .nav-link {
    white-space: nowrap;
}

/* Global table styles for all tables, matching campaign grid look */
table {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(60, 72, 88, 0.06);
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

table th,
table td {
    font-size: 0.95rem;
    padding: 0.5rem 0.6rem;
    line-height: 1.45;
    text-align: center;
}

table th {
    font-weight: 600;
    background: #f4f6fb;
    color: #1a237e;
    letter-spacing: 0.01em;
}

table tr {
    transition: background 0.2s;
}

table tr:hover {
    background: #e3e9f7;
}

.pagination .page-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0d6efd;
}

.pagination .page-item.active .page-link {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.pledge-tabs .btn {
    font-size: 0.95rem;
    font-weight: 500;

}

/* Remove card background and border for cards that only contain a table */
.card>.card-body>.table-responsive>table {
    margin-bottom: 0;
}

.card>.card-body>.table-responsive {
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
}

.card>.card-body {
    background: none;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0.5rem 0 0.5rem;
}

.card {
    background: none;
    border: none;
    box-shadow: none;
}

/* Remove forced vertical scroll from all tables */
.table-responsive {
    max-height: none !important;
    overflow-y: visible !important;
}

.dropdown-menu.show {
    display: block !important;
}

.nav-tabs .nav-link {
    color: #495057;
    background: none;
    border-bottom: none;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background-color: none;
    border-color: #dee2e6 #dee2e6 #fff !important;
    color: #495057 !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
    z-index: 3;
    border-bottom: 2px solid #fff !important;
}

/* table: equal columns, keep actions narrow and right-aligned */
.table-equal {
    table-layout: fixed;
    width: 100%;
}

.table-equal thead th,
.table-equal tbody td {
    width: 25%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* actions column on the right, keep buttons grouped */
.table-equal .actions-cell {
    width: 140px; /* adjust as needed */
    white-space: nowrap;
    text-align: right;
    vertical-align: middle;
}

/* allow description to wrap if you prefer (optional)
.table-equal tbody td:nth-child(2) { white-space: normal; }
*/

/* allow program details to shrink so clamp works */
.program-details {
    flex: 1;
    min-width: 0; /* important for text truncation inside flex containers */
}

/* clamp description to 2 lines with ellipsis; remove clamp if you want single-line ellipsis */
.program-description {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2; /* standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Remove previous container-fluid width restriction since we're now using container-xxl */

/* Body and footer layout for sticky footer */
body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.footer {
    background: #343a40;
    color: #fff;
    padding: 1rem 0;
    margin-top: auto;
}

/* Breadcrumb styling to match site design */
.breadcrumb {
    background-color: #f4f6fb !important;
    font-size: 0.95rem;
    margin-bottom: 0;
    border-radius: 6px;
}

.breadcrumb-item {
    color: #495057;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.breadcrumb-item a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #1a237e;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* Force wrapping for long continuous text strings (e.g., very long group names) */
.wrap-long-text {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
}