* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  user-select: none;
}

@font-face {
  font-family: r;
  src: url(../fonts/Roboto.ttf);
}

body {
  font-family: Arial, sans-serif;
  /*background-color: #0f0f0f;*/
  color: #333;
  margin: 0;
  padding: 0 8px;
  background: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.relative {
  position: relative;
  /* z-index: 2 !important; */
}

.background-drop img {
  position: absolute;
  z-index: 1;
  object-fit: contain;
}

.background-drop img:nth-child(1) {
  left: 0;
  top: 0;
  width: 70px;
}

.checkbox-wrapper {
  display: flex;
  gap: 4px;
}

.background-drop img:nth-child(2) {
  width: 70px;
  right: 0;
  bottom: 0;
}

.background-drop img:nth-child(3) {
  width: 150px;
  right: 0;
  top: -10px;
}

.background-drop img:nth-child(4) {
  width: 240px;
  left: 0;
  bottom: 0;
}

.agent-drop img:nth-child(4) {
  width: 150px;
}



/* .agent-drop img:nth-child(1){
  right: 0;
  bottom: 0;

  left: unset;
  top: unset;
}
.agent-drop img:nth-child(2){

  left: 0;
  top: 0;

  right: unset;
  bottom: unset;
}
.agent-drop img:nth-child(3){

  left: 0;
  bottom: -10px;
  transform: rotate(90deg);
  right: unset;
  top: unset;
}

.agent-drop img:nth-child(4){
  right: 0;
  top: 0;

  left: unset;
  bottom: unset;
} */









.form-container {
  width: 100%;
}

/* FFF */
/* FFF */
/* FFF */
/* FFF */
#login-form,
#register-form,
#profile,
#register {
  display: grid;
  justify-content: center;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  /* padding: 0 16px; */
}

#login-form,
#register-form {
  max-width: 360px;
  margin: 0 auto;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-header h2 {
  font-size: 22px;
}

.form-header button {
  background: unset;
  color: #BA172C;
  border: unset;
  font-size: 14px;
}

.logo {
  display: flex;
  justify-content: center;
  width: 100%;

  margin-bottom: 16px;
}



.container {
  /* width: 100%;
  max-width: 400px; */
  /* margin: 80px auto 0; */
  /* padding: 32px; */
  display: flex;
  justify-content: center;
  /* display: grid;
  grid-template-columns: 1fr;
  justify-content: center; */
  padding: 5% 0 0;
}

.content {
  /*position: relative;*/

  /*background: #fff;*/
  padding: 32px 16px 124px;

  width: 100%;
  max-width: 1360px;
}

button {
  background: #BA172C;
  color: #fff;
  border: 1px solid #BA172C;
  transition: .2s;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  transition: .2s;
  background: rgba(186, 23, 44, 0.05);
  color: #BA172C;
}

.form-group input {
  border-radius: 5px;
  border: 1px solid #C4C8D0;
  padding: 8px;
  background: #fff;
  /* width: 100%; */
  outline: none;
}

.form-group input:-webkit-autofill {
  box-shadow: 0 0 0 1000px white inset;
  /* Цвет фона */
  -webkit-text-fill-color: #000;
  /* Цвет текста */
  border: 1px solid #ccc;
  /* Цвет рамки */
}

.form-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.form-body .btn-submit {
  padding: 8px;
}

.form-body {
  width: 100%;
  display: grid;
  /* grid-template-columns: 1fr; */
  gap: 12px;

}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-support {
  background: unset;
  color: #333;
  border: unset;
}

.btn-support:hover {
  color: #333;
  background: transparent;
  cursor: pointer;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.form-checkbox {
  border: 1px solid #333;
  border-radius: 1px;
  width: 18px;
  height: 18px;
  padding: unset !important;

}








#register-form,
#login-form {
  margin-top: 16px;
}

#add-point-result,
#register-result,
#login-result,
#find-point-result {
  font-size: 12px;
  color: #BA172C;
  margin: 0px 0 -8px;
}

#profile .form-header {
  /* margin-top: 32px; */
}

.form-content {
  padding: 5% 0 0;
}

.sup-button {
  padding: 8px;
}

.sup-div {
  display: flex;
  justify-content: center;
  position: fixed;
  bottom: 0;
  margin-bottom: 1%;
  padding: 8px;
  z-index: 1000;
  align-items: center;
  flex-direction: column;
  left: 50%;
  transform: translateX(-50%);
}


select {
  width: 100%;
  padding: 8px 0;
  position: relative;
  outline: none;

}

select::-ms-expand {
  width: 100%;
}

select:focus {
  width: 100%;
  outline: none;
  /* border: unset; */
}

select option {
  width: 100%;
  width: 200px;
}

#points-selector-form {
  margin-top: 24px;
}

#points-selector-form button {
  width: 100%;
  margin-top: 8px;
}

#view-promo-code {
  margin-top: 16px;
}

#text-promo-code {
  margin-top: 8px;
  border: 2px solid #BA172C;
  color: #fff;
  padding: 8px;
  background: #BA172C;
  text-align: center;
  font-size: 16px;
}

.header-promo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cop-promo {
  width: 24px;
  height: 24px;

  background: unset;
  border: unset;
}

.header-promo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prom-result {
  font-size: 12px;
  margin-top: -18px;
  margin-left: -4px;
  color: #8e8e8e;

}

input {
  border-radius: 5px;
  border-color: #bdbdbd;
}

input:focus {
  color: #212529;
  background-color: #fff;
  border-color: #bdbdbd;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.25);
  border-radius: 5px;
}

.table-section {
  margin-top: 20px;

  .table-control {
    margin-top: 18px;
  }
}

#points {
  display: grid;
  gap: 10px;
}

.table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;

  .row-table {
    display: grid;
    grid-template-columns: 1fr;

    .td {
      display: grid;
      grid-template-columns: 100px 1fr;
      /* gap: 18px; */
    }


    .th,
    .td-item {
      height: auto;
      min-height: 32px;
      /* border: 1px solid #cecece; */

      padding: 8px 10px;
      display: flex;
      align-items: center;
    }
  }

  .head-name {
    font-size: 14px;
    background: #BA172C;
    color: #fff;
    border-radius: 4px;
    padding: 10px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    .drop-open {
      display: block;
      margin-left: auto;
      cursor: pointer;
      transform: rotate(180deg);
      transition: .3s;
    }

  }

  .td-item {
    /* border: 1px solid #cecece; */
    /* border-left: unset; */
    /* border-left: 1px solid #8e8e8e; */
    border-top: unset;

  }

  .tbody-list {
    margin-top: 0px;

    display: none;
  }
}


.row-table {
  .drop-open {
    pointer-events: none;
  }

  &.active {

    .drop-open {
      transform: rotate(0deg);
      transition: .3s;
    }

    .tbody-list {
      display: grid;
    }

    .head-name {
      border-radius: 4px 4px 0 0;
      pointer-events: visible;
    }

    .td {
      backdrop-filter: blur(3px);

      &:last-child {
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;

        .td-item {
          border-bottom-right-radius: 6px;
        }

        .th {
          border-bottom-left-radius: 6px;
        }
      }
    }

    .td:nth-child(odd) {
      background: #f2f2f280;
      /* background: #f8f8f8; */
    }

    .td:nth-child(even) {
      background: #c4c4c480;
      /* background: #e1e1e1; */
    }
  }

}

.checkbox-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* отступ между чекбоксами */
}

.checkbox-item {
  display: flex;
  align-items: center;
  /* выравнивание чекбокса и текста по вертикали */
}

.checkbox-item input[type="checkbox"] {
  margin-right: 10px;
  /* отступ между чекбоксом и текстом */
}

.summ-selection {
  width: 100%;
  height: 50px;
  border: #BA172C solid 1px;
  border-radius: 10px;
  align-content: center;
  margin-right: 10px;
}

.promo-info {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.promo-gifts {
  width: 100%;
  height: 50px;
  align-content: center;
  border-radius: 10px;
  margin-left: 10px;
  background: #BA172C;
  color: #fff;
  border: 1px solid #BA172C;
  transition: .2s;
  cursor: pointer;
  text-decoration: none;

}

.text-gift {
  text-align: center;
  font-size: 16px;
  font-weight: bold;

}

.text-info {
  white-space: pre-wrap;
  font-size: 1rem;
}

.gifts-modal {
  display: none;
  position: fixed;
  z-index: 9990;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.gifts-modal-content {
  background: white;
  padding: 10px;
  width: 100%;
  border-radius: 10px;
  height: 100%;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.gifts-close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.profile-info {
  align-items: center;
  align-content: center;
  justify-items: center;
}

.points {
  width: 100%;
}

.form-find-data {
  display: flex;
  flex-direction: column;
}

.form-type-find {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 20px 0;
}

.footer {
  margin-top: auto;
}

.table th {
  background-color: #f8f9fa;
}

.badge {
  font-size: 0.9em;
  padding: 0.5em 0.8em;
}

.btn-info {
  color: #fff;
}

.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

/* Стили для тикетов */
.card.bg-transparent {
  background: #fff !important;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-responsive {
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

.table {
  margin-bottom: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 16px;
  font-weight: 600;
  color: #495057;
  text-align: left;
}

.table td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid #dee2e6;
  color: #212529;
}

.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Стили для модального окна */
.modal {
  z-index: 1050 !important;
}

.modal-backdrop {
  z-index: 1040 !important;
  background-color: #000;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-dialog {
  z-index: 1060 !important;
  margin: 1.75rem auto;
  max-width: 800px;
  position: relative;
}

.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #fff;
  position: relative;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  padding: 20px 24px;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
}

.modal-body {
  padding: 24px;
  position: relative;
}

/* Обновляем стили для контейнера тикетов */
.tickets-container {
  position: relative;
  z-index: 1;
}

/* Стили для деталей тикета */
.ticket-details {
  padding: 0;
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.info-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.95rem;
}

.info-value {
  color: #212529;
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.5;
}

.badge {
  font-size: 0.85em;
  padding: 0.5em 1em;
  border-radius: 4px;
  font-weight: 500;
}

.btn-info {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
  color: #fff;
  transition: all 0.2s ease-in-out;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

.btn-info:hover {
  background-color: #0bb2d4;
  border-color: #0bb2d4;
  color: #fff;
  transform: translateY(-1px);
}

/* Стили для карточек тикетов */
.ticket-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.ticket-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.ticket-id {
  font-weight: 600;
  color: #495057;
  font-size: 1.1rem;
}

.ticket-status {
  display: flex;
  align-items: center;
}

.ticket-body {
  padding: 16px;
}

.ticket-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.ticket-info-row:last-child {
  margin-bottom: 0;
}

.ticket-label {
  color: #6c757d;
  font-size: 0.9rem;
}

.ticket-value {
  color: #212529;
  font-size: 0.95rem;
  word-break: break-word;
}

.ticket-footer {
  padding: 16px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: flex-end;
}

.ticket-footer .btn {
  min-width: 120px;
}

/* Обновленные стили для бейджей */
.badge {
  font-size: 0.85em;
  padding: 0.5em 1em;
  border-radius: 4px;
  font-weight: 500;
  text-transform: capitalize;
}

.badge.bg-primary {
  background-color: #0d6efd !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000;
}

.badge.bg-success {
  background-color: #198754 !important;
}

/* Обновленные стили для кнопок */
.btn-info {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
  color: #fff;
  transition: all 0.2s ease-in-out;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

.btn-info:hover {
  background-color: #0bb2d4;
  border-color: #0bb2d4;
  color: #fff;
  transform: translateY(-1px);
}