:root { --asideWidth: 280px; --headerHeight: 60px; --navyblue: #264e75; /*#40586d*/ --lightblue: #dbe1eb; --ultralightblue: #e6f0ff; /*#f5f6f9;*/ --borderRadius: 0.8rem; }

/* .datatable { background: url('/modules/_global/images/background.jpg') no-repeat; background-size: cover; } */

.btn { border-radius: 22px; }
input[type="text"], input[type="password"], input[type="number"], textarea, select, .select2-container--default .select2-selection--single[aria-expanded="false"] { border-radius: var(--borderRadius) !important; }
.select2-container--default .select2-selection--single[aria-expanded="true"] { border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; }
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus, .select2-selection--single[aria-expanded="true"], .select2-dropdown { box-shadow: 0 0 0 0.25rem var(--navyblue); }


[data-theme="semidark"] .autocomplete-container { box-shadow: 0 0 0 0.25rem var(--navyblue); }


[data-theme="semidark"] aside { background: linear-gradient(to bottom, #1c3b59, #171a1c); }
[data-theme="semidark"] aside .head { background: var(--navyblue); }
[data-theme="semidark"] aside .head h1 { color: white; }
[data-theme="semidark"] aside .head p { color: #afafaf; }
[data-theme="semidark"] aside .head button.close:before { background: white; }
[data-theme="semidark"] aside nav a { color: #d3d3d3; }
[data-theme="semidark"] aside nav a:hover { text-decoration: none; color: white; background: rgba(0,0,0,.2); }
[data-theme="semidark"] aside nav a.selected { color: white; background: var(--navyblue); }
[data-theme="semidark"] aside nav a[data-icon]:before { background: rgba(233,236,239,.5); }
[data-theme="semidark"] aside nav a[data-icon]:hover:before { background: rgba(233,236,239,.95); }
[data-theme="semidark"] aside nav ul.sidebar-dropdown:before { background: #595959; }
[data-theme="semidark"] main { background: #f4f6f9; }
[data-theme="semidark"] main header { background: white; }
[data-theme="semidark"] main header .hamburger { background: #171a1c; }
[data-theme="semidark"] main .head-line { background: white; }
[data-theme="semidark"] .card { background: #f4f6f9; box-shadow: 0 0 0.4rem rgba(4, 9, 20, 0.1); background: white; }
[data-theme="semidark"] .card > b { background-color: black; }
[data-theme="semidark"] main .head-line h2 { color: #222; }
[data-theme="semidark"] input:disabled { background: var(--ultralightblue); }


@media (max-width: 1024px) {
[data-theme="semidark"] main header { box-shadow: initial; }
}

.layout { display: flex; align-items: stretch; min-height: 100dvh; overflow-x: hidden; }
aside { z-index: 3; min-width: var(--asideWidth); transition: all 0.34s ease-in-out; }
aside.collapsed { margin-left: calc(-1 * var(--asideWidth)); }
aside .head { display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: 16px; padding: 0 1.5rem; height: var(--headerHeight); position: relative; }
aside .head img { transform: translateY(-0.15rem); }
aside .head h1 { font-size: 1.1rem; font-weight: 500; }
aside .head p { font-size: 0.8rem; margin: 0; font-weight: 300; }
aside .head button.close { display: none; position: absolute; top: 50%; transform: translateY(-50%); right: 6px; opacity: 1; cursor: pointer; }
aside nav { position: sticky; top: 0; padding: 0px 10px; max-height: calc(100dvh - var(--headerHeight)); }
aside nav ul { list-style: none; padding: 0; }
aside nav a { position: relative; padding: .9rem 1.525rem; display: flex; align-items: center; font-size: 0.8em; border-radius: var(--borderRadius); }
aside nav a:hover { text-decoration: none; }
aside nav a.selected { text-decoration: none; }
aside nav a[data-toggle="collapse"]:after { content: " "; border: solid; border-width: 0 .15rem .15rem 0; display: inline-block; padding: 0.16rem; transform: rotate(45deg) translateY(-50%); position: absolute; top: 40%; right: 1.525rem; transition: all .2s ease-out; }
aside nav a[aria-expanded=true]:after { transform: rotate(-135deg); top: 50%; right: 1.3rem; }
aside nav a[data-icon]:before { -webkit-mask-size: cover; display: inline-block; width: 18px; height: 18px; content: " "; margin-right: .95rem; transition: 75ms ease-in-out; }
aside nav a[data-icon="package"]:before { -webkit-mask-image: url("/libraries/Feather/package.svg"); }
aside nav a[data-icon="users"]:before { -webkit-mask-image: url("/libraries/Feather/users.svg"); }
aside nav a[data-icon="shopping-cart"]:before { -webkit-mask-image: url("/libraries/Feather/shopping-cart.svg"); }
aside nav a[data-icon="layers"]:before { -webkit-mask-image: url("/libraries/Feather/layers.svg"); }
aside nav a[data-icon="dollar-sign"]:before { -webkit-mask-image: url("/libraries/Feather/dollar-sign.svg"); }
aside nav a[data-icon="pie-chart"]:before { -webkit-mask-image: url("/libraries/Feather/pie-chart.svg"); }
aside nav a[data-icon="settings"]:before { -webkit-mask-image: url("/libraries/Feather/settings.svg"); }
aside nav ul.sidebar-dropdown { display: none; padding: 0; margin: 0; list-style-type: none; position: relative; }
aside nav ul.sidebar-dropdown:before { content: ''; height: 100%; width: 3px; position: absolute; left: 1.96rem; top: 0; border-radius: 15px; opacity: 0.7; }
aside nav ul.sidebar-dropdown.show { display: block; }
aside nav ul.sidebar-dropdown a { padding: .9rem 1.525rem .9rem 1.2rem; margin-left: 2.4rem; }
main { width: 100%; flex-grow: 1; }
main header { position: sticky; top: 0; left: var(--asideWidth); height: var(--headerHeight); z-index: 4; display: flex; align-items: center; justify-content: flex-start; }
main header .hamburger { -webkit-mask-image: url("/libraries/Feather/menu.svg"); -webkit-mask-size: 32px; -webkit-mask-position: center center; -webkit-mask-repeat: no-repeat; display: inline-block; width: 80px; height: 100%; cursor: pointer; transition: 0.64s; }
main header .dropdown-wrapper.user { margin: 0 0 0 auto; }
main header .dropdown-wrapper.user button { text-align: left; padding: 0 50px 0 10px; min-width: 150px; font-size: 0.8em; background: initial; color: black; border-radius: 0; height: var(--headerHeight); display: flex; align-items: center; justify-content: flex-start; }
main header .dropdown-wrapper.user button:hover { background: var(--lightblue); }
main header .dropdown-wrapper > button:before { content: ""; -webkit-mask-image: url("/libraries/Feather/user.svg"); -webkit-mask-size: 18px; -webkit-mask-position: center center; -webkit-mask-repeat: no-repeat; background: black; display: inline-flex; width: 32px; height: 20px; }
/*main header .dropdown-wrapper > button:after { border-top-color: white; }*/
main header .dropdown-wrapper.user .dropdown-menu { right: 0; left: initial; font-size: 0.8em; }
main .main-wrapper { overflow-y: auto; min-height: 100dvh - var(--headerHeight); max-height: calc(100dvh - var(--headerHeight)); position: relative; }
main .head-line { display: flex; align-items: center; justify-content: flex-start; height: 80px; padding: 0 20px; z-index: 3; position: relative; }
main .head-line h2 { font-size: 1rem; }
main .head-line button { margin: 0 0px 0 auto; }
main .main-contents { padding: 20px; display: flex; align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 20px; }
main .main-contents .row-container { width: calc(100% + 10px); margin-left: -5px; }
main .main-contents .row { align-items: flex-start; }
main .main-contents .card:not(:nth-child(1)) { margin-top: 10px; }
main .main-contents h2 { font-size: 16px; margin-bottom: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: flex-start; }
.btn.back:before { content: ""; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 14px; margin: 0 4px 0 -8px; background: white; -webkit-mask-image: url("/libraries/Feather/chevron-left.svg"); -webkit-mask-size: cover; -webkit-mask-position: center center; -webkit-mask-repeat: no-repeat; }
.btn.add:before { content: ""; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 14px; margin: 0 4px 0 -8px; background: white; -webkit-mask-image: url("/libraries/Feather/plus.svg"); -webkit-mask-size: cover; -webkit-mask-position: center center; -webkit-mask-repeat: no-repeat; }
.btn.update:before { content: ""; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 18px; margin: 0 4px 0 -8px; background: white; -webkit-mask-image: url("/libraries/Feather/save.svg"); -webkit-mask-size: 20px 18px; -webkit-mask-position: center center; -webkit-mask-repeat: no-repeat; }
.btn.upload:before { content: ""; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 14px; margin: 0 6px 0 -8px; background: white; -webkit-mask-image: url("/libraries/Feather/upload.svg"); -webkit-mask-size: 20px 18px; -webkit-mask-position: center center; -webkit-mask-repeat: no-repeat; }

.card { width: 100%; height: 100%; padding: 30px; border-radius: var(--borderRadius); border: 2px solid transparent; transition: all .4s ease; position: relative; }
.card > b { opacity: 0.2; z-index: 3; transition: 0.25s; position: absolute; top: 0px; right: 0px; padding: 30px; cursor: pointer; -webkit-mask-image: url("/libraries/Feather/maximize.svg"); -webkit-mask-size: 20px; -webkit-mask-position: center center; -webkit-mask-repeat: no-repeat; transition: 0.2s ease-in-out; }
.card > b.minimize { -webkit-mask-image: url("/libraries/Feather/minimize.svg"); }
.card:hover > b { opacity: 0.5; }
.card > b:hover { opacity: 1; transform: scale(1.3); }
.card > b:active { transform: scale(0.7); }

.loader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(28,27,27,0.3); z-index: 999999; }
.loader .box { position: absolute; top: calc(50% - 64px); left: calc(50% - 64px); width: 128px; height: 128px; border-radius: 50%; perspective: 800px; }
.loader .box .i { position: absolute; box-sizing: border-box; width: 100%; height: 100%; border-radius: 50%; }
.loader .box .i:nth-child(1) { left: 0%; top: 0%; animation: rotate-one 1s linear infinite; border-bottom: 8px solid #EFEFFA; border-color: var(--navyblue); }
.loader .box .i:nth-child(2) { right: 0%; top: 0%; animation: rotate-two 1s linear infinite; border-right: 8px solid #EFEFFA; border-color: var(--lightblue); }
.loader .box .i:nth-child(3) { right: 0%; bottom: 0%; animation: rotate-three 1s linear infinite; border-top: 8px solid #EFEFFA; border-color: var(--ultralightblue); }

.percentage-box { position: fixed; background: rgba(0,0,0,0.3); top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 9999999999; }
.percentage-box .circular-chart { display: block; margin: 10px auto; max-width: 80%; max-height: 300px; filter: drop-shadow(0 0 20px var(--lightblue)); }
.percentage-box .circle-bg { fill: none; stroke: #534d9f; stroke-width: 0.8; }
.percentage-box .circle { fill: var(--navyblue); stroke-width: 2.8; stroke-linecap: round; animation: progress 1s ease-out forwards; stroke: var(--lightblue); }
.percentage-box .percentage { fill: #FFF; font-family: sans-serif; font-size: 0.4em; text-anchor: middle; }


@keyframes rotate-one {
  0% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg); }
  100% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg); }
}

@keyframes rotate-two {
  0% { transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg); }
  100% { transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg); }
}

@keyframes rotate-three {
  0% { transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg); }
  100% { transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg); }
}

@media (max-width: 1440px) {
body { font-size: 0.95rem; }
.card { padding: 20px; }
}

@media (max-width: 1280px) {
:root { --headerHeight: 66px; }
aside { position: absolute; top: 0; left: 0; height: 100%; z-index: 5; width: calc(100% - 30px); min-width: initial; max-width: 340px; margin-left: -120%; transition: all 0.2 ease-in-out; }
aside.collapsed { margin-left: 0%; box-shadow: 10px 0px 35px rgba(0,0,0,0.6); }
aside .head button.close { display: block; }
aside .head h1 { font-size: 1.3rem; }
aside .head p { font-size: 0.9rem; }
aside nav a { padding: 1.2rem 1.525rem; font-size: 0.9em; }
aside nav ul.sidebar-dropdown a { padding: 1.2rem 1.525rem 1.2rem 1.2rem; }
main .main-contents { padding: 16px; }
.card { padding: 16px; }
}
