/*
customize react-datetime
*/

.rdtDay, .rdtMonth, .rdtYear, .rdtTimeToggle {
    border-radius: 2px;
}

.rdtSwitch, .rdtPrev, .rdtNext, .rdtBtn {
    border-radius: 2px;
}

td.rdtActive {
    background-color: #096DD9 !important;
}

.rdtPicker {
    border: solid 1px #dddddd;
    border-radius: 3px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.rdtPicker td.rdtToday:before {
    border-bottom: 7px solid #096DD9 !important;
}

/*
customize constructor
@brand-primary = #096DD9
*/

.bootstrap-iso {
    font-family: Roboto, sans-serif;
}

.bootstrap-iso a,
.btn-link {
    color: #096DD9;
}
.bootstrap-iso a:hover,
.bootstrap-iso a:focus,
.btn-link:hover,
.btn-link:focus {
    color: #1890FF;
}
/*********************************************************************/
.bootstrap-iso .btn-primary {
    color: #ffffff;
    background-color: #096DD9;
    border-color: #1890FF;
}
.bootstrap-iso .btn-primary:focus,
.bootstrap-iso .btn-primary.focus {
    color: #ffffff;
    background-color: #1890FF;
    border-color: #1890FF;
}
.bootstrap-iso .btn-primary:hover {
    color: #ffffff;
    background-color: #1890FF;
    border-color: #1890FF;
}
.bootstrap-iso .btn-primary:active,
.bootstrap-iso .btn-primary.active,
.bootstrap-iso .open > .dropdown-toggle.btn-primary {
    color: #ffffff;
    background-color: #1890FF;
    border-color: #1890FF;
}
.bootstrap-iso .btn-primary:active:hover,
.bootstrap-iso .btn-primary.active:hover,
.bootstrap-iso .open > .dropdown-toggle.btn-primary:hover,
.bootstrap-iso .btn-primary:active:focus,
.bootstrap-iso .btn-primary.active:focus,
.bootstrap-iso .open > .dropdown-toggle.btn-primary:focus,
.bootstrap-iso .btn-primary:active.focus,
.bootstrap-iso .btn-primary.active.focus,
.bootstrap-iso .open > .dropdown-toggle.btn-primary.focus {
    color: #ffffff;
    background-color: #1890FF;
    border-color: #1890FF;
}
.bootstrap-iso .btn-primary.disabled:hover,
.bootstrap-iso .btn-primary[disabled]:hover,
.bootstrap-iso fieldset[disabled] .btn-primary:hover,
.bootstrap-iso .btn-primary.disabled:focus,
.bootstrap-iso .btn-primary[disabled]:focus,
.bootstrap-iso fieldset[disabled] .btn-primary:focus,
.bootstrap-iso .btn-primary.disabled.focus,
.bootstrap-iso .btn-primary[disabled].focus,
.bootstrap-iso fieldset[disabled] .btn-primary.focus {
    background-color: #096DD9;
    border-color: #1890FF;
}
.bootstrap-iso .btn-primary .badge {
    color: #096DD9;
    background-color: #ffffff;
}

.bootstrap-iso .list-group-item.active,
.bootstrap-iso .list-group-item.active:hover,
.bootstrap-iso .list-group-item.active:focus {
    background-color: #096DD9;
    border-color: #1890FF;
}
/*********************************************************************/

.bootstrap-iso .panel-primary {
    border-color: #096DD9;
}
.bootstrap-iso .panel-primary > .panel-heading {
    color: #ffffff;
    background-color: #096DD9;
    border-color: #096DD9;
}
.bootstrap-iso .panel-primary > .panel-heading + .panel-collapse > .panel-body {
    border-top-color: #096DD9;
}
.bootstrap-iso .panel-primary > .panel-heading .badge {
    color: #096DD9;
    background-color: #ffffff;
}
.bootstrap-iso .panel-primary > .panel-footer + .panel-collapse > .panel-body {
    border-bottom-color: #096DD9;
}

/*********************************************************************/

.bootstrap-iso .bg-primary {
    color: #fff;
    background-color: #096DD9;
}
.bootstrap-iso a.bg-primary:hover,
.bootstrap-iso a.bg-primary:focus {
    background-color: #1890FF;
}

.bootstrap-iso .form-group {
    margin-bottom: 0;
}

.bootstrap-iso a:focus {
    outline: 5px auto #096DD9;
    outline-offset: -2px;
}

.bootstrap-iso .btn-success {
    background-color: #096DD9;
}

/*
customize bootstrap
*/

.form-control {
    border: solid 1px #767676;
    border-radius: 2px;
    box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 0.08);
}

input.form-control {
    border: solid 1px #D9DDEE;
    border-radius: 4px;
    box-shadow: none;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    padding: 8px 12px 8px 12px;
}

.form-control[disabled] {
    border: solid 1px #D3DAE6;
    color: #69707D;
}

/*dynamika-react.css overwrites and lose text-decoration*/
.pagination > li > a:hover,
.pagination > li > a:focus {
    text-decoration: none;
}
/*customize shadows*/

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select.form-control:focus, .form-control:focus {
    border-color: #096DD9;
    outline: 0;
    box-shadow: none;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background-color: #096DD9;
}

/*
customize react-bootstrap-table
*/

.react-bs-table td:focus {
    outline: 0
}

.react-bs-table th {
    font-weight: bold;
    border: 1px solid #BEBFB0 !important;
}

.react-bs-table thead tr {
    background-color: #FDFEE5;
}

.react-bs-table td {
    border-top-width: 0 !important;
}

.table-striped > tbody > tr:nth-of-type(odd),
.table-striped > tbody > tr:nth-of-type(odd) .operation-links-column {
}
.table-striped > tbody > tr:nth-of-type(even),
.table-striped > tbody > tr:nth-of-type(even) .operation-links-column {
}
.table-hover > tbody > tr:hover,
.table-hover > tbody > tr:hover .operation-links-column {
    background-color: #dfeeff;
}

.document-preview-pdf-pagination .pagination > li > a,
.react-bs-table-pagination .pagination > li > a {
    color: #096DD9;
}

.document-preview-pdf-pagination .pagination > li > a:hover,
.react-bs-table-pagination .pagination > li > a:hover {
    color: #096DD9;
}

.view-table-setting .pagination > .active > a,
.view-table-setting .pagination > .active > a:hover,
.document-preview-pdf-pagination .pagination > .active > a,
.document-preview-pdf-pagination .pagination > .active > a:hover,
.react-bs-table-pagination .pagination > .active > a,
.react-bs-table-pagination .pagination > .active > a:hover {
    background-color: #F5F5F6;
    border-color: #F5F5F6;
    color: #096DD9;
;
}

.view-table-setting .pagination li:nth-child(-n + 2),
.view-table-setting .pagination li:nth-last-child(-n + 2),
.document-preview-pdf-pagination .pagination li:nth-child(-n + 2),
.document-preview-pdf-pagination .pagination li:nth-last-child(-n + 2),
.react-bs-table-pagination .pagination li[title="first page"],
.react-bs-table-pagination .pagination li[title="previous page"],
.react-bs-table-pagination .pagination li[title="next page"],
.react-bs-table-pagination .pagination li[title="last page"] {
    font-family: monospace;
}

.react-bs-table-pagination .pagination {
    margin-right: 4px;
}

.react-bs-table .react-bs-container-header > table > thead > tr > th .text-filter,
.react-bs-table .react-bs-container-header > table > thead > tr > th .number-filter-comparator,
.react-bs-table .react-bs-container-header > table > thead > tr > th .number-filter-input,
.react-bs-table .react-bs-container-header > table > thead > tr > th .date-filter-comparator,
.react-bs-table .react-bs-container-header > table > thead > tr > th .date-filter-input,
.react-bs-table .react-bs-container-header > table > thead > tr > th .select-filter {
    padding: 3px;
    font-size: 12px;
    line-height: 17px;
    height: 26px;
}

.react-bs-table .react-bs-container-header > table > thead > tr > th .number-filter-comparator,
.react-bs-table .react-bs-container-header > table > thead > tr > th .date-filter-comparator {
    width: 36px;
}

.react-bs-table .react-bs-container-header > table > thead > tr > th .number-filter-input,
.react-bs-table .react-bs-container-header > table > thead > tr > th .date-filter > .rdt {
    width: calc(100% - 36px - 5px);
}

.react-bs-table .react-bs-container-header > table > thead > tr > th .rdt .date-filter-input {
    width: 100%;
}

.selected-table-row {
    background-color: #FCFDCE !important;
}

.react-bs-table .react-bs-container-header > table.with-filters > thead > tr > th {
    vertical-align: top;
}

.react-bs-table .react-bs-container-header > table > thead > tr > th.resizable > div.resize-handler:hover {
    border-right: 2px solid #FDFEE5;
}

/*
customize and fix conflict react-selectize
*/
.react-selectize.default.root-node .react-selectize-control {
    border-radius: 2px;
}

.react-selectize.dropdown-menu {
    box-shadow: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.react-selectize.default.root-node.open:not(.flipped) .react-selectize-control {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.react-selectize.dropdown-menu.default:not(.flipped) {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.react-selectize.dropdown-menu.default .option-wrapper.highlight {
    background: #FDFEE5;
}

.selectize-loading .react-selectize-control {
    background-color: #ffffdd !important;
}

/*
misc
*/

.no-padding {
    padding: 0;
}

.bootstrap-iso .table > tbody > tr.warning > td {
    background-color: #e5e2ce;
}

.bootstrap-iso .table > tbody > tr:nth-of-type(even).warning > td {
    background-color: #dad7c3;
}

.bootstrap-iso .table > tbody > tr:nth-of-type(even).info > td {
    background-color: #d0e4ee;
}

.bootstrap-iso .table > tbody > tr:nth-of-type(even).success > td {
    background-color: #d5e6ce;;
}

.bootstrap-iso .table > thead > tr > td.light-danger,
.bootstrap-iso .table > tbody > tr > td.light-danger,
.bootstrap-iso .table > tfoot > tr > td.light-danger,
.bootstrap-iso .table > thead > tr > th.light-danger,
.bootstrap-iso .table > tbody > tr > th.light-danger,
.bootstrap-iso .table > tfoot > tr > th.danger,
.bootstrap-iso .table > thead > tr.light-danger > td,
.bootstrap-iso .table > tbody > tr.light-danger > td,
.bootstrap-iso .table > tfoot > tr.light-danger > td,
.bootstrap-iso .table > thead > tr.light-danger > th,
.bootstrap-iso .table > tbody > tr.light-danger > th,
.bootstrap-iso .table > tfoot > tr.light-danger > th {
    background-color: #f2dede;
}

.bootstrap-iso .table > thead > tr > td.danger,
.bootstrap-iso .table > tbody > tr > td.danger,
.bootstrap-iso .table > tfoot > tr > td.danger,
.bootstrap-iso .table > thead > tr > th.danger,
.bootstrap-iso .table > tbody > tr > th.danger,
.bootstrap-iso .table > tfoot > tr > th.danger,
.bootstrap-iso .table > thead > tr.danger > td,
.bootstrap-iso .table > tbody > tr.danger > td,
.bootstrap-iso .table > tfoot > tr.danger > td,
.bootstrap-iso .table > thead > tr.danger > th,
.bootstrap-iso .table > tbody > tr.danger > th,
.bootstrap-iso .table > tfoot > tr.danger > th {
    background-color: #d9534f;
    color: #ffffff;
}

/*
Draggable modals
*/

.draggable-modal .modal-title {
    cursor: move;
}

div[data-reactroot][role="dialog"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1050;
}

/*
react-beautiful-dnd
*/

[data-react-beautiful-dnd-drag-handle] {
    cursor: -webkit-grab;
    cursor: move;
    cursor: grab;
}

/**
 min height for InlineSpinner
 */
.dropdown-menu_loading {
    min-height: 80px;
}

/**
react-toggle
*/

.react-toggle-track {
    height: 17px;
    width: 43px;
    padding: 0;
    border-radius: 8px;
    background-color: #d9534f;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    transition: none;
    -webkit-transition: none;
}

.react-toggle-thumb {
    width: 15px;
    height: 15px;
    border-color: #384654;
}

.react-toggle--checked .react-toggle-thumb {
    border-color: #384654;
}

.react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
    background-color: #c9302c;
}

.react-toggle--checked .react-toggle-track {
    background-color: #096DD9;
}

.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
    background-color: #1890FF;
}

.react-toggle--focus .react-toggle-thumb {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.react-toggle:active:not(.react-toggle--disabled) .react-toggle-thumb {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

/*multiselect object grid */
.dr-multiselect-item {
    background-color: #096DD9;
    border-color: #1890FF;
}

.dr-multiselect-item.disabled {
    background-color: #096DD9;
    border: 1px solid #096DD9;
}
