/*!
 * This file is part of nzbget. See <https://nzbget.com>.
 *
 * Copyright (C) 2012-2017 Andrey Prygunkov <hugbug@users.sourceforge.net>
 * Copyright (C) 2024 Denis <denis@nzbget.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

* {
    scrollbar-width: thin;
}

@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: normal;
    src: url(lib/material-icons.woff2) format("woff2");
}

.material-icon {
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 16px;
    display: inline-block;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    cursor: pointer;
    vertical-align: top;
}

body {
    padding-left: 0;
    padding-right: 0;
}

.txt-success {
    color: #5bb75b;
}

.txt-important {
    color: #b94a48;
}

.flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.flex-center {
    display: flex;
    align-items: center;
    width: inherit;
    gap: 5px;
}

#AddDialog_URLProp {
    vertical-align: sub;
    color: inherit;
}

.config-status {
    max-width: 1024px;
}

.table-fixed {
    table-layout: fixed;
}

.table-fixed td,
th {
    vertical-align: middle;
    overflow: auto;
    white-space: nowrap;
}

.no-wrap {
    white-space: nowrap;
}

.overflow-auto {
    overflow: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.test-server-dropdwon-menu {
    min-width: 210px;
    left: -110px;
}

.approx-speed-txt {
    padding-left: 3px;
    color: darkgray;
    font-style: italic;
}

.statistics__spinner-container,
.system-info__spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.statistics__table {
    position: relative;
}

.system-info__spinner-container {
    height: 60vh;
}

.statistics__spinner-container {
    height: 90vh;
}

.statistics__spinner,
.system-info__spinner {
    font-size: 128px;
}

.system-health-badge {
    vertical-align: text-bottom;
}

.system-health-badge--important {
    color: #b94a48;
}

.system-health-badge--warning {
    color: #f89406;
}

.system-health-badge--info {
    color: #468847;
}

.system-health__err-icon {
    font-size: 20px;
}

.dist-speedtest__controls {
    display: flex;
    gap: 10px;
}

.help-text-error {
    color: #b94a48;
}

#SysInfo_DiskSpeedTestBtn.btn--disabled {
    opacity: 0.6 !important;
}

.spinner {
    color: #0088cc;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}
@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}
@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* EXTENSION MANAGER */
.extension-manager__td {
    vertical-align: middle !important;
    max-width: 350px;
}

.red-circle {
    border-radius: 50%;
    border: none;
    background-color: #da4f49;
}

.green-circle {
    border-radius: 50%;
    border: none;
    background-color: #468847;
}

.red-circle,
.green-circle {
    height: 12px;
    width: 12px;
}

.btn {
    text-shadow: none;
}

.btn--disabled {
    opacity: 0.7 !important;
    pointer-events: none;
}

.list-item--nested a {
    padding-left: 25px !important;
}

/* NAVBAR */
.navbar-fixed-top {
    margin-left: 0px;
    margin-right: 0px;
    position: static;
}

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

body.navfixed .navbar-fixed-top {
    position: static;
}

body.navfixed.scrolled .navbar-fixed-top .navbar-inner {
    -webkit-box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
/* end of fixed navbar */

#Logo {
    float: left;
    margin-top: 1px;
    margin-right: 5px;
    width: 88px;
    height: 36px;
    cursor: pointer;
    opacity: 1;
}

#Logo i,
#Logo i:hover {
    opacity: 1;
    filter: alpha(opacity=100);
}

.img-logo {
    background-position: -8px -139px;
    width: 88px;
    height: 38px;
    display: inline-block;
}

#PlayBlock {
    width: 70px;
    height: 38px;
    display: block;
    float: left;
    position: relative;
    z-index: 2;
}

.PlayBlockInner {
    width: 48px;
    height: 48px;
    margin-left: 0px;
    margin-top: 0px;
    cursor: pointer;
    position: absolute;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    border-radius: 18px;
}

.img-download-btn-active {
    background-position: -113px -80px;
    width: 50px;
    height: 50px;
}

.img-download-btn-pause {
    background-position: -177px -80px;
    width: 50px;
    height: 50px;
}

.PlayBlockInner:hover .img-download-btn-active,
.PlayBlockInner:hover .img-download-btn-active {
    background-position: -113px -133px;
    opacity: 0.9;
}

.PlayBlockInner:hover .img-download-btn-pause,
.PlayBlockInner:hover .img-download-btn-pause {
    background-position: -177px -133px;
    opacity: 0.9;
}

#PlayCaretBlock {
    left: 37px;
    top: 1px;
    position: absolute;
}

#PlayCaretButton {
    border: 0;
    background: none;
    width: 24px;
    height: 22px;
    padding: 3px;
    line-height: 10px;
    vertical-align: top;
}

#PlayCaretButton:hover #PlayCaret {
    opacity: 1;
    filter: alpha(opacity=100);
}

@-webkit-keyframes play-rotate {
    0% {
        -webkit-transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}
@-moz-keyframes play-rotate {
    0% {
        -moz-transform: rotate(0);
    }
    100% {
        -moz-transform: rotate(360deg);
    }
}
@-ms-keyframes play-rotate {
    0% {
        -ms-transform: rotate(0);
    }
    100% {
        -ms-transform: rotate(360deg);
    }
}

#PlayAnimation {
    position: absolute;
    z-index: 4;
    -webkit-background-size: 70px 70px;
    -moz-background-size: 70px 70px;
    background-size: 70px 70px;
    background-position: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    pointer-events: none;
    -webkit-animation: play-rotate 1s linear infinite;
    -moz-animation: play-rotate 1s linear infinite;
    -ms-animation: play-rotate 1s linear infinite;
}

#PlayAnimation.play {
    background-image: url("./img/download-anim-green-2x.png");
}

#PlayAnimation.pause {
    background-image: url("./img/download-anim-orange-2x.png");
}

#InfoBlock {
    float: left;
    margin-right: 10px;
    padding-top: 2px;
    cursor: pointer;
    width: 86px;
}

#InfoBlock div {
    margin-top: 1px;
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

#InfoBlock i {
    margin-right: 1px;
}

.navbar-inner i {
    opacity: 0.8;
    filter: alpha(opacity=80);
}

#InfoBlock div:hover i {
    opacity: 1;
    filter: alpha(opacity=100);
}

#StatusTime.orange {
    color: #f08929;
}

#StatusTime.orange:hover {
    color: #ffa15a;
}

.navbar-inner .btn:hover i {
    opacity: 1;
    filter: alpha(opacity=100);
}

#NavLinks {
    margin-right: 0;
}

.navbar-container {
    padding-left: 10px;
    padding-right: 10px;
}

.navbar .btn-group {
    padding: 0;
}

/* needed for Safari 4 */
.btn-toolbar .btn {
    height: 28px;
}

.navbar .nav {
    margin-right: 0;
}

.navbar .nav > li > a {
    color: inherit;
}

#NavLinks .badge {
    min-width: 14px;
    display: inline-block;
    text-align: center;
    padding: 1px 4px;
}

#NavLinks .badge.badge2 {
    min-width: 18px;
}

#NavLinks .badge.badge3 {
    min-width: 28px;
}

#NavLinks .badge-empty {
    background: none;
}

/* for checkboxes in dropdown menu */
.menu-refresh td:first-child,
.menu-check td:first-child {
    width: 18px;
}

/* for checkboxes in dropdown menu "Refresh" */
.menu-refresh td:nth-child(2) {
    width: 20px;
    text-align: right;
    padding-right: 5px;
}

/* Search box */
.navbar-search {
    margin: 0px 10px;
}

.navbar-search .search-query,
.navbar-search .search-query:focus,
.navbar-search .search-query.focused {
    width: 130px;
    padding: 3px 28px 3px 25px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
}

.navbar-search .search-query:focus,
.navbar-search .search-query.focused {
    margin-top: 1px;
}

.search-clear {
    position: absolute;
    top: 6px;
    right: 9px;
    cursor: pointer;
    opacity: 0.65;
    filter: alpha(opacity=65);
}

.search-caret-block {
    left: -2px;
    top: 2px;
    position: absolute;
}

.search-caret-button {
    border: 0;
    background: none;
    width: 24px;
    height: 22px;
    padding: 3px;
    line-height: 10px;
    vertical-align: top;
}

.search-caret-button:hover .caret {
    opacity: 1;
    filter: alpha(opacity=100);
}

/* MENUS */
#RefreshMenu {
    min-width: 160px;
}

#SettingsMenu {
    min-width: 190px;
}

#PlayMenu {
    min-width: 190px;
}

#ToolbarOptMenu {
    min-width: 215px;
}

#RssMenu {
    max-width: 300px;
    overflow: hidden;
}

.menu-with-button a {
    padding-right: 70px;
    overflow: hidden;
}

.menu-with-button a .btn,
.phone .menu-with-button a .btn {
    visibility: hidden;
    height: 22px;
    line-height: 12px;
    font-size: 8pt;
    padding: 2px 7px;
    margin-right: 0px;
    margin-top: -2px;
    margin-bottom: -1px;
    right: 15px;
    position: absolute;
}

.menu-with-button a:hover .btn {
    visibility: visible;
}

.menu-with-button .menu-no-items {
    padding-left: 15px;
}

#FilterMenu {
    left: -3px;
    right: auto;
    margin-top: 3px;
    min-width: 170px;
    max-width: 270px;
}

#FilterMenu::after {
    left: 13px;
    right: auto;
}

#FilterMenu::before {
    left: 12px;
    right: auto;
}

#DownloadsEdit_ActionsMenu,
#HistoryEdit_ActionsMenu {
    min-width: 120px;
}

ul.dropdown-menu > li > a {
    line-height: 20px;
}

ul.dropdown-menu > li > a.has-table {
    line-height: 18px;
}

ul.dropdown-menu > li > a > i {
    margin-right: 5px;
}

/* BEGIN: Icons */
[class^="icon-"],
[class*=" icon-"],
[class^="img-"],
[class*=" img-"] {
    background-image: url("./img/icons.png");
}

/* HiDPI screens */
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
    [class^="icon-"],
    [class*=" icon-"],
    [class^="img-"],
    [class*=" img-"] {
        background-image: url("./img/icons-2x.png");
        -webkit-background-size: 700px 300px;
        -moz-background-size: 700px 300px;
        background-size: 700px 300px;
    }
}

[class^="icon-"],
[class*=" icon-"] {
    display: inline-block;
    vertical-align: text-top;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.icon-empty {
    background-position: -1000px -1000px;
}

.icon-plus {
    background-position: -16px -16px;
}

.icon-minus {
    background-position: -368px -112px;
}

.icon-remove-white {
    background-position: -48px -16px;
}

.icon-ok {
    background-position: -80px -16px;
}

.icon-time {
    background-position: -112px -16px;
}

.icon-file {
    background-position: -144px -16px;
}

.icon-messages {
    background-position: -176px -16px;
}

.icon-play {
    background-position: -208px -16px;
}

.icon-pause {
    background-position: -240px -16px;
}

.icon-down {
    background-position: -272px -16px;
}

.icon-up {
    background-position: -304px -16px;
}

.icon-bottom {
    background-position: -336px -16px;
}

.icon-top {
    background-position: -368px -16px;
}

.icon-back {
    background-position: -304px -80px;
}

.icon-forward {
    background-position: -336px -80px;
}

.icon-nextpage {
    background-position: -368px -80px;
}

.icon-refresh {
    background-position: -16px -48px;
}

.icon-edit {
    background-position: -48px -48px;
}

.icon-trash {
    background-position: -80px -48px;
}

.icon-settings {
    background-position: -112px -48px;
}

.icon-downloads {
    background-position: -144px -48px;
}

.icon-plane {
    background-position: -176px -48px;
}

.icon-truck {
    background-position: -208px -48px;
}

.icon-history {
    background-position: -240px -48px;
}

.icon-remove,
.icon-close {
    background-position: -272px -48px;
}

.icon-merge {
    background-position: -304px -48px;
}

.icon-save {
    background-position: -464px -80px;
}

.icon-rss {
    background-position: -304px -112px;
}

.icon-trash-white {
    background-position: -336px -48px;
}

.icon-downloads-white {
    background-position: -368px -48px;
}

.icon-history-white {
    background-position: -400px -48px;
}

.icon-settings-white {
    background-position: -432px -48px;
}

.icon-messages-white {
    background-position: -464px -48px;
}

.icon-time-orange {
    background-position: -400px -80px;
}

.icon-split {
    background-position: -432px -80px;
}

.img-checkmark {
    background-position: -432px -16px;
}

.img-checkminus {
    background-position: -400px -16px;
}

.icon-postcard {
    background-position: -432px -112px;
}

.icon-link {
    background-position: -400px -112px;
}

.icon-alert {
    background-position: -336px -112px;
}

.icon-process {
    background-position: -304px -144px;
}

.icon-process-auto {
    background-position: -336px -144px;
}

.icon-duplicates {
    background-position: -368px -144px;
}

.icon-mask {
    background-position: -400px -144px;
}

.icon-mask-white {
    background-position: -432px -144px;
}

.icon-ring-red {
    background-position: -528px -16px;
}

.icon-ring-fill-red {
    background-position: -560px -16px;
}

.icon-circle-red {
    background-position: -496px -16px;
}

.icon-ring-blue {
    background-position: -528px -48px;
}

.icon-ring-fill-blue {
    background-position: -560px -48px;
}

.icon-ring-ltgrey {
    background-position: -496px -48px;
}

/* END: Icons */

.btn-toolbar {
    margin-top: 6px;
    margin-bottom: 0px;
}

.section-toolbar,
.modal-toolbar {
    margin-top: 0;
    margin-bottom: 7px;
}

.section-title {
    margin-right: 10px;
}

.label-status {
    text-transform: uppercase;
}

.label-inline {
    display: inline-block;
    margin-bottom: -4px;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.controls .label-status {
    line-height: 22px;
}

.invisible {
    visibility: hidden;
}

.table a.badge-link:hover {
    text-decoration: none;
}

table.datatable > tbody > tr > td {
    word-wrap: break-word;
}

#MainTabContent {
    margin-top: 0;
    overflow: visible; /* fix problem with dropdown menus */
}

/* top toolbox (length-combo and pager) for tables */
.toolbox-top {
    margin-bottom: 8px;
}

div.btn-group + div.toolbox-length {
    margin-left: 10px;
}

/* combobox with page length for tables */
div.toolbox-length select {
    width: 75px;
    height: 28px;
}

.toolbox-info {
    margin-top: 10px;
}

.pagination {
    height: 32px;
    margin: 0;
}

.pagination a {
    padding: 0 10px;
    line-height: 26px;
}

.modal-tab .pagination {
    margin-bottom: 10px;
}

.padded-tab {
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 8px;
    margin-right: 20px;
}

h2 {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 8px;
    margin-right: 20px;
}

.alert-heading {
    margin-bottom: 10px;
}

/* remove focus border */
.nav-tabs > .active > a,
.nav-tabs > .active > a:hover,
.nav-pills > .active > a,
.nav-pills > .active > a:hover,
.nav-list > .active > a,
.nav-list > .active > a:hover,
.btn,
.btn-group .btn,
.pagination a,
.btn-toolbar .btn,
.control-group .btn,
.modal-footer .btn,
.form-search .btn,
.btn:focus {
    outline: 0;
}

form {
    margin-bottom: 0px;
}

#DownloadsEdit_PostParamData,
#HistoryEdit_PostParamData {
    padding-bottom: 1px;
}

#DownloadsEdit_FileTable_filter,
#DownloadsEdit_LogTable_filter #HistoryEdit_LogTable_filter,
#FeedDialog_ItemTable_filter {
    width: 180px;
}

#DownloadsLogRecordsPerPageBlock,
#HistoryLogRecordsPerPageBlock {
    margin-bottom: 12px;
}

#DownloadsEdit_LogTable_filterBlock,
#HistoryEdit_LogTable_filterBlock {
    float: left;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 12px;
}

.phone .modal-toolbox {
    margin-bottom: 20px;
}

.loading-block {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
}

.loading-block img {
    position: absolute;
    top: 50%;
    left: 50%;
}

.modal-body {
    max-height: 360px;
}

.modal.no-footer .modal-body {
    max-height: 420px;
}

.modal-footer .btn-primary {
    min-width: 40px;
}

.modal-body .alert {
    margin-bottom: 0px;
    padding: 6px;
}

.modal-max {
    margin: 15px;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: auto;
    height: auto;
}

.modal-max .modal-body {
    position: absolute;
    left: 0;
    right: 0;
    max-height: inherit;
    /* top: 46px;	  // must be calculated at runtime */
    /* bottom: 58px;   // must be calculated at runtime */
}

.modal-max .modal-inner-scroll {
    top: 54px;
}

.modal-max .modal-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.modal-inner-scroll {
    bottom: 0;
    left: 15px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    padding-right: 15px;
}

.modal-inner-scroll .toolbox-info {
    margin-bottom: 10px;
}

.modal-2 {
    margin-top: -200px;
    z-index: 1060;
}

.modal-backdrop.modal-2 {
    z-index: 1055;
    opacity: 0.6;
}

/* BEGIN: Tables */
.table {
    margin-bottom: 0px;
}

.table-bordered:not(.table-fixed) th,
.table-bordered:not(.table-fixed) td {
    border-left: none;
}

.text-right {
    text-align: right;
}

.text-center,
table td.text-center,
table th.text-center {
    text-align: center;
}

.table th,
.table td {
    padding: 5px;
}

.table-condensed th,
.table-condensed td {
    padding: 2px;
}

.table-nonbordered,
.table-nonbordered td {
    border: none;
}

/* END: Tables */

/* BEGIN: Checkmarks in the table */
table.table-check > thead > tr > th:first-child,
table.table-check > tbody > tr > td:first-child {
    width: 14px;
    height: 14px;
    padding-left: 6px;
}

th > div.check {
    margin-bottom: 2px;
}

table.table-cancheck tr div.img-check {
    background-position: 10px 10px;
}

table.table-cancheck tr.checked div.img-check {
    background-position: -434px -18px;
}

table.table-cancheck tr.checkremove div.img-check {
    background-position: -402px -18px;
}

.check-simple tr.checked,
.check-simple tr.checked td,
.table-striped.check-simple tbody tr.checked:nth-child(odd) td {
    background-color: inherit;
}

table.table-hidecheck thead > tr > th:first-child,
table.table-hidecheck tbody > tr > td:first-child {
    display: none;
}
/* END: Checkmarks in the table */

/* BEGIN: Progress bars */
.progress-block {
    position: relative;
    width: calc(8.5rem);
}

/* text on left side of progress bar */
.bar-text-left {
    position: absolute;
    top: 0;
    left: 5px;
    text-align: left;
}

/* text on right side of progress bar */
.bar-text-right {
    position: absolute;
    top: 0;
    right: 5px;
    text-align: right;
}

/* text on left side of progress bar */
.bar-text-center {
    position: absolute;
    top: 0;
    left: 5px;
    width: 100%;
    text-align: center;
}
/* END: Progress bars */

/* DROP-DOWN CONTEXT MENUS */

td.dropdown-cell {
    padding: 0;
}

th.dropafter-cell,
td.dropafter-cell {
    padding-left: 0;
}

td.dropdown-cell > div {
    padding: 5px 12px 6px 4px;
    margin: 0px 0;
    display: inline-block;
    position: relative;
}

td.dropdown-cell > div:hover {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

td.dropdown-cell > div:not(.dropdown-disabled):hover {
    cursor: pointer;
}

.dropdown-menu {
    z-index: 3000;
}

table th.priority-cell {
    padding-left: 8px;
}

table td.priority-cell {
    width: 16px;
}

td.dropdown-cell.priority-cell > div {
    padding-right: 7px;
}

td.dropdown-cell.priority-cell > div:not(.dropdown-disabled):hover::after {
    margin-left: -1px;
}

#DownloadsTable td:first-child {
    padding-right: 6px;
}

td span.none-category {
    color: transparent;
}

/* controls */
input[readonly],
select[readonly],
textarea[readonly],
.uneditable-input {
    cursor: inherit;
}

.input-prepend .add-on-small,
.input-append .add-on-small {
    font-size: 11px;
}

.toolbtn {
    min-width: 56px;
}

/* BEGIN: override bootstrap styles for modals */
.modal-header h3 {
    text-align: center;
}

.modal-header .close {
    margin-top: 6px;
    margin-left: 10px;
    opacity: 0.6;
    filter: alpha(opacity=60);
    outline: 0;
}

.modal-header .close:hover {
    opacity: 0.9;
    filter: alpha(opacity=90);
}

.modal-header .back {
    float: left;
    margin-top: 6px;
    margin-right: 10px;
    font-size: 20px;
    font-weight: bold;
    line-height: 18px;
    opacity: 0.6;
    filter: alpha(opacity=60);
    outline: 0;
}

.modal-header .back:hover {
    cursor: pointer;
    opacity: 0.9;
    filter: alpha(opacity=90);
}

.modal-header .back-hidden:hover {
    cursor: inherit;
}

.form-horizontal .control-group {
    margin-bottom: 12px;
}

.modal .form-horizontal .control-group:last-child {
    margin-bottom: 0;
}

.modal .form-horizontal .retain-margin .control-group:last-child {
    margin-bottom: 15px;
}

.form-horizontal .control-group-last {
    margin-bottom: 0;
}

.form-horizontal .help-block {
    margin-top: 4px;
    margin-bottom: -2px;
    line-height: 18px;
}

.form-horizontal .help-block-uneditable {
    margin-top: 3px;
}

.modal .input-medium {
    width: 200px;
}

.modal .input-xlarge {
    width: 350px;
}

.modal .input-xblarge {
    width: 335px;
}

.modal.modal-padded .input-xxlarge {
    width: 470px;
}

/* END: override bootstrap styles for modals */

.modal-bottom-toolbar .btn {
    margin-top: 12px;
}

/* based on uneditable-input */
.input-medium.uneditable-input,
.uneditable-mulitline-input {
    margin-bottom: -4px;
}

.modal-mini {
    width: 420px;
    margin-left: -210px;
}

.modal-small {
    width: 480px;
    margin-left: -240px;
}

.modal-large {
    width: 700px;
    margin-left: -350px;
}

.modal-padded-small .modal-body {
    padding-left: 25px;
    padding-right: 25px;
}

.modal-padded .modal-body {
    padding-left: 40px;
    padding-right: 40px;
}

.modal-tab-padded {
    padding-left: 25px;
    padding-right: 25px;
}

.modal-tab-padded-small {
    padding-left: 10px;
    padding-right: 10px;
}

ul.help > li {
    margin-bottom: 10px;
}

/* Make "select files" native control invisible */
.hidden-file-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 0;
    filter: alpha(opacity=0);
}

/* BEGIN: PopupNotification alerts */

.alert-center {
    position: fixed;
    padding: 20px;
    top: 50%;
    left: 50%;
    z-index: 2000;
    overflow: auto;
    text-align: center;
    opacity: 0.9;
    filter: alpha(opacity=90);
}

.alert-center-small {
    width: 200px;
    margin: -80px 0 0 -100px;
}

.alert-center-medium {
    width: 400px;
    margin: -80px 0 0 -200px;
}

.alert-error.alert-center {
    border-color: #b94a48;
}

.alert-success.alert-center {
    border-color: #468847;
}

.alert-info.alert-center {
    border-color: #3a87ad;
}
/* END: PopupNotification alerts */

.btn-group {
    margin-right: 9px;
}

.btn-toolbar .btn-group {
    margin-right: 4px;
}

.btn-group + .btn-group {
    margin-left: 0;
}

.input-prepend .add-on:first-child {
    margin-left: 0;
}

/* important for group of buttons with different colors like toggle switch */
.btn-group > .btn:hover,
.btn-group > .btn:focus,
.btn-group > .btn:active,
.btn-group > .btn.active {
    z-index: inherit;
}

#ErrorAlert,
#FirstUpdateInfo,
#ConfigReloadInfo,
#ConfigLoadInfo,
#ConfigLoadServerTemplateError,
#ConfigLoadError,
#ConfigSaved,
.unsupported-browser {
    margin: 15px 20px 0 15px;
}

.confirm-menu {
    text-align: left;
    min-width: 10px;
    right: 0;
    left: auto;
}

.data-statistics {
    width: 300px;
}

.data-statistics-full {
    width: 364px;
}

.modal-center {
    margin-top: 0;
}

/*** STATISTICS */

.statistics__no-statistics {
    width: 100%;
    text-align: center;
}

.statistics__no-servers-container {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    width: auto;
    max-width: 500px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 auto;
}

.text-large {
    font-size: large;
}

.text-larger {
    font-size: larger;
}

#StatisticsTab {
    max-width: 1280px;
    padding: 5px;
    margin: auto;
}

.statistics__server-details {
    height: 100%;
    width: 350px;
}

.server-details__table {
    margin-bottom: 15px;
}

#StatDialog_VolumesBlock {
    text-align: center;
}

#StatDialog_ChartBlock {
    height: 300px;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
}

.statistics__chartblock {
    margin-bottom: 10px;
}

.statistics__chartblock,
.statistics__chart-block-spinner .spinner {
    height: 250px;
}

#StatDialog_Chart {
    height: 100%;
    width: 670px;
    width: 100%;
}

.statistics__chart {
    width: 100%;
    height: 100%;
}

#StatDialog_Tooltip,
.statistics__tooltip {
    float: right;
    margin-top: -3px;
    margin-bottom: -6px;
    padding-right: 15px;
    font-style: italic;
}

.statistics__chart-block-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.statistics__chart-block-spinner .spinner {
    font-size: 100px;
    height: 250px;
}

.stat-size {
    font-weight: bold;
}

#StatDialog_TooltipSum {
    font-weight: bold;
}

#StatDialog_CountersBlock,
.statistics__counter-block {
    padding-right: 20px;
}

#StatDialog_Counters,
.statistics__counters {
    margin-top: 8px;
    text-align: center;
}

#StatDialog_Counters .span3,
.statistics__counters .span3 {
    min-height: 0;
}

#StatDialog hr {
    margin: 5px 10px;
}

/*** CONFIG PAGE */
.config__container {
    display: flex;
    overflow: hidden;
}

.config-loading-alert {
    margin-top: 15px;
}

#DownloadsTab,
#HistoryTab,
#StatisticsTab,
#MessagesTab,
.config__container {
    height: calc(100vh - 55px);
    padding-top: 15px;
}

.config__container {
    padding-top: 12px;
}

#DownloadsTab,
#HistoryTab,
#StatisticsTab,
#MessagesTab {
    overflow: auto;
}

.config__aside {
    flex-basis: 320px;
    overflow: auto;
}

.config__main {
    max-width: 960px;
    width: 100%;
    padding: 0 15px;
    overflow: auto;
}

@media (max-width: 1041px) {
    .container-fluid {
        padding: 0 10px;
    }

    #DownloadsTab,
    #HistoryTab,
    #StatisticsTab,
    #MessagesTab,
    .config__container {
        height: calc(100vh - 90px);
        padding-top: 7px;
    }
}

@media (max-width: 960px) {
    .container-fluid {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .container-fluid {
        padding: 0 5px;
    }

    #DownloadsTab,
    #HistoryTab,
    #StatisticsTab,
    #MessagesTab,
    .config__container {
        height: 100%;
    }

    #DownloadsTab,
    #HistoryTab,
    #StatisticsTab,
    #MessagesTab {
        overflow: auto;
    }

    .config__container {
        display: flex;
        flex-direction: column;
        gap: 0px;
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: 0px;
    }

    .config__aside {
        min-width: 100%;
        flex-basis: auto;
        overflow-x: hidden;
    }

    .config__main {
        height: auto;
        width: auto;
        padding: 0 5px;
        overflow-x: auto;
    }
}

@media (min-width: 1280px) {
    .config__container {
        justify-content: center;
    }
}

.visible-tablet,
.visible-desktop {
    display: none;
}

.visible-phone {
    display: block;
}

/* Tablets */
@media (max-width: 480px) {
    .visible-phone {
        display: none;
    }
    .visible-tablet {
        display: block;
    }
}

/* Desktops */
@media (min-width: 768px) {
    .visible-tablet {
        display: none;
    }
    .visible-desktop {
        display: block;
    }
}

#ConfigNav.nav-list.long-list a {
    padding-top: 3px;
    padding-bottom: 3px;
}

#ConfigNav.nav .nav-header {
    font-size: 12px;
}

.phone #ConfigNav {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#ConfigTitle {
    margin-top: 15px;
    margin-right: 15px;
    font-size: 16px;
    font-weight: bold;
}

.config-header .btn-group {
    margin-right: 0;
}

#ConfigContent p.help-block {
    margin-top: 6px;
    line-height: 16px;
}

#ConfigContent.hide-help-block p.help-block {
    display: none;
}

#ConfigContent .control-label {
    font-weight: bold;
}

#ConfigContent select {
    width: inherit;
}

#ConfigContent .editnumeric {
    width: 70px;
}

#ConfigContent .editlarge {
    width: 95%;
}

#ConfigContent .editsmall {
    width: 150px;
}

#ConfigContent table.editor {
    width: 97%;
}

#ConfigContent table.editor td:first-child {
    width: 100%;
    padding-right: 15px;
}

#ConfigContent table.editor input {
    width: 100%;
}

.ConfigFooter hr {
    margin: 6px 0 15px;
}

div.ConfigFooter {
    padding-bottom: 15px;
}

#ConfigContent hr {
    margin: 15px 0;
}

#ConfigContent.hide-help-block .config-settitle {
    margin-bottom: 15px;
}

#ConfigContent.hide-help-block div.control-group,
#ConfigContent.hide-help-block div.control-group.multiset {
    border-bottom: none;
    margin-bottom: 0px;
    padding-bottom: 12px;
}

div.control-group.last-group {
    margin-bottom: 0;
}

#ConfigContent div.control-group.last-group,
#ConfigContent.search div.control-group.last-group.multiset {
    border-bottom: none;
}

#ConfigContent div.control-group.multiset {
    border-bottom: none;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

#ConfigContent .control-label {
    width: 170px;
}

#ConfigContent .form-horizontal .controls {
    margin-left: 180px;
}

.btn-switch .btn {
    text-transform: capitalize;
}

.option {
    font-weight: bold;
    font-style: italic;
    color: inherit;
}

.option-name,
.option-name:focus,
.option-name:hover {
    color: inherit;
    outline: 0;
    cursor: inherit;
    text-decoration: none;
}

.option__check-section {
    display: flex;
    flex-direction: column;
    width: 96%;
    margin-top: 7px;
}

.option-alert {
    margin-bottom: 0;
    font-size: larger;
    padding: 2px 3px;
}

.option-alert__icon {
    font-size: larger;
    margin-right: 3px;
}

.search .option-name,
.search .option-name:focus {
    cursor: pointer;
}

div.multiset-toolbar button {
    margin-right: 15px;
}

#ScriptListDialog_ScriptTable td:nth-child(2) {
    padding-right: 100px;
}

#ScriptListDialog_ScriptTable .btn-row-order-block {
    float: right;
    width: 100px;
    margin-right: -115px;
    display: block;
}

#ScriptListDialog_ScriptTable .btn-row-order {
    float: none;
    width: 20px;
    display: none;
}

#ScriptListDialog_ScriptTable tr:hover .btn-row-order {
    display: inline-block;
    cursor: pointer;
}

.mv-item-arrow-btn--disabled,
#ScriptListDialog_ScriptTable tbody > tr:first-child .btn-row-order:first-child,
#ScriptListDialog_ScriptTable tbody > tr:last-child .btn-row-order:last-child,
#ScriptListDialog_ScriptTable
    tbody
    > tr:first-child
    .btn-row-order:nth-child(2),
#ScriptListDialog_ScriptTable
    tbody
    > tr:last-child
    .btn-row-order:nth-child(3) {
    opacity: 0.4;
    pointer-events: none;
}

/* UPDATE DIALOG */

#UpdateDialog_InstallStable,
#UpdateDialog_InstallTesting,
#UpdateDialog_InstallDevel {
    margin-top: 5px;
}

.table .update-row-name {
    font-weight: bold;
    padding-top: 14px;
}

.log-dialog {
    width: 640px;
    margin-left: -320px;
}

.log-dialog .modal-body {
    min-height: 280px;
    position: relative;
}

.update-log-error,
.script-log-error {
    color: #dd0000;
}

.script-log-success {
    color: #00dd00;
}

/* FEED FILTER DIALOG */

#FeedFilterDialog_FilterNumbers {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

#FeedFilterDialog_FilterInput {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    resize: none;
    outline: none;
    border: none;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

#FeedFilterDialog_PreviewBlock {
    position: absolute;
    left: 325px;
    right: 0;
    bottom: 0;
    height: auto;
    width: auto;
    padding-right: 15px;
    margin-bottom: 12px;
}

#FeedFilterDialog_Splitter {
    position: absolute;
    left: 319px;
    width: 5px;
    padding: 0;
    right: 5px;
    bottom: 0;
    height: auto;
    cursor: col-resize;
}

.phone #FeedFilterDialog_FilterBlock,
.phone #FeedFilterDialog_PreviewBlock,
.phone #FeedFilterDialog_FilterClient {
    position: static;
    top: inherit;
    left: 0;
    width: inherit;
    padding-right: 0;
}

.phone #FeedFilterDialog_FilterInput {
    height: 380px;
}

.filter-rule {
    cursor: pointer;
}

/* DRAG-N-DROP */

.phone #TableDragBox .badge {
    font-size: 22px;
    top: -20px;
    padding: 6px 10px;
    border-radius: 12px;
}

#TableDragBox .table-bordered {
    border: none;
}

/* drag grip */
table.table-drag > tbody > tr:hover > td:first-child,
#TableDragBox table.table-drag > tbody > tr > td:first-child {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAECAYAAACk7+45AAAAFUlEQVQI12O8e/fufwYGBgYmBpwAAHhsA5rVjhOVAAAAAElFTkSuQmCC);
    background-position: 1px 1px;
    background-repeat: repeat-y;
}

.phone table.table-drag > tbody > tr:hover > td:first-child,
.phone #TableDragBox table.table-drag > tbody > tr > td:first-child {
    background: none;
    cursor: default;
}

table.table-drag > tbody > tr > td:first-child {
    cursor: move;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

table.table-drag > tbody > tr > td:first-child > div.check {
    cursor: default;
}

#TableDragBox table.table-drag > tbody > tr > td:first-child,
#TableDragBox table.table-drag > tbody > tr > td:first-child > div.check {
    cursor: move;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

tr.drag-source > td > * {
    visibility: hidden !important;
}

/****************************************************************************/
/* SMARTPHONE THEME */

body.phone {
    margin-top: 0;
}

.phone .navbar-fixed-top {
    position: static;
}

.phone #PlayBlock {
    width: 75px;
}

.phone #PlayCaretButton {
    width: 25px;
    margin-left: 10px;
}

.phone #InfoBlock {
    width: 155px;
    height: 42px;
    margin-right: 0;
}

.phone #InfoBlock div {
    display: inline-block;
    margin-left: 5px;
    margin-top: 5px;
    font-size: 14px;
    line-height: 32px;
    height: inherit;
}

/* GENERAL CLASSES */
.phone-only,
.btn-group.phone-only {
    display: none;
}

.phone .phone-hide,
.phone .btn-group.phone-hide {
    display: none;
}

.phone .phone-only {
    display: block;
}

.phone .phone-only.inline {
    display: inline-block;
}

/* FONTS */
body.phone,
.phone p,
.phone .form-horizontal .help-block,
.phone h4 {
    font-size: 18px;
    line-height: 22px;
}

.phone table td {
    line-height: 26px;
    overflow-x: auto;
}

.phone select,
.phone input,
.phone textarea,
.phone label,
.phone button,
.phone .btn,
.phone .btn-toolbar .btn,
.phone .uneditable-input {
    font-size: 18px;
    line-height: 24px;
    height: inherit;
}

.phone .controls .label-status {
    line-height: 28px;
}

.phone .menu-header {
    font-size: 18px;
    line-height: 24px;
}

/* SECTION MARGINGS */
.phone .section-toolbar,
.phone .toolbox-top,
.phone .toolbox-info,
.phone #ConfigTabData {
    padding-left: 5px;
    padding-right: 5px;
}

.phone #ErrorAlert,
.phone #FirstUpdateInfo,
.phone #ConfigReloadInfo,
.phone #DownloadQueueEmpty {
    margin-left: 5px;
    margin-right: 5px;
}

.phone #FirstUpdateInfo,
.phone #ConfigReloadInfo {
    margin-top: 5px;
}

.phone #MainContent {
    padding-left: 0px;
    padding-right: 0px;
}

.phone .section-toolbar {
    margin-bottom: 0;
}

.phone .toolbox-top {
    margin-top: 0;
    margin-bottom: 8px;
}

/* NAVBAR */
.phone .navbar-container {
    padding-left: 5px;
    padding-right: 5px;
}

.phone .navbar-inner .btn-toolbar {
    margin: 6px 0 0;
}

.phone .nav,
.phone ul.nav {
    width: 100%;
    display: flex;
}
.phone ul.nav > li {
    text-align: center;
    width: 100%;
}

.phone .menu-header {
    text-align: left;
}

.phone .navbar .nav > li > a {
    padding: 4px 4px 6px;
}

.phone .navbar .nav > li.active > #DownloadsTabLink > i {
    /* icon-downloads (black) */
    background-position: -144px -48px;
}

.phone .navbar .nav > li.active > #HistoryTabLink > i {
    /* icon-history (black) */
    background-position: -240px -48px;
}

.phone .navbar .nav > li.active > #MessagesTabLink > i {
    /* icon-messages (black) */
    background-position: -176px -16px;
}

.phone .navbar .nav > li.active > #ConfigTabLink > i {
    /* icon-settings (black) */
    background-position: -112px -48px;
}

.phone .navbar .btn-toolbar .btn {
    padding: 3px;
    min-width: 40px;
}

.phone #RefreshBlockPhone {
    padding-left: 5px;
}

.phone .navbar-search {
    width: 90%;
}

.phone .navbar-search .search-query,
.phone .navbar-search .search-query:focus,
.phone .navbar-search .search-query.focused {
    width: 85%;
    padding: 4px 28px 4px 28px;
    font-size: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    border-radius: 16px;
    margin-bottom: 5px;
    margin-top: 1px;
    border: 0;
}

.phone .search-clear {
    top: 9px;
}

/* DATATABLE */
.phone table.datatable,
.phone table.datatable > tbody,
.phone table.datatable > tbody > tr,
.phone table.datatable > tbody > tr > td {
    display: block;
}

.phone table.datatable > thead {
    display: none;
}

.phone table.datatable > tbody > tr > td {
    width: inherit;
    height: inherit;
}

.phone .datatable td {
    border: 0;
}

.phone table.datatable > tbody > tr > td:first-child {
    border-top: 1px solid #dddddd;
}

.phone table.datatable > tbody > tr:last-child > td:last-child {
    border-bottom: 1px solid #dddddd;
}

.phone table.datatable > tbody > tr > td:first-child {
    padding-top: 10px;
}

.phone table.datatable > tbody > tr > td:last-child {
    padding-bottom: 10px;
}

.phone table.table-check > tbody > tr > td {
    padding-left: 60px;
}

/* CHECKMARKS IN DATATABLE */
.phone div.check {
    margin-top: -2px;
    margin-left: -48px;
    width: 30px;
    height: 30px;
    display: block;
    position: absolute;
    border-width: 2px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.phone table.table-cancheck tr.checked div.img-check {
    /* icon-OK */
    background-position: -74px -10px;
}

/* SPECIAL TABLE STYLES */
.phone .row-title {
    font-weight: bold;
}

.phone .progress-block {
    margin-top: -2px;
}

.phone .downloads-progresslabel {
    margin-top: -8px;
    margin-bottom: 10px;
}

.phone .label-inline {
    display: inline;
}

/* CONTROLS AROUND DATATABLE */
.phone .records-label {
    display: none;
}

/* PAGER */
.phone .toolbox-info div {
    float: none;
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 5px;
}

.phone div.toolbox-length {
    margin-top: 10px;
}

.phone .modal-toolbox div.toolbox-length {
    margin-top: 0;
}

.phone .pagination {
    height: auto;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.phone .pagination a {
    padding: 0 10px;
    line-height: 34px;
}

/* STATUS LABELS */
.phone .label {
    font-size: 14px;
    line-height: 18px;
    vertical-align: middle;
}

.phone .datatable .label {
    line-height: 21px;
}

/* PROGRESS */
.phone .progress-block {
    font-size: 16px;
    width: 100%;
}

.phone .progress,
.phone .progress .bar {
    height: 24px;
}

.phone .bar-text-left,
.phone .bar-text-center,
.phone .bar-text-right {
    padding-top: 1px;
    margin-top: 0px;
}

/* STATISTICS TABLE */
.phone #StatisticsTab table {
    width: 100%;
}

.phone #StatisticsTab td:first-child {
    font-weight: bold;
}

.phone #StatisticsTab td {
    text-align: left;
}

/* MENUS */
.phone .dropdown-menu a {
    padding: 7px 15px;
}

.phone .dropdown-toggle {
    position: static;
}

.phone #FilterMenu {
    left: inherit;
    right: inherit;
    margin-top: inherit;
    width: inherit;
}

/* hide arrow */
.phone .navbar .dropdown-menu:before,
.phone .navbar .dropdown-menu:after {
    display: none;
}

.phone #RefreshMenu {
    min-width: 200px;
}

.phone #SettingsMenu {
    min-width: 230px;
}

.phone #PlayMenu {
    min-width: 250px;
}

.phone #ToolbarOptMenu {
    min-width: 270px;
}

.phone .dropdown-context:hover {
    cursor: inherit;
}

.phone .dropdown-context:hover::after {
    display: none;
}

/* TOOLBAR AND INPUTS */
.phone .btn-toolbar .btn,
.phone .btn-toolbar input {
    padding: 6px;
    min-width: 45px;
}

.phone .btn-toolbar .btn-group {
    margin-right: 0;
}

.phone .btn-toolbar .input-prepend .add-on,
.phone .btn-toolbar .input-append .add-on {
    padding: 6px;
    min-width: 45px;
}

.phone input,
.phone textarea,
.phone .uneditable-input {
    height: 24px;
}

.phone input.btn {
    height: inherit;
}

.phone .input-prepend .add-on,
.phone .input-append .add-on {
    height: 24px;
    line-height: 22px;
    min-width: 16px;
}

.phone select {
    height: auto;
}

.phone [class^="icon-"] {
    line-height: 24px;
    vertical-align: baseline;
}

.phone .caret {
    line-height: 24px;
    margin-top: -2px;
    vertical-align: middle;
}

/*** MODALS */
.phone .modal-footer > .btn,
.phone .modal-footer > .btn-group {
    display: block;
    float: none;
    width: 100%;
    margin: 10px auto;
}

.phone .modal-footer .btn {
    padding: 7px 0;
}

.phone .modal-footer > .btn-group > .btn {
    width: 100%;
    margin: 0;
}

.phone .modal-footer {
    padding-top: 5px;
    padding-bottom: 5px;
}

.phone .modal-footer .confirm-menu {
    text-align: center;
    right: inherit;
    left: inherit;
    float: none;
    width: 100%;
}

.phone .modal-footer .confirm-menu .menu-header {
    text-align: center;
}

.phone .modal-padded .modal-body,
.phone .modal-padded-small .modal-body {
    padding-left: 15px;
    padding-right: 15px;
}

.phone .modal-tab-padded,
.phone .modal-tab-padded-small {
    padding-left: 0;
    padding-right: 0;
}

.phone .modal-max .modal-body {
    position: static;
}

.phone .modal-max .modal-footer {
    position: static;
}

.phone .modal-max .modal-inner-scroll {
    position: static;
    top: inherit;
    left: 0;
    padding-right: 0;
}

.phone .data-statistics,
.phone .data-statistics-wide,
.phone .data-statistics-full {
    width: 100%;
}

.phone .btn-caption {
    display: none;
}

.btn-caption:not(.phone) {
    vertical-align: text-bottom;
}

.phone div.toolbox-length select {
    height: 36px;
}

.phone .navbar .btn-toolbar {
    position: relative;
}

.phone #ConfigNav.nav-list a {
    font-size: 18px;
}

.phone #ConfigNav.nav .nav-header {
    font-size: 20px;
}

.phone #ConfigContent .config-header {
    font-size: 20px;
}

.phone .config-settitle {
    font-size: 18px;
}

.phone #TableDragTip {
    font-size: 18px;
}

/*** STATISTICS DIALOG */

.phone #StatDialog_Tooltip {
    margin-top: 3px;
    margin-bottom: 3px;
}

.phone #StatDialog hr {
    margin-top: 30px;
}

input[type="date"] {
    width: auto;
}

/* MEDIA SMALL SCREENS */
@media (max-width: 700px) {
    #ConfigContent [class*="span"] {
        display: block;
        float: none;
        width: auto;
        margin-left: 0;
    }

    .modal-large {
        width: 600px;
        margin-left: -300px;
    }
}

@media (max-width: 568px) {
    input[type="checkbox"],
    input[type="radio"] {
        border: 1px solid #ccc;
    }

    [class*="span"],
    .row-fluid [class*="span"] {
        display: block;
        float: none;
        width: auto;
        margin-left: 0;
    }

    .form-horizontal .control-group > label {
        float: none;
        width: auto;
        padding-top: 0;
        text-align: left;
    }

    .form-horizontal .controls,
    #ConfigContent .form-horizontal .controls {
        margin-left: 0;
    }

    .form-horizontal .control-list {
        padding-top: 0;
    }

    .form-horizontal .form-actions {
        padding-right: 10px;
        padding-left: 10px;
    }

    .modal {
        position: absolute;
        top: 0px;
        right: 0px;
        left: 0px;
        width: auto;
        margin: 0;
    }

    .modal.fade.in {
        top: auto;
    }

    .modal .input-xlarge,
    .modal .input-xxlarge,
    .modal.modal-padded .input-xxlarge,
    .uneditable-mulitline-input {
        width: 95%;
    }

    .modal-body,
    .modal.no-footer .modal-body {
        max-height: none;
    }

    .modal-center {
        right: 20px;
        left: 20px;
    }

    .alert-center-small,
    .alert-center-medium {
        right: 20px;
        left: 20px;
        width: auto;
        margin: -10% 0 0;
    }
}

@media (max-width: 600px) {
    #SearchBlock {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .phone .search-clear {
        right: 25px;
    }

    .list-item--nested a {
        padding-left: 0px !important;
    }
}

@media (max-width: 450px) {
    .phone .search-clear {
        right: 9px;
    }
}

@media (max-width: 549px) {
    #Logo {
        display: none;
    }
}

@media (max-width: 480px) {
    .dialog-transmit {
        display: none;
    }
}
/* END: MEDIA SMALL SCREENS */
