* {
    outline: none;
    box-sizing: border-box;
}

html {
    height: 100%;
}


body {
    font: normal 14px Roboto;
    color: #2E2E2E;
    background: #fff;
    padding: 0 0 20px;
    margin: 0;
}

.header {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.header__title {
    background-color: #8bc0da;
    color: #fff;
    padding: 10px 20px;
}

.menu {
    background-color: #e9ecef;
    line-height: 40px;
    margin-bottom: 20px;
}

.menu__logo {
    display: flex;
    justify-content: right;
    align-items: center;
}

.menu a {
    margin-right: 10px;
    color: #000;
    text-transform: uppercase;
}

.menu a:hover {
    color: #0099cc;
}

.menu a.active {
    color: #dc3545;
}

table .mdi {
    font-size: 18px;
}

.nav-tabs {
    margin-bottom: 20px;
}

main {
    display: flex;
}

h1 {
    margin-bottom: 20px;
    font-size: 30px;
}

h2 {
    margin-bottom: 20px;
    font-size: 25px;
}

.table-bordered.border-white,
.table-bordered.border-white td {
    border-color: #fff;
}



.dotted {
    border-bottom: dashed 1px #0099cc;
    margin-bottom: 10px;
}

.content {
    padding: 20px;
    font-size: 15px;
}

table#tbl {
    min-width: 800px;
    font-family: Arial;
    font-size: 12px;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid #8bc0da;
}

table#tbl td {
    border: 1px solid #e9e7e7;
    padding: 5px
}

table#tbl th {
    background-color: #8bc0da;
    padding: 5px;
    font-weight: normal;
}

table#tbl tr:nth-child(even) {
    background: #f5f5f5;
}

.form {
    padding: 30px 30px 15px;
    background-color: #8bc0da;
    border-radius: 5px;
}

.mobform {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 3px;
    margin-bottom: 20px;
}

input[type=checkbox],
input[type=radio] {
    width: 20px;
    height: 20px;
}

a.tab1,
a.tab2 {
    display: inline-block;
    width: 150px;
    background-color: #8bc0da;
    font-size: 12px;
    color: white;
    text-align: center;
    line-height: 30px;
    margin: 0 1px 1px 0;
}

a.tab2 {
    background-color: #b7b7b7;
}

a {
    color: #0099cc;
    text-decoration: none;
}

a:hover {
    color: #000000;
    text-decoration: none;
}

.pos_rel {
    position: relative;
}

.tab1,
.tab2 {
    border-radius: 10px 10px 0 0;
}

.clear {
    clear: both;
}

select.active {
    background-color: #ccc;
}

.stack {
    padding: 10px;
    border-radius: 5px;
    margin: 0 5px;
    background: #e9ecef;
    position: relative;
    width: 100%;
}

.stack h3 {
    text-align: center;
    text-transform: uppercase;
    font: normal 13px/1.3 Roboto;
    background: #495057;
    color: #ffffff;
    width: 100%;
    padding: 6px 15px;
    border-radius: 0.35rem;
    margin: 0 0 10px 0;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

.stack h3 span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 33.8px;
}

.stack.stack--2 {
    width: 600px;
}

.stack.stack--3 {
    width: 900px;
}

.stack ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.stack ul li {
    padding: 16px 16px 40px;
    width: 220px;
    min-height: 200px;
    overflow: hidden;
    margin: 0 6px 12px;
}

.stack--2 ul li {
    width: calc(50% - 10px);
}

.stack--3 ul li {
    width: calc(33.333% - 10px);
}

.stack .mdi-settings {
    position: absolute;
    right: 5px;
    top: 10px;
}

.ui-state-default:hover {
    cursor: pointer;
}

.task {
    display: block;
    position: relative;
    background: #ffffff;
    font-weight: normal;
    color: #454545;
    cursor: move;
    font-size: 14px;
    border-radius: 0.35rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.task__title {
    margin-bottom: 6px;
}

.task__title a {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    text-decoration: none;
    word-wrap: break-word;
    line-height: 1.3;
}

.task__title a:hover {
    color: #007bff;
}

.task__status-row {
    margin-bottom: 8px;
}

.task__main-status {
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 600;
    border-radius: 4px;
}

.task__executor {
    font-size: 12px;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 6px 10px;
    border-radius: 0.35rem;

}

.task__executor .mdi {
    color: #4299e1;
    margin-right: 6px;
    font-size: 14px;
}

.task__dates {
    font-size: 11px;
    margin-bottom: 6px;
    color: #495057;
    font-weight: 600;
}

.task__dates .mdi {
    margin-right: 4px;
    color: #6c757d;
}

.task__location {
    font-size: 12px;
    margin-bottom: 6px;
    color: #495057;
    font-weight: 600;
}

.task__time {
    font-size: 11px;
    margin-bottom: 6px;
    color: #6c757d;
    font-weight: 500;
}

.task__additional-status {
    margin-bottom: 8px;
}

.task__additional-status .badge {
    margin-right: 4px;
    margin-bottom: 2px;
}

.task__description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.task__date {
    font-size: 12px;
    margin-bottom: 6px;
    color: #6c757d;
    font-weight: 500;
}

.task__date .badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-primary {
    background-color: #007bff;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.work-class-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin: 2px 0;
}

.work-class-emergency {
    background-color: #dc3545;
    color: white;
}

.work-class-administrative {
    background-color: #6c757d;
    color: white;
}

.work-class-planned {
    background-color: #007bff;
    color: white;
}

.work-class-request {
    background-color: #28a745;
    color: white;
}

.task__worker {
    font-size: 12px;
    text-align: right;
    position: absolute;
    bottom: 10px;
    right: 10px;
    left: 30px;
}

.task__about {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.task__work-class {
    position: absolute;
    bottom: 32px;
    left: 16px;
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task__print {
    display: none;
    position: absolute;
    bottom: 10px;
    left: 16px;
}

.task:hover .task__print {
    display: block;
}

.task:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #dee2e6;
}

.task--red {
    background: red;
}

.task--closed {
    text-decoration: line-through;
}

.bg-progress {
    background-color: #fff9c4!important;
}

.bg-closed {
    background-color: #a8e6a3!important;
}

.bg-late {
    background-image: url(/images/late.png);
    background-size: cover;
}
.bg-late-task {
    position: relative;
}

.bg-late-task::after {
    content: "ПРОСРОЧЕН";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #dc3545;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    opacity: 0.8;
}




.task--work {
    background-color: #f0ad4e;
}

.task--urgent {
    border: 2px solid #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1), 0 2px 4px rgba(0,0,0,0.08);
}

.task--urgent:hover {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2), 0 4px 12px rgba(0,0,0,0.15);
}

.task--emergency {
    border: 1.5px solid #dc3545 !important;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.1);
}

.task--emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 1px rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}


.swap {
    opacity: 0.5;
}

.filter {
    padding: 15px 15px 0;
    background-color: #d4dde4;
    border-radius: 5px;
    margin: 0 0 20px;
}

.menu_task .mdi {}

input[type=checkbox] {
    vertical-align: middle;
}

.modal-dialog {
    max-width: 800px;
}

.modal-body {
    background: #e9ecef;
}

.title {
    font-size: 20px;
    padding: 20px;
    background: #b7b7b7;
    color: #fff;
    margin-bottom: 1px;
}

.stat {
    padding: 10px;
    background: #ccc;
}

.title a {
    float: right;
}

.jumbotron {
    padding: 20px;
}

.log__date {
    width: 100px;
    font-size: 12px;
}

.ticket {
    border: solid 1px gray;
    background: #f5f5f5;
    padding: 10px 10px 30px;
    width: 200px;
    height: 200px;
    overflow: hidden;
    margin: 0 3px 6px;
    position: relative;
}

.ticket--urgent {
    border: solid 2px #dc3545;
}

.ticket--done {
    background: #a8e6a3;
}

.ticket--work {
    background: #fff9c4;
}

.ticket--pause {
    background: #fff9c4;
}

.ticket--late {
    background-image: url(/images/late.png);
}

.legend {
    width: 40px;
    height: 40px;
}

.filtered {
    color: #dc3545;
}

.ticket_select {
    position: absolute;
    bottom: 10px;
}

@media screen and (max-width: 1200px) {
    .stack ul li {
        width: 200px;
        margin: 0 4px 10px;
    }
}

@media screen and (max-width: 992px) {
    .menu__items {
        display: none;
    }
    .menu__items a {
        display: block;
        text-align: center;
        padding: 10px 0;
        border-bottom: solid 1px #ccc;
    }
    
    .stack {
        margin: 0 0 15px 0;
    }
    
    .stack ul li {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 12px auto;
    }
}

.roles{
    max-width: 200px;
}

.merkuriy{
    margin-top: 20px;
    text-align: center;
}
.merkuriy .btn{
    white-space: normal;
}

.ksuto-toggler{border:0}
.ksuto-toggler:focus{    outline: none!important;}


.menu__logo img {
    height: 25px;
    margin-left: 20px;
}
.menu__logo {
    width: 50vw;
    position: absolute;
    right: 10px;
}
.menu__logo a {
    display: block;
    padding-left: 10px;
}
.menu__logo .mdi{
    font-size: 20px;
}
.menu-title{
    white-space: normal!important;
}
.menu-title span{
    color: rgba(0,0,0,.6)!important;
}
nav {    text-transform: uppercase;}
.ksuto-menu{position: sticky; top: 0px; z-index: 100}
.ksuto-menu a,
.menu-title span,
.menu__logo span {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    padding-bottom: 0.25rem!important;
    padding-top: 0.25rem!important;
    display: block;
}
.ksuto-menu li {
    white-space: nowrap;
}

@media screen and (max-width: 1199px) {
    .menu__logo {
        position: absolute;
        right: 12px;
        top: 4px;
        height: 46px;
        width: 75vw;
    }
    .menu__logo img {
        height: 15px;
        margin-left: 10px;
    }

    .menu__logo span {
        padding-right: 0.3rem;
        padding-left: 0.3rem;
        font-size: 10px;
    }
    .menu-title{
        background-color: #e9ecef;
        margin-top: 7px;
    }
    .ksuto-menu li {
        padding: 3px;
    }
}
@media screen and (max-width: 400px) {
    .menu__logo a {
        padding-right: 0.2rem;
        padding-left: 0.2rem;
        font-size: 10px;
    }
}

/*@media screen and (min-width: 1200px) {*/
/*    .menu-title{*/
/*        width: 15vw;*/
/*    }*/
/*}*/

@media screen and (min-width: 1200px) and (max-width: 1299px) {
    .menu__logo {
        width: 20vw;
    }
    .menu__logo span{
        padding-right: 0.3rem;
        padding-left: 0.3rem;
        font-size: 10px;
    }
    .menu-title{
        width: 16vw;
    }
}

.navbar-nav{
    z-index: 100;
}

tr.hidden_tr td {

    border-right-style:hidden;
    border-left-style:hidden;
}



.treeview-animated {

    font-size: 16px;
    font-weight: 400;

    background-color: rgba(0,0,0,.05);
}

.treeview-animated hr {
    border-color: #6e6c6e;
}

.treeview-animated.w-20 {
    width: 20rem;
}

.treeview-animated h6 {
    font-size: 1.4em;
    font-weight: 500;
    color: #e5dabf;
}

.treeview-animated ul {
    position: relative;
    list-style: none;
    padding-left: 0;
}

.treeview-animated-list ul {
    padding-left: 1em;
    margin-top: 0.1em;
    background: rgba(224, 127, 178, 0.2);
}

.treeview-animated-element {
    padding: 0.75em 0.75em 0.75em 1em;
    cursor: pointer;
    transition: all .1s linear;
    border-top: 1px solid #dee2e6;
    margin: 0!important;
}

.treeview-animated-element:hover {
    background-color: #e0d5db;
}

.treeview-animated-element.opened {

}

.treeview-animated-element.opened:hover {

}

.treeview-animated-items-header {
    display: block;
    padding: 0.75em;
    margin-right: 0;
    border-top: 1px solid #dee2e6;
}


.treeview-animated-items-header:hover {
    background-color: #e0d5db
}

.treeview-animated-items-header.open {
    transition: all .1s linear;
    background-color: #c9ffa8;

    border-bottom: 2px solid #706e6c;
}

.treeview-animated-items-header.open span {
    color: #ffac47;
}

.treeview-animated-items-header.open:hover {

    color: #ffac47;
    background-color: #c9ffa8;
}

.treeview-animated-items-header.open div:hover {
    background-color: #a8e6a3;
}

.treeview-animated-items-header .fa-angle-right {
    transition: all .1s linear;
    font-size: .8rem;
}

.treeview-animated-items-header .fas {
    position: relative;
    transition: all .2s linear;
    transform: rotate(90deg);

    color: #ffac47;
}

.treeview-animated-items-header .fa-minus-circle {
    position: relative;
    color: #ffac47;
    transform: rotate(180deg);
}

.location_name{
    width: 100px;
}

.clone_step {
    background-color: #f7f7f7;
}

.donze {
    background-color: #baf199!important;
}


.ppr-working {
    background-color: #fff9c4 !important; /* Более мягкий желтый вместо кричащего #ffff00 */
}

.ppr-closed-in-time {
    background-color: #a8e6a3 !important; /* Более элегантный зеленый вместо #62d062 */
}

.ppr-ticket72 {
    background-color: #ffd9dc !important; /* Средний мягкий красный - баланс между насыщенным и очень светлым */
}

.ppr-late-task {
    background-color: #ffe0b3 !important; /* Более изысканный оранжевый вместо #ffa500 */
}

.ppr-deleted {
    background-color: #e0e0e0 !important; /* Современный светло-серый вместо #8f8b8b */
}

.ppr-late-ticket {
    background-color: #e93e3e !important;
}

.ppr-late-ticket__ {
    background-color: #f5f5f5;
    background-image: linear-gradient(to left, #f2e0e0 50%, transparent 50%);
    background-size: 20px 100%;

}

.stat-base {
    background-color: #d1d1c5 !important;
}
.stat-complete {
    background-color: #5dd68f !important;
}
.stat-working {
    background-color: #fff9c4 !important;
}

.calc{ min-height: 117px;}

.reasons {display: none}

.acc-change-container {
    display: flex;
    flex-direction: column;
}
.navbar-nav li a{
    color: #0099cc;
}
.navbar-nav .active {
    background-color: #e9ecef;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.navbar-nav .active a{
    color: #000!important;
}

.report-files a {
    font-size: 12px;
}
.ppr_date_item{
    position: relative;
}
.ppr_date_item:hover input[type=checkbox], .ppr_date_item input[type=checkbox]:checked{
    display: block;
}
.ppr_date_item input[type=checkbox] {
    display: none;
    position: absolute;
    bottom: 5px;
    left: 5px;
}
.panel{
    position: fixed;
    background: #e9ecef;
    min-width: 200px;
    min-height: 40px;
    z-index: 9999;

    right: 20px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    display: none;
}
.panel .btn{
    margin: 10px;
}
.panel.action{
    display: block;
}

.col-mess:after{
    content: ' ('attr(data-col-mess)')';
}
.dashboard h2, h3, h4, h5, h6{margin-bottom: 0px}
.dashboard h6{font-size: 14px}
.dashboard .jumbotron{padding: 10px 20px 10px 20px}

.time-metrics {
    max-width: 100%;
    margin: 0 auto;
}

.pipeline-container {
    margin-bottom: 20px;
    position: relative;
    background-color: #e9ecef;
    padding: 18px;
    border-radius: 3px;
}

.pipeline-labels {
    display: flex;
    justify-content: space-between;
    position: relative;
    font-weight: bold;
    margin-bottom: 10px;
}

.pipeline-bar {
    position: relative;
    height: 30px;
    background-color: #ecf0f1;
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.bar-segment {
    position: absolute;
    height: 100%;
    border-radius: 3px;
    padding: 5px;
}

.pipeline-times {
    position: relative;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}

.time-value {
    position: absolute;
    white-space: nowrap;
}

.total-metric {
    margin-top: 30px;
}

.pipe-bar-container {
    background-color: #ecf0f1;
    border-radius: 3px;
    height: 20px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.pipe-bar {
    height: 100%;
    border-radius: 3px;
}

.pipe-value {
    text-align: center;
    margin-top: 5px;
}

.pipeline-labels span{ position: absolute; top: -10px}

/* Стили для переключателя клиентов */
.client-switcher-container {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.client-switcher-container .dropdown-toggle {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-switcher-container .dropdown-toggle:hover,
.client-switcher-container .dropdown-toggle:focus {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.client-switcher-container .dropdown-toggle:active,
.client-switcher-container .dropdown-toggle.show {
    background-color: #007bff;
    border-color: #0056b3;
    color: #fff;
}

.client-switcher-container .dropdown-menu {
    min-width: 250px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    padding: 6px 0;
}

.client-switcher-container .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #495057;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-switcher-container .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #16181b;
}

.client-switcher-container .dropdown-item.active {
    background-color: #007bff;
    color: #fff;
}

.client-switcher-container .dropdown-item.active:hover {
    background-color: #0056b3;
    color: #fff;
}

.client-switcher-container .dropdown-item .mdi {
    margin-right: 8px;
    font-size: 16px;
}

.client-switcher-container .dropdown-item small {
    opacity: 0.7;
    font-size: 11px;
}

/* Медиа-запросы для мобильных устройств */
@media screen and (max-width: 768px) {
    .client-switcher-container {
        margin-left: 5px;
    }
    
    .client-switcher-container .dropdown-toggle {
        font-size: 11px;
        padding: 3px 6px;
        max-width: 150px;
    }
    
    .client-switcher-container .dropdown-menu {
        min-width: 200px;
    }
}

@media screen and (max-width: 576px) {
    .client-switcher-container .dropdown-toggle {
        max-width: 120px;
    }
    
    .client-switcher-container .dropdown-menu {
        min-width: 180px;
    }
}
