/*============reboot============*/
:root {
    --shadow: 0 2px 6px rgba(0, 0, 0, .3);
    --background: #fafafa;
    --color1: #a51e25;
    --color2: #eea323;
    --blue: #3690ff;
    --red: #ec6148;
    --green: #93c96a;
    --black: #686f80;
    --black2: #839098;
    --gray1: #bfc7cd;
    --gray1-border: 1px solid #bfc7cd;
    --gray2: #edf2f3;
    --gray2-border: 1px solid #edf2f3;
}

*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('fonts/Roboto-400.woff2') format('woff2'),
    url('fonts/Roboto-400.woff') format('woff'),
    url('fonts/Roboto-400.ttf') format('truetype');
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    color: var(--black);
    text-align: left;
    background-color: var(--background);
}

.container {
    width: 100%;
    max-width: 1400px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.container-header {
    width: 100%;
    max-width: 1500px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.w-100 {
    width: 100% !important;
}

a {
    color: inherit;
    text-decoration: none;
    user-select: none;
    cursor: pointer;
}

a:hover {
    color: var(--color1);
}

button {
    color: inherit;
    text-decoration: none;
    user-select: none;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

[disabled] {
    pointer-events: none;
    cursor: context-menu;
}

[hidden] {
    display: none !important;
}


/*--------------------------------*/

article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
    display: block;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    margin: 14px 0;
    border: var(--gray2-border);
}

p {
    margin-top: 0;
    margin-bottom: 10px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 10px;
}

h1 {
    font-size: 180%;
}

h2 {
    font-size: 160%;
}

h3 {
    font-size: 140%;
}

h4 {
    font-size: 120%;
}

h5 {
    font-size: 100%;
}

h6 {
    font-size: 85%;
}


dl, ol, ul {
    margin-top: 0;
    margin-bottom: 10px;
    padding-left: 14px;
}

.unstyled {
    margin-bottom: 0;
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}


ol ol,
ul ul,
ol ul,
ul ol {
    margin-bottom: 0;
}

dt {
    font-weight: 700;
}

dd {
    margin-bottom: 8px;
    margin-left: 0;
}

b,
strong {
    font-weight: bolder;
}

small {
    font-size: 80%;
}

img {
    vertical-align: middle;
    border-style: none;
}

svg {
    overflow: hidden;
    vertical-align: middle;
}

table {
    border-collapse: collapse;
}

th {
    text-align: inherit;
}

caption {
    padding-top: 10px;
    padding-bottom: 10px;
    color: #6c757d;
    text-align: left;
    caption-side: bottom;
}


label {
    display: inline-block;
    margin-bottom: 8px;
}

label.required:after {
    content: '*';
}

button:focus,
input:focus,
select:focus {
    outline: none;
}


input,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

input {
    overflow: visible;
}


select {
    text-transform: none;
}


select {
    word-wrap: normal;
}


input[type="radio"],
input[type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
}

textarea {
    overflow: auto;
    resize: vertical;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 8px;
    font-size: 130%;
    line-height: inherit;
    color: inherit;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    outline-offset: 0;
    -webkit-appearance: none;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    font: inherit;
    -webkit-appearance: button;
}

/*===========================end reboot===============================*/

/*===================== Bootstrap form style =========================*/
.form-control,
.form-control-file {
    display: block;
    padding: 8px;
    font-size: 14px;
    font-weight: 400;
    width: 100%;
    line-height: 1.5;
    color: var(--black);
    background-color: #fff;
    background-clip: padding-box;
    border: var(--gray1-border);
    border-radius: 5px;
}

.form-control-file,
.form-control[type=file] {
    padding: 5px 8px;
}

.form-control:focus,
.form-control-file:focus {
    border-color: var(--color1);
    color: var(--black);
    background-color: #fff;
    outline: 0;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .1);;
}

.form-control::placeholder {
    color: var(--black2);
    opacity: 1;
}

.form-control:disabled, .form-control[readonly] {
    background-color: var(--gray2);
    opacity: 1;
}

input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-control:focus::-ms-value {
    color: #495057;
    background-color: #fff;
}

.form-control-range {
    display: block;
    width: 100%;
}

textarea.form-control {
    height: auto;
}

.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-text:empty {
    display: none;
}

.form-text {
    display: block;
    margin-top: 2px;
    color: var(--black2);
}
.form-text ul{
    list-style: none;
    padding-left: 0;
}

.form-check input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.form-check label:hover:before {
     background-color: var(--gray1);
}

.form-check label {
    padding-left: 38px;
    margin-bottom: 0;
    transition: .4s;
    cursor: pointer;
}

.form-check label:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 33px;
    height: 20px;
    background-color: var(--gray2);
    border-radius: 10px;
    cursor: pointer;
}

.form-check label:after {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 1px;
    top: 1px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

.form-check.checked label:after {
    transform: translateX(13px);
}

.form-check.checked label:before {
    background-color: var(--green);
}

.valid-feedback {
    display: none;
    font-size: 80%;
    color: var(--green);
    font-weight: bold;
}

.valid-tooltip,
.invalid-tooltip {
    position: absolute;
    top: 100%;
    z-index: 5;
    display: none;
    max-width: 100%;
    padding: 4px 8px;
    margin-top: 2px;
    font-size: 80%;
    line-height: 1.5;
    color: #fff;
    border-radius: 5px;
}

.valid-tooltip {
    background-color: rgba(40, 167, 69, 0.7);
}

.is-valid ~ .valid-feedback,
.is-valid ~ .valid-tooltip {
    display: block;
}

.form-control.is-valid {
    border-color: var(--green);
    padding-right: 25px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 18px 18px;
}

.form-control.is-valid:focus {
    border-color: #28a745;
}


.form-check-input.is-valid ~ label {
    color: #28a745;
}

.form-check-input.is-valid ~ .valid-feedback,
.form-check-input.is-valid ~ .valid-tooltip {
    display: block;
}

.non_field_errors {
    background-color: rgba(220, 53, 69, 0.7);
    border-radius: 5px;
    color: #fff;
    margin-bottom: 12px;
    padding: 5px 8px;
    text-align: justify;
}
.non_field_errors ul{
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.non_field_errors:empty {
    display: none;
}

.invalid-feedback {
    display: none;
    font-size: 80%;
    color: var(--red);
    font-weight: bold;
}

.invalid-feedback ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.invalid-tooltip {
    background-color: rgba(220, 53, 69, 0.7);
}

.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-tooltip {
    display: block;
}

.form-control.is-invalid {
    border-color: var(--red);
    padding-right: 25px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 18px 18px;
}

.form-control.is-invalid:focus {
    border-color: var(--red);
}

.form-check-input.is-invalid ~ label {
    color: var(--red);
}

.form-check-input.is-invalid ~ .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-tooltip {
    display: block;
}

/*================== input-group ========================*/
.input-group {
    display: flex;
    border: var(--gray2-border);
    border-radius: 5px;
    background-color: #fff;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--color2);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 8px;
    border: none;
}

.input-group button {
    border: none;
    min-width: 45px;
    font-size: 16px;
    color: var(--black);
    background-color: var(--background);
}

/*================== end input-group ========================*/
.form-row-2,
.form-row-3,
.form-col-2,
.form-col-3,
.form-col-25-75 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form-row-2 > div {
    width: calc(50% - 2px);
}

.form-row-3 > div {
    width: calc(33.33% - 2px);
}

.form-col-3 > div {
    width: calc(33.33% - 7px);
}

.form-col-2 > div {
    width: calc(50% - 7px);
}

.form-col-25-75 > div:first-child {
    width: calc(75% - 7px);
}

.form-col-25-75 > div:last-child {
    width: calc(25% - 7px);
}

@media (max-width: 1024px) {
    .form-col-2 > div,
    .form-col-25-75 > div:first-child,
    .form-col-25-75 > div:last-child {
        width: 100%;
    }

    .form-col-3 > div {
        width: calc(50% - 7px);
    }

}

@media (max-width: 768px) {
    .form-col-3 > div {
        width: 100%;
    }

    .form-row-3 > div {
        width: calc(50% - 2px);
    }
}

/*=====end form style=====*/

/*==========my_btn============*/
.btn {
    color: #fff;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 5px;
    border: none;
}

.btn.btn-green {
    background-color: var(--green);
}

.btn.btn-green:hover {
    color: #fff;
    background-color: #7cac5b;
}

.btn.btn-blue {
    background-color: var(--blue);
}

.btn.btn-blue:hover {
    color: #fff;
    background-color: var(--blue);
}
.btn.btn-color {
    background-color: var(--color2);
}

.btn.btn-color:hover {
    color: #fff;
    background-color: var(--color1);
}

.btn.btn-red {
    background-color: var(--red);
}

.btn.btn-red:hover {
    color: #fff;
    background-color: #d23e00;
}

.btn.btn-outline-white {
    background-color: transparent;
    border: 2px solid #fff;
    font-weight: bold;
}

.btn.btn-outline-white:hover {
    color: var(--black);
    background-color: #fff;
}

.btn.btn-outline-blue {
    color: var(--blue);
    background-color: transparent;
    border: 2px solid var(--blue);
    font-weight: bold;
}

.btn.btn-outline-blue:hover {
    color: #fff;
    background-color: var(--blue);
}

.btn-link {
    background-color: transparent;
    padding: 0;
    color: var(--color2);
    text-decoration: none;
    border-bottom: 1px dashed var(--color1);
}

.btn-link:hover {
    color: var(--color1);
    border-bottom-style: solid;
}

.btn-close {
    color: var(--gray1);
    font-size: 27px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    font-weight: bold;
}

.btn-close:hover {
    color: var(--red);
}

.btn-icon {
    position: relative;
    display: block;
    font-size: 120%;
    font-weight: bolder;
    line-height: 1;
    text-align: center;
    padding: 12px 15px;
    border-radius: 5px;
    background-color: var(--color1);
    border: 1px solid var(--color1);
    color: #fff !important;
    overflow: hidden;
    width: 100%;
}

.btn-icon .icon {
    position: absolute;
    left: 10px;
    top: 9px;
    font-size: 25px;
    line-height: 1;
    font-weight: normal;
}

.btn-icon:after {
    content: "";
    width: 62px;
    height: 62px;
    position: absolute;
    left: -10px;
    top: -10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all .3s ease-in-out;
}

.btn-icon:hover:after {
    width: 120%;
    border-radius: 0;
}

/*=====end my_btn =====*/

/*============modal============*/
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    overflow-y: auto;
}

.modal.show {
    display: flex;
}

[data-modal] {
    cursor: pointer;
}

.modal .modal-content {
    width: 1024px;
    max-width: 90%;
    height: max-content;
    background-color: #fff;
    padding: 15px 20px;
    margin: 15px;
    border-top: 4px solid var(--color1);
    border-radius: 5px;
    box-shadow: var(--shadow);
    overflow-x: hidden;
    overflow-y: auto;
    text-align: justify;
}

.modal .modal-content-sm {
    width: 400px;
    max-width: 90%;
    background-color: #fff;
    border-top: 4px solid var(--color1);
    padding: 15px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    align-self: center;
    text-align: justify;
}

.modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: var(--gray2-border);
}

.modal .modal-title {
    font-size: 120%;
    font-weight: bolder;
    line-height: 1;
    cursor: context-menu;
}

.modal .modal-body {
    min-height: 50px;
    display: block;
}

.modal .modal-footer {
    display: flex;
    align-items: center;
    padding-top: 10px;
    justify-content: center;
    border-top: var(--gray2-border);
    margin-top: 15px;
}

.modal .modal-footer > * {
    margin-left: 8px;
}

/*============end modal============*/

/*============ fullscreen img============*/
.fullscreen_img {
    cursor: zoom-in;
}

.fullscreen_img.active {
    z-index: 1005;
    position: fixed;
    width: 100% !important;
    height: 100% !important;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    cursor: zoom-out;
    overflow: auto;
}

.fullscreen_img.active img {
    width: 100% !important;
    height: auto !important;
    margin: auto !important;
    padding: 20px !important;
}

/*============end fullscreen img============*/


/*============alert============*/
[class*="alert-"] {
    position: relative;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: justify;
    margin-bottom: 12px;
}

.alert-info {
    color: #184b8c;
    background-color: #afcef8;
}

.alert-success {
    color: #678a54;
    background-color: #d3eac4;
}

.alert-error{
    color: #fd972a;
    background-color: #ffeadb;
}
.alert-warning {
    color: #912e00;
    background-color: #ffdfd9;
}

/*------------messages--------------*/
#messages {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 130px;
    z-index: 1001;
}

#messages > div {
    margin: 8px 15px;
    padding-right: 25px;
}

#messages > div.hide {
    display: none;
}

#messages .close {
    position: absolute;
    right: 8px;
    top: 3px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

#messages .close:hover {
    color: var(--red);
}

/*===========================alert=======================*/

/*=========================pagination=====================*/
#pagination {
    padding: 10px;
}

#pagination ul {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    padding-left: 0;
    margin-left: 0;
    list-style: none;
}

#pagination li {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 0 2px;
    border-radius: 5px;
    color: var(--black);
    cursor: pointer;
    user-select: none;
}

#pagination li:hover {
    background-color: var(--gray2);
}

#pagination li.active {
    background-color: var(--color1);
    color: #fff;
}

/*===========================end pagination===========================*/

