:root {
  --color-text-primary: #e0e7f5;
  --color-text-placeholder: #e0e7f5;
  --color-bg-body: #0D1117;
  --color-bg-container: #191f29;
  --color-bg-table: #1b1b25;
  --color-bg-input: #282829;
  --color-primary-action: #005baa;
  --color-primary-active-page: #004a8f;
  --color-btn-disabled: #575766;
  --color-border: #575766;
  --color-status-green: #5a7f71;
  --color-status-yellow: #a38b65;
  --color-status-red: #a86565;
  --color-status-blue: #5e7ca7;
  --color-status-no-packages: rgba(225, 112, 140, 0.4);
  --bg-main: #282829;
  --color-secondary: #575766;
  --color-surface: #575766;
    --bg-panel: #191f29;
    --text-primary: #e0e7f5;
    --btn-primary-bg: #005baa;
    --btn-secondary-bg: #575766;
    --btn-disabled-bg: #575766;
    --btn-disabled-opacity: 0.3;
    --border-active: #b0b2b3;
    --icon-wrapper-bg: #a38b65;
    --pagination-active-bg: #004a8f;
    --select-bg: #1e2329;
    --avatar-dot-bg: #5a7f71;
    --avatar-dot-border: #191f29;

  --bg-dark-primary: #191f29;
  --bg-dark-secondary: #282829;
  --bg-dark-tertiary: #1e2329;
  --text-primary: #e0e7f5;
  --text-secondary: #d0d4dc;
  --text-link: rgb(10, 141, 255);
  --color-grey: #575766;
  --color-grey-light: #b0b2b3;
  --color-blue-primary: #005baa;
  --color-blue-secondary: #004a8f;
  --color-green-progress: #5a7f71;

  --color-progress-fill: #5a7f71;
  --color-badge-critical: #a86565;
  --color-badge-medium: #a38b65;
  --color-badge-low: #5a7f71;

  --font-primary: 'Nekst', 'Roboto', sans-serif;
  --font-secondary: 'Onest', 'Roboto', sans-serif;

  --fs-xs: 14px;
  --lh-xs: 20px;
  --fs-sm: 16px;
  --lh-sm: 24px;
  --fs-md: 24px;
  --lh-md: 32px;
  --fs-lg: 32px;
  --lh-lg: 40px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--color-text-primary);
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    }

* {
  box-sizing: border-box;
}

#projects {
  background-color: var(--color-bg-input);
  max-width: 100%;
  display: flex;
  justify-content: center; /* Горизонтальное центрирование */
  align-items: center; /* Вертикальное центрирование */
  overflow-x: auto;
}

.custom-container {
  background-color: var(--color-bg-container);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 24px 0;
  overflow: hidden;
}

  .projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 16px;
  }

  .projects-title {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    margin: 0;
    flex-grow: 1;
  }

  .header-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .search-form {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--color-bg-input);
    border-radius: 8px;
    padding: 8px 16px;
    max-width: 320px;
    height: 48px;
  }

  .search-icon {
    width: 24px;
    height: 24px;
  }

  .search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-placeholder);
    font-family: var(--font-secondary);
    font-size: 16px;
    width: 100%;
  }
  .search-input::placeholder {
    color: var(--color-text-placeholder);
    opacity: 0.7;
  }

  .button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  button {
    font-family: inherit;
    border: none;
    cursor: pointer;
  }

  .btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
  }

  .new-btn-delete {
    background-color: rgba(183, 45, 73, 1);
    cursor: not-allowed;
    padding-left: 12px;
    padding-right: 12px;
    width: 98px;
    height: 48px;
  }

  .btn-delete-package {
    background-color: rgba(183, 45, 73, 1);
    cursor: not-allowed;
    padding-left: 12px;
    padding-right: 12px;
    width: 170px;
    height: 48px;
  }

  .btn-delete-package:hover, .new-btn-delete:hover {
      background-color: rgba(183, 45, 73, 0.6);
  }

  .btn-delete-package:disabled,
  .new-btn-delete:disabled,
  .btn-edit:disabled {
      background-color: var(--color-btn-disabled);
  }

  .btn-add {
    background-color: var(--color-primary-action);
    padding-left: 12px;
    padding-right: 12px;
    width: 170px;
    height: 48px;
  }
  .btn-add:hover {
    background-color: var(--color-primary-active-page);
  }

  html::-webkit-scrollbar {
    width: 10px;
    height: 8px;
    }

    html::-webkit-scrollbar-track {
    background: transparent;
    }

    html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #575766, #575766);
    border-radius: 12px;
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s ease;
    }

    html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6b6b7a, #6b6b7a); /* чуть светлее при ховере */
    }

    /* ========== Firefox ========== */
    html {
    scrollbar-width: auto; /* auto | thin | none */
    scrollbar-color: #575766 transparent; /* ползунок | фон трека */
    }

  .table-responsive-wrapper,
  .table-wrapper {
    overflow-y: auto;  /* Включает вертикальный скроллинг */
    overflow-x: hidden; /* Запрещает горизонтальный скроллинг */
    background-color: var(--color-bg-table);
  }

  @media (max-width: 1200px) {
    .table-responsive-wrapper {
      overflow: scroll;
      margin-right: -24px; /* Компенсирует паддинг родителя */
    }
  }

  .table-responsive-wrapper::-webkit-scrollbar,
  .table-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 8px;
  }

  .table-responsive-wrapper::-webkit-scrollbar-track,
  .table-wrapper::-webkit-scrollbar-track {
      background: transparent;
  }

  .table-responsive-wrapper::-webkit-scrollbar-thumb,
  .table-wrapper::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, #575766, #575766);
      border-radius: 12px;
      border: 1px solid transparent;
      background-clip: padding-box;
      transition: background 0.3s ease;
  }

  .table-responsive-wrapper::-webkit-scrollbar-thumb:hover,
  .table-wrapper::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, #575766, #575766);
  }

  .projects-table {
    width: 100%;
    min-height: auto;
    border-collapse: collapse;
    white-space: nowrap;
  }

  .projects-table th,
  .projects-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
  }

  /* Центрируем содержимое ячейки */
  .projects-table td.status-row {
    display: table-cell;     /* Вернуть поведение таблицы */
    text-align: center;      /* Горизонтальное центрирование */
    vertical-align: middle;  /* Вертикальное центрирование */
    padding: 0;
  }

  .projects-table th:first-child,
  .projects-table td:first-child,
  .vulnerabilities-table th:first-child,
  .vulnerabilities-table td:first-child {
    padding: 20px 16px;
  }

  .projects-table thead,
  .vulnerabilities-table thead {
    background-color: var(--color-bg-table);
  }

  .projects-table th,
  .vulnerabilities-table th {
    font-weight: 400;
  }

  .projects-table tbody tr:last-child td,
  .vulnerabilities-table tbody tr:last-child td {
    border-bottom: none;
  }

  .sort-icon {
    margin-left: 8px;
    vertical-align: middle;
  }

  .table-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    vertical-align: middle;
  }
  .table-checkbox:checked {
    border: none;
    background-image: url("/static/images/new-images/checkbox.svg");
  }

  .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*padding: 4px 4px !important;*/
    border-radius: 8px !important;
    font-family: var(--font-secondary) !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    text-align: center !important;
    width: 211px !important;
    height: 32px !important;
  }

  .status-yellow { background-color: var(--color-status-yellow); }
  .status-green { background-color: var(--color-status-green); }
  .status-red { background-color: var(--color-status-red); }
  .status-blue { background-color: var(--color-status-blue); }
  .status-no-packages { background-color: var(--color-status-no-packages); }


  .projects-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 16px;
  }

  .record-count {
    text-align: center;
    flex-grow: 1;
  }

  .pagination ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
  }

  .pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-primary);
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    border-radius: 16px;
    transition: background-color 0.2s;
  }

  .pagination li a.ellipsis {
    cursor: default;
  }

  .pagination li a:not(.ellipsis):hover {
    background-color: var(--color-bg-input);
  }

  .pagination li a.active {
    background-color: var(--color-primary-active-page);
    font-weight: bold;
  }

  @media (max-width: 1200px) {
    .record-count {
      order: 3;
      width: 100%;
      text-align: center;
      padding-top: 10px;
    }
    .projects-footer {
      justify-content: space-between;
    }
  }

  @media (max-width: 872px) {
    .custom-container {
      padding: 16px;
    }
    .projects-header {
      flex-direction: column;
      align-items: stretch;
    }
    .header-controls {
      flex-direction: column;
      align-items: stretch;
    }
    .projects-footer {
      flex-direction: column;
      align-items: center;
    }
    .record-count {
      order: 2;
    }
    .pagination {
      order: 3;
    }
    .page-size-control {
      order: 1;
    }
  }

.page-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.btn-logout {
    height: 48px;
    width: 170px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    color: #E0E0E0;
}

.btn-logout:hover {
    color: #E0E0E0;
}

.btn-secondary {
    height: 48px;
    width: 170px;
    background-color: rgba(87, 87, 102, 1);
}

.btn-secondary:hover {
    height: 48px;
    width: 170px;
    background-color: rgba(87, 87, 102, 0.6);
}

.page-size-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Стили для селектора */
.page-size-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #1e2329;
    background-image: url("/static/images/new-images/I273_6116_30_2042.svg");
    background-repeat: no-repeat;
    background-position: right 8px center; /* стрелка справа */
    background-size: 24px 24px; /* размер стрелки */

    padding: 6px 28px 6px 10px; /* справа делаем место под стрелку */
    border: 1px solid #1e2329;
    border-radius: 4px;

    font-family: 'Onest', sans-serif;
    font-size: 16px;
    color: #e0e7f5;
    cursor: pointer;
}

/* При наведении */
.page-size-selector:hover {
    border-color: #1e2329;
}

/* Для Firefox, чтобы убрать синий фокус */
.page-size-selector:focus {
    outline: none;
    border-color: #1e2329;
}

/* Стили для опций */
.page-size-selector option {
    background-color: #1e2329;
    padding: 8px;
    border-radius: 8px !important;
}

/* Ховер по элементам в выпадающем меню */
.page-size-selector option:hover {
    background-color: #333;
}

/* Активная выбранная опция */
.page-size-selector option:checked {
    background-color: #1e2329;
}

.projects-table td.projectName {
    cursor: pointer;            /* Указываем, что элемент кликабелен */
    transition: color 0.2s ease; /* Плавный переход цвета */
}

.projects-table td.projectName:hover {
    color: #575766; /* Выбираем цвет текста при наведении */
}

#ProjectTable tbody td {
    height: 69px; /* фиксированная высота строки */
    max-height: 69px;
}

#ProjectTable tbody th {
    height: 57px; /* фиксированная высота строки */
    max-height: 57px;
}

.modal-content {
    border-radius: 16px;
    background-color: rgba(27, 27, 37, 1);
    padding: 24px;
}

.delete-modal-header{
    display: flex;
    width: 100%;
    justify-content: center;
}

.custom-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.custom-close-btn img {
    width: 32px; /* подгони под нужный размер */
    height: 32px;
}

.custom-close {
  filter: invert(1); /* белый крестик */
}

.delete-modal-body{
    width: 552px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}
.delete-modal-footer-1{
    width: 600px;
    height: 88px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.delete-modal-footer-2{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 552px;
    height: 48px;
}

.btn-cancel {
    background-color: rgba(87, 87, 102, 1);
    color: rgba(224, 231, 245, 1);
    border-radius: 10px;
    padding: 10px 20px;
    width: 170px;
    height: 48px;
    gap: 10px;
}

.btn-cancel:hover,
.btn-edit:hover {
    background-color: rgba(87, 87, 102, 0.6);
}

.btn-delete {
    background-color: rgba(183, 45, 73, 1);
    color: #e0e7f5;
    width: 170px;
    height: 48px;
    gap: 4px;
    border-radius: 8px;
    padding: 12px;
}

.btn-delete:hover {
    background-color: rgba(225, 29, 72, 0.68);
}

.create-project-modal-body{
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
    width: 100%;
}

.create-project-modal .modal-title {
  font-weight: 600;
  color: #dcdcdc;
}

.create-project-modal-header {
    width: 552px;
    height: 64px;
}

.create-project-input{
    gap: 8px;
    padding-top: 16px;
    width: 552px;
    height: 128px;
    display: flex;
    justify-content: center;
}

.project-input{
    min-height: 56px;
    background-color: rgba(40, 40, 41, 1);
    border: none;
    border-radius: 10px;
    color: rgba(224, 231, 245, 1);
    margin-bottom: 10px;
}

.project-input::placeholder,
.credentials-input::placeholder{
  color: rgba(224, 231, 245, 1);
}

/* При фокусе */
.project-input:focus,
.credentials-input:focus {
    color: rgba(224, 231, 245, 1);
    outline: none;
    box-shadow: 0 0 0 1px rgba(176, 178, 179, 1);
    background-color: rgba(87, 87, 102, 1);
}

/* Для Chrome, Edge, Safari */
.project-input:-webkit-autofill,
.project-input:-webkit-autofill:hover,
.project-input:-webkit-autofill:focus,
.credentials-input:-webkit-autofill,
.credentials-input:-webkit-autofill:hover,
.credentials-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(40, 40, 41, 1) inset !important; /* фоновый цвет */
    -webkit-text-fill-color: rgba(224, 231, 245, 1) !important; /* цвет текста */
    caret-color: rgba(224, 231, 245, 1);
    transition: background-color 9999s ease-in-out 0s; /* трюк для подавления анимации Chrome */
}


.modal-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

@media (max-width: 575px) {
  .modal-buttons .btn {
      width: 100%;
  }
}

.btn-save {
    background-color: rgba(0, 91, 170, 1);
    color: rgba(224, 231, 245, 1);
    width: 170px;
    height: 48px;
    border-radius: 10px;
    padding: 10px 20px;
    gap: 10px;
}

.btn-save:hover {
    background-color: rgba(0, 91, 170, 0.6);
}

.form-floating>.form-control-plaintext~label::after,
.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after,
.form-floating>.form-select~label::after {
    position: relative;
    color: #e0e7f5 !important;
}

.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-control:focus~label {
    color: #e0e7f5 !important;
}

.custom-input {
  background-color: rgba(40, 40, 41, 1);
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 12px;
}

.custom-input::placeholder {
  color: #b0b0b0;
}

/* При фокусе */
.custom-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #1a73e8;
}

/* Звёздочка обязательного поля */
.required {
  color: #ff5c5c;
}

.projects-panel__body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
    height: 704px;
  padding: 24px 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.empty-state__icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--icon-wrapper-bg);
  display: flex;
  justify-content: center;
  align-items: center;
}
.empty-state__icon-wrapper img {
  width: 24px;
  height: 24px;
}
.empty-state__title {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}
.empty-state__description {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
.empty-state__button {
  margin-top: 24px;
  padding: 12px 42px;
}
.projects-panel__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}

.pagination-summary {
  font-size: 16px;
  line-height: 24px;
}

/*СТИЛИ ДЛЯ СТРАНИЦЫ ПРОЕКТА*/
.card-block {
  background-color: var(--bg-dark-primary);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
}

.btn-primary {
  background-color: var(--color-blue-primary);
    width: 230px;
    height: 48px;
}

.btn-add-packages:hover,
.btn-add-packages:disabled,
.btn-save:disabled,
.btn-primary:hover,
.btn-relocate:hover,
.btn-add-bulletin:hover {
    background-color: rgba(0, 91, 170, 0.7);
}

.btn-add-packages {
    background-color: var(--color-blue-primary);
    width: 170px;
    height: 48px;
}

.btn-cancel-scan {
    background-color: rgba(87, 87, 102, 1);
    width: 120px;
    height: 48px;
    }

.btn-cancel-scan:hover,
.btn-cancel-scan:disabled,
.btn-relocate:disabled {
    background-color: rgba(87, 87, 102, 0.6);;
}



h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  font-weight: 400;
}

h2 {
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  font-weight: 400;
}

p, li {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
}

strong {
  font-weight: 600;
}

@media (max-width: 1200px) {
  .main-container {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 16px;
  }
  h1 {
    font-size: var(--fs-md);
    line-height: var(--lh-md);
  }
  h2 {
    font-size: 20px;
    line-height: 28px;
  }
}

/* CSS from section:project-details */
.project-details-section {
  gap: 16px;
  margin: 20px 0 0;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-left: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 24px;
}

@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  }
}

.project-info-card {
  background-color: var(--bg-dark-secondary);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
    /* width: 730px; */
    grid-column: span 3;
}

@media (max-width: 1200px) {
  .info-card {
    grid-column: unset;
  }
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.description {
  color: var(--text-primary);
}

.card-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.scan-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.progress-bar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.progress {
  background-color: rgba(87, 87, 102, 1) !important;
}

.progress-percent {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
}


.progress-bar-in-process {
  position: relative;
  background: linear-gradient(
    90deg,
    rgba(60, 90, 80, 0.6),
    rgba(90, 127, 113, 1),
    rgba(60, 90, 80, 0.6),
  );
  background-size: 300% 100%;
  animation: gradient-move 15s linear infinite;
  border-radius: 0.375rem;
  overflow: hidden;
  font-weight: bold;
  justify-content: center;
}

@keyframes gradient-move {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-bar {
  font-weight: bold;
  background-color: rgba(90, 127, 113, 1);
  border-radius: 0.375rem;
  transition: width 0.6s ease-in-out;
}

.card-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.report-card {
  justify-content: space-between;
  /* width: 500px; */
  grid-column: span 2;
}

@media (max-width: 1200px) {
  .report-card {
    grid-column: unset;
  }
}

.report-card .card-actions {
  margin-top: 0;
}

/* CSS from section:packages */
.packages-section {
    gap: 16px;
    overflow-x: hidden;
    /* width: 1900px; */
    /* height: 569px; */
    margin: 20px 0;
}

.packages-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.toolbar-title {
  flex-shrink: 0;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  flex-grow: 1;
  justify-content: flex-end;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  position: relative;
}

.control-label {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  white-space: nowrap;
}

.select-mock {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-dark-secondary);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 205px;
  height: 48px;
  justify-content: space-between;
}

.file-uploader {
  border: 2px dashed var(--color-grey-light);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  min-height: 300px;
  flex-grow: 1;
}

.file-uploader-active {
  background-color: rgba(87, 87, 102, 0.5);
  border: 2px dashed var(--color-grey-light);
  transition: background-color 0.2s, border-color 0.2s;
}

.add-package_button {
  border: 2px solid var(--color-grey-light);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  min-height: 300px;
  flex-grow: 1;
}

.uploader-icon {
  width: 40px;
  height: auto;
}

.uploader-text {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
}

.uploader-link {
  color: var(--text-link);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  text-decoration: none;
}

.uploader-link:hover {
    color: rgba(10, 141, 255, 0.6);
    transition: color 0.2s ease;
}

.packages-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.pagination-size-control {
  display: flex;
  align-items: center;
  gap: 16px;
}

.select-mock-small {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-dark-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-info {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
}

.page-number {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 16px;
}

.page-number.active {
  background-color: var(--color-blue-secondary);
}

@media (max-width: 1024px) {
  .packages-toolbar, .toolbar-controls {
    justify-content: flex-start;
  }
  .packages-footer {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .toolbar-controls > * {
    width: 100%;
    max-width: unset;
  }

  #openSelect {
    width: 100%;
  }
}

.btn-add-bulletins {
    height: 48px;
    width: 202px;
    background-color: rgba(87, 87, 102, 1);
}

.btn-add-bulletins:hover {
    background-color: rgba(87, 87, 102, 0.6);
}

.btn-secondary:disabled {
    background-color: var(--color-grey);
}

.table-wrapper {
  overflow-x: auto;
  background-color: #1b1b25;
}

@media (max-width: 1600px) {
  .table-wrapper {
    margin-right: -24px;
    max-height: 70vh;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.data-table th, .data-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 16px;
  text-align: left;
  font-size: 16px;
  line-height: 24px;
}
.data-table th {
  font-weight: 400;
  vertical-align: middle;
}
.data-table th:first-child, .data-table td:first-child {
    text-align: center;
}
.data-table td {
  vertical-align: middle;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table th img {
  vertical-align: middle;
  margin-left: 8px;
}

.badge {
    display: inline-flex; ;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 16px;
    line-height: 20px;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}
.badge-critical { background-color: var(--color-badge-critical); }
.badge-medium { background-color: var(--color-badge-medium); }
.badge-low { background-color: var(--color-badge-low); }
.badge-fixed { background-color: rgba(34, 173, 36, 0.4)}
.badge-irrelevant { background-color: rgba(224, 224, 224, 0.4)
}

.custom-select {
  position: absolute;
  top: 100%; /* Снизу кнопки */
  right: 0;
  width: 240px;
  height: 150px;
  border: 1px solid rgba(87, 87, 102, 1);
  border-radius: 6px;
  background: rgba(25, 31, 41, 1);
  z-index: 100;
  display: flex;              /* превращаем в flex-контейнер */
  justify-content: center;    /* центрируем по вертикали */
  align-items: center; /* По умолчанию скрыт */
}

.options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;

}

.option {
  width: 208px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  background-color: rgba(40, 40, 41, 1);
  border: 1px solid transparent; /* фиксируем размер */
  box-sizing: border-box;        /* учитываем бордер в ширине/высоте */
}

.option:hover {
  background: rgba(87, 87, 102, 1);
  border: 1px solid rgba(176, 178, 179, 1);
}

.selected-row {
  background-color: rgba(0, 91, 170, 0.2);
}

table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #1b1b25;
}

#btnStartScanLoader {
    margin-right: 5px;
    vertical-align: middle; /* лучше, чем -1px */
}


/*МОДАЛЬНОЕ ОКНО ДОБАВЛЕНИЯ БЮЛЛЕТЕНЕЙ*/
.add-bulletin-modal-wrapper {
    width: 840px;
  }
.add-bulletin-modal-container {
  position: relative;
  border-radius: 16px;
  background-color: rgba(27, 27, 37, 1);
  margin: 0 auto;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 930px;
}
.close-button {
  position: absolute;
  top: 16px;
  right: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-button img {
  width: 24px;
  height: 24px;
}
.modal-header {
  text-align: center;
}
.modal-title {
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}
.add-bulletin-modal-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.list-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;;
}

.panel-title {
  font: var(--font-body-l);
  color: var(--color-text-primary);
  margin: 0;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--color-surface);
  border-radius: 8px;
  padding: 8px 16px;
  height: 48px;
}
.search-icon {
  width: 24px;
  height: 24px;
}
.search-placeholder {
  font: var(--font-body-l);
  color: var(--color-text-primary);
  opacity: 0.5;
}
.item-list-container {
  /*position: relative;*/
  background-color: var(--color-bg-input);
  border-radius: 8px;
  padding: 16px;
  height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
}
.item-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.custom-scrollbar {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 4px;
  background-color: var(--color-scrollbar-track);
  border-radius: 2px;
}
.custom-scrollbar-thumb {
  width: 100%;
  height: 48px;
  background-color: var(--color-scrollbar-thumb);
  border-radius: 2px;
}
.transfer-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.control-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: rgba(27, 27, 37, 1);
}
.control-button.disabled {
  background-color: var(--color-secondary);
  opacity: 0.3;
  cursor: not-allowed;
}
.control-button img {
  width: 24px;
  height: 24px;
}

.control-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background-color 0.2s;
}

.add-bulletin-modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.bulletin-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0; /* запретить сжимание чекбокса */
  }

.bulletin-checkbox:checked {
  border: none;
  background-image: url("/static/images/new-images/checkbox.svg");
  background-size: 20px 20px;
}

.list-item-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-item {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.list-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background-color 0.2s;
}

.search-form-bulletin {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--color-bg-input);
    border-radius: 8px;
    padding: 8px 16px;
    width: 373px;
    height: 48px;
  }

#modalChooseBulletin .modal-dialog {
  max-width: 930px; /* или под нужную ширину */
  margin: 0 auto; /* центрирует по горизонтали */
  overflow-x: scroll;
}

.drop-zone {
    border: 3px dashed var(--color-surface);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    color: rgba(224, 231, 245, 1);
    background-color: rgba(40, 40, 41, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop-zone:hover {
    background-color: var(--color-surface);
    border-color: rgba(40, 40, 41, 1);
}

.drop-zone.dragover {
    background-color: var(--color-surface);
    border-color: rgba(40, 40, 41, 1);
}

.drop-zone-text {
    font-weight: 500;
}

.modal-content-add-package {
    height: auto;
    border-radius: 16px;
    background-color: rgba(27, 27, 37, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.add-package-modal-footer-1{
    display: flex;
    justify-content: center;
    align-items: center;
    /*padding-top: 30px;*/
}
.add-package-modal-footer-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 552px;
    height: auto;
    /*padding-top: 35px;*/
}

.modal-divider {
  display: flex;
  padding-bottom: 16px;
}

.modal-textarea,
.modal-textarea:focus {
  background-color: rgba(40, 40, 41, 1);
  border-radius: 8px;
  color: rgba(224, 231, 245, 1);
  border-color: rgba(40, 40, 41, 1);
  outline: none; /* отключаем стандартную синюю рамку */
  box-shadow: none; /* на случай, если браузер использует тень для фокуса */
}

.file-name {
  color: rgba(224, 231, 245, 1);
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-package-input{
    gap: 2px;
    padding-top: 16px;
    display: flex;
    justify-content: center;
}

.disabled-input,
.disabled-dropzone {
  background-color: var(--color-btn-disabled) !important;
  cursor: default !important;
  opacity: 0.5 !important;
}

.disabled-dropzone:hover {
  border-color: var(--color-btn-disabled);
  opacity: 0.5;
}

/*СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА СКАЧИВАНИЯ ОТЧЕТА*/
.report-header {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрирует по горизонтали */
  text-align: center;
  gap: 8px;
}

.download-report-modal-container {
  position: relative;
  border-radius: 16px;
  background-color: rgba(27, 27, 37, 1);
  margin: 0 auto;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  height: auto;
}

.download-report-modal-body {
  margin: 24px 0 16px;
}

.download-report-modal-body > * {
  margin-bottom: 16px;
}

.download-report-card form {
  display: flex;
  flex-direction: column;
  gap: 8px; /* расстояние между строками */
}

.download-report-card h6 {
  display: flex;
  align-items: center; /* выравнивает текст по вертикали */
  margin: 6px 0;
}


/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА УДАЛЕНИЯ ПАКЕТОВ */
.delete-packages-modal-content {
    width: 600px;
    height: auto !important;
    border-radius: 16px;
    background-color: rgba(27, 27, 37, 1);
    display: flex;
}

.delete-packages-modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 600px;
  height: auto;
  position: relative;
}

/* Контейнер списка */
.packages-list-container {
  width: 95%; /* немного уже, чем сама модалка */
  max-height: 200px; /* ограничиваем высоту */
  overflow-x: hidden; /* скролл при переполнении */
  margin: 0 auto; /* центрируем по горизонтали */
  border: 1px solid rgba(27, 27, 37, 1);
  border-radius: 8px;
  background-color: rgba(27, 27, 37, 1);
  padding: 10px 10px;
}

/* Сам список */
.packages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center; /* чтобы текст был по центру */
}

/* Элементы списка */
.packages-list li {
  padding: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Последний элемент без линии */
.packages-list li:last-child {
  border-bottom: none;
}

/* Кастомный скролл */
.packages-list-container::-webkit-scrollbar {
  width: 6px;
}
.packages-list-container::-webkit-scrollbar-track {
  background: transparent;
}
.packages-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.packages-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/*СТИЛИ ДЛЯ СТРАНИЦЫ УЯЗВИМОСТЕЙ*/

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 30px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 400;
  line-height: 110%;
}

@media (max-width: 769px) {
  .page-header {
    padding-left: 16px;
  }

  .page-header h1 {
    font-size: 24px;
  }
}

.back-button {
    display: inline-flex;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background-color 0.2s;
}

.content-card {
  background-color: #191f29;
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: auto auto;
  width: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.filters-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filters-container h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

  .tab {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-primary);
  }

  .tab.active {
    border-bottom: 1px solid var(--border-active);
  }

  .tab:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background-color 0.2s;
}

  .tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-primary);
    font-weight: bold;
  }

  .tag.critical { background-color: #a86565; }
  .tag.medium { background-color: #a38b65; }
  .tag.low { background-color: #5a7f71; }
  .tag.other { background-color: #5e7ca7; }

  .score-critical { color: rgba(178, 0, 4, 1); }
  .score-high { color: rgba(232, 69, 54, 1); }
  .score-medium { color: rgba(210, 148, 4, 1); }
  .score-low { color: rgba(77, 221, 142, 1); }

.toggle-btn {
    color: rgba(10, 141, 255, 1);
    cursor:pointer;
    border-width:1px;
}

.description-link a {
    color: rgba(10, 141, 255, 1) !important;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.vuln-links a {
  color: rgba(10, 141, 255, 1);
  transition: background-color 0.3s;
}

.vuln-id:hover {
  color: rgba(10, 141, 255, 0.6);
  transition: background-color 0.3s;
}

.description-link a:hover {
    text-decoration: underline;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-row strong {
  font-weight: 500; /* Medium weight */
}

.icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
  }
  .icon-wrapper .icon-bg,
  .icon-wrapper .icon-fg,
  .cvss-icon-wrapper .icon-bg,
  .cvss-icon-wrapper .icon-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .icon-wrapper .rotated,
  .cvss-icon-wrapper .rotated {
    transform: rotate(45deg);
  }

.cvss-icon-wrapper {
    position: relative;
    width: 18px;
    height: 18px;
}

.cvss-row {
  display: flex;
  align-items: center; /* вертикальное выравнивание */
  gap: 8px;            /* расстояние между логотипом и вектором */
}

.cvss-row img, .cvss-row svg {
  width: 18px;
  height: 18px;
  display: block; /* убирает возможные нижние отступы у <img> */
  flex-shrink: 0;
}

.vulnerability-report {
  width: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 768px) {
  .vulnerability-report {
    padding: 32px 0;
  }
}

.action-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  flex-wrap: wrap;
}

.action-bar span {
  font-size: 16px;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #282829;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 240px;
  }
  .select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    width: 100%;
    cursor: pointer;
  }
  .select-wrapper img {
    position: absolute;
    right: 16px;
    pointer-events: none;
  }

.btn-action {
    background-color: var(--bg-button-disabled);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    opacity: 0.3;
    cursor: not-allowed;
  }

  .vulnerabilities-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
  }

  .vuln-id-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .vuln-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .icon-group {
    display: flex;
    gap: 8px;
  }

  .vuln-description {
    font-size: 14px;
    line-height: 20px;
    max-width: 575px;
  }

  .score-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
  }

  .reco-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .vulnerabilities-table th,
  .vulnerabilities-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
  }

  .vulnerabilities-table th {
    text-align: center;
  }

.select-wrapper {
  position: relative;
  width: 240px;
  height: 48px;
}

.vulns-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vulns-option {
  width: 208px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  background-color: rgba(40, 40, 41, 1);
  border: 1px solid transparent;
  box-sizing: border-box;
  text-align: left;
  color: #e0e7f5;
}

.vulns-option:hover {
  background: rgba(87, 87, 102, 1);
  border: 1px solid rgba(176, 178, 179, 1);
}

.vulns-custom-select {
  position: absolute;
  top: 100%; /* Снизу кнопки */
  right: 0;
  width: 240px;
  height: 130px;
  border: 1px solid rgba(87, 87, 102, 1);
  border-radius: 6px;
  background: rgba(25, 31, 41, 1);
  z-index: 100;
  display: flex;              /* превращаем в flex-контейнер */
  justify-content: center;    /* центрируем по вертикали */
  align-items: center; /* По умолчанию скрыт */

}

.btn-relocate {
  background-color: var(--color-blue-primary);
  width: 170px;
  height: 48px;
}


.vuln-description {
  max-height: 120px;
  overflow: hidden;
  position: relative;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6; /* ограничение по числу строк */
  -webkit-box-orient: vertical;
}

.show-full-btn {
  display: inline-block;
  background: none;
  border: none;
  color: rgba(10, 141, 255, 1);
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  font-size: 16px;
  text-align: left;
  width: 50px;
}

.show-full-btn:hover {
  color: #0056b3;
}

.vuln-description-modal-content {
  /* width: 1000px !important; */
  height: auto !important;
  border-radius: 16px;
  background-color: rgba(27, 27, 37, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 40px;
  box-sizing: border-box;
}

.vuln-description-modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  position: relative;
  margin-bottom: 30px;
  gap: 16px;
}

.vuln-modal-body {
  width: 100%;
  max-width: 900px; /* чтобы текст не упирался в края */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: justify;
  line-height: 1.5;
  border-radius: 8px;
  background-color: rgba(40, 40, 41, 1);
  padding: 20px 30px;
}


.modal-dialog.vuln-dialog {
    max-width: 1000px;
    width: 1000px;
    margin: 1.75rem auto; /* центрирование */
}

.vuln-modal-wrapper {
  width: 1000px;
}

.vuln-recommend {
  text-align: left; /* текст слева */
  width: 100%;       /* занимает всю ширину контейнера */
}

#recommendsModalBody hr {
  border: none;
  height: 3px;
  background-color: var(--color-text-primary);
  width: 100%;       /* растянуть по ширине контейнера */
  margin: 10px 0;    /* отступы сверху/снизу */
}

.vulnerabilities-table td:nth-child(3),
.vulnerabilities-table td:nth-child(4),
.vulnerabilities-table td:nth-child(5),
.vulnerabilities-table td:nth-child(6) {
    vertical-align: top; /* выравниваем текст сверху */
}

/*СТИЛИ ДЛЯ СТРАНИЦЫ С БЮЛЛЕТЕНЯМИ*/
.btn-edit {
  width: 170px;
  height: 48px;
  background-color: rgba(87, 87, 102, 1);
  color: rgba(224, 231, 245, 1);
}

.btn-add-bulletin {
  background-color: var(--color-primary-action);
  padding-left: 12px;
  padding-right: 12px;
  width: 201px;
  height: 48px;
}

.collapse-projects {
  background-color: var(--color-bg-input);
  border-radius: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;             /* убираем отступы в закрытом состоянии */
  opacity: 0;             /* полностью прозрачный */
  visibility: hidden;
}

.collapse-projects.open {
  max-height: 200px; /* высота при раскрытии */
  overflow-y: auto; /* скролл если нужно */
  padding: 10px 16px;
  opacity: 1;             /* делаем видимым */
  visibility: visible;    /* возвращаем видимость */
}


#toggleProjectsBtn {
  cursor: pointer;
}

#toggleProjectsBtn:hover {
}

.bulletin-modal-header{
    display: flex;
    justify-content: center;
    align-items: center;
}

.bulletin-modal-textarea,
.bulletin-modal-textarea:focus {
  background-color: rgba(40, 40, 41, 1);
  border-radius: 8px;
  color: rgba(224, 231, 245, 1);
  border-color: rgba(40, 40, 41, 1);
  outline: none; /* отключаем стандартную синюю рамку */
  box-shadow: none; /* на случай, если браузер использует тень для фокуса */
}

.modal-content-bulletin {
    border-radius: 16px;
    background-color: rgba(27, 27, 37, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.modal-bulletin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#projects-container > div {
  align-items: center;
  display: flex;
  gap: 8px;          /* отступ между чекбоксом и текстом */
  padding: 4px 0;    /* вертикальные отступы между строками */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* необязательно: лёгкое разделение строк */
}

#projects-container > div:last-child {
  border-bottom: none; /* убираем линию у последнего элемента */
}

#projects-container input[type="checkbox"] {
  cursor: pointer;
}

#bulletin-name-input:disabled {
  background-color: var(--color-btn-disabled) !important;
  cursor: default !important;
  opacity: 0.3 !important;
}

#file-info {
  width: 100%;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
  padding-left: 16px;
  margin-left: 0;
  text-align: left;
}

/*СТИЛИ ДЛЯ СТРАНИЦ ВХОДА И РЕГИСТРАЦИИ*/
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 24px;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-direction: column;
  border-radius: 16px;
  background-color: rgba(27, 27, 37, 1);
  padding: 24px;
  width: 100%;
  max-width: 500px;
}

.credentials-input {
    min-height: 56px;
    background-color: rgba(40, 40, 41, 1);
    border: none;
    border-radius: 10px;
    color: rgba(224, 231, 245, 1);
    margin-bottom: 10px;
}

.btn-auth {
  background-color: rgba(87, 87, 102, 1);
    color: rgba(224, 231, 245, 1);
    border-radius: 10px;
    padding: 10px 20px;
    width: 170px;
    height: 48px;
    gap: 10px;
}

.btn-auth:hover {
    background-color: rgba(87, 87, 102, 0.6);
}

.custom-link {
    color: rgba(183, 45, 73, 1);
    text-decoration: none;
}

.custom-link:hover {
    text-decoration: underline;
}

.verify-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 480px;
  height: 300px;
  border-radius: 16px;
  background-color: rgba(27, 27, 37, 1);
}

.btn-forget-password {
  background-color: rgba(27, 27, 37, 1);
}

.сonfirm-reset-password-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 600px;
  height: 400px;
  border-radius: 16px;
  background-color: rgba(27, 27, 37, 1);
}

.support-link {
  color: rgba(224, 231, 245, 1);
  text-decoration: none;
}

.support-link:hover {
    cursor: pointer;
    text-decoration: underline;
}

.empty {
  flex-grow: 1;
}

.footer-content {
  padding: 24px 24px 8px;
  z-index: 0; /* фон уже у .footer-bg с z-index: -1 */
  line-height: 1;
  width: 100%;
  background-color: var(--color-bg-container);
  border-radius: 16px 16px 0 0;
}

.feedback-modal-header{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 600px;
    height: 70px;
}