﻿html {
    font-size: 14px;
    height: 100%;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    height: 100%;
}
.h2, h2 {
    font-size: 2rem;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    font-family: Lato, system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

a {
    color: #0069d9;
    text-decoration: none;
    background-color: transparent;
}
p a{
	text-decoration: underline;
}
input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
main.main_container { height: 100%; }
#main-container{
    background-color: #fff;
}
#main-container.nbj {
    background-color: #ffe;
}
.form-group {
    margin-bottom: 1rem;
}
.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.ui.fluid.dropdown {
    display: block;
    width: 100%;
    min-width: 0;
}


.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
.instruction{
    padding: .5rem;;
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #0069d9;
}
input[type=checkbox], input[type=radio] {
    width:auto;
}
.btn:not(:disabled):not(.disabled) {
    cursor: pointer;
    color:#fff;
}
.mr-2, .mx-2 {
    margin-right: .5rem !important;
}
.mr-3, .mx-3 {
    margin-right: 1rem !important;
}
.mt-4, .my-4 {
    margin-top: 1.5rem !important;
}
.font-weight-bold {
    font-weight: 700 !important;
}
.text-center {
    text-align: center !important;
}

/* styles to replace fontawesome start */
/* Base button styles */
.icon-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 0.5em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  min-width:32px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#closeDialog{padding-top:0;padding-right:0;}
.fade:not(.show) {
    opacity: 0;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3000;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}
.fade {
    transition: opacity .15s linear;
}
/* styles to replace fontawesome end */
/* TABS */
/* 
.nav-tabs {
    list-style: none;
    display: flex;
    padding: 0;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #dee2e6;
}
.nav-tabs li {
  cursor: pointer;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}
.hideMe {
  display: none;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}
.nav-tabs .nav-link {
    margin-bottom: -1px;
    background-color: transparent;
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}
.nav-link {
    display: block;
    padding: .5rem 1rem;
}
a.nav-link {
    color: #0462bf;
}
.tab-content>.tab-pane {
    display: none;
}
.tab-content>.active {
    display: block;
} */
/* TABS End */
/* TABS */

.nav-tabs, .ui-tabs-nav {
    list-style: none;
    display: flex;
    padding: 0;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #dee2e6;
}
.nav-tabs li, .ui-tabs-nav li {
  cursor: pointer;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active,
.ui-tabs-nav .ui-state-active .nav-link a.ui-tabs-anchor , .ui-tabs-nav .ui-state-active a.ui-tabs-anchor {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}
.hideMe {
  display: none;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active,
.ui-tabs-nav .ui-tabs-anchor.show .ui-tabs-anchor, .ui-tabs-nav .ui-tabs-anchor.active  {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}
.nav-tabs .nav-link,
.ui-tabs-tab .ui-tabs-anchor  {
    margin-bottom: -1px;
    background-color: transparent;
    border: 1px solid transparent;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}
.nav-link,
.ui-tabs-anchor  {
    display: block;
    padding: .5rem 1rem;
}
a.nav-link,
li.ui-tabs-tab a.ui-tabs-anchor  {
    color: #0462bf;
}
.tab-content>.tab-pane {
    display: none;
}
.tab-content>.active {
    display: block;
}
.selectDisplay{
    padding: .25rem;
    color:#007bff;
}

/* TABS End */
/* Semantic.css */

.justify-content-between {
    -ms-flex-pack: justify!important;
    justify-content: space-between !important;
}
.d-flex {
    display: -ms-flexbox!important;
    display: flex !important;
}
#dialogHeader{
    font-size:1.5rem;
}
p.selectDisplay span{cursor: pointer;}


/* multiple select list */

/* Container for the select element */
.combobox {
  width: auto;
  /*  margin: 0 auto; */
 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.combobox select[multiple].dropdown  {
  width: 80%;
  height: 40px; /* Makes it look like a single-select */
    appearance: none; /* Removes native arrow */
}

.combobox .arrow {
  position: absolute;
  top: 0;
  right: 20px;
  padding: 10px;
  pointer-events: none;
  font-size: 34px;
  color: #555;
  cursor:pointer;
}

/* Multi-select styling */
/* Multi-select Dropdown Styles */

.multiselect-wrapper {
  position: relative;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* The trigger that looks like a normal select */
.multiselect-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  min-height: 38px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.multiselect-trigger:hover {
  border-color: #aaa;
}

.multiselect-wrapper.open .multiselect-trigger {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.multiselect-placeholder {
  color: #666;
  flex: 1;
}

.multiselect-arrow {
  font-size: 12px;
  color: #666;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.multiselect-wrapper.open .multiselect-arrow {
  transform: rotate(180deg);
}
/* Flip dropdown upward when there isn't room below */
.multiselect-wrapper.dropup .multiselect-dropdown {
  top: auto;
  bottom: 100%;
  border-top: 1px solid #007bff;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

/* Swap which corners get squared off when flipped */
.multiselect-wrapper.dropup.open .multiselect-trigger {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* The dropdown list */
.multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #007bff;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.multiselect-wrapper.open .multiselect-dropdown {
  max-height: 250px;
  overflow-y: auto;
  opacity: 1;
}

/* Individual options in the dropdown */
.multiselect-option {
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
}

.multiselect-option::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 3px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.multiselect-option:hover {
  background-color: #f5f5f5;
}

.multiselect-option.selected {
  background-color: #e8f4ff;
}

.multiselect-option.selected::before {
  background-color: #007bff;
  border-color: #007bff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tags container showing selected items */
.multiselect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 0 0;
}

.multiselect-tags:empty {
  padding: 0;
}

/* Individual tags */
.multiselect-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background-color: #e8f4ff;
  color: #0069d9;
  border-radius: 4px;
  font-size: 0.875rem;
  gap: 6px;
}

.multiselect-tag-remove {
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #0069d9;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.multiselect-tag-remove:hover {
  opacity: 1;
}

/* Scrollbar styling for the dropdown */
.multiselect-dropdown::-webkit-scrollbar {
  width: 6px;
}

.multiselect-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.multiselect-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.multiselect-dropdown::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.multiselect-error {
  	color: #a00;
	font-weight: 500;
  	margin-top: 0px;
}
.form-control:disabled, .form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
input:required, select.dropdown:required, textarea:required {
    border: 1px solid red;
}
body>div.is_test, body>main div.is_test {
    background-color: #eee;
    border: thick #000 dashed;
}
@media (min-width: 576px) {
    .col-sm-3 {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-sm-9 {
        -ms-flex: 0 0 75%;
        flex: 0 0 75%;
        max-width: 75%;
    }
    .col-sm {
        -ms-flex-preferred-size: 0;
        flex-basis: 0;
        -ms-flex-positive: 1;
        flex-grow: 1;
        max-width: 100%;
    }
}