/* ************************************************************************************ a-Switch ************************************************************************************ */

.a-Switch input[type="checkbox"]:checked+.a-Switch-toggle {
    background-color: #00b777;
}

.a-Switch-toggle {
    transition: background-color 0.3s ease;
}

.a-Switch input[type=checkbox]:checked+.a-Switch-toggle {
    background-color: #00b777;
}

.a-Switch:hover input[type=checkbox]:checked+.a-Switch-toggle {
    background-color: #00b777;
}


/* ************************************************************************************ Bank ************************************************************************************ */

/* Основной контейнер */
.apex-bank-container {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    border-style: solid;
    border-color: #f2f2f2;
    border-width: var(--a-cv-border-width, 1px);
    box-shadow: var(--a-cv-state-shadow, var(--a-cv-type-shadow, var(--a-cv-shadow, none)));
    border-color: var(--ut-region-border-color, var(--ut-component-border-color));
}

/* Заголовок */
.bank-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid #e3e6ea;
    padding-bottom: 1rem;
}

.bank-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.bank-subtitle {
    font-size: 1rem;
    color: #7a7f87;
    margin-top: 0.5rem;
}

.bank-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Контент */
.bank-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.bank-main {
    flex: 1 1 60%;
    min-width: 300px;
}


.bank-sidebar {
    flex: 1 1 30%;
    min-width: 260px;
    background: #f9fafb;
    border-radius: 1.5rem;
    padding: 1rem;
    border: 1px solid #e0e3e7;
    transition: all 0.3s ease;
    position: relative;
    align-self: flex-start;
    /* Ключевой параметр для высоты */

}

.bank-sidebar.collapsed {
    width: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

/* Футер */
.bank-footer {
    border-top: 1px solid #e3e6ea;
    padding-top: 1rem;
    text-align: center;
}

.bank-footer-content {
    font-size: 0.875rem;
    color: #a1a1a1;
}

/* Анимация */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button.t-Button {
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    /*  background-color: #2f6fb0; /* синий для банка */
    /*  color: white; */
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button.t-Button:hover {
    /*background-color: #24578f; */
}

/* Кнопка “Скрыть / Показать” */
#toggleSidebarBtn {
    background: none;
    border: none;
    color: #6c757d;
    /* серый, нейтральный */
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#toggleSidebarBtn:hover {
    color: #2c3e50;
    /* чуть темнее при наведении */
    transform: translateX(-2px);
}

#sidebarToggleIcon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.t-HeroRegion-title {
    font-size: var(--ut-hero-region-title-font-size, 1rem 16px);
    line-height: var(--ut-hero-region-title-line-height, 2.5rem);
}

/* Эффект collapse */

/* Обертка для тела региона */
.t-Region-bodyWrap {
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
    max-height: 0;
    opacity: 0;
    transform: scaleY(0.9);
}

.t-Region:not(.is-collapsed) .t-Region-bodyWrap {
    max-height: fit-content;
    opacity: 1;
    transform: scaleY(1);
}

/* Заголовок региона */
.t-Region-header {
    transition: background-color 0.6s ease, box-shadow 0.3s ease;
}

.t-Region:not(.is-collapsed) .t-Region-header {
    background-color: #f9f9f9;
    border-radius: 1rem;
}

.t-Region.is-collapsed .t-Region-header {
    background-color: #ffffff;
    box-shadow: none;
}

/* Иконка поворота */
.toggle-icon {
    transition: transform 0.3s ease;
}

.t-Region.is-collapsed .toggle-icon {
    transform: rotate(0deg);
}

.t-Region:not(.is-collapsed) .toggle-icon {
    transform: rotate(90deg);
}

/* Общая анимация блока */
.t-Region {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.t-Region.is-collapsed {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Убираем фокусные рамки */
:focus {
    outline: transparent;
}

/* Hover эффект */
.t-Button--hideShow:hover {
    background-color: #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #222;
}

/* Нажатие */
.t-Button--hideShow:active {
    transform: scale(0.95);
}

/* Фокусное состояние */
.t-Button--hideShow:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Иконка внутри кнопки */
.t-Button--hideShow .toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* ************************************************************************************ t-Region-title ************************************************************************************ */

.t-Region-title {

    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.t-Region-header {
    align-items: center;
    background-color: #f9f9f9;
    border-block-end-color: rgb(0 0 0 / 0%);
    border-block-end-style: solid;
    border-block-end-width: var(--ut-region-header-border-width, var(--ut-region-border-width, 1px));
    border-top-left-radius: var(--ut-region-border-radius, var(--ut-component-border-radius));
    border-top-right-radius: var(--ut-region-border-radius, var(--ut-component-border-radius));
    color: var(--ut-region-header-text-color, var(--ut-region-text-color, var(--ut-component-text-default-color)));
    display: flex;
    font-size: var(--ut-region-header-font-size, 1rem);
    font-weight: var(--a-base-font-weight-semibold, 500);
    line-height: var(--ut-region-header-line-height, 1.5rem);
    margin-top: 8px;
    margin-right: 8px;
    margin-left: 8px;
    margin-bottom: 8px;
    border-radius: 10px;
}

.t-Region-body {
    padding-block-end: var(--ut-region-body-padding-y, 1rem);
    padding-block-start: 0.5rem;
    padding-inline-end: var(--ut-region-body-padding-x, 1rem);
    padding-inline-start: var(--ut-region-body-padding-x, 1rem);
    position: relative;
}

.t-Region-headerItems--title {
    padding-inline-start: .75rem;
}

.t-Region {
    border-radius: 1.5rem;
    /*box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); */
}

.t-Button--hideShow {
    --a-button-font-size: 0.6875rem;
    --a-button-line-height: 0.875rem;
    --a-button-padding-y: 0.25rem;
    --a-button-padding-x: 0.25rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    color: #555;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}


/* t-HeroRegion-title */
.t-HeroRegion-title {
    background: #f9f9f900;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 12px;
    margin-bottom: 5px;
}


.t-NavTabs-item .t-Icon {
    margin-inline-end: var(--ut-navtabs-icon-spacing, .25rem);
    font-weight: 600;
}

.t-NavigationBar-item,
.t-Icon {
    font-size: 1.5rem;
    font-weight: 600;
}


/* Базовый стиль навигации */
.t-NavTabs {
  display: flex;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 1.25rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  max-width: 1280px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  font-weight: 600;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

.t-NavTabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  color: #1f2937;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.2s ease-in-out;
  min-width: 60px;
}

.t-NavTabs a .nav-icon {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  transition: transform 0.3s;
}

.t-NavTabs a .nav-text {
  font-size: 0.75rem;
  transition: opacity 0.2s ease;
}

.t-NavTabs a:hover {
  color: #095880;
  background: rgba(9, 88, 128, 0.05);
  text-shadow: 0 0 1px rgba(9, 88, 128, 0.3);
}

/* Активный пункт */
.t-NavTabs .is-active a {
  color: #095880;
  background-color: rgba(9, 88, 128, 0.08);
  box-shadow: inset 0 -2px 0 0 #095880;
}

/* === MOBILE: Только иконки === */
@media (max-width: 768px) {
  .t-NavTabs {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 999;
    background-color: #fdfdfd;
    border-radius: 1.5rem;
    /*padding: 0.35rem 0;*/
    padding: 0px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    backdrop-filter: blur(6px);
    border: 1px solid #e5e7eb;
    font-weight: 600;
  }

  .t-NavTabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.7rem;
    text-decoration: none;
    border-radius: 1rem;
    transition: background 0.2s;
    position: relative;
  }

  .t-NavTabs a .nav-text {
    display: none;
  }

  .t-NavTabs a .nav-icon {
    font-size: 1.2rem;
  }

  .t-NavTabs a:hover {
    background-color: rgba(9, 88, 128, 0.06);
  }

  .t-Body-main {
    padding-bottom: 70px; /* отступ под нижнюю панель */
  }
}

@media (max-width: 767px) {
    .t-NavTabs-item .t-Icon {
        margin: .25rem;
        padding: .25rem;
        font-weight: bold;
    }
}

/* Если мобильная версия Inline Dialogs to be Full Screen */
@media (max-width: 767px) {
   .ui-dialog--inline {
      min-block-size: 100dvh;
      min-inline-size: 100dvw;
   }
}


/* ************************************************************************************ t-MediaList ************************************************************************************ */

#nav_bar_cabinet .t-MediaList {
    background-color: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-color: var(--a-cv-state-border-color, var(--a-cv-type-border-color, var(--a-cv-border-color)));
    border-style: solid;
    border-width: var(--a-cv-border-width, 1px);
    box-shadow: var(--a-cv-state-shadow, var(--a-cv-type-shadow, var(--a-cv-shadow, none)));
    color: var(--a-cv-state-text-color, var(--a-cv-type-text-color, var(--a-cv-text-color, inherit)));
}

#nav_bar_cabinet .t-MediaList-item {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    
}

#nav_bar_cabinet .t-MediaList-item:last-child {
    border-bottom: none;
}

#nav_bar_cabinet .t-MediaList-item:hover {
    background-color: #f7fafd00;
    border-radius: 0.5rem;
}

 #nav_bar_cabinet .t-MediaList-icon, .t-MediaList-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #e6f2f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    color: #095880;
}

#nav_bar_cabinet .t-MediaList-body {
    flex: 1;
}

#nav_bar_cabinet .t-MediaList-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

#nav_bar_cabinet .t-MediaList-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}


/*OSGOP*/
.osgop-benefits {
    background: #f9fafb;
    border: 1px solid #e0e3e7;
    border-radius: 1rem;
    padding: 1.5rem;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.benefits-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefits-title .accent {
    color: #095880;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.benefit-icon {
    color: #10b981;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.osgop-coverage-period {
    background: #f9fafb;
    border: 1px solid #e0e3e7;
    border-radius: 1rem;
    padding: 1.25rem;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #1f2937;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.coverage-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.coverage-content {
    display: flex;
    align-items: flex-start;
}

.coverage-icon {
    font-size: 1.4rem;
    color: #f59e0b;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.coverage-content p {
    margin: 0;
    line-height: 1.6;
}


/*OSGOR*/

.osgor-block {
  background: #f9fafb;
  border: 1px solid #e0e3e7;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  color: #1a2a3a;
}

.osgor-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #1a2a3a;
}

.osgor-block .icon {
  margin-right: 0.5rem;
  color: #095880;
}

.osgor-block .accent {
  color: #095880;
}

.osgor-block ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.osgor-block ul li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.osgor-block .sub-list {
  list-style-type: disc;
  margin-left: 1rem;
  margin-top: 0.25rem;
}

.osgor-block .important {
  background: #fff8e1;
  padding: 0.75rem;
  border-left: 4px solid #f9a825;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  margin-top: 1rem;
}


