:root {
    --sidebar-width: 230px;
    --header-height: 56px;
    --sidebar-bg: #1d2b31;
    --sidebar-bg-light: #2b3f47;
    --sidebar-text: #a8c1cc;
    --sidebar-active: #3c8dbc;
    --header-bg: #3c8dbc;
    --body-bg: #f5f7f9;
    --border-color: #dfe5e8;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #2f3b41;
}

.app-body {
    margin: 0;
    background: var(--body-bg);
    overflow-x: hidden;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    z-index: 1035;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    overflow-y: auto;
    background: var(--sidebar-bg);
    transition: transform .2s ease, width .2s ease;
}

.brand-area {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #172328;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.brand-link,
.brand-link:hover,
.brand-link:focus {
    display: block;
    text-decoration: none;
}

.brand-logo {
    width: 178px;
    max-height: 38px;
}

.menu-caption {
    padding: 12px 14px 8px;
    color: #5f7984;
    font-size: 10px;
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease;
}

.menu-link:hover,
.menu-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, .04);
    text-decoration: none;
}

.menu-item.active > .menu-link {
    color: #fff;
    background: #314850;
    border-left-color: var(--sidebar-active);
}

.menu-item.open > .menu-link {
    color: #fff;
}

.menu-icon {
    width: 20px;
    margin-right: 8px;
    text-align: center;
}

.menu-text {
    flex: 1;
}

.menu-arrow {
    transition: transform .2s ease;
}

.menu-item.open > .menu-link .menu-arrow {
    transform: rotate(-90deg);
}

.sidebar-menu.level-1 {
    background: var(--sidebar-bg-light);
}

.sidebar-menu.level-1 .menu-link {
    min-height: 38px;
    padding-left: 17px;
    font-size: 13px;
}

.sidebar-menu.level-2 .menu-link {
    padding-left: 36px;
}

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    transition: margin-left .2s ease;
}

.app-header {
    position: fixed;
    z-index: 1030;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: var(--header-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    transition: left .2s ease;
}

.header-left,
.header-status {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-button,
.user-button {
    height: 100%;
    border: 0;
    color: #fff;
    background: transparent;
}

.header-button {
    width: 52px;
    font-size: 16px;
}

.header-button:hover,
.user-button:hover,
.header-button:focus,
.user-button:focus {
    background: rgba(0, 0, 0, .08);
    outline: none;
}

.header-page-title {
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-item {
    padding: 0 13px;
    font-size: 12px;
}

.user-menu {
    height: 100%;
}

.user-button {
    padding: 0 14px;
}

.avatar-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    margin-right: 7px;
    border-radius: 50%;
    color: #3c8dbc;
    background: #fff;
}

.logout-form {
    margin: 0;
}

.logout-button {
    width: 100%;
    padding: 8px 20px;
    color: #333;
    text-align: left;
    text-decoration: none !important;
}

.app-content {
    flex: 1 0 auto;
    padding: calc(var(--header-height) + 22px) 20px 24px;
    min-height: calc(100vh - 74px);
}

.page-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.page-toolbar h1 {
    margin: 0 0 5px;
    font-size: 25px;
    font-weight: 500;
}

.page-toolbar p {
    margin: 0;
    color: #7b8a91;
}

.app-breadcrumb {
    margin: 0;
    background: transparent;
    white-space: nowrap;
}

.app-panel {
    border-color: var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.app-panel > .panel-heading {
    font-weight: 600;
    background: #fff;
    border-color: var(--border-color);
}

.summary-card {
    min-height: 102px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.summary-icon {
    width: 86px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #3c8dbc;
    font-size: 31px;
}

.summary-content {
    padding: 14px 16px;
}

.summary-content span,
.summary-content strong {
    display: block;
}

.summary-content span {
    color: #78868c;
    font-size: 12px;
    text-transform: uppercase;
}

.summary-content strong {
    margin-top: 5px;
    font-size: 24px;
    font-weight: 500;
}

.placeholder-view {
    padding: 55px 20px;
    text-align: center;
    color: #65747b;
}

.placeholder-view > .fa {
    color: #3c8dbc;
    font-size: 54px;
}

.placeholder-view h2 {
    color: #37464d;
}

.app-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}

.footer-version {
    font-weight: 600;
}

.app-loading {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .58);
}

.app-loading.visible {
    display: flex;
}

.app-loading-box {
    padding: 13px 18px;
    color: #fff;
    background: rgba(28, 43, 49, .92);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.app-loading-box .fa {
    margin-right: 8px;
}

body.sidebar-collapsed .app-sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

body.sidebar-collapsed .app-main {
    margin-left: 0;
}

body.sidebar-collapsed .app-header {
    left: 0;
}

.error-page {
    padding: 80px 20px;
    text-align: center;
}

.error-code {
    color: #3c8dbc;
    font-size: 88px;
    font-weight: 700;
    line-height: 1;
}

.login-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #d2d6de;
    color: #444;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.login-box {
    width: 360px;
    max-width: calc(100% - 30px);
    margin: 7% auto 30px;
}

.login-logo {
    margin-bottom: 24px;
    text-align: center;
}

.login-logo img {
    display: inline-block;
    width: 310px;
    max-width: 100%;
    height: auto;
}

.login-box-body {
    padding: 22px 20px 20px;
    background: #fff;
    color: #666;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
}

.login-box-msg {
    margin: 0;
    padding: 0 20px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

.login-box-body .form-group {
    margin-bottom: 15px;
}

.login-box-body .form-control {
    height: 42px;
    padding-right: 42px;
    border: 1px solid #d2d6de;
    border-radius: 0;
    background-color: #fff;
    box-shadow: none;
    font-size: 14px;
}

.login-box-body .form-control:focus {
    border-color: #3c8dbc;
    box-shadow: none;
}

.login-box-body .form-control-feedback {
    top: 0;
    width: 42px;
    height: 42px;
    line-height: 42px;
    color: #777;
    pointer-events: none;
}

.login-alert {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 0;
    font-size: 13px;
}

.login-alert .fa {
    margin-right: 5px;
}

.login-actions {
    margin-top: 4px;
}

.btn-login {
    height: 42px;
    border-color: #367fa9;
    border-radius: 0;
    background-color: #3c8dbc;
    font-size: 14px;
    font-weight: 600;
}

.btn-login:hover,
.btn-login:focus,
.btn-login:active,
.btn-login:active:focus {
    border-color: #204d74;
    background-color: #367fa9;
}

.login-system-name {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    color: #999;
    text-align: center;
    font-size: 12px;
}

.login-copyright {
    margin-top: 18px;
    color: #657176;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .login-box {
        margin-top: 28px;
    }

    .login-logo {
        margin-bottom: 18px;
    }

    .login-logo img {
        width: 285px;
    }
}

.select2-container {
    width: 100% !important;
}

@media (max-width: 767px) {
    .app-sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

    .app-main {
        margin-left: 0;
    }

    .app-header {
        left: 0;
    }

    body.sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
        box-shadow: 5px 0 18px rgba(0, 0, 0, .25);
    }

    .header-page-title {
        max-width: 155px;
    }

    .page-toolbar {
        display: block;
    }

    .app-breadcrumb {
        margin-top: 12px;
        padding-left: 0;
        white-space: normal;
    }

    .app-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .app-footer {
        display: block;
    }

    .footer-version {
        margin-top: 8px;
    }
}
