/* Engine Manager page (see Scripts/EngineManager.js). Same pattern as Content/EquipmentManager.css. */

/* Run edge to edge like the Job Manager: the negative margin cancels the page container's side padding */
.engine-manager {
    padding: .5rem;
    margin-left: -12px;
    margin-right: -12px;
}

.engine-manager.is-loading .en-results {
    opacity: .5;
}

.en-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-bottom: .5rem;
}

.en-filter {
    flex: 0 1 200px;
    min-width: 150px;
}

.en-filter-search {
    flex: 1 1 240px;
}

.en-filter-add {
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
}

.en-summary {
    margin: .25rem 0;
    font-size: .85rem;
    color: #6c757d;
}

.en-table th.en-sort {
    cursor: pointer;
    white-space: nowrap;
}

.en-table thead th {
    background: aliceblue;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.en-row {
    cursor: pointer;
}

.en-row.is-new {
    border-left: 4px solid #0d6efd;
}

.en-caret {
    width: 1.5rem;
    color: #6c757d;
}

.en-badge {
    display: inline-block;
    min-width: 1.6rem;
    padding: .05rem .4rem;
    border-radius: .75rem;
    font-weight: 600;
    background: #e2e3e5;
    color: #41464b;
}

.en-badge.is-zero {
    background: transparent;
    color: #adb5bd;
}

.en-detail > td {
    background: #f8f9fa;
    padding: .75rem 1rem 1rem;
}

.en-edit-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .5rem .75rem;
    max-width: 900px;
}

.en-edit-form label {
    font-size: .75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: .15rem;
    display: block;
}

.en-edit-form .en-field-wide {
    grid-column: 1 / -1;
}

.en-edit-actions {
    margin-top: .6rem;
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}

.en-edit-msg {
    font-size: .85rem;
}

.en-edit-msg.text-danger {
    font-weight: 600;
}

.en-subhead {
    margin: 1rem 0 .35rem;
    font-weight: 700;
    font-size: .9rem;
}

.en-parts-table th, .en-parts-table td {
    padding: .3rem .5rem;
    font-size: .85rem;
}

.en-parts-table input {
    font-size: .85rem;
    padding: .2rem .4rem;
}

.en-boats-list {
    font-size: .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.en-boat-pill {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 1rem;
    background: #e7f1ff;
    color: #0d47a1;
    text-decoration: none;
    font-weight: 600;
}

.en-boat-pill:hover {
    background: #d0e3ff;
    color: #0d47a1;
}

