/* global.css */

#loading-container {
    display: none;
}

#loading-container.is-loading {
    display: flex;
    min-width: 100px;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-dialog {
    max-height: calc(100% - 3.5rem);
    min-height: calc(100% - 25rem);
    height: auto;
}

.modal-dialog[data-ago-modal-type="confirmation"] {
    min-height: calc(100% - 38rem);
}

.modal-dialog-scrollable {
    display: flex;
}

.modal-dialog-scrollable .modal-content > form, .modal-dialog-scrollable .tab-pane > form {
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
    -ms-flex-direction:column;
    flex-direction:column;
    height: 100%;
}

.modal-dialog-scrollable .tab-pane {
    height: 100%;
}

.modal-dialog-scrollable .tab-content {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.modal-dialog.modal-xxl {
    max-width: 98%;
    min-height: calc(100% - 8rem);
}

table.dataTable {
    width: 100% !important;
}

table.dataTable .action {
    text-align: center;
}
table.dataTable a[data-ago-dt-editable] {
    text-decoration: none;
    border-bottom: 1px dashed;
}

table th.price, table th.quantity {
    text-align: right;
}

table th.price {
    width: 160px;
}

table th.number {
    width: 40px;
}

table th.quantity {
    width: 100px;
}

table th.date {
    width: 170px;
}

table th.day {
    width: 40px;
}

table th.short {
    width: 300px;
}

table th.medium {
    width: 500px;
}

table th.action {
    width: 50px;
    text-align: right;
}

.min-width-200 {min-width: 200px;}

.section {
    border-top:1px solid #dee2e6;
    padding-top: 15px;
}
.section:first-child {
    border-top: none;
    padding-top: 0px;
}
.section-title {
    text-transform: uppercase;
    margin-bottom: 5px;
}

i {font-size:15px;}

.filterscope-container {
    display: flex;
    flex-direction: row;
}

.filterscope-form.display-horizontal {

}
.filterscope-form.display-vertical {
    width: 300px;
    padding-right: 1rem;
}

.filterscope-content {
    flex: auto;
}

input.price, input.quantity {
    text-align: right;
}

.selectize-control:not(.has-add-btn) {
    width:100%;
}
.has-add-btn {
    display: flex;
    flex: 1;
    padding-right: 0;
}

.add-btn {
    padding: 0 !important;
    height: 36px !important;
    margin: 1px 3px 0 10px !important;
    width: 35px !important;
}

.form-group label {
    width: 100%;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
}

.w-100 {width: 100px;}
.w-200 {width: 200px;}
.w-300 {width: 300px;}
