/* Скрываем стандартный заголовок сайта на странице регистра */
.title_content {
    display: none !important;
}
.filter-options {
    display: none !important;
}

.filter-dropdown.open .filter-options {
    display: block !important;
}
.registr-page-title {
    font-family: 'Noto Sans Bold';
    font-weight: 700;
    font-size: 32px;
    line-height: 44px;
    letter-spacing: 1.8px;
    color: #93AC3C;
       text-align: left;
    max-width: 1060px;
}

/* ====== Регистр МИС ====== */
.registr-page {
    position: relative;
    overflow: visible !important;
    padding-bottom: 80px;
    text-align: left;
}

.registr-page .registr-title {
    font-family: 'Noto Sans Bold', sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 38px;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #93AC3C;
    margin-bottom: 40px;
    text-align: left;
    display: block;
}


.search-filter-container {

    z-index: 100;
    background: #ffffff;
    padding-top: 24px;
    padding-bottom: 24px;
   }

.registr-table-header {

    z-index: 99;
    background: #ffffff;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.registr-table-header table {
    margin-bottom: 0;
}

.registr-table-header thead th:first-child {
    border-top-left-radius: 8px;
}

.registr-table-header thead th:last-child {
    border-top-right-radius: 8px;
}

/* ====== Поиск и фильтр ====== */

/* Общий контейнер поиска */
.search-wrapper {
    position: relative;
    width: 700px;
    height: 40px;
    background: #F1F1F1;
    border: 1px solid #F1F1F1;
    border-radius: 24px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Иконка лупы слева */
.search-icon {
    flex-shrink: 0;
    margin-left: 8px;
}

/* Поле ввода */
.search-input {
    flex: 1;
    height: 100%;
    padding: 0 12px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #000000;
    background: transparent;
    border: none;
    outline: none;
}

.search-input::placeholder {
    color: #999999;
}

/* Фильтр-dropdown ВНУТРИ справа */
.filter-dropdown {
    position: relative;
        height: 32px;
    background: #FFFFFF;
    border-radius: 24px;
    flex-shrink: 0;
}

.filter-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 2px 12px 2px 16px;
    cursor: pointer;
    user-select: none;
}

.filter-selected span {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #323234;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.filter-arrow {
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.3s;
}

.filter-dropdown.open .filter-arrow {
    transform: rotate(180deg);
}

/* Выпадающий список */
.filter-options {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 280px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    z-index: 100;
}

.filter-option {
    padding: 8px 16px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    line-height: 19px;
    color: #323234;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.filter-option:hover {
    background: #E9EED8;
}

.filter-option.active {
    background: #D4DEB1;
}

/* ====== Таблицы ====== */

/* Отступ между таблицами МИС */
.registr-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 20px;
    border-radius: 8px;
padding: 20px 4px;
background: #EFF3E2;
}


.registr-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

/* Закругление углов последней строки */
.registr-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.registr-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Заголовки таблицы */
.registr-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    color: #666666;
    border-bottom: 1px solid #E0E0E0;
    background: transparent;
}

/* Фиксированные ширины колонок */
.registr-table thead th.col-name,
.registr-table tbody td.col-name {
    width: 40%;
}

.registr-table thead th.col-version,
.registr-table tbody td.col-version {
    width: 20%;
}

.registr-table thead th.col-protocol-num,
.registr-table tbody td.col-protocol-num {
    width: 15%;
}

.registr-table thead th.col-date,
.registr-table tbody td.col-date {
    width: 20%;
}

.registr-table thead th.col-expand,
.registr-table tbody td.col-expand {
    width: 5%;
}

.registr-table thead th.col-expand {
    padding: 15px 10px;
}

.registr-table tbody td.col-expand {
    padding: 0px;
    text-align: center;
}

/* Основные строки МИС */
.mis-main-row {
    background: #EFF3E2;
    transition: background 0.2s;
}


.registr-table-wrapper .mis-main-row {
    transition: background 0.2s;
}


.mis-main-row td {
    padding: 4px 20px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #000000;
}
.mis-main-row td.col-name {
    vertical-align: top; /* ← Выравнивание по верху */
    }

/* Информация о МИС */
.mis-info {
    display: flex;
    flex-direction: column;
}

.mis-name {
    font-family: 'Noto Sans Bold', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 27px;
letter-spacing: 1.1px;
    color: #000000;
    margin-bottom: 12px;
}

.mis-org {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #323234;
}

/* Версия с иконкой info */
.version-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
}

.info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: help;
    display: block;
   filter: brightness(#6C6C6C); 
}

/* Подсказка поверх всего - FIXED позиция */
.info-tooltip {
    position: fixed;
    width: 256px;
    padding: 8px;
    background: #18212F;
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    line-height: 19px;
    text-align: left;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    white-space: normal;
    word-wrap: break-word;
}

.info-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #18212F;
}

.info-tooltip-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Кнопка раскрытия */
.registr-page .expand-button {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
   padding-right: 0px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s !important;
    outline: none;
    width: auto !important;
    color: #666666 !important;
    line-height: normal !important;
padding: 0px 0px;
}

.registr-page .expand-button:hover {
    opacity: 0.7;
    background: transparent !important;
}

.registr-page .expand-button.expanded {
    transform: rotate(180deg);
}

.registr-page .expand-icon {
    display: block;
    width: 10px;
    height: 20px;
}

.registr-page .expand-icon path {
    stroke: #666666 !important;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Разделитель с зелёной полосой */
.mis-separator {
    background: #EFF3E2;
}

.mis-separator td {
    padding: 0;
    border: none;
}

.separator-line {
    height: 1px;
    background: #C1D08F;
margin: 20px 20px;
 }

/* История версий */
.mis-history-header {
    background: #EFF3E2;
    border-top: none;
    border: none !important;
}

.mis-history-header td {
    padding: 4px 20px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #000000;
    border: none !important;
}

.history-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #323234;
    margin: 0;
}

/* ====== Кнопки ====== */

/* Контейнер для кнопок */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Кнопка "Вернуться" - ЗЕЛЁНАЯ */
.back-button {
    background: #93AC3C;
    padding: 12px 15px;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    border: 1px solid #93AC3C;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    height: 48px;
}
.back-button img {
    width: 24px;
margin-right: -5px;
height: 24px;
   }
.back-button:hover {
    background: transparent;
    color: #93AC3C;
    border: 1px solid #93AC3C;
}

.back-button:focus {
    background: #4D784E;
    color: #ffffff;
    border: 1px solid #4D784E;
}
.back-button:hover img {
    filter: brightness(0) saturate(100%) invert(62%) sepia(32%) saturate(618%) hue-rotate(37deg) brightness(91%) contrast(86%);
    /* ← Это дает цвет #93AC3C */
}
.back-button:focus img {
    filter: brightness(0) invert(1); 
}
/* Кнопка "Показать ещё" - БЕЛАЯ С РАМКОЙ */
.show-more-button {
    background: transparent !important;
    padding: 0px 18px !important;
    color: #93AC3C !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    border: 1px solid #93AC3C !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    text-decoration: none !important;
    line-height: normal !important;
    height: 48px;
}

.show-more-button:hover {
    background: #93AC3C !important;
    color: #ffffff !important;
}

.show-more-button:focus {
    background: #4D784E !important;
    color: #ffffff !important;
    border: 1px solid #4D784E !important;
}

/* Скрытые МИС */
.hidden-mis {
    display: none;
}



/* ====== ТЁМНАЯ ТЕМА ====== */

/* Поиск и фильтр */
.dark_theme .search-filter-container {
    background: #323234;
}

.dark_theme .search-wrapper {
    background: #B8B8B8;
    border-color: #4a4a4a;
}

.dark_theme .search-input::placeholder {
    color: #666666;
}

.dark_theme .filter-dropdown {
    background: #464648;
}

.dark_theme .filter-selected span {
    color: #F1F1F1;
}

.dark_theme .filter-options {
    background: #464648;
}

.dark_theme .filter-option {
    color: #ffffff;
}

.dark_theme .filter-option:hover {
    background: #43463A;;
}

.dark_theme .filter-option.active {
    background: #2A2A23;
}

.dark_theme .search-icon circle,
.dark_theme .search-icon path,
.dark_theme .filter-arrow path {
    stroke: #cccccc;
}
    .dark_theme .history-title {
        color: #FFFFFF;
    }

/* Таблицы */
.dark_theme .registr-table-header {
    background: #323234;
}
.dark_theme .back-button:hover img {
    filter: brightness(0) saturate(100%) invert(62%) sepia(32%) saturate(618%) hue-rotate(37deg) brightness(91%) contrast(86%);
    /* ← Это дает цвет #93AC3C */
}
.dark_theme .registr-table thead th {
    color: #FFFFFF;
    border-bottom-color: #4a4a4a;
}
.dark_theme .registr-table-wrapper {
    background: #575B4D;
}
.dark_theme .mis-main-row {
    background: #575B4D;
}
.dark_theme .registr-table-wrapper:hover .mis-main-row {
    background: #575B4D;
}

.dark_theme .mis-main-row:hover {
    background: #575B4D;
}

.dark_theme .mis-main-row td {
    color: #ffffff;
    border-bottom-color: #4a4a4a;
}

.dark_theme .mis-name {
    color: #ffffff;
}

.dark_theme .mis-org {
    color: #FFFFFF;
}

.dark_theme .registr-page .expand-icon path {
    stroke: #cccccc !important;
}

.dark_theme .mis-separator {
    background: #575B4D;
}

.dark_theme .mis-history-header {
    background: #575B4D;
}

.dark_theme .mis-history-header td {
    color: #ffffff;
}
.dark_theme .registr-page .registr-title {
    color: #93AC3C;
}
.dark_theme .info-icon {
    filter: brightness(0) invert(1); /* ← Делает иконку белой */
}
.dark_theme .expand-icon {
    filter: brightness(0) invert(1); /* ← Делает иконку белой */
}
.dark_theme .info-tooltip {
    background: #464648;
    color: #ffffff;
}

.dark_theme .info-tooltip::after {
    border-bottom-color: #464648;
}

/* Кнопки */
.dark_theme .back-button {
    color: #323234;
}
.dark_theme .back-button img{
      filter: brightness(0);
}
.dark_theme .back-button:hover {
    background: transparent;
    color: #93AC3C;
}

.dark_theme .show-more-button {
    background: transparent !important;
    color: #93AC3C !important;
    border-color: #93AC3C !important;
}

.dark_theme .show-more-button:hover {
    background: #93AC3C !important;
    color: #000000 !important;
}

.clear-search:hover {
    opacity: 1;
}
  .clear-search {
        padding-right: 10px;
    }
