// @import url('../../../../gbhost/public/gbstyle/gbcommonstyle.scss');

.modal-header {
  position: sticky;
  top: 0;
  background-color: #fefefe;
  padding: 10px 0;
  z-index: 10;
  border-bottom: 1px solid #ccc;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  justify-content: center;
  background-color: #fefefe;
  margin: auto;
  padding: 21px;
  border: 1px solid #888;
  width: 944px;
  height: 547px;
  margin-top: -94px;
  border-radius: 8px;
  gap: 20px;
}

.closeicon1 {
  width: 935px;
  display: flex;
  justify-content: right;
  cursor: pointer;
  margin-bottom: 20px;
  margin-top: -27px;
}

.titlecontainer {
  width: 896px !important;
  height: 40px !important;
  display: flex;
  justify-content: space-between;
}

.closeicon {
  width: 30px;
  display: flex;
  justify-content: right;
  cursor: pointer;
  margin-bottom: 20px;
  margin-top: -27px;
}

.icons {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
  width: 227px;
  height: 40px;
}

.container {
  width: 896px;
  height: 439px;
  gap: 28px;
  margin-top: -10px;
}

.formbuttons {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FFFFFF;
  margin-right: 20px;
  width: 70px;
  height: 45px;
  border-radius: 8px;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* Save Button */
.save {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
  border-radius: 8px;
  background: #1EAE8A;
  cursor: pointer;
  transition: all 0.3s ease;

  mat-icon {
    color: #ffffff;
    font-size: 20px;
    width: 22px;
    height: 22px;
  }

  &:hover {
    background: #189b7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 174, 138, 0.3);
  }

  &:active {
    transform: translateY(0);
  }
}

/* Delete Button */
.delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #E63946;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;

  mat-icon {
    color: #E63946;
    font-size: 20px;
    width: 20px;
    height: 20px;
  }

  &:hover {
    background: rgba(230, 57, 70, 0.1);
    transform: translateY(-1px);
  }

  &:active {
    transform: translateY(0);
  }
}

/* Add Button (in modal) */
.add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #818181;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;

  mat-icon {
    color: #818181;
    font-size: 20px;
    width: 20px;
    height: 20px;
  }

  &:hover {
    background: rgba(129, 129, 129, 0.1);
    border-color: #666666;
    transform: translateY(-1px);
  }

  &:active {
    transform: translateY(0);
  }
}

.closeicon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 22px;
  margin-left: 5px;

  mat-icon {
    width: 27px;
    height: 27px;
    font-size: 27px;
    color: #666666;
  }

  &:hover {
    transform: scale(1.1);

    mat-icon {
      color: #333333;
    }
  }
}

.modal-content1 {
  justify-content: center;
  background-color: #fefefe;
  margin: auto;
  padding: 0px 20px 20px 20px;
  border: 1px solid #888;
  width: 700px;
  height: 400px;
  margin-top: 20px;
  border-radius: 10px;
}

.section-title {
  color: var(--action-primary-default);
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

.form-section {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 15px;
}

.form-actions {
  margin-top: 20px;
  text-align: right;
}

.defineType {
  color: var(--action-primary-default);
}

.button-container {
  border: 1px solid #b3d4fc;
  background-color: #eaf4fe;
  padding: 30px;
  border-radius: 10px;
  margin-top: 4px;
  width: fit-content;
  margin: 30px auto;
}

.button-box {
  text-align: center;
  margin-bottom: 30px;
}

.description {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.custom-btn {
  background-color: var(--action-primary-default);
  color: white;
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  gap: 2px;
  margin-top: 12px;
}

.action {
  display: flex;
  gap: 16px;
  width: 176px;
  height: 40px;
}

.buttfilter {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0%;
  margin: 0;
  color: #333333;
}

.search-archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 32px;
}

.search-bar-container {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid #ede9fe;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
  width: 100%;
  max-width: 584px;
  height: 32px;
  position: relative;
  padding-right: 12px;
  padding-left: 12px;
  gap: 4px;
  opacity: 1;
}

.PicklistsearchBar {
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'Helvetica';
  color: var(--text-primary) !important;
  width: 100%;
  height: 32px;
  padding-left: 28px; // reduced since container already has padding-left
  border-radius: 20px;
  box-sizing: border-box;
}

.PicklistsearchBar::placeholder {
  color: var(--field-text-placeholder) !important;
  opacity: 1 !important;
  font-weight: 400;
}

.searchIcon {
  position: absolute;
  left: 12px; // matches padding-left of container
  top: 50%;
  transform: translateY(-50%);
  color: var(--button-secondary-text-disabled);
  font-size: 20px;
  pointer-events: none;
  width: 18px;
  height: 18px;
  z-index: 2;
}

.clear {
  float: right;
  position: relative;
  padding-right: 36px;
  padding-bottom: 26px;
  cursor: pointer;
  color: var(--button-secondary-text-disabled);
  width: 18px;
  height: 18px;
  margin-left: 90px !important;
}

.toggle-label {
  font-size: 12px;
  font-weight: 400;
  color: #1a1a1a;
}

.asset-list-container {
  margin-top: 16px;
  width: 100%;
  overflow-x: auto;
}

// :host {
//   .asset-table {
//     border-collapse: separate !important;
//     border-spacing: 0 !important;

//     thead tr th {
//       &:first-child {
//         border-radius: 8px 0 0 8px !important;
//       }

//       &:last-child {
//         border-radius: 0 8px 8px 0 !important;
//       }
//     }
//   }
// }

.asset-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  font-size: 14px;
  border-radius: 6px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  thead tr {
    background-color: var(--action-primary-default);
    color: #fff;

    th {
      padding: 10px 14px;
      text-align: left;
      font-weight: 600;
      white-space: nowrap;

      &:first-child {
        border-radius: 8px 0 0 8px;
      }

      &:last-child {
        border-radius: 0 8px 8px 0;
      }
    }
  }

  tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;

    &:hover {
      background-color: #f5f5f5;
    }

    td {
      padding: 9px 14px;
      color: #333;
      border-bottom: 1px solid #e0e0e0;
    }

    &:nth-child(even) {
      background-color: #fafafa;
    }

    &:last-child td {
      border-bottom: none;
    }
  }
}
.no-data {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-top: 32px;
}