.bg-none{
    background:transparent;
}

.border-none{
    border:none;
}

.bg-indigo{
    background:indigo;
}

.bg-purple{
    background:purple;
}

.bg-blue{
    background:blue;
}

.bg-orange{
    background:#e80;
}

.bg-gray{
    background:#aaa;
}

.bg-light-gray{
    background:#eee;
}

.bg-gradient{
    background-image: linear-gradient(to bottom, #dddddd, #ffffff);
}

.border-purple{
    border-color:#a0a !important;
}


.indigo{
    color:indigo;
}

.purple{
    color:purple;
}

.blue{
    color:blue;
}

.orange{
    color:#e80;
}

.light-gray{
    color:#eee;
}

.gray{
    color:#aaa;
}


.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #007bff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #007bff;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Small sliders */
.switch.small,
.small .slider {
    height: 18px;
    width:36px;
    margin:0;
    padding:0;
}

.small .slider:before {
    height:16px;
    width:16px;
    left: 1px;
    bottom: 1px;
}

.small input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/* Directional Slider */

.slider.dir {
    background-color: #007bff;
    margin:5px 0;
}

.slider.dir:before {
    width: 0;
    height: 0;
    bottom:-10px;
    border-style: solid;
    border-width: 22px 28px 22px 0;
    border-color: transparent #007bff transparent transparent;
    left:-1px;
}

input:checked + .slider.dir:before {
    border-width: 22px 0 22px 28px;
    border-color: transparent transparent transparent #007bff;
    -webkit-transform: translateX(34px);
    -ms-transform: translateX(34px);
    transform: translateX(34px);
}

.slider.left-dir,
.slider.right-dir {
    margin:5px 0;
}

.slider.left-dir:before,
.slider.right-dir:before  {
    width: 0;
    height: 0;
    bottom:-10px;
    border-style: solid;
}

input:checked + .slider.left-dir:before,
input:checked + .slider.right-dir:before {
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
}

.slider.left-dir:before{
    border-width: 22px 28px 22px 0;
    border-color: transparent #ccc transparent transparent;
    left:-1px;
}

input:checked + .slider.left-dir:before{
    border-color: transparent #007bff transparent transparent;
}


.slider.right-dir:before{
    border-width: 22px 0 22px 28px;
    border-color: transparent transparent transparent #ccc;
    left:33px;
}

input:checked + .slider.right-dir:before{
    border-color: transparent transparent transparent #007bff ;
}

.btn-group-toggle label{
    background:#999;
}

.btn-group-toggle label.active{
    background:#007bff !important;
}

input[type=number]{
    padding-right:0px;
    text-align:center;
}


input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
   display: none;
}


.pwd-toggle.input-group > .form-control{
    width:175px;
}

.w-group.date.input-group > .form-control{
    width:180px;
}


.date.input-group > .form-control{
    width:140px;
}

.w-group.form-control{
    width:218px !important;
}

.w-check.form-control{
    width:40px !important;
}

.main-menu .card-body {
    min-height:100px;
    font-size: 1.5rem;
}

.card-body-icon{
  position: absolute;
  z-index: 0;
  top: -0.7rem;
  right: 1rem;
  opacity: 0.3;
  font-size: 6rem;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

.main-menu a:hover {
    text-decoration:none;
}

.font-small{
    font-size:0.8rem;
}

#main-alert{
    top: 50%;
    position: fixed;
    z-index: 9999;
}

.none{
    display:none;
}

/* The container */
.bigcheck {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  height: 29px;
  width: 29px;
  padding:0;
  margin:0;
}

/* Hide the browser's default checkbox */
.bigcheck input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 29px;;
  width: 0px;
}

/* Create a custom checkbox */
.bigcheck span {
  position: absolute;
  top: 1px;
  left: 0;
  height: 29px;
  width: 29px;
  background-color: #fff;
  border: 2px solid #ddd;
}


/* When the checkbox is checked, add a blue background */
.bigcheck input:checked ~ span {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.bigcheck span:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.bigcheck input:checked ~ span:after {
  display: block;
}

/* Style the checkmark/indicator */
.bigcheck span:after {
  left: 10px;
  top: 4px;
  width: 7px;
  height: 14px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.exact-tick{
    color:#2196F3;
    margin-top:1px;
    border: 1px solid #2196F3;
    padding:2px;
}

input.row-select{
    height:18px;
    width:18px;
    margin:4px 0 0 4px;
}

.table td{
    vertical-align:middle !important;
}

.alert-list{
    width:130px;
}

.list-filter .btn{
    font-size:0.8rem !important;
}

.pointer{
    cursor:pointer;
}


.form-label-group input:not(-webkit-autofill) ~ label,
.form-label-group input:not(:placeholder-shown) ~ label {
  padding-top: calc(var(--input-padding-y) / 3);
  padding-bottom: calc(var(--input-padding-y) / 3);
  font-size: 12px;
  color: #777;
}


.form-row label{
    margin-top:5px;
}

/* Help Chat Styles */
#help-btn {
    width: 40px;
    height: 40px;
    background: purple;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

#help-btn:hover {
    opacity: 0.8;
}

#logout-btn {
    width: 40px;
    height: 40px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

#logout-btn:hover {
    opacity: 0.8;
}

.help-chat-popup {
    position: fixed;
    top: 50px;
    right: 15px;
    width: 40%;
    height: calc(100vh - 70px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 100001;
    display: flex;
    flex-direction: column;
}

.help-chat-header {
    background: purple;
    color: white;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.help-chat-header .close-btn {
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.help-chat-header .close-btn:hover {
    opacity: 0.8;
}

.help-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f5f5f5;
}

.help-message {
    margin-bottom: 15px;
    max-width: 97%;
}

.help-message.user-message {
    margin-left: auto;
    text-align: right;
}

.help-message .message-content {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.help-message.user-message .message-content {
    background: purple;
    color: white;
    border-bottom-right-radius: 5px;
}

.help-message.bot-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-bottom-left-radius: 5px;
    text-align: left;
}

.help-message.bot-message .message-content img {
    max-width: 100%;
    margin: 10px 0;
    border-radius: 4px;
}

.help-message .message-sources {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.help-section-content {
    margin-bottom: 10px;
}

.help-section-header {
    color: purple;
    margin-bottom: 10px;
    font-size: 1rem;
}

.help-section-body {
    font-size: 0.85rem;
    line-height: 1.5;
}

.help-section-body p {
    margin: 8px 0;
}

.help-section-body img {
    width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
}

.help-section-body h1, .help-section-body h2 {
    display: none;
}

.help-chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
    border-radius: 0 0 8px 8px;
}

.help-chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
}

.help-chat-input input:focus {
    border-color: rgba(128, 0, 128, 0.8);
}

.help-chat-input button {
    background: purple;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
}

.help-chat-input button:hover {
    background: rgba(128, 0, 128, 0.8);
}

.help-chat-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#help-goto-top {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: purple;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    line-height: 36px;
    font-size: 1rem;
}

#help-goto-top:hover {
    opacity: 0.8;
}

#help-warmup {
    position: absolute;
    top: 50px;
    right: 10px;
    font-size: 0.75em;
    color: #888;
    animation: helpWarmup 1s infinite;
}

@keyframes helpWarmup {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.help-loading {
    display: inline-block;
    text-align: center;
}

.help-loading:after {
    content: '...';
    animation: helpDots 1.5s infinite;
}

@keyframes helpDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}