:root {
    --teal-color: rgb(13 148 136);
    --brand-orange : #f37022;
    --brand-green: #006f45;
    --shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --dark-color: #212427;
    --light-teal : rgb(204, 251, 241);
}


body {
    overflow: auto;
    height: 100vh;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    color: var(--dark-color);
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
}

aside {
    flex: 1 0 10%;
}

.wrapper {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.circle {
    width: 450px;
    height: 450px;
    background: linear-gradient(to bottom, #4e8555 40%, #058a2665 50%);
    filter: blur(120px);
}

/* new */

.flex {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

.sidebar {
	position:relative;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 30px 0 30px 30px;
    height: 100vh; /* This gets changed via JS*/
    box-shadow: var(--shadow);

}

.sidebar li {
    padding: 10px 20px;
}

.sidebar-collapse {
    cursor: pointer;
}

.sidebar-collapsed :is(span, a){
    display: none !important;
}

.sidebar-collapsed .sidebar-collapse {
    justify-content: flex-start;
}

main,
.search_wrapper,
.upload_wrapper {
    flex-basis: 70%;
    padding: 30px;
    box-shadow: var(--shadow);
}

.search_wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

main {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    box-shadow: none;
}

.upload_wrapper,
.search_wrapper {
    margin: 30px;
    border-radius: var(--border-radius);
    background-color:  rgb(240 ,253, 250 );
}

.search_form {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.search_form input[type="submit"] {
    width: 15%;
}

.form_wrapper {
    width: 100%;
    margin: 30px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form_wrapper table {
    width: 100%;
    border: none;
}

.form_wrapper :is(input,textarea, select) {
    width: 80%;
    font-weight: 600;
    padding: 10px;
}

.form_wrapper td {
    border: none;
}

.full_w_td {
    width: 100%;
    text-align: center;
}

.table_wrapper {
    height: 500px;
    overflow-y: scroll;
    padding: 10px;
    max-width: 100%;
    overflow-x: scroll;
}

.sidebar_items {
    width: 100%;
}

.sidebar_items a {
    display: inline-block;
    width: 100%;
}

.sidebar_items li.active {
    font-weight: 600;
    border: 2px solid #fff;
    border-radius: 10px;
}

.sidebar_items li:hover {
    padding-left: 30px;
}

.sidebar_items li {
    text-align: left;
    justify-content: flex-start;
    align-items: center;
    transition: all .2s ease-in;
}

.sidebar_items > li  span {
    margin: 0 0.75rem;
}

.upload_form {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items:center;
}

#importFrm input[type="submit"]{
    width: 10%;
}

.form_wrapper input[type="submit"] {
    width: 20%;
}

.search_form input[type="text"] {
    width: 300px;
}

.content_wrapper {
    flex-direction: column;
    width: fit-content;
    max-width:100%;
}

.action_wrapper {
    padding: 20px;
    text-align: right;
    width:  100%;
}

.adm_error,
.adm_sucess {
    background-color: peachpuff;
    font-size: 0.8em;
    display: inline-block;
    padding: 5px;
    max-width: 205px;
}

.adm_sucess {
    background-color: var(--light-teal);
}

.burger-menu {
    display: none;
}

table, 

td,
th {

    border: 1px solid #eee;

}

th {

    background-color: #134e4a;

}

#search_results_tbl :is(td,th) {  
    padding: 10px;
    white-space: pre;
}

#search_results_tbl tr:nth-of-type(2n+1){
    background-color: #fff;
}

#search_results_tbl {
    font-size: 0.8em;
}

.main_wrapper {
    margin: 0 auto;
    width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    color: var(--brand-green);
}

table, 
td,
th {
    border: 1px solid #eee;
    border-collapse: collapse;
}

thead {
    background-color: #eee;
}

/* login window - added by hasintha */
.nkar_login__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 90vh;
    background-image: url('img/bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.nkar_login__form_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 10px 2px rgb(0 0 0 / 10%);
    padding: 30px;
    background-color: #fff;
    border-radius: var(--border-radius);
}

.nkar_login__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nkar_login__field_container {
    display: flex;
    flex-direction: column;
}

.nkar_login__label {
    font-size: 0.8em;
    margin-bottom: 5px;
}

.nkar_login__field {
    padding: 5px 10px;
    border-radius: 0;
    border: 2px solid #eee;
    box-shadow: none;
    font-size: 0.8em;
}

.nkar_login__button {
    background-color: var(--brand-orange);
    padding: 5px 10px;
    text-transform: uppercase;
    width: 100% !important;
    cursor: pointer;
}

.nkar_login__button:hover {
    background-color: var(--teal-color);
    color: #fff;
}

.nkar_logo {
    width: 150px;
}

.nkar_login__heading {
    font-size: 2em;
    margin-bottom: 30px;
}

/* Show hide password icons */
.nkar_login__form .input-group-text {
    position: absolute;
    height: 33px;
    width:33px;
    right: 0;
    margin-top: 4px;
    margin-right: 5px;
    line-height: 1.5;
    text-align: center;
}

.input_wrapper {
    position: relative;
}

#loader {
    width: 100%;
    visibility: hidden;
}

#hide_eye {
    display: none;
}

#username-availability-status {
    font-size: 0.8em;  
}

#loader img {
    max-width: 25%;
    height: auto;
    margin: 0 auto;
    display: block;
}


/* Country Select */
.select2 {
    width: 80% !important;
}

.select2-dropdown,
.select2-selection__rendered {
    background-color: var(--teal-color);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.select2-selection__arrow b {
    border-top-color: #fff !important;
}

.select2-search__field {
    color: var(--dark-color);
    height: 42px;
}

.select2-results__option {
    padding: 10px;
}

.select2-selection--single,
.select2-selection__rendered,
.select2-selection__arrow {
    height: 41px !important;
    line-height: 41px !important;
}

.select2-selection--single {
    border-radius: 0.5rem !important;
}

/* End country select */


/* File input styling */
input[type=file]::file-selector-button {
    background-color: #fff;
    color: var(--dark-color);
    border: 1px solid rgb(45, 212, 191);
    padding: 10px 15px;
    margin-right: 20px;
    transition: .5s;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
  }
  
  input[type=file]::file-selector-button:hover {
    background-color: var(--teal-color);
    color: #fff;
  }

  /* Icons */
  svg {
    width: 22px;
    height: 22px;
    display: inline-block !important;
    fill: var(--teal-color);
  }

  .sidebar svg {
    fill: #fff;
  }

  li.sidebar-collapse {
    justify-content: flex-end;
  }

  .action_wrapper svg {
    margin: 0 0 3px 5px;
  }

  input[type=submit] {
    cursor:pointer;
  }

  /* Responsive */

@media(max-width: 768px) {

    body {
        font-size: 0.8em;
    }

    .sidebar {
        height: fit-content !important;
        width: 80%;
        margin-bottom: 0;
        position: absolute;        
    }

    ul.sidebar_items {
        display: none;
        flex-direction: column;
        font-size: 0.8em;
        
    }

    ul.sidebar_items > li {
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: row;        
    }

    .sidebar-collapse {
        display: none !important;
    }

    .burger-menu {
        display: block;
        cursor: pointer;
    }

    .burger-menu > svg {
        width: 64px;
        height: 64px;
        fill: #fff;
    }

    .flex ,
    .upload_form {
        flex-direction: column;
    }

    .main {
        max-width: 100%;
    }

    .form_wrapper ,
    .search_wrapper,
    .upload_wrapper {
        width: 80% !important;
        padding: 5px !important;
        margin-top: 150px;
    }

    .form_wrapper tr ,
    .search_form {
        display: flex;
        flex-direction: column;
    }

    .form_wrapper :is(input,textarea, select) {
        width: 100%;
    }

    input[type=submit] {
        width: 100% !important;
        margin: 20px 0 20px 0;
    }
    
    .search_form input[type="text"] {
        width: 100%;
    }

    .content_wrapper {
        width: 100%;
    }

    .table_wrapper {
        overflow: scroll;
        max-width: 100%;
    }

    .select2 {
        width: 100% !important;
    }

}