﻿html, body {
    height: 100%;
    margin: 0;
    width: 100%;
    display: flex;
}
body {
    min-width: 100% !important;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.search-group {
    margin: 0px 0px 15px 0px;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.img-login-logo {
    max-width: 280px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.nav-menu-tab {
    min-width: 100px;
}


@media ( max-width:700px ) {
    .menu-button-group {
        display: none;
    }

    .search-pane {
        display: none;
    }

    .body-content {
        padding-left: 5px;
        padding-right: 5px;
    }

    .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }

    .main-table {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        max-width: calc(100% + 30px);
    }

    .no-mobile {
        display: none !important;
    }

    .pagination > li > a {
        padding: 3px 8px !important;
    }

    .summary-chart {
        width: 300px;
        height: 300px;
        margin: auto;
    }
}

.dl-horizontal dt {
    white-space: normal;
}

.detail-item-heading {
    font-size: 8px;
    font-weight: bold;
}

input,
select,
textarea {
    max-width: 280px;
}
.navbar navbar-default navbar-static-top {
    background-color: #06274f;
}

#user-profile-dropdown .dropdown-toggle {
    padding-top: 25px;
    color: #eeeeee;
}

#user-profile-dropdown.open .dropdown-toggle {
    padding-top: 25px;
    color: #06274f;
}

#user-profile-dropdown a {
    color: #428bca;
}

#user-profile-dropdown a:hover {
    color: #eeeeee;
}

#user-profile-dropdown .dropdown-toggle:hover {
    color: #06274f;
}

.dropdown.open {
    color: #06274f;
}


@media (min-width: 768px) {
    .sidebar {
        z-index: 1;
        position: absolute;
        width: 220px;
        margin-top: 71px;
    }
}
.centered {
    text-align: center;
}

a:hover {
    text-decoration: none !important;
}
.help-block ul {
    list-style-type: none;
    padding-left: 0px;
    color: #b94a48;
}
.advert-preview {
    cursor: pointer;
}

.advert-image-preview {
    cursor: pointer;
}
.ban-preview {
    cursor: pointer;
}
.record-preview {
    cursor: pointer;
}
.wickedpicker {
    z-index: 3000;
}

.wickedpicker__title {
    display: none;
}
button {
    padding-bottom: 4px !important;
    padding-top: 4px !important;
}

.search-button {
    padding-bottom: 6px !important;
    padding-top: 6px !important;
}

.clear-search-button {
    padding-bottom: 6px !important;
    padding-top: 6px !important;
}
.form-check .form-check-input {
    float: left;
}

.form-check .form-check-label {
    padding-left: 2px;
    padding-top: 4px;
}
.sortable {
    cursor: pointer;
}

.sortable:hover {
    color: #428bca;
    text-decoration: underline;
}

.datagrid {
    max-width: 1200px;
}

.row-detail-button {
    cursor: pointer;
}

td > button {
    padding: 2px 10px 2px 10px !important;
}
.modal-table td {
    vertical-align: top;
    min-width: 105px;
}

.col-handle {
    height: 18px;
    margin: 0 1px;
    cursor: move;
}
#draggable {
    width: 150px;
    height: 40px;
    padding: 0.5em;
}
page {
    background: white;
    display: block;
    margin: 0 auto;
    margin-bottom: 0.5cm;
    box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
    position: relative;
}

page[size="A4"] {
    width: 21cm;
    height: 29.7cm;
}

page[size="Docket"] {
    width: 72mm;
    height: 155mm;
}

page[size="Badge"] {
    width: 21cm;
    height: 29.7cm;
}

@media print {
    body, page {
        margin: 0;
        box-shadow: 0;
    }
}

.document-object-container {
    padding: 0 0 0 0 !important;
    height: 20px !important;
    cursor: move;
    background-color: transparent;
}

.document-label {
    margin: 0 0 0 0 !important;
    float: left !important;
    cursor: move;
    background-color: transparent;
    position: absolute;
    z-index: 1;
}
.document-label.selected {
    outline-width: 1px;
    outline-color: #1e90ff;
    outline-style: solid;
}
.loading {
    /*position: fixed;*/
    /*top: 0; right: 0;*/
    /*bottom: 0; left: 0;*/
    background: #fff;
}
.loader {
    left: 50%;
    margin-left: -4em;
    font-size: 5px;
    border: .8em solid rgba(218, 219, 223, 1);
    border-left: .8em solid #428bca;
    animation: spin 1.1s infinite linear;
}

.loader, .loader:after {
    border-radius: 50%;
    width: 8em;
    height: 8em;
    display: block;
    position: absolute;
    top: 50%;
    margin-top: -4.05em;
}

@keyframes spin {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}
#report-filters {
    transition: margin 0.3s ease;
}
.collapsed {
    display: none;
}

@media (min-width: 992px) {
    .collapsed {
        display: block;
        margin-left: -25%;
    }
}

#row-main {
    overflow-x: hidden;
}

#report-content {
    transition: width 0.3s ease;
}


.ui-autocomplete {
    z-index: 6000;
}

.ui-autocomplete {
    font-size: 11px;
}
html .ui-autocomplete {
    width: 1px;
    min-height: 185px;
    overflow-y: scroll;
    overflow-x: hidden;
}
.ui-menu {
    list-style: none;
    padding: 2px;
    margin: 0;
    display: block;
    float: left;
}

.ui-menu .ui-menu {
    margin-top: -3px;
}

.ui-menu .ui-menu-item {
    margin: 0;
    padding: 0;
    zoom: 1;
    float: left;
    clear: left;
    width: 100%;
}

.ui-menu .ui-menu-item a {
    text-decoration: none;
    display: block;
    padding: .2em .4em;
    line-height: 1.5;
    zoom: 1;
}

.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active {
    font-weight: normal;
    margin: -1px;
}

.compact-row {
    font-size: 11px;
    margin-top: 0;
    margin-bottom: 0;
}

@media ( min-width:700px ) {
    #loginForm {
        width: 300px;
        margin: auto;
    }

    .log_datail_table {
        width: 100%;
        border-spacing: 0px;
        border-collapse: separate;
    }

    .log_datail_table th {
        border-left: 1px solid black;
        border-bottom: 1px solid black;
        border-top: 1px solid black;
        padding: 1px 2px;
        font-size: 12px;
    }

    .log_datail_table tr th:first-child {
        border-top-left-radius: 3px;
    }

    .log_datail_table tr th:last-child {
        border-right: 1px solid black;
        border-top-right-radius: 3px;
    }

    .log_datail_table td {
        border-left: 1px solid black;
        border-bottom: 1px solid black;
        padding: 1px 2px;
        font-size: 12px;
    }

    .log_datail_table tr td:last-child {
        border-right: 1px solid black;
    }

    .log_datail_table tr:last-child td:first-child {
        border-bottom-left-radius: 3px;
    }

    .log_datail_table tr:last-child td:last-child {
        border-bottom-right-radius: 3px;
    }
}

@media ( max-width:700px ) {
    .log_datail_table {
        width: 100%;
        border: 1px solid black;
        border-collapse: collapse;
    }

    .log_datail_table th {
        border: 1px solid black;
        padding: 1px 2px;
        font-size: 12px;
    }

    .log_datail_table td {
        border: 1px solid black;
        padding: 1px 2px;
        font-size: 12px;
    }
}

.view_id_image {
    width: 300px;
    cursor: pointer;
}

.required .control-label:after {
    content: " *";
    color: red;
}

input-upper {
    text-transform: uppercase;
}

.TooltipComment {
    display: none;
    position: absolute;
    background-color: white;
    z-index: 1000;
}

.TooltipBeginning {
    position: relative;
    cursor: pointer;
}

.TooltipBeginning:hover div.TooltipComment {
    display: flex;
}

.k-button:disabled {
    pointer-events: auto;
}

.form-control-checkbox {
    display: block;
    width: 20px;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.field-validation-error {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
}

.timepicker {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
#page-wrapper {
    flex: 1;
    flex-direction: column;
    min-height: 100vh;
}
.page-content {
    flex: 1;
}
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 50px;
    text-align: center;
    margin-top: 0px;
}
.position-relative {
    position: relative !important;
}
.border-top {
    border-top: 1px solid #dee2e6 !important;
}
.border-top-0 {
    border-top: 0 !important;
}
.text-muted {
    --bs-text-opacity: 1;
    color: #6c757d !important;
}
.flex-grow-1 {
    flex-grow: 1 !important;
}
.page-footer {
    position: revert-layer;
    bottom: 0;
    line-height: 10px;
    text-align: center;
    margin-top: 0px;
    background-color: #fff !important;
}
.action-result-message-success,
.action-result-message-error {
    padding-top: 20px;
    padding-bottom: 5px;
    font-size: 14px;
    text-align: left !important;
    font-style: italic !important;
}
.action-result-message-success {
    color: #183247 !important;
}
.action-result-message-error {
    color: #d9544a !important;
}
.form-label-bold,
.form-label {
    color: #183247 !important;
    font-size: 14px !important;
}
.form-label {
    font-weight: normal !important;
    font-style: italic !important;
}
.form-label-bold {
    font-weight: bold !important;
}
#loadingOverlay {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999; /* above navbar, modals, etc. */
}
#loadingOverlay .loading-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
#loadingOverlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
    margin: 0 auto;
}
#loadingOverlay .loading-text {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}
@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}
.pagination-button{
    cursor: pointer;
}