body {
    background-color: rgba(0, 0, 0, 0.03);
    padding-bottom: 0;
}
.nowrap { white-space: nowrap !important }
.w100p { width: 100% !important }
.f1 { flex: 1 !important }
.fs0 { flex-shrink: 0 !important }
.dflex { display: flex !important }
.fwwrap { flex-wrap: wrap !important }
.fdcolumn { flex-direction: column !important }
.jcspacebetween { justify-content: space-between !important}
.aicenter { align-items: center !important }
.aifstart { align-items: flex-start !important }
.aifend { align-items: flex-end !important }
.text-end { text-align: right !important }
.pt0 { padding-top: 0 !important }
.pt5 { padding-top: 5px !important }
.pt10 { padding-top: 10px !important }
.pb0 { padding-bottom: 0 !important }
.pb10 { padding-bottom: 10px !important }
.pb5 { padding-bottom: 5px !important }
.mt10 { margin-top: 10px }
.mr10 { margin-right: 10px }
.mr15 { margin-right: 15px }
.mb0 { margin-bottom: 0 !important }
.mb5 { margin-bottom: 5px !important }
.mb10 { margin-bottom: 10px !important }
.ml10 { margin-left: 10px }
.cdefault { cursor: default }
.cpointer { cursor: pointer }

body, .dropdown-item, .btn, .input-group-text, td, th {
    font-size: 12px;
    line-height: 12px;
}
body h5 {
    color: #2c2c67;
}
legend {
    font-size: 12px;
    line-height: 12px;
    font-weight: bold;
    padding-left: .5rem;
    padding-right: .5rem;
}

.form-group {
    margin-bottom: 10px;
}

.control-label {
    padding-top: 6px;
}

.form-control-plaintext,
.form-control {
    line-height: 1;
    font-size: 12px;
}

.form-check-input {
    margin-top: 0;
}

.dropdown-item {
    padding: .25rem 1rem;
}

.datepicker {
    cursor: pointer;
}

.btn-label-spaced i {
    margin-right: 0.35em;
}

.filter .btn {
    margin-bottom: .35em;
}

.padding-top {
    padding-top: calc(.375rem + 1px);
}

.form-check {
    padding-bottom: .4rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

.table-striped tbody tr.selected td,
.table-striped tbody tr.selected:hover td {
    background-color: #dfffea;
}

.table-striped tbody tr.disabled td,
.table-striped tbody tr.disabled:hover td {
    background-color: #bdbdbd;
}

/*
** select2 customize
 */
.select2-container--default {
    /*width: 100% !important;*/
    width: inherit !important;
}
.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    height: 32px;
    border-color: #ced4da;
    border-radius: .25rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}
.select2-search--dropdown .select2-search__field {
    outline: none;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #7871b2;
}
.select2-container--default .select2-results__option--selected {
    background-color: #F7F7F7;
}
.select2-container--default .select2-selection--multiple {
    display: flex;
    align-items: center;
    padding: 0;
    border-color: #ced4da;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    margin-bottom: 0;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 0;
    padding-top: 3px;
    padding-bottom: 3px;
}
.select2-container .select2-selection--multiple .select2-search--inline {
    display: flex;
    align-items: center;
}
.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    height: 18px;
    padding: 3px 0;
    margin-top: 0;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    bottom: 0;
}

/*
** form
 */
label {
    cursor: pointer;
}
.form-control {
    padding: .375rem 8px;
}
textarea.autoResize {
    width: 100%;
    min-height: 32px;
}
fieldset {
    padding: 0 10px;
}
fieldset .row {
    margin: 0 0 10px 0;
}
.form-group.row {
    align-items: flex-start;
}
.row fieldset.col1 {
    width: 65%;
}
.row fieldset.col2 {
    width: 35%;
}
.row [class^='col-'],
.row [class*=' col-'] {
    -ms-flex: 1;
    flex: 1;
    max-width: 100%;
}
.row label[class^='col-'],
.row label[class*=' col-'] {
    flex: unset !important;
    width: 150px;
    padding-right: 0;
}
.col-form-label {
    line-height: 14px;
    color: #000;
}
.pictures_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    padding: 0 0 0 10px;
    background-color: #7871b2;
    border-radius: 5px;
}
.pictures_header strong {
    color: #fff;
}
.pictures_header.form-group.row div {
    flex: 0;
    white-space: nowrap;
}
.pictures_header .btn-outline-primary:hover {
    color: #fff;
    background-color: #2c2c67;
}
.form_header {
    color: #2c2c67;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.form_header small {
    font-size: 12px;
}
.files {
    padding: 0;
}
.files .file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 3px 5px;
}
.files .file:nth-child(2) {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.files .file:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.files.files_single .file {
    border-radius: 5px;
}
.files .file:nth-child(odd) {
    background-color: #fff;
}
.files .file:nth-child(even) {
   background-color: rgba(0, 0, 0, .04);
}
.files .file .btn {
    margin-left: 5px;
    padding: 4px 6px !important;
    font-size: 11px;
}
.files .file_name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.label2 {
    width: 100%;
}
.label2 label {
    width: auto !important;
    text-align: left !important;
}

/*
** navbar
 */
.navbar {
    padding: 10px;
    background-color: #2c2c67;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
}
.navbar a,
.navbar a:hover {
    margin-right: 2px;
    color: #F7F7F7;
    font-weight: bold;
    border-radius: .25rem;
}
.navbar a:hover,
.navbar .active a,
.navbar .active a:hover {
    color: #2c2c67;
    background-color: #F7F7F7;
}
.navbar .active a,
.navbar .active a:hover {
    font-weight: bold;
}
.navbar .box_info {
    padding: 0 10px;
    color: #2c2c67;
    border-radius: .25rem;
    background-color: #7871b2;
    /*transition: background-color 0.1s ease-in;*/
}
.navbar .box_info:hover {
    background-color: #fff;
}
.navbar .box_info .navbar-text {
    display: flex;
    align-items: center;
}
.navbar .box_info a,
.navbar .box_info a:hover {
    background-color: transparent;
    margin-right: 0;
    color: #2c2c67;
}
.navbar .box_info a.btn_logout,
.navbar .box_info a.btn_logout:hover {
    display: block;
    margin-left: 10px;
    vertical-align: middle;
    text-decoration: none;
}
.navbar .box_info a.btn_logout:before {
    color: #2c2c67;
    font-size: 18px;
}
.navbar .box_info:hover a.btn_logout:before {
    color: #ef434f;
}
.navbar .box_info a.btn_logout:hover:before {
    color: #000;
}
.navbar .box_info_user {
    position: relative;
}
.navbar .box_info_user .roles {
    display: none;
    line-height: 16px;
    margin-top: 5px;
    padding: 3px 5px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 11px;
    font-weight: normal;
    font-style: italic;
    text-decoration: none;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 0 20px -1px rgba(0, 0, 0, 0.3);
    cursor: default;
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
}
.navbar .box_info_user:hover .roles {
    display: block;
}
.dropdown-toggle::after {
    margin-left: 6px;
}
.dropdown-menu {
    color: #7871b2;
    background-color: #F7F7F7;
    border: none;
    box-shadow: 0 0 20px -1px rgba(0, 0, 0, 0.3);
}
.navbar .dropdown-item {
    color: #2c2c67 !important;
    font-size: 13px;
    font-weight: normal !important;
    padding: 5px 10px;
}
.navbar .dropdown-item:hover {
    color: #000 !important;
}

/*
** btn
 */
.btn {
    padding: .4rem .5rem !important;
}
.btn-primary {
    color: #fff;
    background-color: #7871b2;
    border-color: #7871b2;
}
.btn-primary:hover {
    background-color: #2c2c67;
    border-color: #2c2c67;
}
.btn-outline-primary:hover {
    background-color: #7871b2;
    border-color: #7871b2;
}
.btn-outline-primary {
    color: #7871b2;
    border-color: #7871b2;
    background-color: #fff;
}
.btn-group-sm>.btn, .btn-sm {
    padding: .4rem .5rem;
}
.btn-outline-secondary {
    background-color: #fff;
}
.btn-outline-danger {
    background-color: #fff;
}

/*
** table
 */
.datatable-scroll {
    margin: 0;
    padding: 0;
    overflow: auto;
}
table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-spacing: 0 !important;
}
table.table {
    background-color: transparent;
    border: none;
}
table.table .btn {
    margin: 2px 0;
}
.table th,
.table td {
    vertical-align: middle;
}
table.table th {
    padding: 0.7rem 0.5rem;
    color: #fff;
    border: 1px solid #7871b2;
    border-top: none;
    background-color: #7871b2;
    vertical-align: middle;
}
table.table td {
    padding: 0.3rem 0.5rem;
    border: 1px solid #F7EAFB;
    background-color: #fff;
}
table.table th:first-child {
    border-top-left-radius: 5px;
}
table.table th:last-child {
    border-top-right-radius: 5px;
}
/*
table.table tr:last-child td:first-child {
    border-bottom-left-radius: 5px;
}
table.table tr:last-child td:last-child {
    border-bottom-right-radius: 5px;
}
*/
.table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}
.table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(255, 255, 255, .6);
}
.table-striped tbody tr:hover td {
    background: #ffffd7;
}
table.dataTable>thead .sorting:before,
table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_asc:after,
table.dataTable>thead .sorting_desc:before,
table.dataTable>thead .sorting_desc:after,
table.dataTable>thead .sorting_asc_disabled:before,
table.dataTable>thead .sorting_asc_disabled:after,
table.dataTable>thead .sorting_desc_disabled:before,
table.dataTable>thead .sorting_desc_disabled:after {
    bottom: 50%;
    transform: translateY(50%);
}
table.dataTable>thead .sorting:before,
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_desc:before,
table.dataTable>thead .sorting_asc_disabled:before,
table.dataTable>thead .sorting_desc_disabled:before {
    right: 0.7em;
}
table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting_asc:after,
table.dataTable>thead .sorting_desc:after,
table.dataTable>thead .sorting_asc_disabled:after,
table.dataTable>thead .sorting_desc_disabled:after {
    right: 0;
}
table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting:before {
    font-size: 16px;
    opacity: 0.5;
}
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_desc:after {
    opacity: 1;
}

/*
** pagination
 */
div.dataTables_wrapper div.dataTables_info {
    padding: 10px;
    font-weight: bold;
    background-color: #fff;
    border: 1px solid #F7EAFB;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    border-top-left-radius: unset;
    border-top-right-radius: unset;
}
.page-link {
    color: #2c2c67;
    border: 1px solid #F7F7F7 !important;
}
.page-item.active .page-link {
    background-color: #7871b2;
    border-color: #7871b2;
}

/*
** filter
 */
.filter {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 10px 10px 0 10px;
    border-radius: 5px;
}
.filter input,
.filter select,
.filter .select2-container--default .select2-selection--single {
     background-color: rgba(0, 0, 0, 0.05);
}
.filter .form-group {
    flex-shrink: 0;
    flex-basis: unset;
    flex-grow: unset;
    max-width: 265px;
}
.filter .btn {
    margin: 0 0 10px 5px;
    padding: .4rem 10px !important;
    height: 32px;
}
.filter .btn-primary {
    background-color: #F4A460;
    border-color: #F4A460;
}
.filter .btn-primary:hover {
    background-color: #D79257;
    border-color: #D79257;
}
.filter .btn-outline-primary {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}
.filter .btn-outline-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/*
** save
 */
.buttons.row {
    margin: 20px -15px 0 -15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 5px -1px rgba(0, 0, 0, 0.1);
}
.fixed_buttons_row {
    padding-bottom: 52px;
}
.fixed_buttons_row .buttons.row {
    margin: 0;
    background-color: #2c2c67;
    box-shadow: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
}
.buttons.row div {
    display: flex;
    justify-content: space-between;
    -ms-flex: 1;
    flex: 1;
    margin: 0 auto !important;
    padding: 0 !important;
}
.buttons.row div .btn {
    display: flex;
    align-items: center;
    height: 32px;
    padding: .4rem 10px !important;
}
.buttons.row div .btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}
.buttons.row div .btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

/*
** btn color
 */
.btn.color_red {
    background-color: #dc3545;
}
.btn.color_orange {
    background-color: #F4A460;
    border-color: #F4A460;
}
.btn.color_orange:hover {
    background-color: #D79257;
    border-color: #D79257;
}

/*
** media
 */
.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: .5rem;
    padding-left: .5rem;
}
.navbar-expand-lg .navbar-nav {
    -ms-flex-direction: row;
    flex-direction: row;
    flex-wrap: wrap;
}
.mobile_menu {
    display: none;
}
@media only screen and (max-width: 1023px) {
    .form_registration_books .mobile_hide {
        display: none !important;
    }
    .form_registration_books .row {
        flex-direction: column;
    }
    .form_registration_books .row label {
        padding-top: 0 !important;
        padding-bottom: 2px !important;
        text-align: left !important;
    }
    .form_registration_books fieldset.col1 {
        padding: 0 0 15px 0 !important;
    }
    .form_registration_books fieldset.col1,
    .form_registration_books fieldset.col2 {
        width: 100%;
    }
}
@media only screen and (max-width: 767px) {
    .mobile_hide {
        display: none !important;
    }
    .row {
        display: block !important;
        box-sizing: border-box;
    }
    .row label {
        padding-top: 0 !important;
        padding-bottom: 2px !important;
        text-align: left !important;
    }
    .files_single .file {
        display: block !important;
        box-sizing: border-box;
    }
    .files_single .file_name {
        margin: 0 0 5px 0 !important;
    }
    .files_single .file .btn {
        margin: 0 5px 0 0;
    }
    .row [class^='col-'],
    .row [class*=' col-'] {
        -ms-flex: unset;
        flex: unset;
        max-width: unset;
    }
    .row label[class^='col-'],
    .row label[class*=' col-'] {
        width: auto;
    }
    .files_single {
        margin: 0;
        padding: 0 15px !important;
    }
    .form-group.dflex {
        display: block !important;
    }

    /*
    ** navbar
     */
    .mobile_menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 25px;
        height: 25px;
        cursor: pointer;
    }
    .mobile_menu:before {
        color: #fff;
        font-size: 26px;
    }
    .navbar .navbar_menu_container {
        max-width: 240px;
        width: 100%;
        height: 100vh;
        overflow: auto;
        overflow-scrolling: touch;
        padding: 10px;
        box-sizing: border-box;
        background-color: #2c2c67;
        box-shadow: 0 0 20px -1px rgba(0, 0, 0, 1);
        position: absolute;
        top: 0;
        left: -240px;
        z-index: 100;
        transition: left 0.3s ease-in;
    }
    .navbar_menu_container.show {
        left: 0;
    }
    .navbar .navbar_menu_container .navbar_menu {
        display: flex;
        flex-direction: column;
    }
    .navbar .navbar_menu li {
        margin: 5px 0;
    }
    .navbar .dropdown-menu {
        padding: 5px !important;
    }
    .navbar .dropdown-item {
        margin: 5px 0;
        font-size: 14px !important;
    }
    .navbar .navbar_menu li a,
    .navbar .navbar_menu li a:hover {
        margin: 0 !important;
        font-size: 18px;
        font-weight: normal;
    }
    .navbar .nav-link.dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    div.dataTables_wrapper div.dataTables_paginate ul.pagination .paginate_button:not(.previous, .active, .next) {
        display: none;
    }
    .box_info {
        background-color: #fff !important;
    }
}

@media only screen and (max-width: 600px) {
    form.filter .dflex.aifend {
        flex-direction: column;
    }
}
