#ifu-search-wrapper {
    font-family: 'Arial', sans-serif;
    max-width: 1000px;
    padding: 0 20px;
    margin: 0 auto;
    color: #555555;
}

/* ---- Controls row ---- */
#ifu-search-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    padding: 20px 24px;
    /* margin-bottom: 28px; */
}

.ifu-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 200px;
}

/* ---- Inline group (item number + Search button) ---- */
.ifu-inline-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ifu-inline-group #ifu-item-number {
    flex: 1;
}

#ifu-item-number,
#ifu-category {
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #094fa3;
    border-radius: 0;
    font-size: 0.95rem;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

/* Custom caret for the category dropdown */
#ifu-category {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%231a4a8a'/%3E%3Cpolygon points='8,11 24,11 16,22' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0px center;
    background-size: 42px 42px;
    cursor: pointer;
}

#ifu-item-number:focus,
#ifu-category:focus {
    border-color: #3b6fd4;
    box-shadow: 0 0 0 3px rgba(59, 111, 212, 0.15);
}

/* ---- Buttons ---- */
.ifu-button-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
    align-self: flex-end;
}

#ifu-search-btn,
#ifu-clear-btn {
    height: 42px;
    text-transform: uppercase;
    padding: 0 20px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    border: none;
    transition: background 0.18s, transform 0.1s, opacity 0.18s;
    letter-spacing: 0.03em;
}

#ifu-search-btn {
    background: #094fa3;
    color: #fff;
}

#ifu-search-btn:hover:not(:disabled) {
    background: #2e5ab5;
}

#ifu-search-btn:active:not(:disabled) {
    transform: scale(0.97);
}

#ifu-search-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#ifu-clear-btn {
    background: #fff;
    color: #5a6278;
    border: 1.5px solid #c8cedf;
}

#ifu-clear-btn:hover {
    background: #f0f2f8;
    border-color: #aab0c8;
}

/* ---- Instructions ---- */
.ifu-instructions {
    font-size: 1rem;
    margin: 0 0 4px 0;
    text-align: center;
}

/* ---- Summary line ---- */
.ifu-summary {
    font-size: 0.95rem;
    margin: 0 0 16px 0;
    padding: 10px 16px;
    text-align: center;
    background: #BEE1F7;
    border-left: 4px solid #00468D;
    border-radius: 0 6px 6px 0;
    color: #000;
}

.ifu-summary strong {
    color: #000;
}

.ifu-loading,
.ifu-error {
    font-size: 0.93rem;
    color: #7a8299;
    padding: 10px 0;
    margin: 0;
}

.ifu-error {
    color: #c0392b;
}

/* ---- Results table ---- */
.ifu-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: #fff;
    border: 1px solid #dce1ec;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 40, 80, 0.06);
}

.ifu-results-table thead tr {
    background: #1a1a2e;
    color: #fff;
}

.ifu-results-table th {
    padding: 12px 18px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ifu-th-action {
    width: 100px;
    text-align: center !important;
}

.ifu-results-table tbody tr {
    border-bottom: 1px solid #edf0f7;
    transition: background 0.12s;
}

.ifu-results-table tbody tr:last-child {
    border-bottom: none;
}

.ifu-results-table tbody tr:hover {
    background: #f8f9fd;
}

.ifu-results-table td {
    padding: 18px 18px;
    vertical-align: middle;
}

/* ---- Title cell ---- */
.ifu-title-cell {
    display: table-cell;
    /* override in case of flex parent */
}

a.ifu-title-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 500;
    color: #555555;

    &:visited {
        color: #555555;
    }
}

.ifu-title-link:hover span {
    text-decoration: underline;
    color: #094fa3;
}

/* PDF Icon */
.ifu-pdf-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Row without a link — still show icon + title inline */
.ifu-title-cell>.ifu-pdf-icon,
.ifu-title-cell>span {
    display: inline;
    vertical-align: middle;
}

/* ---- Action cell ---- */
.ifu-action-cell {
    text-align: center;
}

.ifu-view-btn {
    display: inline-block;
    padding: 6px 20px;
    background: #094fa3;
    border: none;
    color: #fff;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 300;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.35;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;

    &:visited {
        color: #fff;
    }
}

.ifu-view-btn:hover {
    background: #063873;
    color: #fff;
}

.ifu-no-pdf {
    font-size: 0.8rem;
    color: #b0b8cc;
    font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
    #ifu-search-controls {
        padding: 16px;
    }

    .ifu-field-group {
        flex: 1 1 100%;
    }

    .ifu-button-group {
        width: 100%;
    }

    #ifu-search-btn,
    #ifu-clear-btn {
        flex: 1;
    }

    .ifu-results-table th,
    .ifu-results-table td {
        padding: 10px 12px;
    }
}