@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.mnccjmrpdk.bundle.scp.css';

/* /Components/AuditLog.razor.rz.scp.css */
/* Scoped to the component - it appears on Manage Service and the three promotion
   pages, so it can't lean on any one page's stylesheet. Colours come from the
   Bootstrap theme vars in custom.css. */

.audit-log[b-w4leno4aw1] {
    width: 100%;
    margin-top: 2rem;
}

.audit-head[b-w4leno4aw1] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.875rem;
}

.audit-head h2[b-w4leno4aw1] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bs-dark);
}

.audit-count[b-w4leno4aw1] {
    margin: 0;
    font-family: var(--bs-font-monospace);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.audit-head-tools[b-w4leno4aw1] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.audit-search[b-w4leno4aw1] {
    width: min(18rem, 45vw);
}

.audit-search:focus[b-w4leno4aw1] {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}

.audit-empty[b-w4leno4aw1],
.audit-nomatch[b-w4leno4aw1] {
    margin: 0;
    color: var(--bs-secondary-color);
}

.audit-nomatch[b-w4leno4aw1] {
    padding: 1.5rem;
    text-align: center;
}

/* full width of whatever container it sits in */
.table-responsive[b-w4leno4aw1] {
    width: 100%;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    overflow-x: auto;
}

.audit-table[b-w4leno4aw1] {
    width: 100%;
    margin: 0;
    background-color: var(--bs-body-bg);
}

.audit-table th[b-w4leno4aw1],
.audit-table td[b-w4leno4aw1] {
    padding: 0.625rem 0.75rem;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
    vertical-align: top;
}

.audit-table tbody tr:last-child td[b-w4leno4aw1] {
    border-bottom: none;
}

/* column headings */
.audit-columns th[b-w4leno4aw1] {
    background-color: var(--bs-tertiary-bg);
    font-family: var(--bs-font-monospace);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    vertical-align: middle;
}

/* Action carries the most text, so give it the largest share explicitly. */
.audit-columns th:nth-child(1)[b-w4leno4aw1] { width: 16%; }
.audit-columns th:nth-child(2)[b-w4leno4aw1] { width: 12%; }
.audit-columns th:nth-child(3)[b-w4leno4aw1] { width: 8%; }
.audit-columns th:nth-child(4)[b-w4leno4aw1] { width: 40%; }
.audit-columns th:nth-child(5)[b-w4leno4aw1] { width: 24%; }

/* sortable headings are buttons, but shouldn't look like them */
.audit-sort[b-w4leno4aw1] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
}

.audit-sort:hover[b-w4leno4aw1] {
    color: var(--bs-primary);
}

.audit-sort.is-active[b-w4leno4aw1] {
    color: var(--bs-primary);
    font-weight: 700;
}

.audit-caret[b-w4leno4aw1] {
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.45;
}

.audit-sort.is-active .audit-caret[b-w4leno4aw1] {
    opacity: 1;
}

/* header cell: label, sort toggle, funnel */
.audit-th[b-w4leno4aw1] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.audit-funnel[b-w4leno4aw1] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: var(--bs-border-radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    color: var(--bs-secondary-color);
    opacity: 0.6;
    transition: opacity 0.12s ease, color 0.12s ease, background-color 0.12s ease;
}

.audit-funnel:hover[b-w4leno4aw1] {
    opacity: 1;
    color: var(--bs-primary);
    background-color: var(--bs-body-bg);
}

/* filled funnel = this column is filtering */
.audit-funnel.is-on[b-w4leno4aw1] {
    opacity: 1;
    color: var(--bs-primary);
}

/* ====================================
   FILTER POPOVERS

   Native popover: top layer, so the table's overflow-x can't clip it, and
   click-outside plus Escape come from the platform.
   ==================================== */

.audit-popover[b-w4leno4aw1] {
    width: min(20rem, calc(100vw - 2rem));
    padding: 1rem;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background-color: var(--bs-body-bg);
    box-shadow: var(--bs-box-shadow);
    /* the table header sets mono micro-type - reset it for real content */
    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    letter-spacing: normal;
    text-transform: none;
    color: var(--bs-body-color);
}

.audit-popover:popover-open[b-w4leno4aw1] {
    display: grid;
    gap: 0.625rem;
}

.audit-popover-title[b-w4leno4aw1] {
    margin: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--bs-dark);
}

.audit-popover-field[b-w4leno4aw1] {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
}

.audit-popover .form-control:focus[b-w4leno4aw1],
.audit-popover .form-select:focus[b-w4leno4aw1] {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}

.audit-popover-foot[b-w4leno4aw1] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.audit-popover[b-w4leno4aw1]::backdrop {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Progressive enhancement: anchor the popover under its funnel. Without anchor
   positioning support it stays centred in the viewport, which is a fine fallback. */
@supports (anchor-name: --audit-anchor-test) {
    .audit-popover[b-w4leno4aw1] {
        position: absolute;
        margin: 0;
        position-area: block-end span-inline-start;
        position-try-fallbacks: block-end span-inline-end, block-start span-inline-start;
    }

    .audit-columns th:nth-child(1) .audit-funnel[b-w4leno4aw1] { anchor-name: --af-user; }
    .audit-columns th:nth-child(1) .audit-popover[b-w4leno4aw1] { position-anchor: --af-user; }

    .audit-columns th:nth-child(2) .audit-funnel[b-w4leno4aw1] { anchor-name: --af-date; }
    .audit-columns th:nth-child(2) .audit-popover[b-w4leno4aw1] { position-anchor: --af-date; }

    .audit-columns th:nth-child(3) .audit-funnel[b-w4leno4aw1] { anchor-name: --af-version; }
    .audit-columns th:nth-child(3) .audit-popover[b-w4leno4aw1] { position-anchor: --af-version; }
}

/* body cells */
.audit-time[b-w4leno4aw1],
.audit-version[b-w4leno4aw1] {
    font-family: var(--bs-font-monospace);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.audit-actions[b-w4leno4aw1] {
    margin: 0;
    padding-left: 0;
}

.audit-actions.list-bullet[b-w4leno4aw1] {
    padding-left: 1.125rem;
}

.audit-actions ul[b-w4leno4aw1] {
    margin: 0.25rem 0 0;
    padding-left: 1.125rem;
}

.audit-actions li[b-w4leno4aw1] {
    margin-bottom: 0.125rem;
}

/* /Components/SearchableDropdown.razor.rz.scp.css */
.dropdown-container[b-vpwzcv1rzm] {
    position: relative;
    width: 100%;
    max-width: 30em;
}

.search-input[b-vpwzcv1rzm],
.form-textbox[b-vpwzcv1rzm] {
    padding-right: 2.5rem !important;
}

.dropdown-list[b-vpwzcv1rzm] {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    max-height: 14em;
    overflow-y: auto !important;
    overflow-x: hidden;
    border: 0.063em solid #ccc;
    background-color: white;
    z-index: 1000;
    box-shadow: 0px 0.25em 0.375em rgba(0, 0, 0, 0.1);
    border-radius: 0.25em;
}

.dropdown-item[b-vpwzcv1rzm] {
    padding: 0.5em;
    cursor: pointer;
    font-size: 1em;
}

.dropdown-item:hover[b-vpwzcv1rzm] {
    background-color: #f0f0f0;
}

.input-with-icon[b-vpwzcv1rzm] {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input[b-vpwzcv1rzm] {
    flex-grow: 1;
    padding-right: 2.5em;
}

.dropdown-arrow[b-vpwzcv1rzm] {
    position: absolute;
    right: 0.5em;
    font-size: 2em;
    pointer-events: none;
    transition: transform 0.2s ease-in-out;
}

.dropdown-arrow.open[b-vpwzcv1rzm] {
    transform: rotate(180deg);
}
/* /Components/TagMultiselect.razor.rz.scp.css */
.scrollable-list[b-5pe5vsuo1o] {
    max-height: 400px;
    overflow-y: auto;
}

.scrollable-list-dropdown[b-5pe5vsuo1o] {
    max-height: 300px;
    min-width: 250px;
    overflow-y: auto;
}

.scrollable-list-dropdown > li[b-5pe5vsuo1o] {
    cursor: pointer;
}
