:root {
    --body-quiet-color: #666;
    --bs-table-bg-hover: #e6e9ee;
    --bs-breadcrumb-font-size: 10px;
    --bs-primary-bg-subtle:#2f3541;
    /*--bs-secondary-color: #F00 !important;*/
}

.page-content {
    height: 100vh;
    overflow:scroll;
}

a {
    /*color: #526994; !important;*/
    color: #526994; !important;
    font-weight: 400; /*!important;*/

}

/*.title-row {*/
/*    padding-top: 10px;*/
/*}*/

#changelist {
    font-size: 12px !important;

}
/*TABLE*/
table thead th .text a:focus, table thead th .text a:hover {
    background: var(--bs-table-bg-hover);
}

table thead th:focus,
table thead th:hover {
    background: var(--bs-table-bg-hover);
}

#changelist table thead th.action-checkbox-column {
    width: 1.5em;
    text-align: center;
}
table thead th.action-checkbox-column {
    width: 1.5em;
    text-align: center;
}

#changelist table thead th {
    line-height: normal;
    text-transform: uppercase; !important;
}

table thead th .text a {
    display: block;
    cursor: pointer;
    /*padding: 8px 10px;*/
}

thead th a:link, thead th a:visited {
  color: var(--body-quiet-color) !important;
}

thead th.sorted a.sortremove {
    visibility: hidden;
}

.table>:not(caption)>*>* {
    padding:.5rem .5rem; !important;
    font-size: 12px !important;
}

table thead th.sorted:hover a.sortremove {
    visibility: visible;
}

table thead th.sorted .sortoptions {
    display: block;
    /*padding: 9px 5px 0 5px;*/
    float: right;
    text-align: right;
}

table thead th.sorted .sortpriority {
    font-size: .6em;
    min-width: 12px;
    text-align: center;
    vertical-align: 3px;
    margin-left: 2px;
    margin-right: 2px;
    opacity: 0.5;
}

table thead th.sorted .sortoptions a {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
    /*background: url(../images/django/sorting-icons.svg) 0 0 no-repeat;*/
    /*background-size: 14px auto;*/

}

table thead th.sorted .sortoptions a.sortremove {
    /*background-position: 0 0;*/
    content: '\2191\2193';

}

table thead th.sorted .sortoptions a.sortremove:after {
    content: '\2191\2193';
    position: absolute;
    /*top: -6px;*/
    left: -10px;
    /*font-weight: 200;*/
    /*font-size: 1.125rem;*/
    color: #9d9d9d;
    letter-spacing: 1px;
}

table thead th.sorted .sortoptions a.sortremove:focus:after,
table thead th.sorted .sortoptions a.sortremove:hover:after {
    color: var(--link-fg);
}

/*table thead th.sorted .sortoptions a.sortremove:focus,*/
/*table thead th.sorted .sortoptions a.sortremove:hover {*/
/*    !*background-position: 0 -14px;*!*/
/*    !*content: 'A'*!*/
/*}*/

/*table thead th.sorted .sortoptions a.ascending {*/
    /*background-position: 0 -28px;*/
    /*content: "down";*/
/*}*/

table thead th.sorted .sortoptions a.ascending:focus,
table thead th.sorted .sortoptions a.ascending:hover,
table thead th.sorted .sortoptions a.ascending:after {
    /*background-position: 0 -42px;*/
    content: "\2191";
}

/*table thead th.sorted .sortoptions a.descending {*/
/*    top: 1px;*/
/*    background-position: 0 -56px;*/
/*}*/

table thead th.sorted .sortoptions a.descending:focus,
table thead th.sorted .sortoptions a.descending:hover,
table thead th.sorted .sortoptions a.descending:after {
    content: "\2193";
}
/*OBJECTS TOOLS*/
.object-tools {
    font-size: 0.625rem;
    font-weight: bold;
    padding-left: 0;
    float: right;
    position: relative;
}

.help, p.help, form p.help, div.help, form div.help, div.help li {
    font-size: 0.6875rem;
    color: var(--body-quiet-color);
}
.help-padding {
    padding-bottom: 10px;
}

#changelist .actions {
    padding: 10px;
    background: var(--body-bg);
    border-top: none;
    border-bottom: none;
    line-height: 24px;
    color: var(--body-quiet-color);
    width: 100%;
}

#changelist .actions span.all,
#changelist .actions span.action-counter,
#changelist .actions span.clear,
#changelist .actions span.question {
    font-size: 9px;
    margin: 0 0.5em;
}

#changelist .actions:last-child {
    border-bottom: none;
}

#changelist .actions select {
    vertical-align: top;
    height: 24px;
    color: var(--body-fg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    padding: 0 0 0 4px;
    margin: 0;
    margin-left: 10px;
}

#changelist .actions select:focus {
    border-color: var(--body-quiet-color);
}

#changelist .actions label {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.8125rem;
}

#changelist .actions .button {
    font-size: 0.8125rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--body-bg);
    box-shadow: 0 -15px 20px -10px rgba(0, 0, 0, 0.15) inset;
    cursor: pointer;
    height: 24px;
    line-height: 1;
    padding: 4px 8px;
    margin: 0;
    color: var(--body-fg);
}

#changelist .actions .button:focus,
#changelist .actions .button:hover {
    border-color: var(--body-quiet-color);
}

.clear {
    clear: both;
}

.nowrap {
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

.paginator-align-right {
    float: right;
}
.object-tools-align-right {
    float: right;
}

.search-result {
    align-items: center;
    display: flex;
}

.page-link.active, .active > .page-link {
  /*z-index: 3;*/
  color: #000 !important;
  background-color: rgba(116, 120, 141, 0.1) !important;
  border-color: var(--bs-border-color) !important;
}

.errorlist{
    --bs-alert-color: var(--bs-danger-text-emphasis);
    --bs-alert-bg: var(--bs-danger-bg-subtle);
    --bs-alert-border-color: var(--bs-danger-border-subtle);
    --bs-alert-link-color: var(--bs-danger-text-emphasis);

    --bs-alert-padding-x: 5px;
    --bs-alert-padding-y: 5px;
    --bs-alert-margin-bottom: 1rem;
    --bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);
    --bs-alert-border-radius: var(--bs-border-radius);
    position: relative;
    padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);
    margin-bottom: var(--bs-alert-margin-bottom);
    color: var(--bs-alert-color);
    background-color: var(--bs-alert-bg);
    border: var(--bs-alert-border);
    border-radius: var(--bs-alert-border-radius);
    list-style-type: none;
    font-size: .7109375rem;
    width: auto;
}

.field-message{
    position: relative;
    padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);
    margin-bottom: var(--bs-alert-margin-bottom);
    color: var(--bs-alert-color);
    background-color: var(--bs-alert-bg);
    border: var(--bs-alert-border);
    border-radius: var(--bs-alert-border-radius);
    list-style-type: none;
    font-size: .7109375rem;
    width: auto;
}

/*.errorlist{*/
/*  position: absolute;*/
/*  !*top: 100%;*!*/
/*  z-index: 5;*/
/*  !*display: none;*!*/
/*  max-width: 100%;*/
/*  padding: .4rem .7rem;*/
/*  margin-top: .1rem;*/
/*  font-size: .7109375rem;*/
/*  line-height: 1.5;*/
/*  color: #fff;*/
/*  background-color: var(--bs-danger);*/
/*  border-radius: var(--bs-border-radius);*/
/*}*/

.table-striped > tbody > tr:nth-of-type(2n+1) > * {
  --bs-table-bg-type: rgba(241, 241, 241, 0.5);
}

.form-check-input-fix {
padding: .47rem .47rem !important;
}

.errors input, .errors select, .errors textarea, td ul.errorlist + input, td ul.errorlist + select, td ul.errorlist + textarea {
  border: 1px solid var(--error-fg);
}

label.required {
    font-weight: 600 !important;
    /*background-color: rgba(223, 238, 251, 0.7);*/
    background: linear-gradient(90deg, rgba(80,165,241,.1) 15%, rgba(255,255,255,0) 85%); !important;
    display: inline-block;
    /*padding: 2px 8px;*/
    padding-top: 2px;
    padding-right: 8px;
    padding-bottom: 2px;
    padding-left: 4px;
    border-radius: 4px;
}

label {
    font-weight: 500 !important;
    /*background-color: rgba(223, 238, 251, 0.7);*/
    background: linear-gradient(90deg, rgba(80,165,241,.1) 30%, rgba(255,255,255,0) 95%); !important;

    display: inline-block;
    /*padding: 2px 8px;*/
    padding-top: 2px;
    padding-right: 8px;
    padding-bottom: 2px;
    padding-left: 4px;
    border-radius: 4px;
}

.empty-form {
    display: none;
}

.js-inline-admin-formset {
    padding-top: 0px;
    padding-bottom: 0px;
}

/* COLLAPSED FIELDSETS */

fieldset.collapsed * {
    display: none;
}
fieldset.collapsed .testclass {
    display: inline;
}

fieldset.collapsed h6, fieldset.collapsed {
    display: block !important;
}

fieldset.collapsed {
    border: 1px solid var(--hairline-color);
    border-radius: 4px;
    overflow: hidden;
}

fieldset.collapsed h6 {
    /*background: var(--darkened-bg);*/
    /*color: var(--body-quiet-color);*/
}
fieldset.collapse {
  display: block !important;
}

fieldset .collapse-toggle {
    color: var(--header-link-color);
}

fieldset.collapsed .collapse-toggle {
    background: transparent;
    display: inline;
    color: var(--link-fg);
}

.inline-group .tabular tr.has_original td {
    padding-top: 0.5em;
}

.inline-group .tabular tr td.original {
    padding: 2px 0 0 0;
    width: 0;
    _position: relative;
}

.inline-group .tabular th.original {
    width: 0px;
    padding: 0;
}

.inline-group .tabular td.original p {
    position: absolute;
    left: 0;
    height: 1.1em;
    padding: 2px 9px;
    overflow: hidden;
    font-size: 0.5625rem;
    font-weight: bold;
    color: var(--body-quiet-color);
    _width: 700px;
}


    .selector {
        display: flex;
        width: 100%;
    }

    .selector .selector-filter {
        display: flex;
        align-items: center;
        justify-content: left;
    }

    .selector .selector-filter label {
        margin: 0 8px 0 0;
    }

    .selector .selector-filter input {
        width: auto;
        min-height: 0;
        flex: 1 1;
    }

    .selector-available, .selector-chosen {
        width: auto;
        flex: 1 1;
        display: flex;
        flex-direction: column;
    }

    .selector select {
        width: 100%;
        flex: 1 0 auto;
        margin-bottom: 5px;
    }

    .selector ul.selector-chooser {
        width: 26px;
        height: 52px;
        padding: 2px 0;
        margin: auto 15px;
        border-radius: 20px;
        transform: translateY(-10px);
    }

    .selector-add, .selector-remove {
        width: 20px;
        height: 20px;
        background-size: 20px auto;
    }

    .selector-add {
        background-position: 0 -120px;
    }

    .selector-remove {
        background-position: 0 -80px;
    }

    a.selector-chooseall, a.selector-clearall {
        align-self: center;
    }

    .stacked {
        flex-direction: column;
        max-width: 480px;
    }

    .stacked > * {
        flex: 0 1 auto;
    }

    .stacked select {
        margin-bottom: 0;
    }

    .stacked .selector-available, .stacked .selector-chosen {
        width: auto;
    }

    .stacked ul.selector-chooser {
        width: 52px;
        height: 26px;
        padding: 0 2px;
        margin: 15px auto;
        transform: none;
    }

    .stacked .selector-chooser li {
        padding: 3px;
    }

    .stacked .selector-add, .stacked .selector-remove {
        background-size: 20px auto;
    }

    .stacked .selector-add {
        background-position: 0 -40px;
    }

    .stacked .active.selector-add {
        background-position: 0 -40px;
    }

    .active.selector-add:focus, .active.selector-add:hover {
        background-position: 0 -140px;
    }

    .stacked .active.selector-add:focus, .stacked .active.selector-add:hover {
        background-position: 0 -60px;
    }

    .stacked .selector-remove {
        background-position: 0 0;
    }

    .stacked .active.selector-remove {
        background-position: 0 0;
    }

    .active.selector-remove:focus, .active.selector-remove:hover {
        background-position: 0 -100px;
    }

    .stacked .active.selector-remove:focus, .stacked .active.selector-remove:hover {
        background-position: 0 -20px;
    }

    .help-tooltip, .selector .help-icon {
        display: none;
    }

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  /*color: var(--bs-nav-pills-link-active-color);*/
  background-color: #2f3541 !important;
}

.login-header-color {
    color: #a6b0cf !important;
}

.btn-soft-action {
  color: #74788d;
  /*background-color: rgba(116, 120, 141, 0.1);*/
  background-color: rgba(0, 0, 255, 0.1);
  border-color: transparent;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.btn-soft-action:hover, .btn-soft-action:focus, .btn-soft-action:active {
  /*background-color: rgb(255, 64, 0) !important;*/
  color: #fff;
  border-color: transparent;
}

.table_overflow_initial {
    overflow: initial !important;
}

.d-xl-inline-block {
    display: inline-block !important;
  }

.d-none {
  display: inline-block !important;
}

.select2-container {
    max-width: 500px !important;
    min-width: 150px !important;
    /*width: 100% !important;*/
}

.btn-soft-secondary-collspsible {
    color: #74788d;
    background-color: rgba(116,120,141,.5);
    border-color: transparent;
    -webkit-transition: all .5s ease;
    transition: all .5s ease;
}

.btn-soft-secondary-collspsible.collapsed {
    color: #74788d;
    background-color: rgba(116,120,141,.1);
    border-color: transparent;
    -webkit-transition: all .5s ease;
    transition: all .5s ease;
}

.btn-soft-secondary-collspsible:hover {
  background-color: rgb(42, 48, 66) !important;
}

.btn-soft-secondary-collspsible:hover, .btn-soft-secondary-collspsible:focus, .btn-soft-secondary-collspsible:active {
  color: #fff;
  background-color: #74788d;
  border-color: transparent;
}

.btn-close-inline {
    padding-right: 4px;
    font-size: 17px;
    color: #495057;
}

.autocomplete-light {
    background-image: none; !important;
    padding: 0px; !important;
}

#iframe_spinner {
    color: #FFFFFF;
    top: 50%;
    left: 50%;
    position: absolute;
    z-index: 1;
}

fieldset.collapsed h6, fieldset.collapsed {
    /*background: #ff0;*/
}

.change-list-tabs {
    padding-bottom: 10px;
}

.input-group {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  width: 100%;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; // Yeah, yeah everybody write about it
}

input[type='number'],
input[type="number"]:hover,
input[type="number"]:focus {
    appearance: none;
    -moz-appearance: textfield;
}

/*:root,*/
/*[data-bs-theme=light] {*/
/*      --bs-secondary-bg: 242 245 249 !important;*/
/*}*/

/*.card-body {*/
/*    background: rgb(247,250,250) !important;*/
/*}*/

/*.card {*/
/*    background: rgb(247,250,250) !important;*/
/*}*/

.font-size-8 {
  font-size: 8px !important;
}

.font-size-9 {
  font-size: 9px !important;
}

/*preloader*/
#preloader {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(190,190,190, 0.3);
  backdrop-filter: blur(15px);
  z-index: 9999;
}

#status {
  width: 40px;
  height: 40px;
  position: absolute;
  right: 50%;
  top: 50%;
  margin: -20px -20px 0 0;
}

/*splash_save*/
#splash_save {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(190,190,190, 0.3);
  backdrop-filter: blur(1px) grayscale(100%);
z-index: 9999;
}
/*splash_lock*/
#splash_lock {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(190,190,190, 0.3);
  backdrop-filter: blur(0px) grayscale(85%);
z-index: 9999;
}

#splash_lock_status {
    width: 45%;
    height: 75%;
    position: absolute;
    right: 25%;
    top: 5%;
}

#splash_status {
  width: 40px;
  height: 40px;
  position: absolute;
  right: 50%;
  top: 50%;
  margin: -20px -20px 0 0;
}

.spinner-chase {
  margin: 0 auto;
  width: 40px;
  height: 40px;
  position: relative;
  -webkit-animation: spinner-chase 2.5s infinite linear both;
          animation: spinner-chase 2.5s infinite linear both;
}

.chase-dot {
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-animation: chase-dot 2s infinite ease-in-out both;
          animation: chase-dot 2s infinite ease-in-out both;
}
.chase-dot:before {
  content: "";
  display: block;
  width: 25%;
  height: 25%;
  background-color: #71a4ff;
  border-radius: 100%;
  -webkit-animation: chase-dot-before 2s infinite ease-in-out both;
          animation: chase-dot-before 2s infinite ease-in-out both;
}
/**/

/*label {*/
/*    font-size: 14px; !*????*!*/
/*}*/



.custom-label {
  background-color: #fcf8e3;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px;
}


.app-search .form-control {
  border: 2px solid rgba(80,165,241,0.5) !important;
}

/* CSS-стили для переноса текста */
.select2-selection--multiple .select2-selection__choice {
    white-space: normal !important;  /* Разрешаем перенос слов */
    word-wrap: break-word !important;  /* Перенос длинных слов */
    max-width: 100% !important;  /* Максимальная ширина */
    margin: 2px !important;  /* Отступы для красоты */
    height: auto !important;  /* Автоматическая высота */
}

/* Дополнительно: стили для контейнера */
.select2-container--default .select2-selection--multiple {
    min-height: 34px !important;
    padding: 3px !important;
}

.select2-container .select2-selection--single {
    height: 34px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  margin-top: 5px;
  margin-right: 10px;
  padding: 1px;
  display: none;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  margin-top: 5px;
  margin-right: 10px;
  padding: 1px;
  display: none;
}
/*magnific-popup*/
@media (max-width: 768px) {
  .mfp-large .mfp-content,
  .mfp-medium .mfp-content,
  .mfp-small .mfp-content {
    width: 95% !important;
    max-width: none;
  }
}

.mfp-iframe-holder .mfp-close {
  color: #f00 !important;
}

.mfp-content {
    width:90% !important;
    height:90% !important;
    padding: 20px !important;

}
.mfp-iframe-holder .mfp-content {
  line-height: 0;
  width: 100% !important;;
  max-width: 90% !important;;
}
/* Большой попап (90% ширины экрана) */
.mfp-large .mfp-content {
  width: 100% !important;
  max-width: 1900px;
  height: 100% !important;
  max-height: 1000px;
}

/* Средний попап (70% ширины экрана) */
.mfp-medium .mfp-content {
  width: 70% !important;
  max-width: 900px;
  height: 70% !important;
  max-height: 900px;
}

/* Маленький попап (40% ширины экрана) */
.mfp-small .mfp-content {
  width: 40% !important;
  max-width: 500px;
  height: 40% !important;
  max-height: 500px;

}

.field-accent {
  --bs-alert-padding-x: 0.3rem;
  --bs-alert-padding-y: 0.3rem;
  --bs-alert-margin-bottom: 1rem;
  --bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);
  --bs-alert-border-radius: var(--bs-border-radius);
  position: relative;
  padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);
  margin-bottom: var(--bs-alert-margin-bottom);
  color: var(--bs-alert-color);
  background-color: var(--bs-alert-bg);
  border: var(--bs-alert-border);
  border-radius: var(--bs-alert-border-radius);
}

.form-control.vDateField{
  padding: .4rem .75rem .4rem .75rem !important;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.copypaste-success .bx-copy-alt, .copypaste-success .bx-paste{
    animation: pulse 0.1s;
    color: #28a745 !important; /* Зеленый цвет */
}

.copypaste-error .bx-copy-alt, .copypaste-error .bx-paste{
    color: #dc3545 !important; /* Красный цвет */
}

#content-main {
    min-height: 80vh;
}

body.sidebar-enable.vertical-collpsed .search-icon-wrapper {
    display: none;
}

body.sidebar-enable.vertical-collpsed .chat-menu-description {
    display: none;
}

.email_message_unread {
  --bs-table-bg: ;
  background-color: #eff8ff !important;
  font-weight: 600 !important;
}
tr.email_message_unread th a {
    /* стили для ссылок внутри th внутри tr с классом new */
    /*color: red;*/
    font-weight: 600;
}
.wm-editor-message--toggle-quote {
    padding-left: 30px;
}

div.mailer_email_text blockquote {
    margin: 10px !important;
}

div.mailer_email_text id#replay-mark {
    margin: 10px !important;
}