/* Styling for the control (input box) */
.custom-select__control {
  border: solid 1px #e8e6f0 !important;
  padding: 0px 0px 0px 3px !important;
  min-height: 33px !important;
  font-size: 12px !important;
  border-radius: 0px !important;
}

.custom-select__value-container {
  padding: 0px 0px 0px 10px !important;
  font-size: 12px !important;
}

.custom-select__indicators {
  display: none !important;
  font-size: 12px !important;
}

.custom-select__option {
  font-size: 12px !important;
  border: 1px solid #f8f7f7;
}

.select-clear-btn .custom-select__indicators {
  display: flex !important;
  padding: 0;
}
.select-clear-btn .custom-select__dropdown-indicator,
.select-clear-btn .custom-select__indicator-separator {
  display: none !important;
}
.select-clear-btn .custom-select__clear-indicator {
  margin: auto 0;
}
/*Full Width Modal*/

.full-modal-header {
  display: inline-block;
  width: 100%;
  padding: 10px 15px !important;
  border-bottom: none !important;
  background-color: #fff;
  margin-bottom: 10px;
  border-radius: 5px !important;
  text-transform: uppercase;
  font-weight: bold;
  color: #2b2522;
  font-size: 13px !important;
}

.full-modal-body {
  width: 100%;
  padding: 15px 30px 30px 30px !important;
  background-color: #fff;
}

.full-modal-head-items {
  margin-bottom: 5px;
  margin-top: 15px;
  font-size: 14px;
  padding-bottom: 5px;
  color: #333;
  border-bottom: 1px dashed #eee;
  font-family: "Arial";
}

.full-modal-footer {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.save-btn {
  color: #fff;
  background-color: #0300ae;
  border-color: #0300ae;
  border: 1px solid transparent;
  padding: 0.375rem 20px;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  font-family: "Arial";
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.save-btn:disabled {
  background-color: #c0c0e0;
}

.cancel-btn {
  color: #000;
  background-color: #e9e9ed;
  border-color: #e9e9ed;
  border: 1px solid transparent;
  padding: 0.375rem 20px;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  font-family: "Arial";
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/*Radio Button*/

.radio-button {
  width: 16px;
  height: 16px;
  margin: 5px 5px 5px 5px;
  cursor: pointer;
}

.radio-pink {
  accent-color: rgba(255, 4, 89, 0.87);
}

.max-width-900 {
  max-width: 900px !important;
}

.max-width-400 {
  max-width: 400px !important;
}

.fade {
  background-color: rgba(0, 0, 0, 0.24);
}

.modal-grid-body {
  border-bottom: 1px solid #eaecef;
  display: flex;
  width: 100%;
  padding: 0;
}

.modal-grid-body:hover {
  background-color: #f8f9fb;
}

.modal-sl-grid-data {
  padding: 5px 10px;
  font-family: arial;
  color: #000;
  font-size: 12px;
  letter-spacing: 1px;
  word-wrap: break-word; /* Legacy support */
  overflow-wrap: break-word; /* Modern standard */
  white-space: normal;
}

.headings-in-modal {
  font-size: 14px;
  font-weight: bolder;
  text-transform: uppercase;
  padding-bottom: 5px;
  color: #333;
  border-bottom: 1px dashed #eee;
  font-family: "Arial";
}

/*rols and permissions*/
/* .roles-card {
    margin-bottom: 15px;
    border-radius: 5px;
    display: inline-block;
    padding: 0;
    border: 0px solid transparent;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    display: flex;
    padding: .75rem 1.25rem;
    background-color: #FFF;
} */

.roles-card .card {
  border-radius: 5px;
  display: inline-block;
  padding: 0;
  border: 0px solid transparent;
  -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  background-color: #fff;
}

.roles-card .card .list-group {
  font-size: 12px;
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  margin-bottom: -1px;
  background-color: #fff;
}

.roles-card .pull-right {
  float: right;
}

.roles-card .material-switch > input[type="checkbox"] {
  display: none;
}

.roles-card .material-switch > label {
  cursor: pointer;
  height: 0px;
  position: relative;
  width: 40px;
}

.roles-card .label-primary {
  background-color: #47449e;
}

.material-switch > input[type="checkbox"]:checked + label::before {
  background: inherit;
  opacity: 0.5;
}

.material-switch > label::before {
  background: rgb(0, 0, 0);
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  content: "";
  height: 16px;
  margin-top: -8px;
  position: absolute;
  opacity: 0.3;
  transition: all 0.4s ease-in-out;
  width: 40px;
}

.material-switch > input[type="checkbox"]:checked + label::after {
  background: inherit;
  left: 20px;
}

.material-switch > label::after {
  background: rgb(255, 255, 255);
  border-radius: 16px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  content: "";
  height: 24px;
  left: -4px;
  margin-top: -8px;
  position: absolute;
  top: -4px;
  transition: all 0.3s ease-in-out;
  width: 24px;
}

/*View*/
/*fontWeight: '100', fontSize: '14px'*/
/*fontWeight: '600', fontSize: '16px', wordWrap: 'break-word', wordBreak: 'break-word'*/

.view-modal-heading {
  font-size: 16px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: #2b2522 !important;
  font-family: "Arial";
  line-height: 1.5;
}

.view-item {
  font-size: 14px;
  width: 100%;
  font-weight: 600;
  color: #000;
  /* letter-spacing: normal; */
  letter-spacing: 0.5px;
  /* font-family: "Arial"; */
  font-family: "Inter", sans-serif;
  word-break: break-word;
}

/* Alignement Page */

.page-aligne .form-check-input:checked {
  background-color: #0300ae !important;
  border-color: #0300ae !important;
}
.autocomplete-select div {
  display: flex;
  align-items: start;
  justify-content: start;
}

.autocomplete-select div .autocomplete-label {
  display: flex;
  margin-right: 10px;
  font-size: 11px;
  margin-bottom: 0px;
  margin-top: 0px;
  letter-spacing: 1px;
  font-weight: 400;
  color: #333;
  font-family: "Arial";
}

.autocomplete-select div span {
  font-size: 13px;
  font-family: "Arial";
  word-break: break-all;
}

.form-details-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.form-details-container svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.form-details-container .details-data {
  font-size: 15px;
  font-weight: 600;
  margin-left: 5px;
}

.form-conatiner {
  position: fixed;
  top: 70px;
  right: 0;
  height: calc(100% - 70px - 50px);
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  /* transition: width 0.4s ease-in; */
  animation: slideInFromRight 0.4s ease-in forwards;
}

.form-conatiner .form-header {
  background: #dde9f5;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px 4px 0 0;
  position: absolute;
  width: 100%;
  z-index: 100;
}

.form-title {
  color: #5f5e5e;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.view-conatiner {
  position: fixed;
  top: 70px;
  right: 0;
  height: calc(100% - 70px - 50px);
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  /* transition: width 0.4s ease-in; */
  animation: slideInFromRight 0.4s ease-in forwards;
}

.view-conatiner .view-header {
  background: #dde9f5;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px 4px 0 0;
  position: absolute;
  width: 100%;
  z-index: 100;
}

.view-title {
  color: #5f5e5e;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.3px;
  word-break: break-all;
}

.view-conatiner .view-content {
  padding: 90px 20px 20px 20px;
  height: 100%;
  overflow: auto;
}

.close-btn {
  background: rgb(38 60 123 / 25%);
  border: none;
  color: #ffffff;
  font-size: 28px;
  min-width: 32px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.close-btn:hover {
  background: rgb(23 65 129 / 49%);
  transform: scale(1.05);
}

.form-conatiner .form-content {
  padding: 90px 20px 70px 20px;
  height: 100%;
  overflow: auto;
}

.form-conatiner .form-button {
  position: absolute;
  bottom: 0;
  display: flex;
  padding: 20px;
  width: 100%;
  justify-content: end;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

.form-show-password {
  position: absolute;
  right: 12px;
  fill: var(--primary);
  width: 20px;
  height: 20px;
  cursor: pointer;
  top: calc(50% - 10px);
}

.form-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0300ae;
  border-radius: 50%;
  cursor: pointer;
  margin: 5px;
}

.form-plus svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.form-row-delete svg {
  width: 20px;
  height: 20px;
  stroke: red;
  cursor: pointer;
}

.label .label-content {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.label .label-content .plus-icon {
  transition: all 0.15s ease;
  cursor: pointer;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem;
  background-color: #e6e2e2;
  border-radius: 50%;
  /* margin-bottom: 3px; */
}

.label .label-content .plus-icon:hover {
  opacity: 1;
  background-color: #ddd;
  color: blue;
  transform: scale(1.05);
}
.label .label-content .plus-icon svg {
  width: 0.938rem;
  height: 0.938rem;
  stroke: blue;
  stroke-width: 3;
}

@media (min-width: 1020px) and (max-width: 1300px) {
  .form-conatiner {
    top: 130px;
    height: calc(100% - 70px - 110px);
  }
}

/* form destils view */

.form-details-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e9e9e9;
}

.form-details-card .details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.form-details-card .detail-item {
  display: flex;
  gap: 12px;
}

.form-details-card .icon-wrapper {
  background: #f5f5f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px 10px;
  height: 35px;
  width: 35px;
}

.form-details-card .icon-wrapper svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
}

.form-details-card .detail-content {
  flex: 1;
  padding-top: 2px;
}

.form-details-card .detail-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-details-card .detail-value {
  font-size: 12px;
  color: #1e293b;
  font-weight: 500;
  letter-spacing: 0.6px;
  word-break: break-all;
}

/* form view grid */

.form-inside-grid {
  overflow: auto;
  margin: 1rem 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-inside-grid .form-inside-grid-header {
  display: flex;
  color: #000;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  padding: 0;
  background-color: #dce9f5;
}

.form-inside-grid .form-inside-grid-header .sl-no {
  background-color: #dce9f5;
  padding: 10px 4px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-inside-grid .form-inside-grid-header .form-inside-grid-header-name {
  background-color: #dce9f5;
  padding: 10px 4px;
  margin-bottom: 0;
}

.form-inside-grid .form-inside-grid-content .sl-no {
  padding: 10px 4px;
  /* height: 100%; */
  word-break: break-all;
  overflow-wrap: break-word;
  /* height: 100%; */
  color: #000;
  text-align: center;
  min-height: 34px;
  font-size: 12px;
}

.form-inside-grid .form-inside-grid-content .form-inside-grid-content-name {
  /* width: 100%; */
  padding: 10px 4px;
  font-size: 14px;
  color: #000;
  min-height: 34px;
  overflow-wrap: break-word;
  word-break: break-all;
}

.form-inside-grid .form-inside-grid-content .form-inside-grid-content-input {
  padding: 10px 4px;
  min-height: 34px;
}

.form-inside-grid-header-sticky-option {
  position: sticky;
  right: 0;
  border-left: 1px solid #ddd;
  background-color: #dce9f5;
}

.form-inside-grid-content-sticky-option {
  position: sticky;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-left: 1px solid #ddd;
  padding: 10px 4px;
}

.form-inside-grid .form-inside-grid-bottom {
  display: flex;
  text-transform: uppercase;
  padding: 0;
}

.book-now-btn {
  color: #10b981;
  background-color: transparent;
  border: 2px solid #10b981;
  font-weight: 600;
  font-size: 11px;
  border-radius: 8px;
  padding: 4px 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.book-now-btn:hover {
  background-color: #10b981;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.book-now-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}

/* .map-radio-btn {
  border-color: #cbd5e0;
  font-size: 13px;
  align-items: center;
  padding: 5px;
  margin-left: 10px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafbfc;
  letter-spacing: 0.5px;
  word-break: break-all;
} */

.map-radio-btn {
  font-size: 13px;
  align-items: center;
  margin-left: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafbfc;
  letter-spacing: 0.5px;
  word-break: break-all;
}

/* grid form */
.form-grid-single {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.form-grid-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.form-field-small {
  grid-column: span 1;
  min-width: 100px;
  max-width: 150px;
}

.form-content .form-card-container {
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-content .form-card-container .form-card-header {
  margin: 0px 25px;
  background-color: #f1f5f9;
  color: #64748b;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.form-content .form-card-container .form-card-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.form-content .form-card-container .form-card-content {
  padding: 1.25rem 1.25rem;
  background-color: #f1f5f9;
}

.form-content .form-card-container .form-card-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0px 16px;
  margin-bottom: 1rem;
}

.form-content .form-card-container .form-card-field:last-child {
  margin-bottom: 0;
}

.form-content .form-card-container .form-card-label {
  font-weight: 600;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-content .form-card-container .form-card-value {
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
}

.slide-bottom-to-top-animation {
  animation: slideBottomToTopAnimation 0.2s ease-out 0.2s both;
}

@keyframes slideBottomToTopAnimation {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* custom card in reference lab form of lab bill*/

.form-custom-card {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-custom-card-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.form-custom-card-icon {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
  margin-right: 12px;
}

.form-custom-card-title-group {
  flex: 1;
}

.form-custom-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin: 0 0 4px 0;
}

.form-custom-card-subtitle {
  font-size: 13px;
  color: #1a1a1a;
  margin: 0;
  word-break: break-all;
}

.form-custom-card-body {
  margin-bottom: 10px;
}

.form-custom-card-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.form-custom-card-button {
  width: 100%;
  padding: 8px;
  background: #5b6ef5;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.form-custom-card-button:hover {
  background: #4c5ee6;
}

.form-custom-card-button:active {
  background: #3d4dd7;
}
.form-update-btn {
  background: linear-gradient(135deg, #4e8cff, #1b47d1);
  color: #fff;
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.form-update-btn:hover {
  background: linear-gradient(135deg, #1b47d1, #4e8cff);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.latest-responsive-form-container {
  padding: 20px;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
}

.latest-responsive-form-card {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e3e3e3;
}

.latest-responsive-form-label-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  display: inline-block;
  font-family: "Arial";
  width: 100%;
  font-size: 11px;
  margin-bottom: 0px;
  margin-top: 0px;
  letter-spacing: 1px;
  font-weight: 400;
}

.latest-responsive-form-input-group {
  position: relative;
  margin-bottom: 15px;
}

.latest-responsive-form-input {
  width: 100%;
  padding: 8px 40px 8px 12px;
  border: 1px solid #e8e6f0;
  border-radius: 4px;
  font-size: 13px;
}

.latest-responsive-form-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.latest-responsive-form-details-grid {
  border: 1px dashed #e3e3e3;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.latest-responsive-form-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed #ddd;
  background-color: #fbfbfbdd;
  padding: 12px;
  border-radius: 12px;
}

.latest-responsive-form-detail-text {
  font-size: 14px;
  font-weight: 600;
  color: #5d5d5d;
}

.latest-responsive-form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .latest-responsive-form-grid-2col {
    grid-template-columns: 1fr;
  }
}

.latest-responsive-form-section {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.latest-responsive-form-section-header {
  background: #dde9f5;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5f5e5e;
}

.latest-responsive-form-section-body {
  padding: 12px;
}

.latest-responsive-form-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 0px;
}

.latest-responsive-form-grid-auto-custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, 150px);
  gap: 8px;
  margin-bottom: 0px;
  justify-content: start;
}

.latest-responsive-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.latest-responsive-form-label {
  color: #333;
  display: inline-block;
  font-family: "Arial";
  width: 100%;
  font-size: 11px;
  margin-bottom: 0px;
  margin-top: 0px;
  letter-spacing: 1px;
  font-weight: 400;
}

.latest-responsive-form-control,
.latest-responsive-form-select {
  padding: 8px 12px;
  border: 1px solid #e8e6f0;
  border-radius: 4px;
  font-size: 12px;
  font-family: Arial, sans-serif;
}

.latest-responsive-form-select {
  background: #fff;
  cursor: pointer;
}

.latest-responsive-form-radio-wrapper {
  margin-top: 8px;
}

.latest-responsive-form-radio-title {
  color: #333;
  display: inline-block;
  font-family: "Arial";
  width: 100%;
  font-size: 11px;
  margin-bottom: 0px;
  margin-top: 0px;
  letter-spacing: 1px;
  font-weight: 400;
}

.latest-responsive-form-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.latest-responsive-form-radio-label {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.2s;
}

.latest-responsive-form-radio-label:hover {
  background: #f0f4f8;
  border-color: #cbd5e0;
}

.latest-responsive-form-radio {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  accent-color: #0300ae;
  cursor: pointer;
}

.latest-responsive-form-radio-text {
  font-size: 13px;
  letter-spacing: 0.3px;
  color: #333;
}

.latest-responsive-form-table {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.latest-responsive-form-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background: #dce9f5;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #000;
}

.latest-responsive-form-table-th {
  padding: 12px 8px;
  border-right: 1px solid #cbd5e0;
}

.latest-responsive-form-table-th:last-child {
  border-right: none;
  text-align: center;
}

.latest-responsive-form-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  border-top: 1px solid #ddd;
}

.latest-responsive-form-table-cell {
  padding: 12px 8px;
  font-size: 13px;
  color: #000;
  border-right: 1px solid #e2e8f0;
}

.latest-responsive-form-table-cell:last-child {
  border-right: none;
  text-align: center;
}

.latest-responsive-form-payment-group {
  display: grid;
  gap: 16px;
}

.latest-responsive-form-payment-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
}

.latest-responsive-form-payment-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: right;
}

.latest-responsive-form-payment-input,
.latest-responsive-form-payment-select {
  padding: 8px 12px;
  border: 1px solid #e8e6f0;
  border-radius: 4px;
  font-size: 12px;
  font-family: Arial, sans-serif;
  max-width: 250px;
}

.latest-responsive-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.latest-responsive-form-btn-primary {
  color: #fff;
  background-color: #0300ae;
  border: 1px solid #0300ae;
  padding: 8px 24px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.latest-responsive-form-btn-primary:hover {
  background-color: #0200a0;
}

.latest-responsive-form-btn-secondary {
  color: #000;
  background-color: #e9e9ed;
  border: 1px solid #e9e9ed;
  padding: 8px 24px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.latest-responsive-form-btn-secondary:hover {
  background-color: #dadade;
}
.permission-scroll {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Modern Permission Management Styles */
/* Modern Permission Management Styles */

/* Search Section */
.permission-search-wrapper {
  text-align: center;
  margin: 5px 0 20px 0;
}

.permission-search-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.permission-search-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  pointer-events: none;
}

.permission-search-icon svg {
  width: 20px;
  height: 20px;
}

.permission-search-input {
  width: 100%;
  padding: 10px 40px 10px 42px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #1f2937;
  background: #f9fafb;
  transition: all 0.2s;
  font-family: "Arial", sans-serif;
}

.permission-search-input:focus {
  outline: none;
  border-color: #0300ae;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(3, 0, 174, 0.1);
}

.permission-search-input::placeholder {
  color: #9ca3af;
}

.permission-search-clear {
  position: absolute;
  right: 10px;
  background: #e5e7eb;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  padding: 0;
}

.permission-search-clear:hover {
  background: #d1d5db;
}
.permission-search-clear svg {
  width: 18px;
  height: 18px;
}

/* Group Section */
.permission-group-section {
  margin-bottom: 24px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.permission-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
  margin-left: 0 !important;
}

.permission-group-icon {
  color: #0300ae;
  flex-shrink: 0;
}
.permission-group-icon svg {
  width: 20px;
  height: 20px;
}

.permission-group-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.permission-group-count {
  font-size: 12px;
  font-weight: 600;
  color: #0300ae;
  background: #eff0ff;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Flexbox Grid Layout - Replaces Bootstrap Columns */
.permission-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0 !important;
}

.permission-card-wrapper {
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 350px;
}

/* Permission Cards */
.permission-card-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s;
  height: 100%;
  min-height: 60px;
}

.permission-card-modern:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.permission-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.permission-status-icon {
  color: #d1d5db;
  flex-shrink: 0;
  transition: all 0.2s;
  align-self: flex-start;
  margin-top: 2px;
}
.permission-status-icon svg {
  width: 18px;
  height: 18px;
}

.permission-status-icon.active {
  color: #10b981;
}

.permission-name-modern {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
  font-family: "Arial", sans-serif;
  /* Display full text - no truncation */
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Modern Toggle Switch - Extra Small Version */
.modern-toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 2px;
}

.modern-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.modern-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e5e7eb;
  border-radius: 20px;
  transition: all 0.3s;
}

.modern-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.modern-toggle-switch input:checked + .modern-toggle-slider {
  background: #0300ae;
}

.modern-toggle-switch input:checked + .modern-toggle-slider:before {
  transform: translateX(16px);
}

.modern-toggle-switch:hover .modern-toggle-slider {
  background: #d1d5db;
}

.modern-toggle-switch input:checked:hover + .modern-toggle-slider {
  background: #0200a0;
}

/* No Results State */
.permission-no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results-icon {
  color: #d1d5db;
  margin: 0 auto 16px;
  display: block;
}

.no-results-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.no-results-text {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* Override old styles if they conflict */
.permission-card-col .roles-card {
  margin-bottom: 0;
}

.permission-card-col .roles-card .card {
  border: none;
  box-shadow: none;
  background: transparent;
}

.permission-card-col .roles-card .card .list-group {
  padding: 0;
}

.permission-card-col .roles-card .card .list-group-item {
  padding: 0;
  border: none;
  background: transparent;
}

/* Appointment Type */

.appointment-type-wrapper {
  margin-top: 10px;
}

/* Search Box */
.appointment-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin: 8px 0 12px;
  background: #fff;
  border: 1px solid #e8e6f0;
  border-radius: 6px;
  padding: 0 12px;
  height: 38px;
}

.appointment-search-box svg {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  flex-shrink: 0;
}

.appointment-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 13px;
  font-family: "Arial";
  background: transparent;
}

.appointment-search-box input::placeholder {
  color: #9ca3af;
}

.appointment-search-box button {
  background: #e5e7eb;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.appointment-search-box button:hover {
  background: #d1d5db;
}

.appointment-search-box button svg {
  width: 12px;
  height: 12px;
  color: #6b7280;
}

/* Options Container */
.appointment-options {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  min-height: 260px;
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  align-content: start;
}

/* Scrollbar */
.appointment-options::-webkit-scrollbar {
  width: 5px;
}

.appointment-options::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

/* Individual Option */
.appointment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
}

.appointment-option:hover {
  border-color: #cbd5e0;
  background: #fafbfc;
}

.appointment-option:has(input:checked) {
  background: #eff0ff;
  border-color: #0300ae;
}

.appointment-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0300ae;
  cursor: pointer;
  flex-shrink: 0;
}

.appointment-option span {
  font-size: 13px;
  color: #374151;
  font-family: "Arial";
  word-break: break-word;
  line-height: 1.3;
}

.appointment-option:has(input:checked) span {
  color: #0300ae;
  font-weight: 600;
}

/* No Results */
.appointment-no-result {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 8px;
  color: #9ca3af;
}

.appointment-no-result svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

.appointment-no-result span {
  font-size: 13px;
  color: #6b7280;
  font-family: "Arial";
}

/* Responsive */
@media (max-width: 768px) {
  .appointment-options {
    grid-template-columns: 1fr;
    min-height: 220px;
    max-height: 220px;
  }
}

/* loader for autocomplete */

.autocomplete-loader {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0300ad;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Optional: Add a subtle background to the input when loading */
.input-box:disabled {
  background-color: #f9f9f9;
  cursor: not-allowed;
}

/* new  */

/* Two-column layout for billing form */
.two-section-form-container {
  display: grid;
  grid-template-columns: minmax(300px, 35%) 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.two-section-form-left-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.two-section-form-right-section {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevents grid blowout */
}

.two-section-form-left-section .form-field {
  width: 100%;
  /* max-width: 100% !important;
  min-width: 100% !important; */
}

/* Responsive: Stack vertically on small screens */
@media (max-width: 1200px) {
  .two-section-form-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Items section heading */
.two-section-items-heading {
  margin-bottom: 8px;
  font-size: 14px;
  padding-bottom: 5px;
  color: #333;
  border-bottom: 1px dashed #eee;
  font-family: "Arial";
}

.form-field-equal-space {
  flex: 1 1 150px; /* Default: grow equally */
  min-width: 150px;
  max-width: 250px;
}

.form-field-fixed-width {
  flex: 0 0 250px; /* Don't grow, fixed 250px */
  max-width: 250px;
  min-width: 250px;
}
