/* production_list.php — browse-style search + A–Z tables */

.production-list-page h2.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 4px;
}

.production-list-page .page-subtitle {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 18px;
}

.production-list-page .prod-toolbar {
    margin-bottom: 14px;
}

.production-list-page .search-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.production-list-page .search-type-select {
    padding: 8px 10px;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    font-size: 12px;
    font-family: var(--font);
    font-weight: 600;
    color: var(--heading);
    background: var(--white);
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
}

.production-list-page .search-type-select:focus {
    border-color: var(--btn-primary, var(--link));
    box-shadow: 0 0 0 2px rgba(42, 109, 181, 0.12);
}

.production-list-page .prod-search-row input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--heading);
    outline: none;
}

.production-list-page .prod-search-row input[type="search"]::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.production-list-page .prod-search-row input[type="search"]:focus {
    border-color: var(--btn-primary, var(--link));
    box-shadow: 0 0 0 2px rgba(42, 109, 181, 0.12);
}

.production-list-page .prod-summary-panel {
    margin-bottom: 20px;
}

.production-list-page .prod-letter-body {
    padding: 12px 15px;
}

.production-list-page .letter-index {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.production-list-page .letter-link {
    display: inline-block;
    padding: 4px 10px;
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--link);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.production-list-page .letter-link:hover {
    background: var(--btn-primary);
    border-color: var(--btn-primary);
    color: var(--white);
    text-decoration: none;
}

.production-list-page .letter-link.disabled {
    color: var(--border-dark);
    background: transparent;
    pointer-events: none;
}

.production-list-page .panel[id^="letter-"] .panel-heading {
    font-size: 18px;
}

.production-list-page .prod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.production-list-page .prod-table thead tr th {
    background: var(--white);
    border-bottom: 2px solid var(--border-dark);
    padding: 9px 14px;
    font-weight: 700;
    color: var(--heading);
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.production-list-page .prod-table thead tr th:first-child {
    width: 220px;
}

.production-list-page .prod-table thead tr th:nth-child(2) {
    width: 120px;
}

.production-list-page .prod-table td.icao-cell {
    width: 120px;
    vertical-align: top;
    padding: 10px 14px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.production-list-page .prod-table tr.mfr-last td.icao-cell,
.production-list-page .prod-table tr.mfr-last td.model-cell {
    border-bottom: 2px solid var(--border-dark);
}

.production-list-page .icao-badge {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: #f0f2f5;
    padding: 2px 7px;
    border-radius: 3px;
    display: inline-block;
}

.production-list-page a.icao-badge--link {
    color: var(--link);
    background: #e8eef7;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}

.production-list-page a.icao-badge--link:hover {
    background: var(--link);
    color: #fff;
    text-decoration: none;
}

.production-list-page .prod-table td.mfr-cell {
    width: 220px;
    min-width: 180px;
    vertical-align: top;
    padding: 14px;
    border-right: 1px solid var(--border);
    border-bottom: 2px solid var(--border-dark);
    background: var(--white);
    cursor: pointer;
    transition: background 0.1s;
}

.production-list-page .prod-table td.mfr-cell:hover {
    background: #e8eef7;
}

.production-list-page .prod-table td.mfr-cell:hover .mfr-name {
    color: var(--link);
    text-decoration: underline;
}

.production-list-page .mfr-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
    display: block;
    margin-bottom: 3px;
    transition: color 0.1s;
}

.production-list-page .mfr-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.production-list-page .prod-table td.model-cell {
    vertical-align: middle;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.production-list-page .prod-table tbody tr:hover td.model-cell {
    background: #f4f6fa;
}

.production-list-page mark.hl {
    background: #fff3cd;
    border-radius: 2px;
    padding: 0 2px;
    font-style: normal;
}

.production-list-page .empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.production-list-page .icao-inline {
    display: none;
}

#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: var(--btn-primary);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 18px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.15s ease;
    z-index: 999;
    text-decoration: none;
    display: block;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    background: var(--btn-primary-h);
    text-decoration: none;
    color: #fff;
}

@media (max-width: 700px) {
    .production-list-page .prod-table td.mfr-cell {
        width: 120px;
        min-width: 100px;
    }

    .production-list-page .prod-table td.icao-cell {
        display: none;
    }
}

@media (max-width: 600px) {
    .production-list-page h2.page-title {
        font-size: 19px;
    }

    .production-list-page .page-subtitle {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .production-list-page .letter-index {
        gap: 4px;
    }

    .production-list-page .letter-link {
        padding: 4px 8px;
        font-size: 13px;
    }

    .production-list-page .prod-search-row input[type="search"],
    .production-list-page .prod-search-row .btn {
        flex: 1 1 100%;
    }

    .production-list-page .prod-table,
    .production-list-page .prod-table tbody,
    .production-list-page .prod-table tr,
    .production-list-page .prod-table td {
        display: block;
        width: 100% !important;
    }

    .production-list-page .prod-table thead {
        display: none;
    }

    .production-list-page .prod-table td.mfr-cell {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
        padding: 10px 12px;
        background: var(--panel-head);
    }

    .production-list-page .prod-table td.model-cell {
        padding: 8px 12px 8px 20px;
        border-bottom: 1px solid var(--border);
        font-size: 12.5px;
    }

    .production-list-page .prod-table tr.mfr-last td.model-cell {
        border-bottom: 1px solid var(--border);
    }

    .production-list-page .icao-inline {
        display: inline-block;
        font-family: monospace;
        font-size: 10px;
        font-weight: 700;
        color: var(--text-muted);
        background: #f0f2f5;
        padding: 1px 5px;
        border-radius: 3px;
        margin-right: 6px;
    }

    #back-to-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 16px;
    }
}
