@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@mdi/font@6.5.95/css/materialdesignicons.min.css');

:root {
    --primary: #006C57;
    /* --primary: #9EE0D3; */
    --primary-dark: #044639;
    --secondary: #9EE0D3;
    --accent: #F8EC33;
    --dark: #080808;
}

.text-primary {
    color: var(--primary) !important;
}

h1,
h2,
.h1,
.h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    letter-spacing: -1px;
    color: var(--primary);
}

h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif;
}

p {
    color: #080808;
    font-size: 1em;
    letter-spacing: 0px;
    font-weight: 300;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #ffffff;
}

.gradient-2 {
    background-image: linear-gradient(270deg, #d12a56, #ea9d9d);
}


/* .btn-primary {
    background: rgba(12 12 12 /.95);
    border-color: rgba(12 12 12 /.95);
} */

.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.nk-sidebar {
    border-right: 1px solid #EBEBEB;
    padding-bottom: 0;
}

.nk-sidebar .metismenu>li a>i {
    font-size: 1.1rem;
    color: #181818;
}

.nk-sidebar .metismenu>li:not(.active):hover>a,
.nk-sidebar .metismenu>li:not(.active):hover span,
.nk-sidebar .metismenu>li:not(.active):hover i {
    background: #fbfbfb;
    color: var(--primary) !important;
}


.nk-sidebar .metismenu a {
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #181818;
}

.nav-header .brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

[data-nav-headerbg="color_1"] .nav-header {
    background: #fff;
    box-shadow: none;
    border-right: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

[data-headerbg="color_1"] .header {
    background: transparent;
    /* backdrop-filter: blur(10px); */
    box-shadow: none;
    padding: .5rem 1rem;
    height: auto;
    /* box-shadow: 0px 3px 20px -18px rgba(25 69 157 /.55); */
    /* border-bottom: 1px solid rgba(255, 255, 255, .55); */
}

[data-headerbg="color_1"] .header .header-content {
    border: 1px solid #ebebeb;
    background-color: rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
    padding: .5rem 1rem;
    border-radius: 100px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

[data-headerbg="color_1"] .header .header-content .nav-control {
    left: 2rem;
    top: auto;
    position: static;
    display: grid;
    place-content: center;
    transform: translateY(-3px);
}

.header-content .header-right {
    float: none;
}


.slimScrollDiv {
    height: calc(100% - 12.3em) !important;
    padding-bottom: 10px;
}

[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .nk-sidebar {
    width: 0px;
    overflow: hidden;
}

[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .content-body {
    margin-left: 0;
}

.user-profile {
    display: flex;
    flex-direction: row;
    padding: 12px 7px;
    box-shadow: 0 -3px 9px -3px rgba(52, 154, 123, 0.55);
}

.user-profile .user-profile__img img {
    width: 50px;
    height: 50px;
    border-radius: 40px;
    overflow: hidden;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .5);
}

.user-profile .user-profile__details {
    padding: 0 7px 0 12px;
    display: flex;
    flex-direction: column;
}

.user-profile .user-profile__details>h5,
.user-profile .user-profile__details>p,
.user-profile .user-profile__details>a {
    margin-bottom: 0px;
}

.user-profile .user-profile__details>h5 {
    font-size: 16px;
    width: 8rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 1);
}

.user-profile .user-profile__details>p {
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
}

.user-profile .user-profile__details>a {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.user-profile .user-profile__details>a:hover {
    color: rgba(255, 255, 255, 1);
}

.card {
    /* box-shadow: 0px 7px 20px -15px rgba(25 69 157 /.55); */
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #ebebeb;
}

.card>.card-body {
    padding: 1.75em;
    border-radius: 2rem;
}

.card-title {
    font-family: 'Monsterrat', sans-serif;
}

.card.quick-look {
    overflow: hidden;
}

.quick-look .card-body {
    padding: 1.25rem 1.5rem;
}

.quick-look .stats {
    gap: .5rem;
    align-items: center;
}

.quick-look .stats .icon-img {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background-color: var(--primary);
    border-radius: .35rem;
    color: white;
}

.quick-look .stats .icon-img img {
    filter: invert(1);
}

.quick-look .stats h4 {
    font-size: 2rem;
    color: var(--primary);
}

.quick-look .card-footer {
    /* background-color: #fbfbfb; */
}

.quick-look .card-footer a {
    font-weight: 500;
    color: var(--secondary);
}

.card-title__container h3 {
    font-size: 1.5rem;
}

.card-title__container span {
    font-size: .85rem;
    line-height: 110%;
}

.card-title__container {
    display: flex;
    flex-direction: column;
    align-items: start;
    /* justify-content: space-between; */
    margin-bottom: 15px;
}

.card-title__container>h3 {
    margin-bottom: 0;
}

.card-title__container span>i {
    font-size: 1.35em;
}


/* .card-title__container span {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
} 



.card-title__container h3 {
    flex-grow: 1;
    margin-bottom: 0;
}*/


/* @media screen and (max-width:575px) {
    .card-title__container span>i {
        font-size: 4em;
        position: absolute;
    }
} */

.card-title {
    line-height: 1.38em;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--dark);
}

.gradient-1 {
    background: rgb(25, 69, 157);
    background: -moz-linear-gradient(180deg, rgba(180, 74, 155, 1) 9%, rgba(25, 69, 157, 1) 100%);
    background: -webkit-linear-gradient(60deg, rgba(180, 74, 155, 1) 9%, rgba(25, 69, 157, 1) 100%);
    background: linear-gradient(0deg, rgba(180, 74, 155, 1) 0%, rgba(25, 69, 157, 1) 100%);
}

.icons>a i {
    font-size: 22px;
    color: #7b7b7b;
}

.cs-box h6 {
    color: #767676;
}

.cs-box {
    border-color: #ebebeb;
}

.footer {
    padding-left: 0;
}

.footer .copyright {
    padding-left: 15.1875rem;
}

.menu-toggle .footer .copyright {
    padding-left: 1.2375rem;
}

.google-visualization-orgchart-linenode {
    border-color: #ababab !important;
    border-width: 2px;
}

.tree-node {
    width: 100%;
    border-radius: 8px;
    background: #f4f4f4;
}

.tree-node div {
    width: 200px;
    padding: 1em 1.5em;
}

.tree-node img {
    width: 80px;
    height: 80px;
    overflow: hidden;
    -o-object-fit: fill;
    object-fit: fill;
    border-radius: 50%;
    margin-bottom: 1em;
}

.tree-node h3 {
    font-size: 1.5em;
    margin-bottom: 0.3em;
    font-family: helvetica;
}

.tree-node p {
    font-size: 14px;
    margin-bottom: 0.5em;
}

.tree-node .flexing-box {
    display: flex;
    justify-content: space-between;
    padding: 0;
    width: 100%;
}

.tree-node .flexing-box p {
    font-size: 15px;
    font-weight: 600;
}

.node-selected {
    background: #f0f7f7;
}

@media screen and (max-width:767px) {
    #chart_div {
        overflow-x: scroll;
        touch-action: auto;
    }
}

.bar-chart {
    background-color: var(--secondary);
    color: #fff;
    border-radius: 1rem;
}

.application-list {
    padding: .85rem;
    gap: .5rem;
}

.application-list>div {
    background-color: #f7f7f7;
    padding: .85rem;
    border-radius: .5rem;
}

.application-title {
    flex: 1 0 70%
}

.application-title h6 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .85rem;
}

.application-title span {
    font-size: .85rem;
    margin-bottom: 0;
    line-height: 100%;
}

.application-title p {
    font-size: .9rem;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 0;
}

.nk-sidebar .metismenu>li.active>a {
    background-color: var(--primary);
    color: #ffffff !important;
}

.nk-sidebar .metismenu>li.active i,
.nk-sidebar .metismenu>li.active span {
    color: #ffffff !important;
}

.page-login {
    min-height: 100svh;
    background: linear-gradient(to left, var(--primary) 22%, white 22%);
    display: flex;
    align-items: stretch;
}

/* @media screen and (max-width:992px) {
    .page-login {
        background-image: url('../images/mobile-login-bg.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }
} 

.page-login .logo {
    width: 160px;
    position: absolute;
    top: 1rem;
    left: 1rem;
}
    */

.page-login .login-section {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control {
    min-height: 48px;
    border-radius: .35rem;
}

.form-control:focus {
    border-color: var(--accent);
}

@media screen and (max-width:992px) {
    .page-login {
        background-image: url('../images/login-visual.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;

        justify-content: center;
    }

    .login-container {
        background: rgba(255, 255, 255, .75);
        backdrop-filter: blur(.35rem);
        padding: 2rem;
        border-radius: .5rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

.scroll-nowrap {
    white-space: nowrap;
}

.dataTable thead th {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    background: var(--secondary);
}


.dataTable tbody td {
    background: #ffffff;
}

main.page-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    --accent: #f7a6c2;
    /* soft pink */
    --accent-2: #ffd9e6;
    /* pale pink */
    --muted: #6b6b6b;
    --card-bg: rgba(255, 255, 255, 0.95);
}

.login-wrapper {
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    background: linear-gradient(135deg, rgba(255, 245, 248, 1) 0%, rgba(255, 255, 255, 1) 100%)
}

.login-visual {
    flex: 1;
    background-image: linear-gradient(135deg, rgba(247, 166, 194, 0.12), rgba(255, 217, 230, 0.06)), url('../images/login-visual.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px
}

.login-visual .overlay {
    max-width: 420px;
    background-color: rgba(255, 255, 255, .5);
    padding: 24px 32px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 13px
}

.hero-title {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -.75px;
    color: #555353;
    margin: 12px 0 8px
}

.hero-sub {
    /* color: rgba(255, 255, 255, .75); */
    color: var(--muted);
    line-height: 1.4
}

.auth-card {
    flex: 0 0 420px;
    padding: 36px;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 16px
}

.auth-card .logo {
    position: static;
    height: 64px;
    object-fit: contain;
    margin-bottom: 6px
}

.auth-card h2 {
    margin: 6px 0 6px;
    font-weight: 700;
    color: #333
}

.form-control {
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #ced4da
}

.form-group label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    display: block
}

.btn-primary {
    /* background: var(--accent); */
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.muted-link {
    color: var(--muted);
    font-size: 14px
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px
}

.small-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px
}

@media(max-width:900px) {
    .login-wrapper {
        flex-direction: column
    }

    .auth-card {
        width: 100%;
        padding: 28px
    }

    .login-visual {
        display: none
    }
}

/* subtle input focus */
.form-control:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(247, 166, 194, 0.12);
    border-color: var(--accent)
}

/* Force Select2 single select to look like Bootstrap 5 .form-control */
.select2-container--default .select2-selection--single {
    height: 48px !important;              /* match input height */
    border: 1px solid #ced4da !important; /* Bootstrap border */
    border-radius: 10px !important;   /* Bootstrap rounding */
    padding: 12px 14px !important;   /* same as .form-control */
    font-size: 0.875rem !important;       /* match input font-size */
    line-height: 1.5 !important;          /* keep text centered */
    background-color: #fff !important;    /* same as input */
}

/* Align rendered text inside */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 0 !important;
    line-height: 1.5 !important;
    font-size: 0.875rem !important;
    color: #212529 !important;           /* Bootstrap text color */
}

/* Align dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0.5rem !important;            /* align arrow like input padding */
}