/* BMD layout fixes */
body {
    max-width: 100%;
    width: 100%;
}

.main-panel .navbar {
    z-index: 1001;
}

.main-panel > .content {
    padding-top: 1px !important;
    padding-bottom: 0 !important;
}

.not-set {
    color: red;
    font-style: italic;
    font-size: 0.8em;
}

.rounded-pill {
    border-radius: 50rem !important;
}

@media (min-width: 991px) {
    .sidebar-mini .main-panel,
    .sidebar-mini.visible-on-sidebar-regular .main-panel {
        width: 100%;
    }
}

.card.card-animated {
    transition: all .3s linear;
}

.card.card-show-on-load {
    opacity: 0;
    transform: translate3d(0, -60px, 0);
}

/* BMD layout fixes end*/

/* BMD form fixes */
.bmd-form-group [class*=" bmd-label"], .bmd-form-group [class^=bmd-label] {
    position: relative !important;
}

.form-group.has-danger .invalid-feedback {
    display: block;
}

/* BMD form fixes end */


/* Breadcrumb fixes */
.breadcrumb {
    margin-bottom: 0 !important;
}

/* Breadcrumb fixes end */


/* BMD Card fixes */
.card .card-actions {
    width: calc(100% - 35px) !important;
    z-index: 10;
}

/*.card .card-header,*/
/*.card .card-title {*/
/*    display: inline-block;*/
/*}*/

/* BMD Card fixes end */

/* GridView fixes */
.items-per-page-container .control-label {
    margin-right: 15px;
}

.items-per-page-container .form-control {
    text-align: right;
    display: inline-flex;
    width: auto;
    padding-left: 5px;
    padding-right: 5px;
}

.table-responsive > .table-bordered {
    border: 1px solid rgba(0, 0, 0, .06);
}

.table-bordered thead td {
    border-bottom: 2px solid rgba(0, 0, 0, .2) !important;
}


.grid-view .table > tbody > tr > td,
.grid-view .table > tbody > tr > th,
.grid-view .table > tfoot > tr > td,
.grid-view .table > tfoot > tr > th,
.grid-view .table > thead > tr > td,
.grid-view .table > thead > tr > th {
    padding: 1px 3px;
}

.grid-view .table thead tr th {
    padding: 12px 12px;
}

.grid-view .table thead a.asc,
.grid-view .table thead a.desc {
    text-decoration: underline;
    position: relative;
}

.grid-view .table thead a.asc:after,
.grid-view .table thead a.desc:after {
    position: absolute;
    display: block;
    top: -5px;
    right: -10px;
}

.grid-view .table thead a.asc:after {
    content: "\2191";
}

.grid-view .table thead a.desc:after {
    content: "\2193";
}

/* GridView fixes end */


/* Bootstrap Spinner */

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: 0.75s linear infinite spinner-border;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-grow {
    0% {
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: none;
    }
}

.spinner-grow {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: 0.75s linear infinite spinner-grow;
}

.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}

/* Bootstrap Spinner - end */

.kv-grid-container {
    overflow: initial;
}

.cursor-pointer {
    cursor: pointer;
}

@media (min-width: 992px) {
    .modal-lg {
        width: 900px;
    }
}

@media (min-width: 768px) {
    .modal-xl {
        width: 98%;
        max-width: 98%;
    }
}


.modal-full .modal-dialog {
    margin-top: 20px;
    width: 95% !important;
    height: 95% !important;
    min-width: 95% !important;
    min-height: 95% !important;
    max-width: 95% !important;
    max-height: 95% !important;
}

.modal-full .modal-content {
    height: auto !important;
    min-height: 95% !important;
}

div.required label:after {
    content: " *";
    color: red;
}

.navbar.bg-custom {
    color: #fff;
    background-color: #999898 !important;
}

.sidebar[data-color=green] li.active > a {
    background-color: #999898;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .14), 0 7px 10px -5px rgb(106 106 106 / 40%);
}

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

.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu a:active,
.dropdown-menu a:focus,
.dropdown-menu a:hover {
    background-color: #999898;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .14), 0 7px 10px -5px rgb(106 106 106 / 40%);
}

.kv-grid-table.table > tbody > tr > td,
.kv-grid-table.table > tbody > tr > th,
.kv-grid-table.table > tfoot > tr > td,
.kv-grid-table.table > tfoot > tr > th,
.kv-grid-table.table > thead > tr > td,
.kv-grid-table.table > thead > tr > th {
    padding: 2px 8px;
    vertical-align: middle;
    border-color: #ddd !important;
}

.main-panel > .content {
    margin-top: 0;
}

/* Invoice viewer */
.invoice-viewer-wrapper {
    width: 100%;
    background: #f3f4f6;
}

.invoice-viewer {
    width: 100%;
}

.invoice-viewer__slide {
    width: 100%;
}

.invoice-viewer__header {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 6px 18px;
    background: #f3f4f6;
}

.invoice-viewer__title {
    margin: 0;
    color: #475569;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
}

.invoice-viewer__document-area {
    position: relative;
    min-height: 600px;
    margin: 0 18px;
    overflow: hidden;
    background: #252525;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
}

.invoice-viewer__document {
    width: 100%;
}

/*
 * InvoiceDocument::preview() által generált tipikus tartalmak.
 */
.invoice-viewer__document iframe,
.invoice-viewer__document embed,
.invoice-viewer__document object {
    display: block;
    width: 100%;
    height: calc(100vh - 175px);
    min-height: 600px;
    border: 0;
}

.invoice-viewer__document img {
    display: block;
    width: auto;
    max-width: calc(100% - 80px);
    max-height: calc(100vh - 200px);
    margin: 30px auto;
    box-shadow: 0 3px 14px rgb(0 0 0 / 25%);
}

.invoice-viewer__message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px;
    color: #fff;
    font-size: 20px;
    text-align: center;
}

/* Navigation */

.invoice-viewer__navigation {
    width: 48px;
    height: 48px;
    margin-top: 0;
    color: #fff;
    background: rgb(0 0 0 / 35%);
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 50%;
    transform: translateY(-50%);
    transition:
            background-color 150ms ease,
            opacity 150ms ease;
}

.invoice-viewer__navigation:hover {
    background: rgb(0 0 0 / 65%);
}

.invoice-viewer__navigation::after {
    font-size: 20px;
    font-weight: 700;
}

.invoice-viewer__navigation--prev {
    left: 32px;
}

.invoice-viewer__navigation--next {
    right: 32px;
}

/* Pagination */

.invoice-viewer__pagination {
    position: relative;
    bottom: auto !important;
    padding: 12px 0 8px;
}

.invoice-viewer__pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 5px !important;
    opacity: 0.35;
}

.invoice-viewer__pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive */

@media (max-width: 767px) {
    .invoice-viewer__header {
        padding: 6px 10px;
    }

    .invoice-viewer__title {
        font-size: 18px;
    }

    .invoice-viewer__document-area {
        margin: 0;
        border-radius: 0;
    }

    .invoice-viewer__document iframe,
    .invoice-viewer__document embed,
    .invoice-viewer__document object {
        height: calc(100vh - 140px);
        min-height: 500px;
    }

    .invoice-viewer__navigation {
        width: 40px;
        height: 40px;
    }

    .invoice-viewer__navigation--prev {
        left: 12px;
    }

    .invoice-viewer__navigation--next {
        right: 12px;
    }
}
/* Invoice viewer end */