.main-header .sidebar-toggle::before {
    content: "";
}

.pagination {
    margin: 10px 0;
}

.not-set {
    color: #999;
    font-style: italic;
}

.form-group.required .control-label::after {
    color: red;
    content: " *";
}

.login-box, .register-box {
    margin: 0 auto;
}

.widget-user .widget-user-footer {
    height: 100px;
}

.grid-view th {
    white-space: normal;
}

/* start MDB tweaks */
.p-1{ padding: .25rem !important; }
.p-2{ padding: .5rem !important; }
.p-3{ padding: 1rem !important; }
.p-4{ padding: 2rem !important; }
.p-5{ padding: 3rem !important; }
.p-6{ padding: 4rem !important; }

.pr-1 { padding-right: .25rem !important; }
.pr-2 { padding-right: .5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 2rem !important; }
.pr-5 { padding-right: 3rem !important; }
.pr-6 { padding-right: 4rem !important; }

.pl-1 { padding-left: .25rem !important; }
.pl-2 { padding-left: .5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 2rem !important; }
.pl-5 { padding-left: 3rem !important; }
.pl-6 { padding-left: 4rem !important; }

.pt-1 { padding-top: .25rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 2rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pt-6 { padding-top: 4rem !important; }

.pb-1 { padding-bottom: .25rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 2rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.pb-6 { padding-bottom: 4rem !important; }

.prl-1{ padding: 0 .25rem !important; }
.prl-2{ padding: 0 .5rem !important; }
.prl-3{ padding: 0 1rem !important; }
.prl-4{ padding: 0 2rem !important; }
.prl-5{ padding: 0 3rem !important; }
.prl-6{ padding: 0 4rem !important; }

.ptb-1{ padding: .25rem 0 !important; }
.ptb-2{ padding: .5rem 0 !important; }
.ptb-3{ padding: 1rem 0 !important; }
.ptb-4{ padding: 2rem 0 !important; }
.ptb-5{ padding: 3rem 0 !important; }
.ptb-6{ padding: 4rem 0 !important; }

.m-1 { margin: .25rem !important; }
.m-2 { margin: .5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 2rem !important; }
.m-5 { margin: 3rem !important; }
.m-6 { margin: 4rem !important; }

.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 2rem !important; }
.mr-5 { margin-right: 3rem !important; }
.mr-6 { margin-right: 4rem !important; }

.ml-1 { margin-left: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 2rem !important; }
.ml-5 { margin-left: 3rem !important; }
.ml-6 { margin-left: 4rem !important; }

.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-6 { margin-top: 4rem !important; }

.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-6 { margin-bottom: 4rem !important; }

.mrl-1{ margin: 0 .25rem !important; }
.mrl-2{ margin: 0 .5rem !important; }
.mrl-3{ margin: 0 1rem !important; }
.mrl-4{ margin: 0 2rem !important; }
.mrl-5{ margin: 0 3rem !important; }
.mrl-6{ margin: 0 4rem !important; }

.mtb-1{ margin: .25rem 0 !important; }
.mtb-2{ margin: .5rem 0 !important; }
.mtb-3{ margin: 1rem 0 !important; }
.mtb-4{ margin: 2rem 0 !important; }
.mtb-5{ margin: 3rem 0 !important; }
.mtb-6{ margin: 4rem 0 !important; }
/* end MDB tweaks */

/* start border radius */
.br-5{ border-radius: 5px !important; }
.br-10{ border-radius: 10px !important; }
.br-15{ border-radius: 15px !important; }
.br-20{ border-radius: 20px !important; }
.br-25{ border-radius: 25px !important; }

.btr-5{
    border-top-left-radius: 5px !important;
    border-top-right-radius: 5px !important;
}
.btr-10{
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}
.btr-15{
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}
.btr-20{
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}
.btr-25{
    border-top-left-radius: 25px !important;
    border-top-right-radius: 25px !important;
}
/* end border radius */

.mc { margin: 0 auto !important; }

/* Custom block width */
.w-100{ width: 100% !important; }
.w-95{ width: 95% !important; }
.w-90{ width: 90% !important; }
.w-85{ width: 85% !important; }
.w-80{ width: 80% !important; }
.w-75{ width: 75% !important; }
.w-70{ width: 70% !important; }
.w-65{ width: 65% !important; }
.w-60{ width: 60% !important; }
.w-55{ width: 55% !important; }
.w-50{ width: 50% !important; }
.w-45{ width: 45% !important; }
.w-40{ width: 40% !important; }
.w-35{ width: 35% !important; }
.w-30{ width: 30% !important; }
.w-25{ width: 25% !important; }
.w-20{ width: 20% !important; }
.w-15{ width: 15% !important; }
.w-10{ width: 10% !important; }
.w-5{ width: 5% !important; }
/* End custom block width*/

/* Start custom style the tab */
/* Style the tab */
.my-custom-nav {
  float: left;
  width: 30%;
}

/* Style the buttons that are used to open the tab content */
.my-custom-nav li {
  width: 100%;
}
.my-custom-nav>li.active {
    border-left-color: #3c8dbc;
}
.my-custom-nav>li {
    border-top: none !important;
    border-left: 3px solid transparent;
}

/* Style the tab content */
.my-custom-nav-content {
  float: left;
  width: 70%;
  padding: 0 0 10px 0 !important;
}
/* End custom style the tab */

/* Start profile button*/
.small-box>.profile-button {
    color: #fff !important;
    background: rgb(0,128,0) !important;
}
.small-box>.profile-button:hover {
    color: #fff !important;
    background: rgba(0,128,0,0.6) !important;
}
/* End profile button*/

/* Change sidebar collapsed width */
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
    width: 220px;
}
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
    left: 220px !important;
  }
.sidebar-menu .treeview-menu .treeview-menu {
    padding-left: 10px;
}
/* END Change sidebar collapsed width */

/* Gridview sort links - add sorting icons */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}
/* END Gridview sort links - add sorting icons */

/* Tabs for panels */
.nav-tabs-custom {
    margin: 0;
    /*background: #fff none repeat scroll 0 0;*/
    background: inherit;
    box-shadow: none;
}
.nav-tabs-custom > .tab-content {
    background: inherit;
    padding: 10px 0;
}
.nav-tabs-custom > .nav-tabs > .has-error {
    border-left:1px solid #dd4b39;
    border-right:1px solid #dd4b39;
    background: rgba(221,75,57,0.24);
}
/* End Tabs for panels */

/* Calendar */
.blockEventCalendar .datepicker-inline {
    width: 100% !important;
    padding: 4px;
}
.blockEventCalendar .calendar_event {
    background-color: #91CFC8 !important;
    border-color: #82c3bc;
    color: #ffffff !important;
}
.blockEventCalendar .calendar_event:hover {
    background-color: #82c3bc !important;
    border-color: #91aFC8;
    color: #ffffff !important;
}
.blockEventCalendar .calendar_event.active {
    color: #fff !important;
    background-color: #286090 !important;
    border-color: #204d74 !important;
}
.blockEvents {
    margin: 3em 0;
}
/* End Calendar */

/* Upload kit */
.upload-kit .upload-kit-item.not-image {
    width: 100px;
}
.upload-kit .upload-kit-input, .upload-kit .upload-kit-item {
    height: 100px;
}
.upload-kit .upload-kit-input {
    width: 100px;
}
.upload-kit .upload-kit-item.not-image .name {
    width: 96px;
    text-transform: inherit;
    font-weight: inherit;
}
/* End Upload kit */

@media (max-width: 768px) {
    .skin-blue .main-header .navbar .dropdown-menu li a {
        color: inherit;
    }
    .skin-blue .main-header .navbar .dropdown-menu li a:hover {
        background: inherit;
    }
}

/* Work wizard crumbs */
#crumbs {
    text-align: center;
}
#crumbs ul {
    list-style: none;
    display: inline-table;
}
#crumbs ul li {
    display: inline;
}
#crumbs ul li a {
    display: block;
    float: left;
    height: 40px;
    background: #ddd;
    text-align: center;
    padding: 0px 15px 0 40px;
    position: relative;
    margin: 0 10px 0 0;
    font-size: 20px;
    text-decoration: none;
    margin-bottom:10px;
}
#crumbs ul li a:after {
    content: "";
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #ddd;
    position: absolute; right: -20px; top: 0;
    z-index: 1;
}
#crumbs ul li a:before {
    content: "";
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #fff;
    position: absolute; left: 0; top: 0;
}
#crumbs ul li:first-child a {
    border-top-left-radius: 10px; border-bottom-left-radius: 10px;
}
#crumbs ul li:first-child a:before {
    display: none;
}
#crumbs ul li:last-child a {
    padding-right: 30px;
    border-top-right-radius: 10px; border-bottom-right-radius: 10px;
}
#crumbs ul li:last-child a:after {
    display: none;
}
#crumbs ul li a:hover {
    background: #858585;
    color: #fff;
}
#crumbs ul li a:hover:after {
    border-left-color: #858585;
}
#crumbs .success a{
    color: #fff;
    background: #4caf50;
}
#crumbs .success a:after{
    border-left: 20px solid #4caf50;
}
#crumbs .primary a{
    color: #fff;
    background: #2196f3;
}
#crumbs .primary a:after{
    border-left: 20px solid #2196f3;
}
/* END Work wizard crumbs */

#contacts-block {
    display: none;
}

.table hr {
    border-top: 1px solid #bbb;
    margin: 5px 0;
}

.box-body .table {
    margin: 0;
}

ul.nav-wizard li {
    font-size: 14px;
    padding: 0 5px 0 25px;
}

.btn-primary-light {
    color: #fff;
    background-color: #78a5e8;
    border-color: #73a4ec;
}

.btn-primary-light:hover, .btn-primary-light:active, .btn-primary-light.hover, .btn-primary-light:active:hover, .btn-primary-light.active:hover, .open > .dropdown-toggle.btn-primary-light:hover, .btn-primary-light:active:focus, .btn-primary-light.active:focus, .open > .dropdown-toggle.btn-primary-light:focus, .btn-primary-light:active.focus, .btn-primary-light.active.focus, .open > .dropdown-toggle.btn-primary-light.focus {
    color: #fff;
    background-color: #688fca !important;
}

.btn-purple {
    color: #fff;
    background-color: #8e78e8;
    border-color: #8d75f1;
}

.btn-purple:hover, .btn-purple:active, .btn-purple.hover, .btn-purple:active:hover, .btn-purple.active:hover, .open > .dropdown-toggle.btn-purple:hover, .btn-purple:active:focus, .btn-purple.active:focus, .open > .dropdown-toggle.btn-purple:focus, .btn-purple:active.focus, .btn-purple.active.focus, .open > .dropdown-toggle.btn-purple.focus {
    color: #fff;
    background-color: #806cd2 !important;
}

.btn-success-dark {
    color: #fff;
    background-color: #328e7d;
    border-color: #2b8271;
}

.btn-success-dark:hover, .btn-success-dark:active, .btn-success-dark.hover, .btn-success-dark:active:hover, .btn-success-dark.active:hover, .open > .dropdown-toggle.btn-success-dark:hover, .btn-success-dark:active:focus, .btn-success-dark.active:focus, .open > .dropdown-toggle.btn-success-dark:focus, .btn-success-dark:active.focus, .btn-success-dark.active.focus, .open > .dropdown-toggle.btn-success-dark.focus {
    color: #fff;
    background-color: #2e8272 !important;
}

.box.box-primary-light {
    border-top-color: #78a5e8;
}

.box.box-purple {
    border-top-color: #8e78e8;
}

.box.box-success-dark {
    border-top-color: #328e7d;
}

/* Custom text color*/
.text-white, .text-light {
    color: #fff !important;
}

.text-inherit {
    color: inherit;
}
.text-inherit:hover {
    color: blue;
    background: #fff;
}
/* End Custom text color*/

/**/
/* Message user info */
.user-info .description{
    color: #999;
    font-size: 13px;
    display: block;
}
/* End Message user info */
.sidebar-menu .fas, .sidebar-menu .far, .sidebar-menu .fal, .sidebar-menu .fad, .sidebar-menu .fab{
    width: 20px;
}
.dropdown-menu .fas, .dropdown-menu .far, .dropdown-menu .fal, .dropdown-menu .fad, .dropdown-menu .fab{
    margin-right: 10px;
    width: 14px;
}

.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
    background-color: #7d7d7d;
}

/*Word wrap in Select2 without ellipsis*/
.hyphenation.select2-selection--single {
    height: 100%;
}
.select2-container .hyphenation.select2-selection--single .select2-selection__rendered {
    word-wrap: break-word;
    text-overflow: inherit;
    white-space: normal;
}

/* Testing timer start */
#testing-timer {
    position: fixed;
    right: 15px;
    font: 30px Verdana;
    z-index: 999;
    background: #d6d6d6;
    color: black;
    padding: 10px;
}
/* Testing timer end */

/* Start custom daterangepicker */
.kv-drp-dropdown .range-value {
    padding-left: 2.75rem;
    min-width: 180px;
}
.kv-drp-dropdown .kv-clear {
    display: none;
}
/* End custom daterangepicker */

/* Start custom datepicker */
.kv-grid-container .krajee-datepicker {
    min-width: 90px;
}
/* End custom datepicker */

/* Start fixed table */
.table-fixed {
    overflow: auto;
    max-height: 500px;
}
.table-fixed-header thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background:#eee;
}
.table-fixed-first-column tbody td:first-child {
    position: sticky;
    left: 0;
    background:#eee;
}
/* End fixed table */

/* Start custom ColorInput */
.sp-preview {
    width: 20px;
}
/* End custom ColorInput */

.table > thead > tr > td.warning-glowing,
.table > tbody > tr > td.warning-glowing,
.table > tfoot > tr > td.warning-glowing,
.table > thead > tr > th.warning-glowing,
.table > tbody > tr > th.warning-glowing,
.table > tfoot > tr > th.warning-glowing,
.table > thead > tr.warning-glowing > td,
.table > tbody > tr.warning-glowing > td,
.table > tfoot > tr.warning-glowing > td,
.table > thead > tr.warning-glowing > th,
.table > tbody > tr.warning-glowing > th,
.table > tfoot > tr.warning-glowing > th {
    background-color: #fff1aa;
    animation: warning-glowing 1300ms infinite;
}

@keyframes warning-glowing {
    0% { border-color: #fffbe5; background-color: #fffbe5; box-shadow: inset 10px -1px 5px #fffbe5; }
    50% { border-color: #fff1aa; background-color: #fff1aa; box-shadow: inset 10px -1px 20px #fff1aa; }
    100% { border-color: #fffbe5; background-color: #fffbe5; box-shadow: inset 10px -1px 5px #fffbe5; }
}

.table > thead > tr > td.danger-glowing,
.table > tbody > tr > td.danger-glowing,
.table > tfoot > tr > td.danger-glowing,
.table > thead > tr > th.danger-glowing,
.table > tbody > tr > th.danger-glowing,
.table > tfoot > tr > th.danger-glowing,
.table > thead > tr.danger-glowing > td,
.table > tbody > tr.danger-glowing > td,
.table > tfoot > tr.danger-glowing > td,
.table > thead > tr.danger-glowing > th,
.table > tbody > tr.danger-glowing > th,
.table > tfoot > tr.danger-glowing > th {
    background-color: #f2dede;
    animation: danger-glowing 1300ms infinite;
}

@keyframes danger-glowing {
    0% { border-color: #f2e6e6; background-color: #f2e6e6; box-shadow: inset 10px -1px 5px #f2e6e6; }
    50% { border-color: #f2dede; background-color: #f2dede; box-shadow: inset 10px -1px 20px #f2dede; }
    100% { border-color: #f2d3d3; background-color: #f2d3d3; box-shadow: inset 10px -1px 5px #f2d3d3; }
}

@keyframes attention-pulse {
    0%, 100% {
        text-shadow: 
            -1px -1px 0 #fff,  
            1px -1px 0 #fff,
            -1px 1px 0 #fff,
            1px 1px 0 #fff,
            0 0 8px rgba(220, 100, 100, 0.3),  /* Красноватый оттенок */
            0 0 16px rgba(180, 80, 80, 0.2);   /* Более насыщенный красный */
    }
    50% {
        text-shadow: 
            -1px -1px 0 #fff,
            1px -1px 0 #fff,
            -1px 1px 0 #fff,
            1px 1px 0 #fff,
            0 0 20px rgba(255, 120, 120, 0.6),  /* Яркое красное свечение */
            0 0 35px rgba(220, 100, 100, 0.4);   /* Средняя интенсивность */
    }
}

.text-blinking {
    animation: attention-pulse 1s ease-in-out infinite;
    color: #444 !important;
    background: transparent !important;
    font-weight: 700;
    transform: translateZ(0);
}