﻿/* ==============================
   Nets Add/Edit dialog (Net modal)
   ============================== */

/* Modal sizing + “no clipping” for dropdowns/pickers */
#netDialogModal .modal-dialog {
    --bs-modal-width: clamp(360px, 92vw, 760px);
}

/* push footer buttons down a bit */
#netDialogModal #netForm > .d-flex.justify-content-end {
    margin-top: 1.75rem !important;
}

.net-modal .modal-dialog {
    width: min(510px, calc(100vw - 2rem));
    max-width: none;
    margin: 0 auto;
    position: relative !important;
    border-radius: 8px;
    overflow: visible !important;
}

/* Kill any global modal-content padding; control spacing per section */
#netDialogModal .modal-content {
    padding: 0;
}

#netDialogModal .modal-header {
    padding: .6rem .9rem;
}

#netDialogModal .modal-body {
    padding: .65rem .9rem;
}

#netDialogModal .modal-footer {
    padding: .55rem .9rem;
}

/* Nets list wrapper */
.nets-list-wrap {
    margin-top: .25rem;
    max-height: 150px;
    overflow-y: auto;
    border-radius: 0;
}

/* Net “pill” rows */
.net-pill {
    width: 100%;
    border: 0;
    padding: .35rem .5rem;
    background-color: transparent;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    cursor: pointer;
    font-size: .85rem;
}

.net-pill-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.net-pill-name {
    font-weight: 600;
}

.net-pill-sub {
    font-size: .75rem;
    color: var(--bs-secondary-color);
}

.net-pill.is-selected .net-pill-sub {
    color: var(--bs-secondary-color);
}

/* Selected net row */
.net-pill.is-selected {
    background-color: rgba(var(--bs-primary-rgb), 0.28);
    color: var(--bs-body-color);
}

    .net-pill.is-selected .net-pill-sub {
        color: var(--bs-tertiary-color);
    }

/* “Active” badge */
.badge-small {
    font-size: .7rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    white-space: nowrap;
}

    .badge-small.active {
        background-color: var(--bs-success-bg-subtle);
        border-color: var(--bs-success-border-subtle);
        color: var(--bs-success-text);
    }

/* Weekly day buttons */
.weekly-days {
    gap: 0;
}

    .weekly-days .btn {
        font-size: .9rem;
        padding: .15rem .6rem;
        line-height: 1.2;
    }

/* Optional helper text */
.weekly-hint {
    font-size: .8rem;
}

@media (min-width: 768px) {
    .weekly-hint {
        text-align: right;
    }
}

/* Dirty indicator */
.dirty-indicator {
    font-size: .75rem;
    color: #b35a00;
}

/* Tighter controls inside net dialog only (schedule tab fit) */
#netDialogModal .form-control,
#netDialogModal .form-select {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    height: auto;
}

/* Prevent “icon overlaps” / input squish inside Bootstrap grid columns */
#netDialogModal .row > [class*="col"] {
    min-width: 0;
}

/* If you ever use a custom “net header” layout */
.net-ht .modal-header {
    border-bottom: 1px solid var(--bs-border-color);
    padding-inline: 10px;
    padding-block: 3px;
    background: var(--bs-tertiary-bg);
    box-shadow: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 6px;
    padding-left: 2px !important;
    padding-right: 8px !important;
}

