/* CONTAINER */
.container,
.Monthlyattendancecontainer {
  padding: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADINGS */
h2 {
  color: #333;
  margin-bottom: 12px;
  font-size: 16px;
}

h3 {
  color: #555;
  margin-bottom: 10px;
  font-size: 14px;
}

/* COLUMN TOGGLE SECTION */
.column-toggle-section {
  margin-bottom: 16px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 6px;
}

/* TOGGLE BUTTONS */
.toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  min-height: 30px;
  line-height: 1;
  text-transform: none;
}

/* ICON SIZE SMALL */
mat-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* TABLE CONTAINER */
.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 6px;
}

/* TABLE */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.FilterBtn {
  // display: flex;
  // align-items: center;
  // padding: 6px 16px;
  // font-weight: bold;
  // border-radius: 4px;
  // background-color: #6E3AB6;
  // color:white;

  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  width: 120px;
  height: 40px;
  border: 1px solid #818181;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  background-color: var(--action-primary-default);
  color: #ffffff;
  border: none;
  box-shadow: -1px 2px 2px 0px #00000026;
  font-weight: 600;
}
/* HEADER */
.custom-table thead tr {
  background: linear-gradient(90deg, #6a1b9a, #8e24aa);
}

.custom-table th {
  color: #ffffff;
  font-weight: 600;
  padding: 8px 10px;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}

/* BODY */
.custom-table td {
  padding: 6px 10px;
  color: #333;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

/* ROW HOVER */
.custom-table tbody tr:hover {
  background-color: #f3f3f3;
}

/* OPTIONAL ROUNDED HEADER */
.custom-table thead tr:first-child th:first-child {
  border-top-left-radius: 6px;
}

.custom-table thead tr:first-child th:last-child {
  border-top-right-radius: 6px;
}

.but {
  width: 80px;
  /* Adjusted width to fit the icon and text */
  height: 40px;
  border: 1px solid var(--action-primary-default);
  /* Red border */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  /* Padding for better spacing */ /* Background color for visibility */
  cursor: pointer;
  /* Pointer cursor on hover */
  display: flex;
  align-items: center;
  padding-left: 20px;
  border-radius: 6px;
  background-color: var(--action-primary-default);
}

.filter-container {
  display: flex;
  align-items: center;
}

.savebut {
  padding-left: 50px;
}

.filter-container span {
  margin-right: 10px;
  /* Adjust spacing as needed */
  font-size: 15px;
  color: rgba(26, 26, 26, 0.87);
}

.filtericon {
  width: 20px;
  height: 30px;
  margin-right: 5px;
  color: #6e3ab6;
  font-size: 24px;
  right: 2px;
}

.buttonsfilter {
  color: #ffffff;
  font-family: 'Helvetica';
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px;
  text-align: right;
  padding-right: 16px;
}

.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: 20px 20px 20px 20px;
  border: 1px solid #888;
  width: 900px;
  height: 420px;
  border-radius: 10px;
  overflow: auto;
}

.closeicon {
  display: flex;
  justify-content: right;
  cursor: pointer;
  margin-top: -30px;
  color: rgba(26, 26, 26, 0.87);
  font-family: 'Helvetica';
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  text-align: right;
}

.buttfilter {
  color: rgba(26, 26, 26, 0.87);
  font-family: 'Helvetica';
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 21px;
  text-align: left;
  padding-right: 16px;
}

.save-button {
  cursor: pointer;
  margin-right: 30px;
  margin-bottom: 10px;
  display: inline-flex;
  justify-content: center;
  align-content: center;
  box-shadow: 0px 2px 2px 0px #28b62f0f;
  border-radius: 6px;
  padding-top: 7px;
  color: #ffffff;
  width: 120px;
  height: 32px;
  background-color: #1bc115;
  font-family: Helvetica;
  font-size: 12px;
  font-weight: 500;
  line-height: 19px;
}

.LightboxShift {
  display: none;
  position: fixed;
  z-index: 999999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.LightboxShift-content {
  justify-content: center;
  background-color: #fefefe;
  margin: auto;
  padding: 10px 10px 10px 10px;
  border: 1px solid #888;
  width: 780px;
  height: 420px;
  border-radius: 10px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  /* h1 on the left, icon on the right */
  align-items: center;
  /* vertically center the content */
}

.lightcloseicon {
  cursor: pointer;
  padding-left: 10px;
}

@media (max-width: 1024px) {
  :host ::ng-deep .container,
  :host ::ng-deep .Monthlyattendancecontainer,
  :host ::ng-deep .FormOverView {
    max-width: 100vw !important;
    overflow-x: hidden;
  }

  :host ::ng-deep .adjacentField {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    box-sizing: border-box;
  }

  :host ::ng-deep gb-newpicklist[formcontrolname='PayConfigurationName'] {
    display: block !important;
    width: 70% !important;
    max-width: 280px !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
  }

  :host ::ng-deep gb-newpicklist[formcontrolname='PayConfigurationName'] > *,
  :host ::ng-deep gb-newpicklist[formcontrolname='PayConfigurationName'] .mat-form-field,
  :host ::ng-deep gb-newpicklist[formcontrolname='PayConfigurationName'] .mat-form-field-wrapper,
  :host ::ng-deep gb-newpicklist[formcontrolname='PayConfigurationName'] .mat-form-field-flex,
  :host ::ng-deep gb-newpicklist[formcontrolname='PayConfigurationName'] .mat-select,
  :host ::ng-deep gb-newpicklist[formcontrolname='PayConfigurationName'] input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  :host ::ng-deep .recordsdiv {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 8px;
  }

  :host ::ng-deep .recordsdiv span {
    width: auto !important;
  }

  :host ::ng-deep .FilterBtn {
    width: auto !important;
    padding: 0 20px !important;
    margin-right: 0 !important;
    margin-bottom: 8px;
    box-sizing: border-box;
  }

  :host ::ng-deep .table-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  :host ::ng-deep .custom-table {
    width: max-content;
    min-width: 100%;
  }

  :host ::ng-deep .modal-content {
    width: 94vw !important;
    max-width: 94vw !important;
    height: auto !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px !important;
    margin-top: 40px !important;
  }

  :host ::ng-deep .modal-content > div[style*='display: flex'] {
    flex-direction: column !important;
  }

  :host ::ng-deep .modal-content > div[style*='display: flex'] > div {
    margin-right: 0 !important;
    width: 100% !important;
  }

  :host ::ng-deep .savebut {
    padding-left: 0 !important;
    text-align: center;
  }

  :host ::ng-deep .save-button {
    width: 100% !important;
    margin-right: 0 !important;
  }

  :host ::ng-deep .buttfilter,
  :host ::ng-deep .closeicon {
    font-size: 13px;
  }

  :host ::ng-deep .toggle-buttons {
    flex-direction: column;
  }

  :host ::ng-deep .toggle-btn {
    width: 100%;
    justify-content: center;
  }

  :host ::ng-deep .FormOverView > gb-newpicklist:first-of-type .mat-mdc-text-field-wrapper {
    width: 70% !important;
    max-width: 260px !important;
  }

  :host ::ng-deep .FormOverView > gb-newpicklist:first-of-type .mat-mdc-form-field-flex {
    width: 100% !important;
  }
}
