.hal-kc-access-list {
    border-top: 1px solid #e5e7eb;
    width: 70vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
}

.hal-kc-access-list__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.hal-kc-access-list__title {
    font-weight: 600;
    color: #4b5563;
}

.hal-kc-access-list__count {
    background: #e5e7eb;
    color: #374151;
    border-radius: 9999px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 18px;
}

.hal-kc-access-list__toggle {
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111827;
}

.hal-chevron {
    display: inline-flex;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.hal-chevron svg {
    display: block;
}

.mdi-chevron-down {
    transition: transform 0.2s ease;
}

.hal-kc-access-list__toggle[aria-expanded="false"] .hal-chevron,
.hal-kc-access-item__toggle[aria-expanded="false"] .hal-chevron {
    transform: rotate(180deg);
}

.hal-kc-access-list__toggle[aria-expanded="false"] .mdi-chevron-down,
.hal-kc-access-item__toggle[aria-expanded="false"] .mdi-chevron-down {
    transform: rotate(180deg);
}

.hal-kc-access-item {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin: 8px 0;
}

.hal-kc-access-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.hal-kc-access-item__summary {
    font-size: 12px;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.hal-kc-access-item__summary-line {
    display: flex;
    gap: 6px;
}

.hal-kc-access-item__summary strong {
    color: #111827;
    margin-right: 1px;
}

.hal-kc-field-estrutura {
    display: inline-block;
    width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hal-kc-field-produto {
    display: inline-block;
    width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hal-kc-access-item__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hal-kc-access-item__toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #111827;
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.hal-kc-access-item__remove {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 14px;
    position: absolute;
    right: -18px;
}

.hal-kc-access-item__body {
    padding: 8px 12px;
}

.hal-kc-access-item__profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 12px;
    color: #374151;
    text-transform: capitalize;
}

.hal-kc-access-item__profiles > li {
    box-sizing: border-box;
    flex: 0 1 calc((100% - 32px) / 3);
}

.hal-kc-request-access__actions {
    display: flex;
    justify-content: center;
    padding: 12px;
    gap:12px;
}

.hal-kc-access-item__body.is-collapsed {
    display: none;
}

.hal-kc-access-list__body.is-collapsed {
    display: none;
}

.hal-kc-access-item__summary-line {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: 12px;
  align-items: start;
}

.hal-kc-field-estrutura,
.hal-kc-field-produto {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: auto;
}

.hal-kc-field-setor,
.hal-kc-field-perfis {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: auto;
}

.hal-kc-access-item__summary-line .sep { display: none; }

.hal-kc-access-item__summary strong { margin-right: 4px; }

@media (max-width: 600px) {
  .hal-kc-access-item__summary-line {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .hal-kc-field-setor,
  .hal-kc-field-perfis { grid-column: 1; }
}
