#bx-panel{
  z-index: 2000 !important;
}

.hide{
  display: none !important;
}

.bg-not{
  box-shadow: none;
  background: #ffffff00;
}

.input-lg input{
  width: 2em;
  height: 2em;
}
.input-lg label{
  line-height: 2em;
  margin-left: 10px;
}

.header__btn-drive{
  width: 100% !important;
  max-width: 245px;
}

.header__select{
  background: #E8E7FD !important;
  color: #8F85F3 !important;
  border: var(--bs-border-width) solid #d1d0d4 !important;
  font-size: 18px;
  cursor: pointer;
}

.select2-container--default .select2-selection--single.header__select {
    background: #E8E7FD !important;
    color: #8F85F3 !important;
    border: var(--bs-border-width) solid #d1d0d4 !important;
    font-size: 18px;
    cursor: pointer;
}
.select2-container--default .select2-selection--single.header__select .select2-selection__rendered {
  color: #8F85F3 !important;
  margin-top: 3px;
  padding-right: 3.0875rem;
}

.select2-container--default .select2-selection--single.header__select .select2-selection__arrow {
    margin-top: 2px;
}

/* обычное состояние */
.select2-container--default .select2-selection--single.header__select .select2-selection__rendered {
  color: #8F85F3 !important;
  margin-top: 3px;
  padding-right: 3.0875rem !important; /* твой отступ */
}

/* когда фокус или выпадашка открыта – только для header__select */
.light-style .select2-container--default.select2-container--focus 
.select2-selection--single.header__select .select2-selection__rendered,
.light-style .select2-container--default.select2-container--open 
.select2-selection--single.header__select .select2-selection__rendered {
  padding-right: 3.0875rem !important;
}

.elementDelete:not(.btn-danger){
  cursor: pointer;
  color: #FF4B51;
}
.elementEdit, .payEdit {
  cursor: pointer;
  color: blue;
}

.payRefund {
  cursor: pointer;
  color: red;
}

.copyInBuffer {
  cursor: pointer;
  color: green;
}

.modal-add-pay {
  max-width: 700px;
}

#formPay {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blockBtnPay, .block-btn-pay {
      display: flex;
      gap: 10px;
}

.block-btn-pay {
  justify-content: center;
}

.package-edit-btns {
      display: flex;
      gap: 10px;
}

.dt__top, .dt__bottom {
  display: flex;
  justify-content: space-between;
  margin: 0 24px;
}

.card-header{
  font-size: 24px;
  color: #444050;
}

.card button.btn{
  /* width: 204px; */
  font-size: 18px;
  font-weight: 400;
}

.tabs button, .payChange{
  background: #E8E7FD;
  color: #8F85F3;
  border: #E8E7FD;
  margin-bottom: 10px;
}
.tabs button.active, .payChange.active{
  background: #7367f0;
}

.tabs-calendar{
  display: flex;
  justify-content: space-between;
}
.tabs-calendar div{
  cursor: pointer;
  color: #ACAAB1;
}
.tabs-calendar div.active{
  color: #444050;
}

.tab-block,
.tabs-calendar-slots{
  display: none;
}
.tab-block.active{
  display: flex;
}
.tabs-calendar-slots.active{
  display: block;
}

.light-style .select2-container--default .select2-results__option[aria-disabled=true]{
  color: #ccc;
}

.schedule_type{
  display: none;
}
.schedule_type.active{
  display: flex;
}
.blockScheduleAdd{
  display: none;
}

.select2-container--default .select2-results__option[aria-disabled=true]{
  display: none;
}

.datepicker table tr td.recorded{
  background: #7367f0 !important;
  color: #fff !important;
  box-shadow: 0 0.125rem 0.375rem 0 rgba(115, 103, 240, 0.3);
}
.datepicker table tr td.recorded.active{
  background: none !important;
  border: none;
  color: red !important;
  box-shadow: none;
}

.calendar-title{
  padding: 32px 34px;
  border-bottom: 1px solid #e6e6e8;
  display: flex;
}
.calendar-title h5{
  font-size: 24px;
  margin-right: 60px;
}

/* запись на вождение */
.block__select-time h6{
  font-size: 16px;
  font-weight: 400;
}
.block__select-time .block__nearest-time{
  color: #444050;
  margin: 0 -10px 0;
}
.block__select-time .block__nearest-time div,
.tabs-calendar-slots div{
  display: inline-block;
  margin: 10px;
  text-align: center;
  width: 140px;
  background-color: #F8F7FA;
  padding: 14px 0;
  border-radius: 8px;
  cursor: pointer;
}
.block__select-time .block__nearest-time div.active,
.tabs-calendar-slots div.active{
  background-color: #7367f0;
  color: #fff;
  box-shadow: 0 0.125rem 0.375rem 0 rgba(115, 103, 240, 0.3);
}

#calendarDriving .datepicker-inline,
#calendarDriving .datepicker-inline table{
  width: 100%;
}

.for_additional{
  display: none;
}

@media (max-width: 768px) {
  .dt__top, .dt__bottom{
    display: block;
  }
  .card button{
    width: 100%;
  }
}

/* Модальное окно редактирования пользователя */
.modal-edit-user .modal-content {
  width: auto;
  max-width: 900px;
}

.modal-edit-user-content {
  padding: 1.5rem;
}

/* Шапка профиля */
.user-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.user-profile-main {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 132px;
  height: 132px;
  background-color: #F8F7FA;
  border-radius: 6px;
  padding: 36px;
}

.user-avatar img {
  width: 100%;
  height: auto;
}

.user-info {
  margin-left: 1.125rem;
  align-self: center;
}

.user-info-label {
  color: #6D6B77;
}

.user-info-name {
  color: #444050;
  font-size: 1rem;
  margin: 0.5rem 0 1rem;
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: 0.75rem;
}

.user-actions .btn {
  white-space: nowrap;
}

/* Основная информация - переделана на flex */
.user-main-info {
  margin-bottom: 1.5rem;
  width: 100%;
  overflow-x: auto; /* На случай очень маленьких экранов */
}

.info-container {
  display: flex;
  flex-direction: column;
  min-width: fit-content; /* Чтобы не сжималось меньше контента */
}

.info-row {
  display: flex;
  padding: 0.5rem 0;
  align-items: center;
  min-width: 100%;
}

.info-row .info-label:first-child,
.info-row .info-value:first-child{
  padding-left: 0;
}

.info-row .info-label:last-child,
.info-row .info-value:last-child{
  padding-right: 0;
}

.info-label, .info-value {
  width: 100%;
  min-width: 0; /* Для правильной работы text-overflow */
  padding: 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-label {
  color: #6D6B77;
  font-weight: normal;
}

.info-value {
  color: #444050;
  font-weight: 400;
}

/* Место учебы */
.user-location {
  margin-bottom: 2rem;
}

.location-label {
  color: #6D6B77;
}

.location-value {
  color: #444050;
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* График вождений */
.driving-schedule {
  margin-top: 2rem;
}

.driving-schedule .card-header {
  color: #444050;
  font-weight: 500;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.driving-table th {
  color: #444050;
  font-weight: 500;
  white-space: nowrap;
}

.driving-table td {
  color: #6D6B77;
  white-space: nowrap;
}

.driving-table th,
.driving-table td {
  flex: 1;
  min-width: 0; /* Важно для правильной работы text-overflow */
  padding: 0.75rem 1rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Адаптивность */
@media (max-width: 992px) {
  .user-profile-header {
    flex-direction: column;
    gap: 1rem;
  }

  /* Для узких экранов делаем таблицу в 2 строки */
  .info-container {
    display: block;
  }

  .info-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-row.values {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .info-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-actions {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .info-row {
    grid-template-columns: 1fr;
  }

  .user-profile-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-info {
    margin-left: 0;
    margin-top: 1rem;
  }

  .modal-edit-user-content {
    padding: 1rem;
  }
}

.card-title span{
  font-weight: 400;
  color: #6D6B77;
}

.userPackages{
  margin-bottom: 1.5rem;
}

.userPackages:hover,
.userAdditional:hover{
  border-color: #7367f0;
  box-shadow: 0 0.125rem 0.375rem 0 rgba(115, 103, 240, 0.3);
}

.btn-uch-block {
  position: absolute;
  right: 50px;
}

.btnRefund{
  /* margin-right: 10px; */
}

.btnShop{

}

.swal2-actions-reverse {
  flex-direction: row-reverse;
}

.type-additional{
  display: none;
}

.blockInstallments input{
  width: 49%;
  margin-bottom: 10px;
  display: inline-block;
}

/* оплата в учениках */
#form-payment .bs-stepper{
  box-shadow: none;
}
#form-payment .bs-stepper .bs-stepper-header,
#form-payment .bs-stepper .bs-stepper-content{
  padding-left: 0;
  padding-right: 0;
}
#form-payment .bs-stepper .bs-stepper-content{
  padding-bottom: 0;
}

.avatar-initial img{
  width: 32px;
  height: 32px;
}

.tuition-fee{
  background: #ECEBEF;
  padding: 15px;
  font-weight: 400;
  font-size: 16px;
  line-height: 32px;
  border-radius: 6px;
}
.tuition-fee p{
  margin-bottom: 0;
}
.tuition-fee p:last-child{
  font-size: 24px;
  font-weight: bold;
}
.tuition-fee p:last-child span{
  font-size: 20px;
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 10px;
}
.type-package .blockInInstallments{
  display: none;
}
.blockInInstallments .form-check{
  border: 1px solid #D1D0D4;
  border-radius: 6px;
  margin-right: 10px;
  padding: 5px 10px 5px 35px;
}

.tabler-link{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 15l6-6m-4-3l.463-.536a5 5 0 0 1 7.071 7.072L18 13m-5 5l-.397.534a5.07 5.07 0 0 1-7.127 0a4.97 4.97 0 0 1 0-7.071L6 11'/%3E%3C/svg%3E");
  width: 21px;
  height: 22px;
}

#formPay{
  margin-left: -20px;
  margin-right: -20px;
}

.packStatus{
  margin-left: 10px;
  color: green;
}
.packStatus .light-style .select2-container--default .select2-selection{
  border: none !important;
}

.userPhoto{
  max-width: 100px;
  max-heigth: 100px;
  margin-bottom: 20px;
}

.instructorSchedule .fc-event{
  padding: 5px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  border-width: 1px !important;
  border-style: solid !important;
}

.section-title-pack {
      font-size: 24px;
      margin-bottom: 20px;
      margin-top: 10px;
}

.lead_icon_table {
  padding: 0 !important;
}

.lead_icon_table {
  position: relative;
}

.lead_icon {
    position: absolute;
    top: 0;
    width: 35px;
    height: 35px;
}

.lead_name_table {
  padding-left: 0 !important;
}

.user_table_block {
  display: flex;
}

.icons_user {
    /* width: 60px; */
    display: grid;
    align-items: center;
    justify-content: left;
    grid-template-columns: 1fr 1fr;
    gap: 5px 0;
    margin-right: 10px;
}

.icon_user {
    width: 20px;
    height: 20px;
}

.btn-kassa-close {
  margin-right: 5px;
  border-radius: var(--bs-border-radius) !important;
}

.btn-kassa-rashod {
  border-radius: var(--bs-border-radius) !important;
}

.badge-circle {
  position: absolute;
  top: -10px !important;
  right: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 0.65rem;
  line-height: 1;
}

.card-body-kassa-all {
  margin-bottom: 0 !important;
  padding-bottom: 0px;
}

.header__kassa {
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__icons {
    justify-content: start;
    gap: 36px;
}

.header__actions {
    justify-content: right;
    column-gap: 1.0rem;
}

.datepicker table tr td.recorded-custom:not(.disabled):not(.active) {
  background: #00bad1 !important;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.05);
}

.legend-dot { display:inline-block; width:12px; height:12px; border-radius:50%; vertical-align:-2px; margin-right:6px; }
.legend-recorded { background:#7367f0; }
.legend-custom   { background:#00bad1; }

.schedule__legend:not(.active) {
  display: none;
}