:root {
    --primary-color: #000;
    --secondary-color: #6d4aff;
    --color-variant_1: #86b8f9;
    --color-variant_2: #dee9f8;
    --grey-color: grey;
    --grey-color-2: #626161;
    --primary-color-reverse: #fff;
    --color-success: #0ac989;
    --color-danger: #f24242;

    --bg-1: #fff;
    --bg-2: #f5f5f5;
    --bg-3: #f8f7ff;

    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 20px;
    --text-xl: 24px;

    --radius: 4px;
    --radius-2: 6px;
    --radius-main: 8px;
    --radius-3: 12px;
    --radius-4: 20px;
}
/* --------------------------------------------- */

body, html {
    height: 100%;
    margin: 0px !important;
    padding: 0px !important;
    scroll-behavior: smooth;
}

/* Background colors */
.bg-1 { background: var(--bg-1) !important; }
.bg-2 { background: var(--bg-2) !important; }
.bg-3 { background: var(--bg-3) !important; }

.db_card_1 { background: #e6dafe; }
.test { background: #72dfb5; } /* remove */
.db_card_2 { background: #dbede6; }

.bg-v_1 { background: var(--color-variant_1) !important; }
.bg-v_2 { background: var(--color-variant_2) !important; }
.bg-secondary { background: var(--secondary-color) !important; }
.plan-bg{ background: linear-gradient(to bottom, rgba(191, 188, 250, 0.6), #fff); }

.modal-body {
    background: white;
}
.bg-danger { background: var(--color-danger) !important; }
.blur-bg {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.blur-bg-mini {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* --------------------------- */
/*  Text colors && fonts */
/* --------------------------- */
.primary-color { color: var(--primary-color) !important; }
.primary-color-reverse { color: var(--primary-color-reverse) !important; }
.secondary-color { color: var(--secondary-color) !important; }
.color-v_1 { color: var(--color-variant_1) !important; }
.color-v_2 { color: var(--color-variant_2) !important; }

.grey-color { color: var(--grey-color) !important }
.grey-color-2 { color: var(--grey-color-2) !important }
.color-success { color: var(--color-success) !important; }
.color-danger { color: var(--color-danger) !important; }

.color-white-only {
    color: white !important;
}

p, h1, h2, h3, h4, h5, span, label, small {
    color: var(--primary-color);
}
p {
    font-size: var(--text-sm);
}
.icon-symbol {
    fill: black;
    width: 16px;
    height: 16px;
}

.fill-primary {
    fill: var(--primary-color);
}
.fill-grey {
    fill: var(--grey-color);
}
.fill-secondary {
    fill: var(--secondary-color);
}

a {
    text-decoration: none !important;
    color: var(--primary-color) !important;
    font-size: var(--text-sm);
}
.link-hover:hover {
    background: var(--bg-2);
}

.text-xs { font-size: var(--text-xs) }
.text-sm { font-size: var(--text-sm) }
.text-md { font-size: var(--text-md) }
.text-lg { font-size: var(--text-lg) }
.text-xl { font-size: var(--text-xl) }

.open-sans {
    font-family: 'open sans';
}
.open-sans-2 {
    font-family: 'open sans';
    font-weight: 500;
}
.open-sans-3 {
    font-family: 'open sans';
    font-weight: 700;
}
.anuphan {
    font-family: 'anuphan';
    font-weight: 500;
}
.anuphan-2 {
    font-family: 'anuphan';
    font-weight: 600;
}
.anuphan-3 {
    font-family: 'anuphan';
    font-weight: 700;
}
.pt-sans {
    font-family: "PT Sans", sans-serif;;
    font-weight: 400;
}
.pt-sans-2 {
    font-family: "PT Sans", sans-serif;;
    font-weight: 600;
}
.gabarito {
    font-family: 'gabarito';
    font-weight: 200;
}
.gabarito-2 {
    font-family: 'gabarito';
    font-weight: 500;
}
.gabarito-3 {
    font-family: 'gabarito';
    font-weight: 600;
}
.uppercase {
    text-transform: uppercase !important;
}
.capitalize {
    text-transform: capitalize !important;
}


/* Box Sizing / layout */
.min-h-100 {
    min-height: 100% !important;
}
.min-w-100 {
    min-width: 100% !important;
}
.vh-100 {
    height: 100vh;
}
.vw-100 {
    width: 100vw;
}
.w-fit-content {
    width: fit-content;
}
.h-fit-content {
    height: fit-content;
}

.position-relative {
    position: relative;
}
.position-absolute {
    position: absolute;
}
.radius {
    border-radius: var(--radius);
}
.radius-2 {
    border-radius: var(--radius-2) !important;
}
.radius-3 {
    border-radius: var(--radius-3) !important;
}
.radius-4 {
    border-radius: var(--radius-4) !important;
}
.n-top-1{ position: relative; top: -1px !important; }
.n-top-2{ position: relative; top: -2px !important; }
.n-top-3{ position: relative; top: -3px !important; }

.border-none { border: none !important; }

@media (max-width: 576px) {
    .border-bottom-xs { border-bottom: 1px solid #dee2e6 }
    .border-left-none-xs { border-left: none !important; }
    .border-right-none-xs { border-right: none; }
}

/* cards */
._card {
    background: var(--bg-1);
    border-radius: 4px;
    padding: 30px;
}

.form-card-75{
    width: 75%;
}
.form-card-50{
    width: 50%;
}
@media (max-width: 576px) {
    .form-card-50{
        width: 100%;
    }
    .form-card-75{
        width: 100%;
    }
}


/* inputs */
.form-wrapper {
    position: relative;
    margin: 25px 0px;
}

.form-wrapper input {
    width: 100%;
    border: 1px solid #dee2e6 !important;
    border-radius: var(--radius-main);
    color: #000 !important;
    background: transparent;
    caret-color: black;
    height: 46px;
    padding: 0px 14px;
}

.form-wrapper select{
    width: 100%;
    height: 46px;
    border: 1px solid #dee2e6 !important;
    border-radius: var(--radius-main);
    color: #000 !important;
    background: transparent;
    padding: 0px 14px;
}

.form-wrapper label {
    font-size: var(--text-sm);
    color: var(--primary-color);
}
.form-wrapper input::placeholder {
    font-size: 13px;
    color: var(--grey-color-2);
    font-family: 'open sans';
}

.form-wrapper .placeholder-larger::placeholder {
    font-size: 16px;
}
  
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}
input:focus,
select:focus {
    /* box-shadow: none !important; */
    outline: none !important;
}

.form-wrapper input:focus {
    border: 1px solid var(--secondary-color) !important;
}

/* input icons and text */
.form-wrapper .has-icon {
    padding-right: 20% !important;
    position: relative;
}

.form-wrapper .has-dual-icon {
    padding-right: 30% !important;
    padding-left: 30% !important;
    position: relative;
}

.form-wrapper .input-icon-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    height: 46px;
    width: auto;
    padding: 0px 12px;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 0px 4px 4px 0px;
    cursor: pointer;
}
.input-icon-wrapper-left {
    left: 10px;
    right: auto !important;
}
.input-icon {
    color: var(--primary-color);
    position: relative;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  /* -webkit-text-fill-color: #000; */
  -webkit-box-shadow: none;
  transition: background-color 5000s ease-in-out 0s;
  background-color: none !important;
}

/* Buttons */
button {
    background: var(--secondary-color);
    border: none;
    border-radius: var(--radius-main);
    text-align: center;
    color: #fff;
    width: 100%;
    font-family: 'anuphan';
    font-size: 14px;
    height: 46px;
}

.btn-md {
    height: 50px !important;
}
.btn-lg {
    height: 56px !important;
}

button:focus {
    outline: 0px;
    box-shadow: 0px;
    -webkit-box-shadow: none;
    border: none !important;
}

.btn-grey {
    background: #ecebef !important;
    color: #000;
}

.btn-sec {
    background: black;
    color: white;
}

.btn-sec i {
    columns: white !important;
}

.btn-rounded {
    border-radius: 30px !important;
}

.btn-open {
    background: none;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

/* End buttons */

.page-activity-indicator-wrapper {
    position: fixed;
    z-index: 99999;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
}

.page-activity-indicator-wrapper .inner {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -------------------- */
/*  Side_nav  */
/* -------------------- */
.sidenav {
    background: var(--bg-3);
    height: 100vh;
    z-index: 99 !important;
    left: 0px;
    overflow: auto;
    margin: 0px;
    padding-top: 100px;
    padding-left: 30px;
}

.sidenav .side-link {
    display: flex;
    align-items: center;
    font-size: var(--text-md);
    font-weight: 600;
    padding: 12px;
    border-left: 3px solid #e3e4e5;
    border-radius: 0px 4px 4px 0px;
}

.sidenav .side-link:hover {
    background: #f0f1f2;
}

.sidenav .side-link.active {
    background: white;
    border-left: 3px solid var(--secondary-color);
}
.side-link .side-link-icon {
    fill: var(--grey-color-2);
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.inset-top {
    padding-top: 65px;
}
.bottom-padding {
    padding-bottom: 100px;
}
.pointer {
    cursor: pointer;
}
.border-active {
    border: 1px solid var(--secondary-color)
}
.cs-list-item:hover {
    background: var(--bg-2);
}
.dim-hover-effect:hover {
    opacity: .8;
}

.hover-bg:hover {
    background: #fafafa;
}

/* ---------------------------------- */
/* Tab and tab toggle */
/* ---------------------------------- */
.line-tab-wrapper .tab-toggle{
    background: transparent;
    width: fit-content;
    padding: 12px;
    color: var(--grey-color);
    border-radius: 0;
}
.line-tab-wrapper .tab-toggle.active{
    color: var(--primary-color);
    border-bottom: 2px solid black !important;
    transition: background-color 0.2s ease-in-out;
}
.account-control-panel-overlay {
    background: transparent;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9992;
}
.account-control-panel {
    position: fixed;
    width: 260px;
    right: 20px;
    background: white;
    border-radius: 8px;
    z-index: 9999;
    top: 56px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    display: none;
}
.account-control-panel a:hover {
    background: #f4f4f4;
}

.doc-card {
    width: 200px;
    height: 130px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f6f6f6;
}

.id-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
    border-radius: 4px;
}

.side-bar-mobile {
    position: fixed;
    right: 0;
    left: auto;
    width: 75%;
    height: 100%;
    background: #fff;
    z-index: 999;
    top: 0 !important;
    overflow: auto !important;
    padding-bottom: 30px;
}

.overlayDiv {
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

.menu-bar {
    background: #000;
}
.underline {
    text-decoration: underline !important;
}



/* Media Queries ------------------------------ */

/* Mobile */ 
@media (max-width: 576px) {
    .auth-card-mini {
        width: 100%;
    }
    .table-responsive-sm {
        width: 90vw !important;
        overflow: auto !important;
        /* display: flex !important; */
        flex-wrap: wrap;
    }
    .text-xs-mobile {font-size: var(--text-xs);}
    .text-sm-mobile {font-size: var(--text-sm);}
    .text-md-mobile {font-size: var(--text-md);}
    .px-mobile-0 {
        padding: 0px;
    }
    h1 {
        font-size: 35px;
    }
    .header-nav-mob {
        background: var(--bg-1) !important;
    }
    .sidenav .side-link {
        padding: 16px 12px;
    }
    .sidenav .side-link.active {
        background: #f4f4f4;
    }
}

/* Tablets and small laptops */
@media (min-width: 577px) and (max-width: 1024px) {
    .auth-card-mini {
        width: 50%;
    }
    .header-nav-mob {
        background: var(--bg-1) !important;
    }
    .side-bar-mobile {
        width: 40%;
    }
}
  
/* Desktop and larger screens */
@media (min-width: 1025px) {
    .auth-card-mini {
        width: 80%;
    }
}