﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    /*margin-bottom: 60px;*/
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ui-autocomplete {
    background-color: inherit;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 1px 1px 5px #ced4da;
}

.no-border td {
    border: none !important; /* Removes the border */
}

#grandTotal {
    font-weight: bold; /* Makes the text bold */
}

.right-aligned {
    text-align: right;
}

.footer {
    margin-top: auto;
    background-color: #144272;
    color: white;
    padding: 1rem 0;
}

.navbar-custom {
    background-color: #0A2647 !important;
}

.login-header {
    background-color: #0A2647 !important;
    color: white;
}

.tbl-icon {
    cursor: pointer;
}

.help-index {
    /*width: 250px;*/
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
}

.category-list {
    list-style-type: none;
    padding: 0;
}

    .category-list li {
        margin-bottom: 10px;
    }

.collapsible {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    position: relative;
}

.collapsible:hover {
    background-color: #0056b3;
}

.arrow {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.help-articles {
    padding-left: 20px;
    display: none;
    margin-top: 5px;
}

.help-articles li {
    margin-bottom: 5px;
}

.help-articles a {
    text-decoration: none;
    color: #007bff;
}

.help-articles a:hover {
    text-decoration: underline;
}

.collapsible.active .arrow {
    transform: rotate(180deg);
}

.chat-window {
    height: 500px;
    border: 1px solid #ddd;
    overflow-y: scroll;
    padding: 20px;
    background-color: #f8f9fa;
}

.chat-bubble {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 20px;
    max-width: 70%;
}

.chat-bubble.user {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
}

.chat-bubble.bot {
    background-color: #e9ecef;
    align-self: flex-start;
}

.input-container {
    display: flex;
}

.input-container input {
    flex-grow: 1;
}

.receipt {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-section-blur {
    filter: blur(5px); /* Adjust the blur radius as needed */
}

.select2-container--default .select2-selection--single {
    height: 45px !important; 
    border-radius: 4px !important; 
    border: 1px solid #ccc !important; 
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important; /* Align the text vertically */
}

.select2-container .select2-search--dropdown .select2-search__field {
    width: 100% !important;
}

.readonly-field {
    background-color: #e9ecef !important; /* Light gray background */
    color: #6c757d !important; /* Dim text color */
    cursor: not-allowed !important; /* Show "not allowed" cursor */
    opacity: 0.7 !important; /* Make it look faded */
}

#help-tree {
    margin-top: 1rem;
}

.jstree-clicked {
    font-weight: bold;
    color: darkblue;
}

/* Apply system font to jsTree text */
#help-tree .jstree-anchor {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Set up Font Awesome icons for custom node types */
.jstree-icon.custom-icon {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.85rem; /* smaller icon size */
    vertical-align: middle;
    margin-right: 4px;
}

.jstree-icon.bookshelf::before {
    content: "\f5fd"; /* fa-books */
}

.jstree-icon.book::before {
    content: "\f02d"; /* fa-book */
}

.jstree-icon.file::before {
    content: "\f15c"; /* fa-file-alt */
}

/* Apply Bootstrap primary color to icons */
.jstree-icon.text-primary::before {
    color: var(--bs-primary);
}

#help-tree .jstree-ocl {
    background: none !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-primary); /* Bootstrap primary */
    font-size: 0.75rem;
    width: 1rem;
    text-align: center;
}

/* Closed state (►) */
#help-tree .jstree-closed > .jstree-ocl::before {
    content: "\f138"; /* fa-chevron-right */
}

/* Open state (▼) */
#help-tree .jstree-open > .jstree-ocl::before {
    content: "\f13a"; /* fa-chevron-down */
}

.tight-lines {
    line-height: 0.9;
}

.showcase-video {
    position: relative;
    padding-top: 15px;
}

.showcase-video iframe {
    top: 0;
    left: 0;
    width: 95%;
    height: 100%;
    border-radius: 10px;
}

.image-container {
    display: flex;
    justify-content: center;
}
