/* Repairs feature — scoped so it never collides with other feature CSS. */
.reps-topbar { margin-bottom: 1rem; }
.reps-search { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.reps-input { padding: .55rem .7rem; border: 1px solid #d9cdba; border-radius: 8px; min-width: 12rem; background: #fffdf9; }
.reps-input--sm { min-width: 8rem; }
.reps-select { padding: .55rem .7rem; border: 1px solid #d9cdba; border-radius: 8px; background: #fffdf9; }
.reps-btn { padding: .55rem 1rem; border: 0; border-radius: 8px; background: #6b4f2a; color: #fff; cursor: pointer; }
.reps-empty { color: #7a6a52; padding: 1.5rem 0; }

.reps-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .75rem; }
.rep-card { text-align: left; display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem;
    border: 1px solid #ece3d4; border-radius: 12px; background: #fffdf9; cursor: pointer; position: relative; }
.rep-card:hover { border-color: #caa96f; }
.rep-card-name { font-weight: 600; color: #3a2c17; }
.rep-card-meta { font-size: .85rem; color: #7a6a52; }
.rep-status { align-self: flex-start; margin-top: .25rem; font-size: .72rem; text-transform: uppercase;
    letter-spacing: .04em; padding: .12rem .5rem; border-radius: 999px; background: #eee; color: #555; }
.rep-status--open { background: #e5f2e5; color: #2e6b2e; }
.rep-status--invc, .rep-status--clos { background: #ece3d4; color: #6b4f2a; }

.reps-sentinel { grid-column: 1 / -1; text-align: center; color: #7a6a52; padding: 1rem; }

.reps-modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center;
    justify-content: center; z-index: 1000; padding: 1rem; }
.reps-modal.hidden { display: none; }
.rep-modal-card { background: #fffdf9; border-radius: 16px; padding: 1.5rem; max-width: 40rem; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative; }
.rep-modal-close { position: absolute; top: .75rem; right: 1rem; border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: #7a6a52; }
.rep-modal-name { margin: 0 0 .25rem; color: #3a2c17; }
.rep-modal-sub { color: #7a6a52; font-size: .9rem; }
.rep-modal-img { max-width: 12rem; border-radius: 10px; margin: .75rem 0; }
.rep-modal-img.hidden { display: none; }
.rep-modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; margin: 1rem 0; }
.rep-modal-grid > div > div { color: #3a2c17; }
.rep-modal-block { margin-top: .75rem; }
.rep-modal-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #a08a6a; }
