/* Equipment Manager page (see Scripts/EquipmentManager.js) */

/* Run edge to edge like the Job Manager: the negative margin cancels the page container's side padding */
.equip-manager {
    padding: .5rem;
    margin-left: -12px;
    margin-right: -12px;
}

.equip-manager.is-loading .eq-results {
    opacity: .5;
}

.eq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-bottom: .5rem;
}

.eq-filter {
    flex: 0 1 200px;
    min-width: 150px;
}

.eq-filter-search {
    flex: 1 1 240px;
}

.eq-filter.eq-view {
    flex: 0 0 auto;
    min-width: 0;
}

.eq-filter.eq-archived {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
}

/* Status chips: counts across the current filters, click to filter */
.eq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .25rem 0 .5rem;
}

.eq-chip {
    padding: .25rem .7rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    font-size: .85rem;
    cursor: pointer;
}

.eq-chip-count {
    font-weight: 700;
}

.eq-chip.active {
    box-shadow: 0 0 0 2px #0d6efd;
}

.st-expired { background: #f8d7da; color: #721c24; }
.st-month { background: #fff3cd; color: #664d03; }
.st-quarter { background: #cff4fc; color: #055160; }
.st-ok { background: #d1e7dd; color: #0f5132; }
.st-nodate { background: #e2e3e5; color: #41464b; }

.eq-pill {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: .35rem;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.eq-num {
    display: inline-block;
    min-width: 1.6rem;
    padding: .05rem .4rem;
    border-radius: .75rem;
    font-weight: 600;
}

.eq-stale {
    display: inline-block;
    padding: 0 .35rem;
    border-radius: .25rem;
    background: #dee2e6;
    color: #495057;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    vertical-align: middle;
}

.eq-summary {
    margin: .25rem 0;
    font-size: .85rem;
    color: #6c757d;
}

.eq-expand-tools {
    text-align: right;
}

.eq-table th.eq-sort {
    cursor: pointer;
    white-space: nowrap;
}

.eq-table thead th {
    background: aliceblue;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.eq-boat {
    cursor: pointer;
}

.eq-boat.worst-expired { border-left: 4px solid #dc3545; }
.eq-boat.worst-month { border-left: 4px solid #ffc107; }
.eq-boat.worst-quarter { border-left: 4px solid #0dcaf0; }
.eq-boat.worst-nodate { border-left: 4px solid #adb5bd; }
.eq-boat.worst-ok { border-left: 4px solid #198754; }

.eq-caret {
    width: 1.5rem;
    color: #6c757d;
}

.eq-detail > td {
    background: #f8f9fa;
    padding-top: .25rem;
    padding-bottom: .5rem;
}

.eq-open {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: .35rem;
    background: #0d6efd;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.eq-open:hover {
    background: #0b5ed7;
    color: #fff;
}
