/*
    Created on : Oct 02, 2015, 4:18:27 AM
    Author     : phamtrong204
*/

.view-form-item {
    font-size: 14px;
    margin-bottom: 10px;
}

.form-text {
    display: block;
}

.show_on_edit {
    display: none;
}

.is_edit_form .show_on_edit {
    display: initial;
}

.main-content .main-content-inner {
    margin-bottom: 1px;
}

.footer .footer-inner .footer-content {
    border: none;
}

.data-table-title {
    margin-top: 2.5rem;
}

.full-view {
    width: 100vw;
    height: calc(100vh - 45px);
}

.flex-vertical-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-404-image {
    margin-top: 3rem;
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
}

.divider.topbar-divider + li > a {
    border-top: none;
}

img.img-cell {
    height: 85px;
    width: 85px;
}

.bold {
    font-weight: 700;
}

.text-large {
    font-size: large;
}

img.img-brand {
    max-height: 40px;
}

.margin-center,
.margin-horizontal-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-role-developer {
    color: #6A1B9A;
    font-weight: bold;
}

.text-role-admin {
    color: #B71C1C;
    font-weight: bold;
}

.text-role-subadmin {
    color: #F57F17;
    font-weight: bold;
}

.form-divider {
    margin-top: 56px;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
}

.form-divider:first-child {
    margin-top: 0;
}

.form-horizontal .control-label.form-divider {
    margin-bottom: 15px;
}

.form-control.text-lowercase::placeholder {
    text-transform: initial;
}

.form-control-height {
    height: 34px;
}

.btn.btn-form-submit {
    width: 72px;
    transition: background-color 700ms;
}

/* region colors */

.color, .bg-color {
    --color: #212121;
    --background-color: #fff;

    color: var(--color) !important;
    background-color: var(--background-color);
}

.color.grey {
    --color: #9e9e9e;
}

.bg-color.grey {
    --color: #212121;
    --background-color: #f0f0f0;
}

/* endregion */

/* region inner-loader */

.inner-loader {
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
    --color: #fff;
    --dot-size: 8px;
    --padding-vertical: 0;
    --half-spacing: 2px;
}

.inner-loader span {
    display: inline-block;
    width: var(--dot-size, 8px);
    height: var(--dot-size, 8px);
    border-radius: 100%;
    background-color: var(--color, #fff);
    margin: var(--padding-vertical) var(--half-spacing);
    opacity: 0;
}

.inner-loader span:nth-child(1) {
    animation: opacityChange 1s ease-in-out infinite;
}

.inner-loader span:nth-child(2) {
    animation: opacityChange 1s ease-in-out 0.33s infinite;
}

.inner-loader span:nth-child(3) {
    animation: opacityChange 1s ease-in-out 0.66s infinite;
}

@keyframes opacityChange {
    0%, 100% {
        opacity: 0;
    }

    60% {
        opacity: 1;
    }
}

/* endregion */

/* region REALM-LOCAL */

body.realm-local {
    --color-primary: #7E57C2;
    --color-primary-rgb: 126, 87, 194;
    --color-primary-contrast: #ffffff;
    --color-primary-contrast-rgb: 255, 255, 255;
    --color-primary-shade: #6f4dab;
    --color-primary-tint: #8b68c8;
}

@media (prefers-color-scheme: dark) {
    body.realm-local {
        --color-secondary: #50c8ff;
        --color-secondary-rgb: 80, 200, 255;
        --color-secondary-contrast: #ffffff;
        --color-secondary-contrast-rgb: 255, 255, 255;
        --color-secondary-shade: #46b0e0;
        --color-secondary-tint: #62ceff;

        --color-tertiary: #6a64ff;
        --color-tertiary-rgb: 106, 100, 255;
        --color-tertiary-contrast: #ffffff;
        --color-tertiary-contrast-rgb: 255, 255, 255;
        --color-tertiary-shade: #5d58e0;
        --color-tertiary-tint: #7974ff;

        --color-success: #2fdf75;
        --color-success-rgb: 47, 223, 117;
        --color-success-contrast: #000000;
        --color-success-contrast-rgb: 0, 0, 0;
        --color-success-shade: #29c467;
        --color-success-tint: #44e283;

        --color-warning: #ffd534;
        --color-warning-rgb: 255, 213, 52;
        --color-warning-contrast: #000000;
        --color-warning-contrast-rgb: 0, 0, 0;
        --color-warning-shade: #e0bb2e;
        --color-warning-tint: #ffd948;

        --color-danger: #ff4961;
        --color-danger-rgb: 255, 73, 97;
        --color-danger-contrast: #ffffff;
        --color-danger-contrast-rgb: 255, 255, 255;
        --color-danger-shade: #e04055;
        --color-danger-tint: #ff5b71;

        --color-dark: #f4f5f8;
        --color-dark-rgb: 244, 245, 248;
        --color-dark-contrast: #000000;
        --color-dark-contrast-rgb: 0, 0, 0;
        --color-dark-shade: #d7d8da;
        --color-dark-tint: #f5f6f9;

        --color-medium: #989aa2;
        --color-medium-rgb: 152, 154, 162;
        --color-medium-contrast: #000000;
        --color-medium-contrast-rgb: 0, 0, 0;
        --color-medium-shade: #86888f;
        --color-medium-tint: #a2a4ab;

        --color-light: #222428;
        --color-light-rgb: 34, 36, 40;
        --color-light-contrast: #bdc1c6;
        --color-light-contrast-rgb: 189, 193, 198;
        --color-light-shade: #1e2023;
        --color-light-tint: #383a3e;

        --color: #bdc1c6;
        --border-color: #3c4043;

        --page-color: #bdc1c6;
        --page-background-color: #121212;
        --table-border-color: #424242;
        --component-background-color: #1e1e1e;

        --card-background-color: #1e1e1e;
        --card-border-color: #222428;

        --input-background-color: var(--page-background-color);
        --input-border-color: #3c4043;
    }

    .realm-local .btn.btn-light {
        --background-color-base: var(--color-light);
        --background-color-active: rgba(var(--color-light-rgb), .5);
    }

    .realm-local .dropdown-menu {
        --dropdown-color: #424242;
    }

    .realm-local .modal-content {
        background-color: var(--card-background-color);
    }

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

/* endregion */

.ace-custom .ace-nav > li > a {
    min-width: 44px;
}

.nav-list li.active > a:after {
    top: 7px;
}

.dropdown-navbar {
    max-height: calc(100vh - 75px);
    width: 252px;
    overflow: auto;
}

@media only screen and (max-width: 767px) {
    .layout-manager .dataTables_paginate, .layout-manager .dataTables_info {
        text-align: center;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media only screen and (max-width: 479px) {
    .navbar:not(.navbar-collapse) .navbar-header,
    .navbar:not(.navbar-collapse) .navbar-header.pull-right {
        float: none !important;
        display: block;
    }
}

@media only screen and (max-width: 360px) {
    .ace-nav {
        white-space: nowrap;
        overflow-x: scroll;
    }
}

@media only screen and (min-width: 1200px) {
    .ace-nav > li {
        line-height: 34px;
        height: 34px;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .dropdown-menu.dropdown-navbar {
        --dropdown-spacing: 4px;
    }

    .dropdown-navbar > li, .dropdown-navbar > li > a {
        border-radius: 9px;
    }

    .dropdown-navbar > li > a {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

.data_table .table thead tr th[field_name="number_order"],
.data_table .table tbody tr td[for_key="number_order"] {
    text-align: right;
}

.dataTables_wrapper thead:first-child tr:first-child th:first-child[field_name="number_order"] {
    padding-right: 8px;
}

.dataTables_wrapper .table,
.table.dataTable {
    border-top: 1px solid #e5e5e5;
}

/*region ace-custom candidates*/

.form-group.form-group-checkbox {
    margin-bottom: 4px;
}

.main-container,
.main-content,
.monitor-page .main-content-inner,
.monitor-root {
    display: flex;
    align-items: stretch;
}

.main-container {
    min-height: 100vh;
    flex-direction: column;
}

.full-remain,
.monitor-root {
    flex-grow: 1;
}

.monitor-page .main-container {
    height: 100vh;
}

.monitor-page .footer {
    padding-top: 0;
}

.monitor-page .footer .footer-inner .footer-content {
    bottom: 0;
    left: 320px;
    line-height: 14px;
    padding: 0;
}

/*endregion*/

.layout-manager .footer {
    width: unset;
    height: unset;
    padding-top: 16px;
}

.layout-manager .footer .footer-inner,
.layout-manager .footer .footer-inner .footer-content {
    position: relative;
    top: unset;
    left: unset;
    right: unset;
    bottom: unset;
}

.list-style-none {
    list-style: none;
}

.outline-none {
    outline: none;
}

/* region article */

article,
article pre {
    font-size: 16px;
    line-height: 2.25;
}

article form {
    line-height: 1.5;
}

article form .control-label::first-letter {
    text-transform: unset;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
    font-weight: bold;
    line-height: 1.25;
}

article h1 {
    font-size: 2.75rem;
}

article h2 {
    margin-top: 6rem;
    margin-bottom: 2.25rem;
}

article h3 {
    margin-top: 2.25rem;
    margin-bottom: 2.25rem;
}

article h6 {
    font-size: 16px;
    margin-top: 1.5rem;
}

article ul {
    margin: 1rem 0 1rem 2rem;
}

article .sample-request {
    word-break: break-all;
}

article .table thead tr th {
    white-space: nowrap;
}

@media (min-width: 992px) {
    article .figure {
        margin-left: 6rem;
        margin-right: 6rem;
    }
}

@media (min-width: 1200px) {
    article.container {
        width: 980px;
    }
}

@media (min-width: 1920px) {
    #docs-form {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 470px;
        background-color: rgba(255, 255, 255, .75);
        margin-left: 0;
        margin-right: 0;
    }
}

/* endregion */

.action-bar {
    position: sticky;
    bottom: var(--margin, 15px);
    left: auto;
    right: auto;
    background-color: rgba(255, 255, 255, .95);
    padding: 10px;
    border-radius: var(--component-radius, 12px);
    width: fit-content;
    margin: var(--margin, 15px) auto;
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .action-bar {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.5);
    }
}
