﻿/* ============================================================
    1. GENERAL
=============================================================*/
:root {
    /*override kendo color*/
    --kendo-color-primary: #004d2b !important;
    --kendo-color-primary-hover: #00663a !important;
    --kendo-color-primary-active: #00532f !important;
    --kendo-color-primary-emphasis: #33a57d !important;
    --kendo-color-primary-on-subtle: #00291a !important;
    --kendo-color-on-primary: #ffffff !important;
    --kendo-color-primary-on-surface: #004d2b !important;
    --kendo-color-series-a: #004d2b !important;
}
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

body {
    font-size: .8125rem;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #031b4e;
    background-color: #f7f8fa;
}

a {
    color: #031b4e;
    text-decoration: none;
    transition: color 0.2s linear;
}

a:hover,
a:active,
a:focus {
    color: #006838;
    text-decoration: none;
}

::selection {
    background-color: #09693e;
    color: #fff;
}

/* Image Wrapper */
.image-wrapper:after {
    content: '';
    display: block;
    padding-top: 100%;
}

.image-wrapper.image-16-9:after {
    padding-top: 56.25%;
}

.image-wrapper.image-16-10:after {
    padding-top: 62.5%;
}

.image-wrapper.image-3-2:after {
    padding-top: 66.66667%;
}

.image-wrapper.image-4-3:after {
    padding-top: 75%;
}

.image-wrapper img {
    object-fit: cover;
    z-index: 2;
}

/* Give Ellipsis */
.give-ellipsis {
    display: -webkit-box !important;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}

.give-ellipsis.after-1-lines {
    -webkit-line-clamp: 1;
}

.give-ellipsis.after-2-lines {
    -webkit-line-clamp: 2;
}

.give-ellipsis.after-3-lines {
    -webkit-line-clamp: 3;
}

.give-ellipsis.after-4-lines {
    -webkit-line-clamp: 4;
}

.give-ellipsis.after-5-lines {
    -webkit-line-clamp: 5;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ============================================================
    2. OVERRIDE BOOTSTRAP
=============================================================*/
/* ============================================================
    2.1. BOOTSTRAP
=============================================================*/
.container-fluid {
    max-width: 1920px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1160px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1440px;
    }
}

/* Button */
.btn {
    display: flex;
    align-items: center;
    padding: .28125rem 1rem;
    font-size: .875rem;
    font-weight: 700;
    border-radius: 8px;
}

.btn i {
    margin-right: .5rem;
    font-size: 1rem;
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle,
.btn-primary:hover,
.btn-primary.focus,
.btn-primary:focus {
    background-color: #018ABD;
    border: 1px solid #018ABD;
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary.focus,
.btn-primary:focus {
    background-color: #082856;
    border: 1px solid #082856;
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #84caff;
    border: 1px solid #84caff;
}

.btn-secondary,
.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show > .btn-secondary.dropdown-toggle,
.btn-secondary:hover,
.btn-secondary.focus,
.btn-secondary:focus {
    background-color: #7c8da5;
    border: 1px solid #7c8da5;
    color: #fff;
    box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary.focus,
.btn-secondary:focus {
    background-color: #889ab3;
    border: 1px solid #889ab3;
}

.btn-secondary.disabled,
.btn-secondary:disabled {
    background-color: #b9c0cf;
    border: 1px solid #b9c0cf;
}

.btn-info,
.btn-info:not(:disabled):not(.disabled).active, .btn-info:not(:disabled):not(.disabled):active, .show > .btn-info.dropdown-toggle,
.btn-info:hover,
.btn-info.focus,
.btn-info:focus {
    background-color: #058A7D !important;
    border: 1px solid #058A7D !important;
    box-shadow: none;
}

.btn-info-dark,
.btn-info-dark:not(:disabled):not(.disabled).active, .btn-info:not(:disabled):not(.disabled):active, .show > .btn-info.dropdown-toggle,
.btn-info-dark:hover,
.btn-info-dark.focus,
.btn-info-dark:focus {
    background-color: #21464D!important;
    border: 1px solid #21464D !important;
    box-shadow: none;
}

.btn-info:hover,
.btn-info.focus,
.btn-info:focus {
    background-color: #3bafda;
    border: 1px solid #3bafda;
}

.btn-info.disabled,
.btn-info:disabled {
    background-color: #93d2ea;
    border: 1px solid #93d2ea;
}

.btn-info-dark,
.btn-info-dark:not(:disabled):not(.disabled).active, .btn-print:not(:disabled):not(.disabled):active, .show > .btn-print.dropdown-toggle,
.btn-info-dark:hover,
.btn-info-dark.focus,
.btn-info-dark:focus {
    background-color: #028174;
    border: 1px solid #028174;
    box-shadow: none;
    color: #fff;
}

.btn-info-dark:hover,
.btn-info-dark.focus,
.btn-info-dark:focus {
    background-color: #249589;
    border: 1px solid #249589;
}

.btn-info-dark.disabled,
.btn-info-dark:disabled {
    background-color: #81cfc7;
    border: 1px solid #81cfc7;
}

.btn-success,
.btn-success:not(:disabled):not(.disabled).active, .btn-success:not(:disabled):not(.disabled):active, .show > .btn-success.dropdown-toggle,
.btn-success:hover,
.btn-success.focus,
.btn-success:focus {
    background-color: #006838;
    border: 1px solid #006838;
    box-shadow: none;
}

.btn-success:hover,
.btn-success.focus,
.btn-success:focus {
    background-color: #018259;
    border: 1px solid #018259;
}

.btn-success.disabled,
.btn-success:disabled {
    background-color: #99d2b8;
    border: 1px solid #99d2b8;
}

.btn-outline-success,
.btn-outline-success:hover,
.btn-outline-success:not(:disabled):not(.disabled).active,
.btn-outline-success:not(:disabled):not(.disabled):active,
.show > .btn-outline-success.dropdown-toggle {
    background: #fff;
    color: #006838;
    border-color: #006838;
}

.btn-outline-success:hover,
.btn-outline-success:not(:disabled):not(.disabled).active,
.btn-outline-success:not(:disabled):not(.disabled):active,
.show > .btn-outline-success.dropdown-toggle {
    background: #f2fdf8;
}

.btn-outline-success.focus,
.btn-outline-success:focus,
.btn-outline-success:not(:disabled):not(.disabled).active:focus,
.btn-outline-success:not(:disabled):not(.disabled):active:focus,
.show > .btn-outline-success.dropdown-toggle:focus {
    box-shadow: none;
}

.btn-warning,
.btn-warning:not(:disabled):not(.disabled).active, .btn-warning:not(:disabled):not(.disabled):active, .show > .btn-warning.dropdown-toggle,
.btn-warning:hover,
.btn-warning.focus,
.btn-warning:focus {
    background-color: #AF6400 !important;
    border: 1px solid #AF6400 !important;
    color: #fff;
    box-shadow: none;
}

.btn-warning:hover,
.btn-warning.focus,
.btn-warning:focus {
    background-color: #dc6803;
    border: 1px solid #dc6803;
}

.btn-warning.disabled,
.btn-warning:disabled {
    background-color: #fedf89;
    border: 1px solid #fedf89;
    color: #fff;
}

.btn-warning-dark,
.btn-warning-dark:not(:disabled):not(.disabled).active, .btn-warning-dark:not(:disabled):not(.disabled):active, .show > .btn-warning-dark.dropdown-toggle,
.btn-warning-dark:hover,
.btn-warning-dark.focus,
.btn-warning-dark:focus {
    background-color: #af6400;
    border: 1px solid #af6400;
    color: #fff;
    box-shadow: none;
}

.btn-warning-dark:hover,
.btn-warning-dark.focus,
.btn-warning-dark:focus {
    background-color: #cc872a;
    border: 1px solid #cc872a;
}

.btn-warning-dark.disabled,
.btn-warning-dark:disabled {
    background-color: #e9bb7e;
    border: 1px solid #e9bb7e;
    color: #fff;
}

.btn-danger,
.btn-danger:not(:disabled):not(.disabled).active, .btn-danger:not(:disabled):not(.disabled):active, .show > .btn-danger.dropdown-toggle,
.btn-danger:hover,
.btn-danger.focus,
.btn-danger:focus {
    background-color: #B61A39;
    border: 1px solid #B61A39;
    box-shadow: none;
}

.btn-danger:hover,
.btn-danger.focus,
.btn-danger:focus {
    background-color: #a50101;
    border: 1px solid #a50101;
}

.btn-danger.disabled,
.btn-danger:disabled {
    background-color: #f97b7b;
    border: 1px solid #f97b7b;
}

.btn-dark,
.btn-dark:not(:disabled):not(.disabled).active, .btn-dark:not(:disabled):not(.disabled):active, .show > .btn-dark.dropdown-toggle,
.btn-dark:hover,
.btn-dark.focus,
.btn-dark:focus {
    background-color: #21464d;
    border: 1px solid #21464d;
    color: #fff;
    box-shadow: none;
}

.btn-dark:hover,
.btn-dark.focus,
.btn-dark:focus {
    background-color: #457881;
    border: 1px solid #457881;
}

.btn-dark.disabled,
.btn-dark:disabled {
    background-color: #92abaf;
    border: 1px solid #92abaf;
    color: #fff;
}

/* Background */
.bg-success {
    background-color: #006838 !important;
}

.bg-warning {
    background-color: #eab875 !important;
}

.bg-warning,
.bg-warning > a {
    color: #fff !important;
}

.bg-secondary {
    background-color: #7c8da5 !important;
}

.bg-white {
    color: inherit !important;
}

/* Card Styles */
.card {
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #fff;
    box-shadow: none;
}
.card-body {
    padding: 1rem;
}

/* Form Layout */
.form-row {
    /*margin: 0 -.5rem;*/
    margin: 0;
}

.form-row > .col,
.form-row > [class*=col-] {
    padding: 0 .5rem;
}

/* Label Styles */
label:not(.form-check-label):not(.custom-file-label) {
    font-weight: 500;
}

.col-form-label {
    padding: 0 0 .25rem;
}

/* Form Control Styles */
.form-control {
    font-size: inherit;
    color: inherit;
    padding: 4.5px 8px;
    height: calc(1.875rem + 2px);
    border: 1px solid #eae8f1;
}

.form-control:focus {
    color: inherit;
    border-color: #eae8f1;
    outline: 0;
    box-shadow: initial;
}

.form-control::placeholder {
    color: #9ca5b9;
    opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
    background: #F0F1F6;
    border: 1px solid #EAE8F1;
    color: #031B4E;
    border-radius: 4px;
}

@media (min-width: 1400px) {
    .col-form-label {
        font-size: .875rem;
    }
}

/* Table Styles */
.table-wrapper {
    width: 100%;
    margin: 0 !important;
}

.table-wrapper th,
.table-wrapper td {
    font-size: .875rem; /* 14px */
    border-left: 1px solid #EAE8F1 !important;
    border-bottom: 1px solid #EAE8F1 !important;
    color: #031B4E;
    vertical-align: middle !important;
    text-align: left;
}

.table-wrapper th {
    border-top: 1px solid #EAE8F1 !important;
    font-weight: bold !important;
    text-align: left;
    padding: 11.5px 12px !important;
}

.table-wrapper td {
    padding: 11.5px 12px !important;
    line-height: 1.0625rem;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.table-wrapper td:has(input) {
    padding: 4px 4px !important;
}

.table-wrapper td:last-child,
.table-wrapper th:last-child {
    border-right: 1px solid #EAE8F1 !important;
}

.table-wrapper tbody tr {
    background-color: #FFFFFF !important;
}

/* ============================================================
    2.2. SWEET ALERT 2
=============================================================*/
.swal2-header {
    font-size: 0.6rem !important;
}

.swal2-content {
    font-size: 0.6rem !important;
}

.swal2-title.custom-swal2-title
{
    padding:0 1em 0;
}

.swal2-confirm {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.swal2-cancel {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

.swal2-container {
    z-index: 2060 !important;
}

@media (min-width: 576px) {
    .swal2-popup {
        font-size: 0.9rem !important;
    }
}

.swal2-actions-custom {
    display: flex;
    justify-content: center;
}
.swal2-actions-custom .swal2-cancel {
    order: 1;
    margin-right: 10px;
}
.swal2-actions-custom .swal2-confirm {
    order: 2;
}
.custom-swal2-title.swal2-title {
    color: #252830;
    font-weight: 500;
    font-size: 18px ;
    max-height: 50dvh;
    display: block;
    overflow: auto;
}

.swal2-html-container{
    padding: 0 1em 0 !important;
    font-size: inherit;
    max-height: 50dvh;
    display: block;
    overflow: auto;
}

.swal2-popup-show-multi-message-title {
    font-size: 18px;
    font-weight: 500;
    color: #031B4E;
    margin-bottom: 4px;
    text-align: center;

}

.swal2-popup-show-multi-message-content {
    font-size: 14px;
    text-align: center;
    color: #9CA5B9;
    font-weight: 400;
    margin-bottom: 4px;
}

.swal2-popup-show-multi-message-content ul {
    list-style-type: none;
    padding-left: 0;
}


.swal2-popup-show-multi-message-content li {
    text-decoration: none;
    text-align: center;
    line-height: 21px;
}

.swal2-popup {

}

/*responsive*/
@media (min-width: 991px) {
    .swal2-popup {
        width: 450px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .swal2-popup {
        width: 95%;
        font-size: 14px;
    }

    .custom-swal2-title {
        font-size: 18px;
    }

    .swal2-actions-custom {
        gap: 8px;
    }

    .btn-outline-success,
    .btn-success {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .swal2-popup {
        padding: 10px;
    }

    .custom-swal2-title {
        font-size: 16px;
    }
}

/* ============================================================
    2.3. FANCYBOX
=============================================================*/
.fancybox__container {
    z-index: 9999 !important;
}

/* ============================================================
    2.4. KENDO
=============================================================*/
.k-loader-segment {
    background-color: #006838 !important;
}

/* kendo-datetime-piker */
.k-calendar-navigation {
    display: none !important;
}

/* ============================================================
    2.5. TOAST
=============================================================*/
.toast-success {
    background-color: #28a745 !important;
}

/* ============================================================
    3. HEADER
=============================================================*/
#header {
    height: 50px;
}

#header:not(.header-white) {
    background: url('/images/bg-header.png') center center;
    background-size: cover;
}

#header:not(.header-white):before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: linear-gradient(to right, #006838, #1d9f6f);
    z-index: -1;
}

#header .page-heading {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

#header .logo img {
    height: 22px;
}

#header.header-white .container-fluid {
    background: #fff;
}

#header.header-white .btn {
    padding: .375rem .6971875rem;
}

#header.header-white .btn-outline-success {
    color: inherit;
}

#header.header-white .btn-outline-success i {
    color: #006838;
}

#header.header-white .btn .label {
    margin-right: .125rem;
}

@media (min-width: 576px) {
    #header .page-heading {
        position: absolute;
        font-size: 1.0625rem;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 768px) {
    #header {
        height: 64px;
    }

    #header .page-heading {
        font-size: 1.5rem;
    }

    #header .logo img {
        height: 36px;
    }

    #header.header-white .btn {
        padding: .53125rem .6971875rem;
    }
}

#sidebar-toggle-btn {
    color: #fff;
    display: block;
    cursor: pointer;
}

#sidebar-toggle-btn i {
    font-size: 24px;
    margin-top: 5px;
}

/* ============================================================
    4. FOOTER
=============================================================*/
#footer {
    height: 40px;
    font-size: .75rem;
    box-shadow: 0px 4px 16px 0px #0000001a;
}

#footer .container-fluid {
}

#footer .list-item .item:not(:last-child) {
    border-right: 1px solid #031b4e;
}

#footer .list-item {
    margin-left: -1.5rem;
    /*margin-right: -1.5rem;*/
}

#footer .list-item .item {
    padding: 0 1.5rem;
    transition: padding .3s ease-in-out;
}

#footer .list-item .item .icon {
    width: 24px;
    height: 24px;
}

#footer .list-item .item .icon img {
    width: 12px;
}

@media (min-width: 1400px) {
    #footer {
        font-size: .875rem;
    }
}

/* ============================================================
    5. MAIN
=============================================================*/
body:not(.show-footer) #main {
    min-height: calc(100dvh - 50px);
}

body.show-footer #main {
    min-height: calc(100dvh - 90px);
}

@media (min-width: 768px) {
    body:not(.show-footer) #main {
        min-height: calc(100dvh - 64px);
    }

    body.show-footer #main {
        min-height: calc(100dvh - 104px);
    }
}

/* ============================================================
    6. PAGE
=============================================================*/
/* ============================================================
    6.1. PAGE DEFAULT
=============================================================*/
/* Headline */
.page-default .headline {
    background: url('/images/bg-headline.png') center center;
    background-size: cover;
    height: 128px;
}

.page-default .headline:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: linear-gradient(to right, #006838, #1d9f6f);
    z-index: -1;
}

.page-default .headline .title {
    margin-bottom: .375rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}

.page-default .headline .description {
    font-size: .8125rem;
    line-height: 1.4375;
}

@media (min-width: 768px) {
    .page-default .headline {
        height: 100px;
    }
}

@media (min-width: 1400px) {
    .page-default .headline {
        height: 150px;
    }

    .page-default .headline .title {
        font-size: 1.875rem;
    }

    .page-default .headline .description {
        font-size: 1rem;
    }
}

/* Main content */
.page-default .main-content {
    height: calc(100dvh - 50px - 128px);
    min-height: 400px;
}

.page-default .main-content:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0d26;
    z-index: 2;
}

/*.page-default .main-content .background {
    top: 0;
    left: 0;
    background: url('/images/bg-video.jpg') center center;
    background-size: cover;
    z-index: 1;
}*/

.page-default .main-content video {
    top: 0;
    left: 0;
    z-index: 1;
}

.page-default .main-content video:not(.fullscreen) {
    object-fit: cover;
    pointer-events: none;
}

.page-default .main-content .control {
    left: .625rem;
    bottom: .625rem;
    z-index: 3;
    gap: .5rem;
}

.page-default .main-content .control .btn-video {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: inherit;
    background: #fff;
}

.page-default .main-content .control .btn-video i {
    font-size: 1.3125rem;
    color: #9ca5b9;
}

@media (min-width: 576px) {
    .page-default .main-content .control {
        left: 1rem;
        bottom: 1rem;
        z-index: 3;
    }
}

@media (min-width: 768px) {
    .page-default .main-content {
        height: calc(100dvh - 64px - 100px);
    }
}

@media (min-width: 1400px) {
    .page-default .main-content {
        height: calc(100dvh - 64px - 150px);
    }
}

/* ============================================================
    6.2. PAGE LOGIN
=============================================================*/
#login .main-content .control {
    flex-direction: column-reverse;
}

@media (min-width: 576px) {
    #login .main-content .control {
        flex-direction: row;
    }
}

/* ============================================================
    7. SLIDE BAR
=============================================================*/

#custom-sidebar {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-right: 1px solid #EAE8F1;
    position: relative;
    width: 70px;
    transition: width 0.3s, left 0.3s;
}
#custom-sidebar.expanded {
    width: 222px;
    align-items: flex-start;
}
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.nav-item {
    padding: 0.25rem 0;
    display: flex;
    cursor: pointer;
    transition: background 0.2s;
    justify-content: center;
}
#custom-sidebar.expanded .nav-item {
    justify-content: flex-start;
}
.nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    transition: padding 0.3s, text-align 0.3s;
}
#custom-sidebar.collapsed .nav-link {
    justify-content: center;
    text-align: center;
    padding-left: 0;
}
.sidebar-list i {
    font-size: 16px;
    color: #5B6E88;
    min-width: 24px;
    text-align: center;
    transition: transform 0.2s, color 0.2s;
}
.sidebar-text {
    font-size: 14px;
    color: #5B6E88;
    padding-left: 6px;
    transition: opacity 0.3s;
}
#custom-sidebar.collapsed .sidebar-text {
    display: none;
}
#custom-sidebar.expanded .sidebar-text {
    display: inline;
}
.nav-item.active {
    border-left: 3px solid #006838;
}
.nav-item.active .nav-link,
.nav-item.active i {
    color: #006838 !important;
}
.nav-item.active .nav-link {
    padding: 0.5rem 0 0.5rem 0.5rem;
}
.nav-item:not(.active) .nav-link {
    padding: 0.5rem 0 0.5rem 0.7rem;
}
.nav-item:hover,
.nav-item:hover i {
    background-color: #F5FDF8;
    color: #006838 !important;
}
.btn-collapse-expand {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    border: none;
    outline: none;
}
/* Responsive for mobile */
@media (max-width: 767.98px) {
    #custom-sidebar {
        position: fixed;
        left: -225px;
        top: 0;
        height: 100vh;
        z-index: 1050;
        width: 220px;
        border-right: 1px solid #EAE8F1;
        transition: left 0.3s;
    }
    #custom-sidebar.sidebar-open {
        left: 0;
    }
}