/* Apply border-box globally for predictable sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

input, select, textarea {
    font-family: var(--il-source-sans);
    font-size: 18px;
    max-width: 100%;
}

.dbui {
    border: 1px dotted #0c172d;
    padding: 1em;
}

.dbbrowse {
    border: 1px dotted #265191;
    padding: 1em;
}

.resultNumber {
    font-weight: bolder;
    color: #c84113;
}

.responsive-table {
    overflow-x: auto;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
    margin-top: 10px;
}

h3 {
    margin-bottom: 30px;
}

.location-info {
    background-color: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.search-header {
    display: grid;
    grid-template-columns: 45% 30% 15%;
    gap: 20px;
    padding: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.search-result {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 45% 30% 15%;
    gap: 20px;
}

.result-number {
    font-weight: bold;
    color: #c84113;
}

.holdings-list .item {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.holdings-count {
    margin: 20px 0;
}

.detailed-title {
    margin-top: 50px;
}

.location-info {
    margin-top: 50px;
}

.narrow-table tr {
    height: 20px; /* Set a specific row height */
}

ilw-content th,
ilw-content td {
    padding: 8px; /* Reduce padding inside cells */
    line-height: 1.2; /* Adjust line height to make text tighter */
}

ilw-content tr {
    height: auto; /* Remove any fixed height from rows */
}

ilw-content table {
    border-collapse: collapse; /* Eliminate extra spacing between table cells */
}

/*Table Custom CSS*/

ilw-content .responsive-table {
    overflow-x: auto;
}
ilw-content .responsive-table > .table {
    min-width: 640px; /* keeps columns readable on small screens */
}

/* Base table style */
ilw-content .table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 16px;
}

/* Cells */
ilw-content .table th,
ilw-content .table td {
    padding: 8px 10px;
    line-height: 1.3;
    vertical-align: top;
    border: 1px solid #e3e7ee;
}

/* Bordered table */
ilw-content .table-bordered {
    border: 1px solid #d9d9d9;
}

/* Table header (Holdings thead) */
ilw-content .table thead th {
    background: #265191;
    color: #fff;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid #c7d2e5;
}

/* Striped rows */
ilw-content .table-striped tbody tr:nth-child(odd) {
    background: #f1f3f5;
}

/* First-column headers in Participant Information table */
ilw-content .table tbody > tr > th {
    width: 30%;
    white-space: nowrap;
    background: #f9fbfe;
    color: #0c172d;
    font-weight: 700;
    text-align: left;
    border: 1px solid #000;
}

/* Links inside table cells */
ilw-content .table a {
    text-decoration: underline;
    word-break: break-word;
}