.v2-nav-form {
    margin: 0;
}

.v2-nav-form button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #b8c2e0;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    text-align: left;
    transition: .2s;
}

.v2-nav-form button b {
    display: inline-grid;
    place-items: center;
    width: 21px;
    font-size: 17px;
}

.v2-nav-form button:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    transform: translateX(2px);
}

.v2-table .v2-stack {
    min-width: 210px;
}

.v2-table .v2-stack input {
    min-height: 36px;
    margin-bottom: 6px;
    padding: 7px 9px;
    font-size: 11px;
}

.v2-table .v2-stack .v2-button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
}

.v2-video {
    width: min(420px, 100%);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #111a35;
}

.v2-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.v2-tutorial-first-login {
    outline: 4px solid rgba(99, 91, 255, .12);
}

.v2-provider-actions-disabled {
    margin-top: 10px;
    flex-wrap: wrap;
}

.v2-provider-actions-disabled .v2-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
    transform: none;
}

.v2-provider-balance {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(99, 91, 255, .035);
}

.v2-provider-balance-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.v2-provider-balance > strong {
    font-size: 22px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.v2-provider-balance > small {
    font-size: 11px;
    line-height: 1.5;
}

.v2-provider-is-stale .v2-provider-balance {
    border-color: #d0a65a;
}

.v2-provider-costs {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.v2-provider-costs h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.v2-provider-costs p,
.v2-provider-import p {
    font-size: 12px;
    line-height: 1.6;
}

.v2-provider-import {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.v2-provider-import > summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.v2-provider-import .v2-stack {
    margin-top: 12px;
}

.v2-provider-mini-row > div {
    flex: 1;
    min-width: 0;
}

.v2-provider-mini .v2-provider-balance {
    padding: 10px 12px;
    margin: 10px 0;
}

.v2-provider-mini .v2-provider-balance > strong {
    font-size: 17px;
}

.v2-provider-mini code,
.v2-provider-card code {
    overflow-wrap: anywhere;
}

.v2-notification-list article,
.v2-promotion-list article {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.v2-notification-list article:last-child,
.v2-promotion-list article:last-child {
    border-bottom: 0;
}

.v2-notification-list article > span {
    color: var(--primary);
}

.v2-notification-list article > div {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.v2-notification-list form {
    margin-left: auto;
}

.v2-notification-list form .v2-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
}

.v2-notification-list p,
.v2-notification-list small,
.v2-promotion-list span {
    margin: 2px 0 0;
    color: var(--muted);
}

.v2-promotion-list article {
    justify-content: space-between;
}

.v2-promotion-list b {
    color: var(--mint);
}

.v2-category-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.v2-category-shortcut {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 750;
}

.v2-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 14px 0 28px;
}

.v2-management-item summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.v2-management-item summary::-webkit-details-marker {
    display: none;
}

.v2-management-item summary span {
    color: var(--muted);
    font-size: 12px;
}

.v2-management-item[open] summary {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}

.v2-form-grid,
.v2-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.v2-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    font-weight: 650;
}

.v2-check input {
    width: 18px;
    min-height: 18px;
    margin: 0;
}

.v2-management-item fieldset {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}

.v2-order-confirmation {
    margin-top: 16px;
    border-color: rgba(31, 184, 151, .35);
}

.v2-staging-balance-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid #f1d398;
    border-radius: 12px;
    background: #fff8e9;
    color: #76571f;
    font-size: 12px;
    font-weight: 700;
}

.v2-staging-topbar-note {
    max-width: 520px;
    padding: 7px 10px;
    border: 1px solid #f1d398;
    border-radius: 10px;
    background: #fff8e9;
    color: #76571f;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
}

.v2-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.v2-progressive-order {
    max-width: 920px;
    margin: 0 auto;
    position: static;
}

.v2-progressive-order [hidden] {
    display: none !important;
}

.v2-grid > * {
    min-width: 0;
}

.v2-progressive-step {
    margin-bottom: 18px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.v2-progressive-step:last-of-type {
    border-bottom: 0;
}

fieldset.v2-progressive-step {
    min-width: 0;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    border-top: 0;
    border-right: 0;
    border-left: 0;
}

.v2-progressive-step > header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.v2-progressive-step > header b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #eceaff;
    color: var(--primary);
}

.v2-progressive-step > header h2 {
    margin: 0;
    font-size: 17px;
}

.v2-taxonomy-pills {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 0 10px;
}

.v2-taxonomy-pills button {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.v2-taxonomy-pills button.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.v2-order-details[disabled] {
    opacity: .58;
}

.v2-selected-service {
    min-height: 24px;
    margin: 4px 0 0;
    color: var(--primary);
}

.v2-selected-service span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.v2-readable-description {
    font-family: inherit;
    font-variant: normal;
    white-space: pre-line;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.v2-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.v2-breadcrumb a {
    color: var(--primary);
}

.v2-breadcrumb span::before {
    content: "›";
    margin-right: 8px;
    color: var(--muted);
}

.v2-settings-status-grid,
.v2-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.v2-settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-setting-status {
    min-width: 0;
    padding: 18px;
}

.v2-setting-status > span,
.v2-setting-status > strong,
.v2-setting-status > small {
    display: block;
    overflow-wrap: anywhere;
}

.v2-setting-status > span,
.v2-setting-status > small,
.v2-settings-module p {
    color: var(--muted);
}

.v2-setting-status > span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.v2-setting-status > strong {
    margin: 7px 0 4px;
    font-size: 17px;
}

.v2-settings-module {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.v2-settings-module .v2-button {
    align-self: flex-start;
    margin-top: auto;
}

.v2-order-cost-summary {
    max-width: 560px;
    margin: 6px 0 14px auto;
}

.v2-delivery-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.v2-delivery-breakdown strong {
    color: var(--ink);
}

.v2-correlation-facts {
    border-color: rgba(99, 91, 255, .25);
    background: #f8f7ff;
}

.v2-management-wide {
    grid-column: 1 / -1;
    min-width: 0;
}

.v2-management-item .v2-grid > section,
.v2-management-item dl,
.v2-management-item form {
    min-width: 0;
}

.v2-management-item dd,
.v2-management-item summary strong,
.v2-management-item summary span {
    overflow-wrap: anywhere;
}

@media (max-width: 920px) {
    .v2-topbar {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .v2-staging-topbar-note {
        max-width: min(520px, 58vw);
    }

    .v2-order-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .v2-order-layout > *,
    .v2-service-grid,
    .v2-service,
    .v2-order-calculator {
        min-width: 0;
        max-width: 100%;
    }

    .v2-settings-status-grid,
    .v2-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .v2-staging-topbar-note {
        order: 4;
        width: 100%;
        max-width: none;
        margin-left: 42px;
        text-align: left;
    }

    .v2-topbar .v2-environment {
        margin-right: 0;
    }

    .v2-category-shortcuts {
        grid-template-columns: 1fr;
    }

    .v2-management-grid,
    .v2-form-grid,
    .v2-check-grid {
        grid-template-columns: 1fr;
    }

    .v2-settings-status-grid,
    .v2-settings-grid {
        grid-template-columns: 1fr;
    }

    .v2-service-facts span {
        min-width: 0;
    }

    .v2-service-facts strong {
        overflow-wrap: anywhere;
    }

    .v2-progressive-order {
        padding: 18px;
    }

    .v2-progressive-step > header {
        align-items: flex-start;
    }

    .v2-progressive-step > header h2 {
        font-size: 15px;
    }

    .v2-order-cost-summary {
        max-width: none;
        margin-left: 0;
    }

    .v2-taxonomy-pills {
        margin-right: -6px;
    }

    .v2-delivery-breakdown {
        flex-direction: column;
    }
}

/* A13: administración humana, inventario técnico secundario y búsqueda accesible. */
.v2-view-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.v2-view-tabs a {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid var(--v2-border, #dfe6ed);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.v2-view-tabs a.active {
    color: #fff;
    border-color: #172943;
    background: #172943;
}

.v2-human-card > summary {
    align-items: center;
    gap: 16px;
}

.v2-human-card > summary > span:first-child {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.v2-human-card > summary strong,
.v2-human-card > summary small {
    overflow-wrap: anywhere;
}

.v2-summary-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.v2-subtle-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f4f0e7;
    color: #765923;
    font-size: .75rem;
    line-height: 1.2;
}

.v2-technical-details,
.v2-filter-advanced {
    padding: 10px 12px;
    border: 1px solid #e1e7ed;
    border-radius: 12px;
    background: #f8fafb;
}

.v2-technical-details > summary,
.v2-filter-advanced > summary {
    cursor: pointer;
    color: #526171;
    font-weight: 700;
}

.v2-technical-details[open] > summary,
.v2-filter-advanced[open] > summary {
    margin-bottom: 10px;
}

.v2-filter-advanced {
    min-width: 190px;
}

.v2-filter-advanced select,
.v2-filter-advanced input {
    width: 100%;
    margin-top: 8px;
}

.v2-catalog-flow {
    margin-top: 16px;
}

.v2-catalog-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid #e5eaef;
}

.v2-catalog-step > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: #275e62;
    font-weight: 800;
}

.v2-catalog-step > div,
.v2-catalog-step label,
.v2-catalog-step input,
.v2-catalog-step select,
.v2-catalog-step textarea {
    min-width: 0;
    max-width: 100%;
}

.v2-service-combobox {
    position: relative;
}

.v2-combobox-input {
    position: relative;
}

.v2-combobox-input input {
    width: 100%;
    padding-right: 44px;
}

.v2-combobox-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #edf2f4;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.25rem;
}

.v2-combobox-results {
    position: absolute;
    z-index: 20;
    top: calc(100% - 22px);
    left: 0;
    right: 0;
    max-height: 340px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #ccd8df;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 40, 55, .16);
}

.v2-combobox-option {
    display: grid;
    width: 100%;
    gap: 3px;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.v2-combobox-option:hover,
.v2-combobox-option.is-active {
    background: #eef6f5;
    outline: 2px solid #8ec4bf;
}

.v2-combobox-option span,
.v2-combobox-option small,
.v2-combobox-help {
    color: #62717d;
}

.v2-service-source-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.v2-selected-service {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 13px;
    border-radius: 12px;
    background: #f3f8f7;
}

.v2-current-access {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr);
    gap: 18px;
    margin-bottom: 20px;
}

.v2-current-access .v2-technical-details {
    grid-column: 1 / -1;
}

.v2-level-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.v2-level-preview article {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid #e0e7ec;
    border-radius: 12px;
    background: #fbfcfd;
}

.v2-level-preview small,
.v2-points-example,
.v2-promotion-preview p {
    color: #5d6b77;
}

.v2-inline-error {
    padding: 10px 12px;
    border-radius: 10px;
    color: #9c263e;
    background: #fff0f3;
}

.v2-promotion-preview {
    padding: 16px;
    border: 1px solid #cfe3df;
    border-radius: 14px;
    background: #f2f8f7;
}

.v2-check.is-disabled {
    opacity: .65;
}

.v2-human-code {
    font-weight: 700;
}

.v2-inline-technical {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    font-size: .72rem;
}

.v2-inline-technical summary {
    cursor: pointer;
    color: #687682;
}

@media (max-width: 760px) {
    .v2-current-access {
        grid-template-columns: minmax(0, 1fr);
    }

    .v2-current-access .v2-technical-details {
        grid-column: auto;
    }

    .v2-human-card > summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .v2-summary-badges {
        justify-content: flex-start;
    }

    .v2-filter-advanced {
        width: 100%;
    }

    .v2-catalog-step {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 9px;
    }

    .v2-catalog-step > span {
        width: 28px;
        height: 28px;
    }

    .v2-combobox-results {
        position: static;
        max-height: 290px;
        margin-top: 7px;
    }
}

/* A12 — focused Access & Roles usability layer. */
[data-v2-access] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 24px;
}

[data-v2-access] [hidden] {
    display: none !important;
}

.v2-access-section {
    min-width: 0;
    padding: 24px;
    border: 1px solid #d9deea;
    border-radius: 22px;
    background: #f9faff;
    box-shadow: 0 12px 36px rgba(32,45,81,.06);
}

.v2-access-section > header {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.v2-access-section > header > .v2-kicker {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #e9e7ff;
}

.v2-access-section > header h2,
.v2-access-section > header p,
.v2-role-panel-head h3,
.v2-role-panel-head p,
.v2-access-results h3,
.v2-access-user-panel h3,
.v2-access-user-placeholder h3,
.v2-access-user-placeholder p {
    margin: 0;
}

.v2-access-section > header p,
.v2-role-panel-head p,
.v2-access-search-help,
.v2-access-user-placeholder p {
    color: #5f6c88;
}

.v2-role-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 9px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding: 2px 2px 7px;
}

.v2-role-tab {
    display: flex;
    min-width: 0;
    min-height: 62px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 13px;
    border: 1px solid #cfd5e3;
    border-radius: 13px;
    background: #fff;
    color: #27324d;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.v2-role-tab strong,
.v2-role-tab small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-role-tab small {
    margin-top: 3px;
    color: #697690;
    font-size: 10px;
}

.v2-role-tab:hover {
    border-color: #8c86ef;
    box-shadow: 0 6px 16px rgba(50,55,110,.08);
}

.v2-role-tab.is-selected {
    border-color: #5149e4;
    background: #625bff;
    box-shadow: 0 9px 22px rgba(80,72,220,.2);
    color: #fff;
}

.v2-role-tab.is-selected small {
    color: #e5e3ff;
}

.v2-role-tab:focus-visible,
.v2-access-user:focus-visible,
.v2-role-chip button:focus-visible {
    outline: 3px solid rgba(49,131,247,.35);
    outline-offset: 2px;
}

.v2-role-panel {
    min-width: 0;
    padding: 22px;
    border-color: #d5dae8;
    box-shadow: 0 8px 24px rgba(32,45,81,.05);
}

.v2-role-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e4ed;
}

.v2-role-panel-head > div {
    min-width: 0;
}

.v2-role-panel-head h3 {
    margin-top: 3px;
    font-size: 22px;
}

.v2-master-role-card {
    padding: 20px;
    border: 1px solid #c9c4ff;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3f1ff, #f8fbff);
}

.v2-master-role-card ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.v2-master-role-card li {
    padding: 11px;
    border-radius: 11px;
    background: #fff;
    color: #263657;
    font-weight: 750;
}

.v2-master-role-card p {
    margin: 0;
    color: #596784;
}

.v2-permission-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    min-width: 0;
}

.v2-permission-group {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #dfe3ec;
    border-radius: 14px;
    background: #fbfcff;
}

.v2-permission-group legend,
.v2-permission-group > h4 {
    margin: 0;
    padding: 0 6px;
    color: #44506b;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.v2-permission-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.v2-permission-option {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 48px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #e0e4ed;
    border-radius: 10px;
    background: #fff;
    color: #4b5670;
    cursor: pointer;
}

.v2-permission-option.is-enabled {
    border-color: #aaa5f7;
    background: #f2f1ff;
    color: #29255f;
}

.v2-permission-option input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: #5b54eb;
}

.v2-permission-option span,
.v2-permission-option strong,
.v2-permission-option small {
    display: block;
    min-width: 0;
}

.v2-permission-option strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.v2-permission-option small {
    margin-top: 2px;
    color: #6b7690;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.v2-permission-groups.is-read-only ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.v2-permission-groups.is-read-only li {
    padding: 7px 0;
    border-bottom: 1px solid #e5e8ef;
}

.v2-permission-groups.is-read-only li:last-child {
    border-bottom: 0;
}

.v2-permission-groups.is-read-only strong,
.v2-permission-groups.is-read-only small {
    display: block;
}

.v2-permission-groups.is-read-only small {
    color: #687590;
    overflow-wrap: anywhere;
}

.v2-audit-reason {
    margin-top: 15px;
    padding: 14px;
    border: 1px solid #d8ddea;
    border-radius: 13px;
    background: #f7f8fc;
}

.v2-audit-reason label {
    margin-bottom: 7px;
    color: #303a53;
}

.v2-audit-reason textarea,
.v2-access-search input,
.v2-access-workflow select {
    border-color: #bfc7d8;
    background: #fff;
}

.v2-audit-reason p {
    margin: 0;
    color: #66728d;
    font-size: 11px;
}

.v2-role-permission-form > .v2-button {
    align-self: flex-end;
    margin-top: 14px;
}

.v2-button:disabled,
.v2-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .52;
    box-shadow: none;
    transform: none;
}

.v2-access-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    max-width: 760px;
    margin-bottom: 5px;
}

.v2-access-search input {
    min-width: 0;
}

.v2-access-search-help {
    margin: 0 0 15px;
    font-size: 11px;
}

.v2-access-layout {
    display: grid;
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1.6fr);
    align-items: start;
    gap: 16px;
    min-width: 0;
}

.v2-access-results,
.v2-access-user-panel,
.v2-access-user-placeholder {
    min-width: 0;
    padding: 18px;
    border-color: #d6dce9;
    box-shadow: 0 8px 24px rgba(32,45,81,.05);
}

.v2-access-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.v2-access-results-head span {
    color: #5d6a85;
    font-size: 11px;
}

.v2-access-user-list {
    display: flex;
    min-height: 108px;
    flex-direction: column;
    gap: 8px;
}

.v2-access-user-list[aria-busy="true"] {
    opacity: .62;
}

.v2-access-user {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    width: 100%;
    min-height: 78px;
    padding: 11px;
    border: 1px solid #dce1eb;
    border-radius: 12px;
    background: #fff;
    color: #27324b;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color .18s, background .18s, transform .18s;
}

.v2-access-user:hover,
.v2-access-user.is-selected {
    border-color: #736cf1;
    background: #f2f1ff;
    transform: translateY(-1px);
}

.v2-access-user > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.v2-access-user > span:nth-child(2) {
    align-items: flex-end;
}

.v2-access-user strong,
.v2-access-user small,
.v2-access-user em {
    min-width: 0;
    overflow-wrap: anywhere;
}

.v2-access-user small {
    color: #64718c;
    font-size: 10px;
}

.v2-access-user em {
    grid-column: 1 / -1;
    color: #55617b;
    font-size: 10px;
    font-style: normal;
}

.v2-access-search-state {
    display: grid;
    min-height: 108px;
    place-items: center;
    padding: 18px;
    border: 1px dashed #ccd3e1;
    border-radius: 12px;
    color: #5c6983;
    text-align: center;
}

.v2-access-user-panel {
    position: sticky;
    top: 98px;
}

.v2-access-user-panel .v2-card-head p,
.v2-access-user-facts dd {
    overflow-wrap: anywhere;
}

.v2-current-roles,
.v2-access-workflow,
.v2-remove-confirmation {
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid #dfe3ec;
}

.v2-current-roles h4,
.v2-access-workflow h4,
.v2-remove-confirmation h4 {
    margin: 0 0 11px;
}

.v2-role-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v2-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    max-width: 100%;
    padding: 6px 7px 6px 11px;
    border: 1px solid #cfcbea;
    border-radius: 999px;
    background: #f4f2ff;
    color: #38326f;
}

.v2-role-chip strong,
.v2-role-chip small {
    overflow-wrap: anywhere;
}

.v2-role-chip small {
    color: #665f87;
    font-size: 9px;
}

.v2-role-chip button {
    min-height: 28px;
    padding: 4px 9px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #a82f4e;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
}

.v2-no-role {
    margin: 0;
    padding: 11px;
    border-radius: 10px;
    background: #f5f6fa;
    color: #5c6983;
}

.v2-remove-confirmation {
    margin-right: -4px;
    margin-left: -4px;
    padding: 16px;
    border: 1px solid #edb9c7;
    border-radius: 14px;
    background: #fff4f7;
}

.v2-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 12px;
}

.v2-access-user-placeholder {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    color: #5f6b84;
    text-align: center;
}

.v2-access-user-placeholder > span {
    margin-bottom: 8px;
    color: #8d88df;
    font-size: 34px;
}

@media (max-width: 1080px) {
    .v2-role-tabs {
        grid-template-columns: repeat(5, minmax(145px, 1fr));
    }

    .v2-permission-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .v2-access-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .v2-access-user-panel {
        position: static;
    }

    .v2-master-role-card ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .v2-access-section {
        padding: 16px;
        border-radius: 17px;
    }

    .v2-access-section > header {
        gap: 9px;
    }

    .v2-role-tabs {
        grid-template-columns: repeat(5, minmax(132px, 1fr));
        margin-right: -4px;
    }

    .v2-role-panel {
        padding: 16px;
    }

    .v2-role-panel-head {
        flex-direction: column;
    }

    .v2-permission-group {
        padding: 11px;
    }

    .v2-role-permission-form > .v2-button,
    .v2-access-search .v2-button,
    .v2-access-workflow .v2-button {
        width: 100%;
    }

    .v2-access-search {
        grid-template-columns: minmax(0, 1fr);
    }

    .v2-access-user {
        grid-template-columns: minmax(0, 1fr);
    }

    .v2-access-user > span:nth-child(2) {
        align-items: flex-start;
    }

    .v2-access-user em {
        grid-column: auto;
    }

    .v2-access-user-panel .v2-card-head {
        flex-direction: column;
    }

    .v2-role-chip-list {
        flex-direction: column;
    }

    .v2-role-chip {
        width: 100%;
        justify-content: space-between;
        border-radius: 12px;
    }

    .v2-confirm-actions {
        flex-direction: column-reverse;
    }

    .v2-confirm-actions .v2-button {
        width: 100%;
    }
}

/* Automatic order projections preserve the page and all operator forms. */
.v2-order-status { display: inline-flex; flex-direction: column; gap: .35rem; }
.v2-order-status [data-v2-order-note] { max-width: 26rem; color: var(--v2-muted, #657084); font-size: .75rem; line-height: 1.45; }
.v2-order-status [data-v2-order-note]:empty { display: none; }
.v2-order-is-stale [data-v2-order-note] { color: #8a581b; }
.v2-order-refresh-summary { color: var(--v2-muted, #657084); font-size: .85rem; line-height: 1.5; }
.v2-provider-stats-complete { grid-template-columns: repeat(2, minmax(0, 1fr)); }
