.roles-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  margin-bottom: 32px;
}

.role-container-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-left h2 {
  color: #3F4254;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.18px;
  margin: 0;
}

.btn-create-role {
  display: flex;
  padding: 12px 16px;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  background: #3E97FF;
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 14px;
  border: none;
  cursor: pointer;
}

.role-table-container {
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: flex-start;
  align-items: stretch; 
  gap: 10px;
  align-self: stretch;
  position: relative;

  border-radius: 6px;
  border: 1px solid #F1F1F2;
  background: #FFF;
}

.empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-img-grey {
  display: flex;
  width: 121px;
  height: 99px;
  padding-left: 16px;
  justify-content: flex-end;
  align-items: center;
}

.empty-text {
  color: var(--Gray-Gray-600, #7E8299);
  text-align: center;

  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px; 
}

.table-header {
  display: flex;
  height: 40px;
  align-items: center; 
  align-self: stretch;
  background: #F9F9F9;
  position: sticky;
  top: 0;         
  z-index: 10;  
}

.table-header-role {
  display: flex;
  width: 500px;
  padding: 0px 10px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.table-header-members {
  display: flex;
  width: 110px;
  padding: 0px 10px;
  align-items: center;
  align-self: stretch;
}

.table-header-name {
  display: flex;
  width: 400px;
  padding: 0px 10px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.table-header-member-role {
  display: flex;
  width: 160px;
  padding: 0px 10px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.table-header-member-description {
  display: flex;
  padding: 0px 10px;
  align-items: center;
  flex: 1 0 0;
  align-self: stretch;
}

.table-header-action {
  flex: 1;
}


.table-container{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  position: relative;
  width: 100%; 
}

.table-container table {
  width: max-content; 
  min-width: 100%;  
  table-layout: fixed;

}

.table-body-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}


.table-header-cell {
  flex: 1;
  padding: 0 16px;
}

.table-row {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  border-bottom: 1px solid #F1F1F2;
}

.table-cell {
  display: flex;
  padding: 0 16px;
  height: 100%;    
  flex: 0 0 auto;    
  align-items: center;   
  
}

.role-column {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.role-member-column {
  display: flex;
  width: 500px;
  flex-direction: column;
  align-items: flex-start;
}

.role-item {
  display: flex;
  height: 66px;
  padding: 0 10px;
  align-items: center;
  gap: 10px;
  align-self: stretch;
}

.basic-badge {
  display: flex;
  padding: 5px 6px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background: #F1F1F4;
}

.badge-typography {
  color: #FFF;

  font-family: Inter, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 12px;
}

.quotation-badge {
  display: flex;
  padding: 4px 5px;
  align-items: flex-start;
  gap: 4px;
  border-radius: 4px;
  background:  #50CD89;
  }

.role-text {
  color: #4B5675;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 12px;
}


.role-members-column {
  display: flex;
  width: 110px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.role-members-item {
  display: flex;
  height: 66px;
  padding: 0px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
}

.action-cta {
  z-index: 10; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  right: 0px;
  background: #FFF;
  box-shadow: -3px -3px 12px 0px rgba(0, 0, 0, 0.03);
}

.cta-container {
  display: flex;
  height: 40px;
  padding: 0 10px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  background: #F9F9F9;
}

.actions-header {
  color: #4B5675;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px;
}

.action-row {
  display: flex;
  height: 67px;
  padding: 0 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-bottom: 1px solid #F1F1F2;
}

.icon-button {
  display: flex;
  padding: 7px;
  align-items: flex-start;
  gap: 10px;
  border-radius: 6px;
  background: #F1F1F2;
  border: none;        
  outline: none;      
}

.user-column {
  display: flex;
  width: 400px;
  flex-direction: column;
  align-items: flex-start;
}

.user-item {
  display: flex;
  height: 66px;
  padding: 0px 10px;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-bottom: 1px solid #F1F1F2;
}

.user-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.user-name-text {
  color: #181C32;

  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 14px;
}

.user-email-text {
  color: #5E6278;

  font-family: Inter, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 12px;
}

.user-avatar {
  display: flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-role-column {
  display: flex;
  width: 160px;
  flex-direction: column;
  align-items: flex-start;
}


.description-text {
  color: #4B5675;

  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px; 
}

.custom-container {
  display: flex;
  width: 1128px;
  padding: 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;

  border-radius: 16px;
  border: 1px solid #F1F1F2;
  background: #FFF;
}

.custom-container > .card-body {
  width: 100%;    
  flex-grow: 1; 
}

.custom-container > .card-header {
  width: 100%;    
  flex-grow: 1; 
}

.title-container {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  margin-bottom: 32px;
}

.cta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  margin-top: 32px;
}

.title-container h2 {
  color: #181C32;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px; 
  letter-spacing: -0.22px;
  margin: 0; 
}

.input-group-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-self: stretch;
}

.first-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
}

.second-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
}

.input-label-container {
  display: flex;
  align-items: center;
  gap: 2px;
}

.input-label {
  color:#3F4254;

  font-family: Inter, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 14px; 
}

.required-asterisk {
  color: #009EF6;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 14px;
}

.form-control {
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  border: 1px solid #E1E3EA;
  background: #FFF;
  width: 100%;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.delete-button-text{
  color: #F1416C;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
}


.member-input-group-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  align-self: stretch;
}

.member-first-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
}

.member-form-control {
  display: flex;
  height: 48px;
  padding: 17px 15px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 6px;
  border: 1px solid #E1E3EA;
  background: #FFF;
}

.description-input-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  margin-top: 32px;
}

/* Grid layout for roles table only */
.role-table-grid-container {
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: flex-start;
  align-items: stretch; 
  gap: 10px;
  align-self: stretch;
  position: relative;
  border-radius: 6px;
  border: 1px solid #F1F1F2;
  background: #FFF;
}

/* Grid layout for table content when data exists */
.roles-container:first-of-type .role-table-grid-container .table-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  position: relative;
  width: 100%;
  /* Add padding-right to account for action column */
  padding-right: 100px;
}

.roles-container:first-of-type .role-table-grid-container .table-header {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 110px;
  height: 40px;
  align-items: center;
  align-self: stretch;
  background: #F9F9F9;
  position: sticky;
  top: 0;
  z-index: 10;
}

.roles-container:first-of-type .role-table-grid-container .table-body-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.roles-container:first-of-type .role-table-grid-container .table-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 110px;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  border-bottom: 1px solid #F1F1F2;
}

/* Remove fixed widths for grid items */
.roles-container:first-of-type .role-table-grid-container .table-header-role {
  width: auto;
  padding: 0px 10px;
  display: flex;
  align-items: center;
}

.roles-container:first-of-type .role-table-grid-container .table-header-members {
  width: auto;
  padding: 0px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roles-container:first-of-type .role-table-grid-container .role-column {
  width: auto;
  flex: none;
}

/* Tasks tab specific styles */
.table-header-actions {
  display: flex;
  width: 120px;
  padding: 0px 10px;
  align-items: center;
  gap: 10px;
  color: #4B5675;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.actions-column {
  display: flex;
  width: 120px;
  padding: 0px 10px;
  align-items: center;
  gap: 5px;
}

.roles-container:first-of-type .role-table-grid-container .role-members-column {
  width: auto;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}