@media (min-width: 1200px) {
  .col-lg-5 {
    width: 60%;
  }
  .col-lg-7 {
    width: 30%;
  }
}

@media (min-width: 992px) {
  .col-md-2 {
    width: 15%;
    }
}

/* Максимально специфичные селекторы с !important */
.select2-container--bootstrap .select2-selection,
.select2-container--bootstrap .select2-selection--single,
.select2-container--bootstrap .select2-selection--multiple,
.form-control.input-sm,
input.form-control.input-sm,
select.form-control.input-sm,
.select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
    border-radius: 0px !important;
    border-radius: 0px !important;
}

/* Высота как у поля Серийный номер */
.form-control.input-sm,
.select2-container--bootstrap .select2-selection--single,
input[type="datetime-local"].form-control.input-sm,
select.form-control.input-sm {
    height: 31px !important;
    line-height: 1.5 !important;
}

.select2-container--bootstrap .select2-selection--multiple {
    min-height: 31px !important;
}

div.panel.panel-default {
    margin-top: 1px;
}

.panel {
  margin-bottom: 5px;
}
  
div#advFiltersToggle {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

#advFiltersToggle {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

div.panel-heading {
    padding: 5px 15px 0px !important;
}

/* Стиль рамки виджета Tickets by Status */
.widget-border-cartridges {
    border: 2px solid #888888;
    background: #fff;
    margin: 5px;
}

/* Внутренний контейнер с отступами */
.widget-content-cartridges {
    padding: 5px;
}

/* Заголовок виджета (если нужен такой же) */
.widget-header-cartridges {
    padding: 8px 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    font-size: 14px;
}

/* Таблица с данными как в виджете */
.widget-table-cartridges {
    width: 100%;
    border-collapse: collapse;
}

.widget-table-cartridges td {
    padding: 4px 5px;
    font-size: 10px;
}

/* Полоса прогресса как в виджете */
.widget-bar-cartridges {
    background: #e8e8e8;
    overflow: hidden;
}

.widget-bar-fill-cartridges {
    height: 20px;
    line-height: 20px;
    padding-left: 8px;
    color: #333;
    font-size: 10px;
    font-weight: bold;
}

/* ================================ */

.app-CALLS {background: #27ae60 !important;}
.app-item-color-CALLS { border-left: 4px solid #27ae60; }
.vicon-callstatistics:before { font-family: FontAwesome; content: '\f098'; }
.CallStatistics-module-action-content #appnavcontent {display: none !important;}
@calls_app: #27ae60;

/* ================================ */

.app-PRINT { background: #8E44AD !important; }
.app-item-color-PRINT { border-left: 4px solid #8E44AD;}
.vicon-cartridges:before { font-family: FontAwesome; content: '\f02a';}
i.vicon-cartridges { font-family: FontAwesome !important; }
@print_app: #8E44AD;

#Cartridges_listView_basicAction_Add_cartridge {
    background-color: #5cb85c;
    border-color: #4cae4c;
    color: #fff;
    text-shadow: none !important;
}

#Cartridges_listView_basicAction_Add_cartridge:hover {
    background-color: #449d44;
    border-color: #398439;
    color: #fff;
}

.Cartridges-module-action-content .module-breadcrumb:after {
    content: ' — В разработке';
    color: red;
    font-size: 24px;
    font-weight: normal;
    text-transform: none;
}

/* ================================ */

.vicon-printoptions:before { font-family: FontAwesome; content: '\f0ad';}
i.vicon-printoptions { font-family: FontAwesome !important; }
i.vicon-printoptions .custom-module { display: none !important; }
.main-container-PrintOptions .modules-menu ul li.active a {
  border-left: 3px solid #8E44AD !important;
}

.PrintOptions-module-action-content .module-breadcrumb:after {
    content: ' — В разработке';
    color: red;
    font-size: 24px;
    font-weight: normal;
    text-transform: none;
}

/* ================================ */

.vicon-spareparts:before { font-family: FontAwesome; content: '\f085';}
i.vicon-spareparts { font-family: FontAwesome !important; }
i.vicon-spareparts .custom-module { display: none !important; }
.main-container-SpareParts .modules-menu ul li.active a {
  border-left: 3px solid #8E44AD !important;
}

.SpareParts-module-action-content .module-breadcrumb:after {
    content: ' — В разработке';
    color: red;
    font-size: 24px;
    font-weight: normal;
    text-transform: none;
}

#SpareParts_listView_basicAction_Add_spare_part {
    background-color: #5cb85c;
    border-color: #4cae4c;
    color: #fff;
    text-shadow: none !important;
}

#SpareParts_listView_basicAction_Add_spare_part:hover {
    background-color: #449d44;
    border-color: #398439;
    color: #fff;
}


/* ================================ */

.vicon-analytics:before { font-family: FontAwesome; content: '\f080';}
i.vicon-analytics { font-family: FontAwesome !important; }
i.vicon-analytics .custom-module { display: none !important; }
.main-container-Analytics .modules-menu ul li.active a {
  border-left: 3px solid #8E44AD !important;
}

.Analytics-module-action-content .module-breadcrumb:after {
    content: ' — В разработке 90%';
    color: red;
    font-size: 24px;
    font-weight: normal;
    text-transform: none;
}

/* ================================ */

.vicon-service:before { font-family: FontAwesome; content: '\f022';}
i.vicon-service { font-family: FontAwesome !important; }
i.vicon-service .custom-module { display: none !important; }
.main-container-Service .modules-menu ul li.active a {
  border-left: 3px solid #8E44AD !important;
}

.Service-module-action-content .module-breadcrumb:after {
    content: ' — В разработке';
    color: red;
    font-size: 24px;
    font-weight: normal;
    text-transform: none;
}

#Service_listView_basicAction_Save {
    background-color: #337ab7;
    border-color: #2e6da4;
    color: #fff;
    text-shadow: none !important;
}

#Service_listView_basicAction_Save:hover {
    background-color: #003366;
    border-color: #002E63;
    color: #fff;
}

#Service_listView_basicAction_New_cartridge {
    background-color: #5cb85c;
    border-color: #4cae4c;
    color: #fff;
    text-shadow: none !important;
}

#Service_listView_basicAction_New_cartridge:hover {
    background-color: #449d44;
    border-color: #398439;
    color: #fff;
}

/* ================================ */

input[name="cf_894"] {
    width: 15px !important;
    height: 15px !important;
    display: inline-block !important;
    margin-right: 30px !important;
    cursor: pointer !important;
    transform: scale(1.7) !important;
}

/* Стили для глобального поиска */
#global-search-results {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: 500px;
    overflow-y: auto;
    z-index: 99999 !important;
    position: absolute;
}

#global-search-results a {
    text-decoration: none;
    color: inherit;
    display: block;
}

#global-search-results .result-item {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0;
}

#global-search-results .result-item:hover {
    background-color: #f5f5f5;
}

#global-search-results .module-header {
    background-color: #f0f0f0;
    padding: 8px 10px;
    font-weight: bold;
    color: #555;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 99998;
    margin: 0;
}

#global-search-results .phone,
#global-search-results .email,
#global-search-results .ticket {
    color: #ff4444;
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 0;
}

#global-search-results .result-title {
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
    margin-top: 0;
}