.b-db-table .e-table-grouped-row td:has(input.i-grouped-item) {
    text-align: center;
    vertical-align: middle;
}

.b-db-table .table-responsive {
    -webkit-overflow-scrolling: auto;
}

.b-db-table .e-table-head {
    vertical-align: middle;
    font-weight: bold;
}

.b-db-table .e-table-head img {
    vertical-align: baseline;
}

.b-db-table .f-filters {
    display: table-header-group;
}

.b-db-table .e-filter input[type="text"],
.b-db-table .e-filter input[type="date"],
.b-db-table .e-filter input[type="month"],
.b-db-table .e-filter select {
    min-width: 100%;
    width: 100%;
}

.b-db-table input::-webkit-date-and-time-value,
.f-db-form input::-webkit-date-and-time-value {
    text-align: left;
}

.b-db-table .e-filter {
    vertical-align: middle;
}

.b-db-table .e-filter .filters-btn-group {
    width: max-content;
}

.b-db-table .e-filter .e-dgs-field-filter-range:first-child {
    margin-bottom: 2px;
}

.b-db-filter-range input {
    width: 100%;
}

.db-submiter {
    display: none;
}

.required input {
    background-image: url('../images/required.gif');
    background-repeat: no-repeat;
    background-position: right center;
}

.label-required span {
    background-image: url('../images/required.gif');
    background-repeat: no-repeat;
    background-position: right top;
    padding-right: 17px;
}

.f-db-form {
    margin-top: 10px;
}

.m-loading {
    background-image: url('../images/loading-small.gif');
    background-repeat: no-repeat;
    background-position: right center;
}

.db-pager-loader {
    text-align: center;
}

input.e-dgs-field-filter,
select.e-dgs-field-filter {
    border: 1px solid #ccc;
}

.control-label img {
    vertical-align: top;
}

.input-group .input-group-btn .btn {
    width: 50px;
    height: 32px;
}

.input-group {
    width: 100%;
    min-width: 100%;
}

.input-group input {
    -webkit-appearance: none;
    -moz-appearance: none;
}

.popover-content .input-group {
    width: 130px;
}

.btn:active {
    left: 0;
    top: 0;
}

.f-db-form header {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .2);
    background: #fff;
    font-size: 16px;
    font-weight: 300;
    color: #232323;
    margin: 10px 14px 14px 0px;
}

/** DATETIME PICKER OVERLOAD STYLE **/
.bootstrap-datetimepicker-widget th {
    color: gray;
}

.bootstrap-datetimepicker-widget td.today:before {
    content: "";
    border: none !important;
}

.datepicker table tr td.active:hover,
.datepicker table tr td.active:hover:hover,
.datepicker table tr td.active.disabled:hover,
.datepicker table tr td.active.disabled:hover:hover,
.datepicker table tr td.active:active,
.datepicker table tr td.active:hover:active,
.datepicker table tr td.active.disabled:active,
.datepicker table tr td.active.disabled:hover:active,
.datepicker table tr td.active.active,
.datepicker table tr td.active.active:hover,
.datepicker table tr td.active.disabled.active,
.datepicker table tr td.active.disabled.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover,
.datepicker table tr td.active.disabled.disabled,
.datepicker table tr td.active.disabled.disabled:hover,
.datepicker table tr td.active[disabled],
.datepicker table tr td.active[disabled]:hover,
.datepicker table tr td.active.disabled[disabled],
.datepicker table tr td.active.disabled[disabled]:hover {
    background: #ebebeb;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    border-radius: 0;
    color: #333;
}

.datepicker table tr td.today,
.datepicker table tr td.today:hover,
.datepicker table tr td.today.disabled,
.datepicker table tr td.today.disabled:hover,
.datepicker table tr td.today:active,
.datepicker table tr td.today:hover:active,
.datepicker table tr td.today.disabled:active,
.datepicker table tr td.today.disabled:hover:active,
.datepicker table tr td.today.active,
.datepicker table tr td.today.active:hover,
.datepicker table tr td.today.disabled.active,
.datepicker table tr td.today.disabled.active:hover,
.datepicker table tr td.today.disabled,
.datepicker table tr td.today.disabled:hover,
.datepicker table tr td.today.disabled.disabled,
.datepicker table tr td.today.disabled.disabled:hover,
.datepicker table tr td.today[disabled],
.datepicker table tr td.today[disabled]:hover,
.datepicker table tr td.today.disabled[disabled],
.datepicker table tr td.today.disabled[disabled]:hover {
    background: #a90329;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    border-radius: 0;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.datepicker table tr td span.active:hover,
.datepicker table tr td span.active:hover:hover,
.datepicker table tr td span.active.disabled:hover,
.datepicker table tr td span.active.disabled:hover:hover,
.datepicker table tr td span.active:active,
.datepicker table tr td span.active:hover:active,
.datepicker table tr td span.active.disabled:active,
.datepicker table tr td span.active.disabled:hover:active,
.datepicker table tr td span.active.active,
.datepicker table tr td span.active.active:hover,
.datepicker table tr td span.active.disabled.active,
.datepicker table tr td span.active.disabled.active:hover,
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active.disabled:hover,
.datepicker table tr td span.active.disabled.disabled,
.datepicker table tr td span.active.disabled.disabled:hover,
.datepicker table tr td span.active[disabled],
.datepicker table tr td span.active[disabled]:hover,
.datepicker table tr td span.active.disabled[disabled],
.datepicker table tr td span.active.disabled[disabled]:hover {
    background: #a90329;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    border-radius: 0;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.datepicker table tr td span,
.bootstrap-datetimepicker-widget td,
.bootstrap-datetimepicker-widget th {
    border-radius: 0 !important;
}

.f-db-form .e-item .row.serialize-inputs {
    margin-top: 10px !important;
}

.f-db-form .e-item .row.serialize-inputs:first-child {
    margin-top: 0 !important;
}

.input-group.audio-input audio.form-control {
    margin: 0;
    padding: 0;
    height: 30px;
}

.input-group.audio-input .input-group-btn button.btn,
.input-group.file-input .input-group-btn button.btn {
    height: 30px;
    line-height: 17px;
    width: 1%;
}

.input-group.file-input {
    line-height: 30px;
}

.input-group.file-input > a {
    margin: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    width: fit-content;
    max-width: 250px;
}

@media (max-width: 478px) {
    .input-group.file-input > a {
        max-width: 150px;
    }
}

.audio-view-table {
    width: 100%;
}

.f-db-form .e-dgs-field-many2many .e-row-odd td {
    background-color: #ecf3f8;
}

.page-title, .page-title span {
    font-size: 14px;
}

.fa-percent:before {
    content: "%";
}

.b-db-table .m-row-green td {
    background-color: LightGreen !important;
}

.b-db-table .m-row-yellow td {
    background-color: LightGoldenRodYellow !important;
}

.b-db-table .m-row-red td {
    background-color: LightSalmon !important;
}

.b-db-table .m-row-beige td {
    background-color: Beige !important;
}


.b-db-table .m-row-gray td {
    background-color: #F5F5F5 !important;
}

form.f-db-form textarea.form-control {
    height: 100px;
}

.field-invalid-value-message {
    color: #FF0000;
    font-size: 10px;
}

.db-fast-form textarea.e-dgs-field-textarea {
    height: 100px;
}

.form-dgs-filters .e-dgs-filter-datetime-range-label {
    display: none;
}

.form-dgs-filters .e-dgs-filter-datetime-range-item {
    width: 100%;
}

.b-dgs-filter-datetime-range {
    width: 100%;
    border-spacing: 0px;
    border-collapse: collapse;
}

.b-dgs-filter-datetime-range td {
    padding: 0px;
    margin: 0px;
}

.e-db-table-totals td {
    font-weight: bold;
    background-color: #C5C5C5;
}

.e-db-table-row-actions .btn-group-vertical {
    width: 100%;
}

.b-db-fast-form {
    background: #fff;
}

.b-db-table .b-dgs-container-rows {
    padding: 0px;
}

.b-db-table .e-db-table-row.e-db-table-row-even td {
    background-color: rgba(0, 0, 0, 0)
}

.b-db-table .e-db-table-row.e-db-table-row-odd td {
    background-color: #f9f9f9;
}

.b-db-table .e-db-table-row:hover td {
    background-color: #ecf3f8;
}

/*Mobile DGS styles*/
.b-db-table[data-mobile] .b-db-actions:has(.e-db-action[style*="display: none"]) {
    display: none;
}

.b-db-table[data-mobile] .b-dgs-container-rows .widget-body {
    margin: 0;
}

.b-db-table[data-mobile] .e-db-table-row.e-db-table-row-odd:not(:hover) td {
    background-color: #f1f1f1;
}

.b-db-table[data-mobile] .btn-group-justified {
    table-layout: auto;
}

.b-db-table[data-mobile] .e-db-table-row-item {
    vertical-align: middle;
    word-break: break-all;
    max-width: 50%;
}

.b-db-table[data-mobile] .e-db-table-row-item.e-table-grouped,
.b-db-table[data-mobile] .e-db-table-row-item.e-db-table-row-actions {
    width: 1%;
}

.b-db-table[data-mobile] .form-dgs-filters {
    position: relative;
    padding: 10px 20px;
}

.b-db-table[data-mobile] .form-dgs-filters .form-row {
    position: relative;
    padding: 10px 20px 0;
}

.b-db-table[data-mobile] .form-dgs-filters .form-header {
    margin: 0 20px;
    font-size: 16px;
}

.b-db-table[data-mobile] .form-dgs-filters .form-header .e-label {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/*Desktop column alignment*/
.b-db-table:not([data-mobile]) .e-dgs-row-item-number,
.b-db-table:not([data-mobile]) .e-dgs-row-item-price,
.b-db-table:not([data-mobile]) .e-dgs-row-item-percent,
.b-db-table:not([data-mobile]) .e-db-table-totals .e-db-table-total-item-number,
.b-db-table:not([data-mobile]) .e-db-table-totals .e-db-table-total-item-price,
.b-db-table:not([data-mobile]) .e-db-table-totals .e-db-table-total-item-percent {
    text-align: right;
}

.b-db-table .b-dgs-container-rows .widget-body {
    margin: 0px;
}

.e-db-table-row-item .dl-horizontal dt {
    width: auto;
    padding-right: 5px;
}

.e-db-table-row-item .dl-horizontal dd {
    margin-left: 0px !important;
}

.b-dgs-table-container-fixed-header {
    overflow: scroll;
}

.b-dgs-table-container-fixed-header table {
    position: relative;
}

.b-dgs-table-container-fixed-header th {
    position: sticky;
    top: 0;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    z-index: 1000;
}

.b-dgs-table-container .e-fixed-column {
    position: sticky;
    left: 0;
    top: auto;
    border-top-width: 1px;
    /*only relevant for first row*/
    margin-top: -1px;
    /*compensate for top border*/
    z-index: 999;
    background-color: #f9f9f9;
}

body.modal-open {
    overflow: visible;
    position: absolute;
    width: 100%;
    height: 100%;
}

.open .dropdown-toggle .caret {
    content: "";
    border-top: 0;
    border-bottom: 4px dashed;
    border-bottom: 4px solid \9;
}

.ui-sortable .e-item:hover,
.ui-sortable .e-item *:hover {
    cursor: move;
}

.ui-sortable .e-item {
    padding: 5px 0;
    border: 1px solid #e5e5e5;
    margin-left: 0;
    margin-right: 0;
    background-color: #fafafa;
}

.ui-sortable .e-item label {
    padding-top: 0;
    padding-bottom: 0;
}

.ui-sortable .e-item input[type="checkbox"] {
    margin: 0 0 0 -20px;
}