.users .column-aam_application_passwords {
    width: 250px;
}

.aam-ap-cell {
    position: relative;
}

.aam-ap-trigger {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: #1d2327;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.aam-ap-trigger:hover .aam-ap-title {
    color: #2271b1;
}

.aam-ap-trigger:focus {
    outline: none;
    box-shadow: none;
}
.aam-ap-trigger:focus-visible {
    background: #edf5fa;
    border-radius: 3px;
}
.aam-ap-popover a:focus {
    outline: none;
    box-shadow: none;
}
.aam-ap-popover a:focus-visible {
    color: #135e96;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.aam-ap-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.aam-ap-used .aam-ap-indicator,
.aam-ap-dot.is-used {
    background: #00a32a;
}

.aam-ap-unused .aam-ap-indicator,
.aam-ap-dot.is-unused {
    background: #dba617;
}

.aam-ap-empty {
    color: #787c82;
}

.aam-ap-summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.aam-ap-title {
    color: #1d2327;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.aam-ap-used-count {
    color: #787c82;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.aam-ap-subtitle {
    color: #646970;
    font-size: 12px;
    line-height: 16px;
}

.aam-ap-popover {
    position: fixed;
    z-index: 100000;
    box-sizing: border-box;
    width: 340px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    border: 1px solid #c3c4c7;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12), 0 12px 30px rgba(0, 0, 0, .08);
    color: #1d2327;
    font-size: 13px;
}

.aam-ap-popover[hidden] {
    display: none;
}

.aam-ap-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
}

.aam-ap-popover-header strong {
    font-size: 13px;
}

.aam-ap-popover-header a {
    flex-shrink: 0;
}

.aam-ap-popover-list {
    padding: 0 16px 10px;
}

.aam-ap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
}

.aam-ap-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.aam-ap-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2c3338;
}

.aam-ap-item-time {
    flex-shrink: 0;
    color: #646970;
    font-size: 12px;
    white-space: nowrap;
}

.aam-ap-popover-footer {
    padding: 12px 16px;
    border-top: 1px solid #dcdcde;
    color: #646970;
    font-size: 12px;
}

@media (max-width: 782px) {
    .users .column-aam_application_passwords {
        width: auto;
    }

    .aam-ap-popover {
        width: 320px;
    }
}
