/*
* style.css
* 
*
*/

/* Fonts
========================================================================== */

@font-face {
    font-family: Ubuntu-Regular;
    src: url("../fonts/ubuntu/Ubuntu-Regular.ttf");
}

@font-face {
    font-family: Ubuntu-Bold;
    src: url("../fonts/ubuntu/Ubuntu-Bold.ttf");
}

@font-face {
    font-family: Ubuntu-Light;
    src: url("../fonts/ubuntu/Ubuntu-Light.ttf");
}

@font-face {
    font-family: Ubuntu-Italic;
    src: url("../fonts/ubuntu/Ubuntu-Italic.ttf");
}

/* Colors
========================================================================== */

:root {
    --dark-goldenrod: #b8860b;
    --dark-goldenrod-hover: #ae7f0a;
    --dark-goldenrod-active: #9a7109;
    --lemon-curry: #cd9b1d;
    --blue-green: #2493b4;
    --blue-green-hover: #186177;
    --blue-green-active: #1e7d99;
    --blue-pantone: #001cb3;
    --persian-indigo: #280067;
    --rich-black-light: #333333;
    --rich-black: #1f1f1f;
    --rich-black-dark: #090909;
    --alabaster: #e9ebde;
    --gray: #e6e6e6;
    --gray-hover: #d6d6d6;
    --gray-active: #adadad;
    --gray-disabled: #c2c2c2;
    --gray-dark: #8f8fa1;
}

/* Sections
========================================================================== */

html {
    width: 100%;
    height: 100%;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    /* height: 100%; */
    font-family: Ubuntu-Regular, sans-serif;
    font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0px;
}

p {
    margin: 0px;
}

ul,
li {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

iframe {
    border: none !important;
}

button {
    outline: none !important;
    border: none;
    background: transparent;
}

::-moz-selection {
    background: var(--gray-dark);
    color: var(--persian-indigo);
}

::selection {
    background: var(--gray-dark);
    color: var(--persian-indigo);
}

/* Buttons
========================================================================== */

input:focus,
a:focus,
button:focus {
    outline-style: none;
}

a {
    cursor: pointer;
    font-family: Ubuntu-Regular;
    font-size: 14px;
    line-height: 1.7;
    color: var(--blue-green);
    margin: 0px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
    text-decoration: none;
}

a:focus {
    outline: none !important;
    color: var(--blue-green-hover);
}

a:hover {
    text-decoration: none;
    color: var(--blue-green-hover);
}

h1 {
    font-size: 34px;
}

.btn {
    cursor: pointer;
    font-family: Ubuntu-Bold;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    height: 42px;
    background-color: var(--blue-green);
    border-radius: 3px;
    border: none;
    transition: color background-color 0.4s ease;
}

.btn:hover {
    color: #fff;
    background-color: var(--blue-green-hover);
}

.btn:focus {
    color: #ccc;
}

.btn > i {
    margin-right: 10px;
}

.btn.btn-default {
    color: var(--rich-black-dark);
    background-color: var(--gray);
}

.btn.btn-default:hover {
    color: var(--rich-black-dark);
    background-color: var(--gray-hover);
}

.btn.btn-default:active,
.btn.btn-default:focus {
    outline: none;
    color: var(--rich-black-dark);
    background-color: var(--gray-hover);
}

.btn .caret {
    margin-left: 6px;
}

.form-btn {
    font-family: Ubuntu-Bold;
    font-size: 14px;
    color: #fff;
    line-height: 1.3;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 20px;
    height: 42px;
    background-color: var(--blue-green);
    border-radius: 3px;
    transition: all 0.4s;
}

.form-btn:hover {
    color: #fff;
    background-color: var(--blue-green-hover);
}

.form-btn:focus {
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background-color: #d63b53;
}

.btn-danger:hover {
    background-color: #a02c3e;
}

.form-btn.btn-default {
    color: #808080;
    background-color: #f4f9f7;
    border: 1px solid #ccc;
}

.form-btn.btn-default:hover {
    color: #333333;
    background-color: #e6e6e6;
    border-color: #808080;
}

.form-btn .fa {
    margin-right: 10px;
    color: white;
}

.form-btn.btn-default .fa {
    color: var(--blue-green);
}

.form-btn:disabled {
    background-color: #1a535c;
    cursor: not-allowed;
}

.btn-block {
    display: flex;
}

.btn-block > * {
    margin-right: 10px;
}

.btn-block > *:last-child {
    margin-right: 0px;
}

.btn-xs > i {
    margin: 0;
}

/* Input
========================================================================== */

input,
textarea,
select {
    outline: none;
    border: none;
}

textarea:focus,
input:focus {
    border-color: transparent;
}

input::-webkit-input-placeholder,
input:-moz-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder,
textarea::-webkit-input-placeholder,
textarea:-moz-placeholder,
textarea::-moz-placeholder,
textarea:-ms-input-placeholder {
    color: var(--dark-gray);
}

label {
    display: block;
    margin: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--persian-indigo);
    box-shadow: 0 0 0px 1000px #e6e6e6 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    background-color: transparent;
    margin-bottom: 15px;
}

.input-group > label {
    margin-bottom: 5px;
}

.input {
    display: block;
    flex: auto;
    font-family: Ubuntu-Bold;
    color: var(--persian-indigo);
    background-color: #e6e6e6;
    font-size: 14px;
    height: 42px;
    line-height: 42px;
    padding: 0 10px;
    border-radius: 3px;
    width: 100%;
}

.input:disabled {
    cursor: not-allowed;
    background-color: var(--gray-disabled);
    border: 1px solid var(--persian-indigo);
}

textarea.input {
    height: 42px;
    resize: none;
}

.focus-input {
    position: absolute;
    display: block;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    bottom: -1px;
    left: -1px;
    pointer-events: none;
    border: 1px solid var(--blue-green);
    border-radius: 3px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s;
    transform: scaleX(1.1) scaleY(1.1);
}

.input:focus + .focus-input {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.input-group label ~ .focus-input {
    height: calc(100% - 16px);
}

.wrap-input {
    width: 100%;
    position: relative;
    background-color: #e6e6e6;
    border: 1px solid transparent;
    border-radius: 3px;
    margin-bottom: 16px;
}

.form-input {
    position: relative;
    flex: 1;
}

label,
.col-label,
.row-label {
    font-family: Ubuntu-Regular;
    color: #808080;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-unity {
    flex: 1;
    position: relative;
    display: flex;
    /* margin-bottom: 16px; */
}

.form-unity > input {
    flex: 80%;
    margin-bottom: 0;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.form-unity .focus-input {
    height: calc(100% + 2px);
    top: -1px;
}

.unity {
    /* flex: 20; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
    color: #3cbcc3;
    font-weight: bold;
    background-color: #e6e6e6;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    word-break: normal;
}

/* Checkbox
========================================================================== */

.input-checkbox {
    display: none;
}

.label-checkbox {
    cursor: pointer;
    display: block;
    position: relative;
    font-family: Ubuntu-Regular;
    font-size: 14px;
    color: #999999;
    padding-left: 25px;
    user-select: none;
}

.label-checkbox::before {
    content: "✓";
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    width: 14px;
    height: 14px;
    font-size: 12px;
    border-radius: 3px;
    color: transparent;
    background: #fff;
    border: 2px solid var(--blue-green);
}

.input-checkbox:checked + .label-checkbox::before {
    color: var(--blue-green);
}

/* Radio
========================================================================== */

input[type="radio"] {
    display: none;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}

input[type="radio"] + label span {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: -2px 0px 0 0;
    vertical-align: middle;
    cursor: pointer;
    -moz-border-radius: 50%;
    border-radius: 50%;
    border: 3px solid #ffffff;
}

input[type="radio"] + label em,
input[type="checkbox"] + label em {
    font-style: normal;
    text-transform: none;
    user-select: none;
}

input[type="radio"] + label span {
    background-color: #fff;
}

input[type="radio"]:checked + label,
input[type="checkbox"]:checked + label {
    color: #333;
    font-weight: 700;
    user-select: none;
}

input[type="radio"]:checked + label span {
    background-color: var(--blue-green);
    border: 2px solid #ffffff;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

input[type="radio"] + label span,
input[type="radio"]:checked + label span {
    -webkit-transition: background-color 0.24s linear;
    -o-transition: background-color 0.24s linear;
    -moz-transition: background-color 0.24s linear;
    transition: background-color 0.24s linear;
}

.radio-row [type="checkbox"]:not(:checked),
.radio-row [type="checkbox"]:checked {
    position: absolute;
    left: 0;
    opacity: 0.01;
}

.radio-row [type="checkbox"]:not(:checked) + label,
.radio-row [type="checkbox"]:checked + label {
    position: relative;
    padding-left: 2.3em;
    cursor: pointer;
    background-color: #e6e6e6;
}

.radio-row [type="checkbox"]:not(:checked) + label:before,
.radio-row [type="checkbox"]:checked + label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.4em;
    height: 1.4em;
    border: 1px solid #aaa;
    background: #fff;
    border-radius: 0.2em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 rgba(203, 34, 237, 0.2);
    transition: all 0.275s;
}

.radio-row [type="checkbox"]:not(:checked) + label:after,
.radio-row [type="checkbox"]:checked + label:after {
    content: "✓";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.2em;
    font-size: 1.2em;
    color: var(--blue-green);
    line-height: 0;
    transition: all 0.2s;
}

.radio-row [type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0) rotate(45deg);
}

.radio-row [type="checkbox"]:checked + label:after {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.radio-row {
    display: flex;
    position: relative;
    flex-flow: row wrap;
    gap: 15px;
    height: auto;
    /* padding: 0 15px; */
}

.radio-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    background-color: #e6e6e6;
    height: 42px;
    line-height: 42px;
    /* border-radius: 3px; */
}

.radio-container:last-child {
    margin: 0;
}

.radio-container label {
    margin: 0;
}

.flex-table .radio-container {
    flex: 1;
}

/* Table & Bootgrid
========================================================================== */

.table {
    overflow: hidden;
    margin-bottom: 0;
    border: none;
}

.table th {
    font-family: Ubuntu-Bold;
    font-size: 18px;
    line-height: 1.4;
    background-color: var(--dark-goldenrod);
    transition: 0.2s ease;
}

.table th:active {
    background: var(--dark-goldenrod-active);
}

.table th:hover {
    background: var(--dark-goldenrod-hover);
}

.table th span,
.table th {
    color: #f4f9f7;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f8f6ff;
}

.table-hover > tbody > tr:hover {
    background-color: var(--alabaster);
}

.table-condensed > tbody > tr > td,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > td,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > thead > tr > th {
    padding: 10px;
    white-space: normal;
    vertical-align: middle;
    border: none;
}

.table > tbody > tr.out > td,
.table > tbody > tr.out > th,
.table > tbody > tr > td.out,
.table > tbody > tr > th.out,
.table > tfoot > tr.out > td,
.table > tfoot > tr.out > th,
.table > tfoot > tr > td.out,
.table > tfoot > tr > th.out,
.table > thead > tr.out > td,
.table > thead > tr.out > th,
.table > thead > tr > td.out,
.table > thead > tr > th.out {
    background-color: #2892d7;
    color: white;
}

.table > tbody > tr.out:nth-of-type(odd) > td,
.table > tbody > tr.out:nth-of-type(odd) > th,
.table > tbody > tr > td.out:nth-of-type(odd),
.table > tbody > tr > th.out:nth-of-type(odd),
.table > tfoot > tr.out:nth-of-type(odd) > td,
.table > tfoot > tr.out:nth-of-type(odd) > th,
.table > tfoot > tr > td.out:nth-of-type(odd),
.table > tfoot > tr > th.out:nth-of-type(odd),
.table > thead > tr.out:nth-of-type(odd) > td,
.table > thead > tr.out:nth-of-type(odd) > th,
.table > thead > tr > td.out:nth-of-type(odd),
.table > thead > tr > th.out:nth-of-type(odd) {
    background-color: #1d699c;
    color: white;
}

.table > thead > tr > th:hover {
    background-color: var(--dark-goldenrod-hover);
}

.table-wrapper {
    flex: 1;
}

.table-wrapper.history-tab {
    padding: 0 15px;
}

.actionBar {
    padding: 0;
}

.actionBar .input-group {
    margin-bottom: 0;
    flex-direction: row;
}

.actionBar .input-group .input-group-addon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    width: 42px;
}

.actionBar .btn-group > *:not(:first-child) {
    border-left: 1px solid var(--gray-hover);
}

.actionBar .input-group input {
    height: 42px;
}

.actionBar .glyphicon-search,
.actionBar .glyphicon-refresh {
    -webkit-text-stroke: 0.75px black;
}

.bootgrid-table tr {
    cursor: pointer;
}

.bootgrid-table td {
    font-family: Ubuntu-Regular;
    font-size: 15px;
    color: #808080;
    line-height: 1.4;
}

.bootgrid-footer {
    z-index: -1;
}

.pastille {
    height: 25px;
    width: 25px;
    border-radius: 50%;
}

.pastille__notice {
    background-color: #63d7be;
}

.pastille__info {
    background-color: #2892d7;
}

.pastille__error {
    background-color: #d63b53;
}

/* Pagination
========================================================================== */

.pagination li a {
    border: none;
    border-radius: 50%;
    margin: 0 1px;
    color: #808080;
    cursor: pointer;
}

.pagination li:hover a {
    color: var(--dark-goldenrod);
}

.pagination li.active a {
    color: #808080;
    background-color: transparent;
    border: 1px solid var(--dark-goldenrod);
}

.pagination li.active:hover a {
    color: #f4f9f7;
    background-color: var(--dark-goldenrod);
    border-color: var(--dark-goldenrod);
}

.pagination li.last a,
.pagination li.first a {
    border-radius: 50%;
}

/* Error
========================================================================== */
.error-container {
    margin-top: 5px;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid #d63b53;
}

.error-list {
    margin-bottom: 5px;
}

.error-form {
    display: flex;
    gap: 15px;
}

/* Alert Flashbag
========================================================================== */

.toast__svg {
    fill: #fff;
}

.toast {
    z-index: 1000;
    position: fixed;
    right: 11px;
    text-align: left;
    padding: 5px 0;
    transition: opacity 0.7s;
    opacity: 1;
    border-bottom: #fff 1px solid;
    border-top: #fff 1px solid;
    border-right: #fff 1px solid;
    background-color: #fff;
    border-radius: 4px;
    max-width: 500px;
    top: 0px;
    box-shadow: 1px 7px 14px -5px rgba(0, 0, 0, 0.2);
}

.toast:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.toast__icon {
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    padding: 7px;
    border-radius: 50%;
    display: inline-block;
}

.toast__content {
    padding-left: 55px;
    padding-right: 80px;
}

.toast__type {
    color: #3e3e3e;
    font-family: Ubuntu-Bold;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
}

.toast__message {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 0;
    color: #878787;
}

.toast__close {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    width: 29px;
    height: 29px;
    padding: 7px;
    border-radius: 50%;
    fill: #878787;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

.toast__close:hover {
    background-color: var(--gray-hover);
}

.toast--green {
    border-color: var(--dark-goldenrod);
}

.toast--green:before,
.toast--green .toast__icon {
    background-color: var(--dark-goldenrod);
}

.toast--blue {
    border-color: var(--blue-green);
}

.toast--blue:before,
.toast--blue .toast__icon {
    background-color: var(--blue-green);
}

.toast--yellow {
    border-color: #d63b53;
}

.toast--yellow:before,
.toast--yellow .toast__icon {
    background-color: #d63b53;
}

/* Menu
========================================================================== */

.sidebar-navigation {
    z-index: 1000;
    display: inline-block;
    position: fixed;
    height: 100vh;
    width: 80px;
    background-color: var(--rich-black);
}

.sidebar-navigation ul {
    text-align: center;
    color: white;
}

.sidebar-navigation ul li {
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 80px;
}

.sidebar-navigation ul li a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sidebar-navigation ul li a i {
    display: block;
    color: #f4f9f7;
    font-size: 24px;
    transition: color 0.3s ease;
}

.sidebar-navigation ul li a .tooltip {
    display: inline-block;
    position: absolute;
    background-color: var(--rich-black);
    color: #f4f9f7;
    padding: 8px 15px;
    border-radius: 3px;
    left: 90px;
    opacity: 0;
    visibility: hidden;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: pre;
}

.sidebar-navigation ul li a .tooltip:before {
    content: "";
    display: block;
    position: absolute;
    left: -4px;
    top: 10px;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: inherit;
}

.sidebar-navigation ul li.active {
    background-color: var(--rich-black-dark);
}

.sidebar-navigation ul li:hover {
    background-color: var(--rich-black-light);
}

.sidebar-navigation ul li:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.sidebar-navigation ul li.active i {
    color: var(--lemon-curry);
}

.navbar-wrapper {
    padding-left: 80px;
}

/* ScrollTop
========================================================================== */

.cd-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    display: flex;
    bottom: 40px;
    right: 10px;
    transition: opacity 0.3s 0s, visibility 0s 0.3s, background-color 0.3s 0s;
}

.cd-btn {
    z-index: 999;
    position: relative;
    display: flex;
    height: 60px;
    width: 60px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    color: white;
    cursor: pointer !important;
    transition: none;
}

.cd-btn .fa {
    position: absolute;
    left: 20px;
    top: 18px;
    font-size: 24px;
}

.cd-btn .fa-check {
    left: -5px;
}

.cd-btn:hover .fa,
.cd-btn:focus .fa {
    color: white;
}

.btn-top {
    background: #1d1d2ccc;
}

.btn-top:hover {
    background: #1d1d2c;
    color: white;
}

.btn-back {
    background: #999999cc;
}

.btn-back:hover {
    background: #999999;
    color: white;
}

.btn-delete {
    background: #e40c2bcc;
}

.btn-delete:hover {
    background: #e40c2b;
    color: white;
}

.btn-export {
    background: #438945cc;
}

.btn-export:hover {
    background: #438945;
    color: white;
}

.btn-check {
    background: #2892d7cc;
}

.btn-check:hover {
    background: var(--blue-green);
    color: white;
}

.btn-redo {
    background: #2892d7cc;
}

.btn-redo .fa {
    left: -6px;
}

.btn-redo:hover {
    background: var(--blue-green);
    color: white;
}

.btn-bar {
    display: flex;
}

.btn-bar > a:not(:first-child),
.btn-bar > button:not(:first-child) {
    margin-left: 20px;
}

.cd-top.cd-top--show,
.cd-top.cd-top--fade-out,
.cd-top:hover {
    transition: opacity 0.3s 0s, visibility 0s 0s, background-color 0.3s 0s;
}

.cd-top.cd-top--show {
    visibility: visible;
    opacity: 1;
}

.cd-top.cd-top--fade-out {
    opacity: 0.5;
}

.cd-top:hover {
    opacity: 1;
}

@media only screen and (min-width: 768px) {
    .cd-top {
        right: 20px;
        bottom: 30px;
    }
}

@media only screen and (min-width: 1024px) {
    .cd-top {
        right: 35px;
        bottom: 35px;
    }
}

.dropdown-menu > .active > a {
    background-color: var(--blue-green);
}

.filter__container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.filter__container > .filter__name {
    flex-shrink: 0;
}

/* Modal
========================================================================== */

.modal-header,
.modal h4,
.modal .close {
    background-color: var(--dark-goldenrod);
    color: #fff;
    font-size: 30px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.modal-header {
    padding: 30px 35px;
}

.modal-header .close {
    margin-top: -11px;
}

.modal-body {
    font-family: Ubuntu-regular;
    padding: 35px;
}

.modal-body h3 {
    margin-bottom: 15px;
}

.modal-body span {
    color: #07a8a0;
}

.modal-body p {
    font-size: 16px;
}

.modal-body .btn-bar {
    justify-content: flex-end;
    margin-top: 30px;
}

.modal-body .btn-bar > button {
    margin: 0;
}

.modal-body .btn-bar > :not(:first-child) {
    margin-left: 15px;
}

.modal-footer {
    background-color: #f4f9f7;
}
