/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}


.lead-tab {display: inline-flex; align-items:center;gap:.4rem; padding:.25rem .5rem; border:1px solid;border-radius:.4rem; background:#f8f9fa; cursor:pointer; max-width: 220px;
}
.lead-tab.active { background:#e9f5ff; border-color:#b6e0ff; }
.lead-tab .title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lead-tab .close { border:none; background:transparent; line-height:1; }
.lead-iframe { display:none; width:100%; height: calc(100vh - 210px); border:0; }
.lead-iframe.active { display:block; }

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}
.addr-dd {
    position: absolute;
    z-index: 2000;
    background: #fff;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    max-height: 300px;
    overflow: auto;
    padding: .25rem 0;
  }
.addr-dd.hidden { display: none; }
.addr-item {
    padding: .5rem .75rem;
    cursor: pointer;
    line-height: 1.25rem;
  }
.addr-item small { display:block; color: #6c757d; }
.addr-item.active, .addr-item:hover {
    background: #eef5ff;
  }
.addr-empty, .addr-loading { padding: .75rem; color:#6c757d; }
.addr-mark { font-weight: 600; }

/* бейдж фуксия */
.bg-fuchsia { background:#ff00ff !important; color:#fff !important; }

#id_status.status-select{
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Белый текст на «ярких» фонах */
#id_status.bg-warning,
#id_status.bg-success,
#id_status.bg-info,
#id_status.bg-secondary,
#id_status.bg-fuchsia{
  color:#fff!important;
  border-color:transparent!important;
}

/* Тёмный текст на светлом фоне */
#id_status.bg-light{
  color:#212529!important;
}

/* Видимая обводка при фокусе на любых фонах */
#id_status.status-select:focus{
  box-shadow:0 0 0 .2rem rgba(0,0,0,.12);
}

/* строка таблицы с фуксией — делаем мягкий оттенок */
.table-fuchsia { --bs-table-bg: #fff0ff; } /* нежно-розово-фуксиевый фон *

/* прячем глобальный хром, когда внутри iframe */
.embed #leadTabsBar,
.embed .layout-menu,           /* левое меню */
.embed .content-navbar,        /* верхний бар если есть */
.embed .layout-overlay,
.embed .footer { display:none !important; }

.embed .layout-page { margin-left:0 !important; } /* убрать отступ под меню */

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}
