
@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

html, body {
    margin: 0;
    padding: 0;
    background: #F0EEEA;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: #6D6E71;
    line-height: 1.8em;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: normal;
}

.navbar {
    min-height: 60px;
    margin-bottom: 0;
    border-bottom: 0 none !important;
    background-color: #e9911a;
}

.navbar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    min-height: 60px;
}

.navbar-left {
    display: flex;
    align-items: flex-end;
    gap: 50px;
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.navbar-center .flags-area {
    display: none;
}

.logobrand-container {
    position: relative;
    display: inline-block;
}

.logobrand {
    display: inline-block;
    cursor: default;
    pointer-events: none;
}

.logobrand img {
    height: 40px;
    width: auto;
}

.library-selector {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.2);
    min-width: 200px;
    z-index: 1000;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    padding: 2px;
    gap: 2px;
    background-color: #888;
}

.library-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    color: #333;
    padding: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.library-item[data-lib="hd"] {
    background: #e9911a;
}

.library-item[data-lib="kirsch"] {
    background: #b0b0b0;
}

.library-item[data-lib="alta"] {
    background: #008aa1;
}

.library-item[data-lib="es"] {
    background: #65c5b4;
}

.library-item:hover {
    opacity: 0.8;
}

.library-item img {
    height: 35px;
    width: auto;
    max-width: 100%;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    box-sizing: border-box;
    position: relative;
}

    .topbar-btn img {
        margin-bottom: 0;
        flex-shrink: 0;
    }

.homebtn {
    height: 44px;
    justify-content: center;
}

    .homebtn img {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .homebtn span {
        font-size: 11px;
        color: #fff;
        line-height: 1;
        flex-shrink: 0;
        position: absolute;
        bottom: 0;
        margin-top: 4px;
    }

.helpbtn {
    text-decoration: none;
    height: 35px;
    justify-content: flex-start;
}

    .helpbtn img {
        width: 20px;
        height: 20px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .helpbtn span {
        font-size: 11px;
        color: #fff;
        line-height: 1;
        flex-shrink: 0;
        position: absolute;
        bottom: 0;
        margin-top: 4px;
    }

.appstores-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 80px;
    height: 38px;
}

    .appstores-btn > div:first-child {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-bottom: 0;
        flex-shrink: 0;
        height: 20px;
    }

    .appstores-btn a {
        display: inline-block;
    }

    .appstores-btn > div:last-child {
        font-size: 11px;
        color: #fff;
        line-height: 1;
        flex-shrink: 0;
        position: absolute;
        bottom: 0;
        margin-top: 4px;
    }

.chkShowExtra {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 34px;
    gap: 0;
}

    .chkShowExtra .switch {
        margin: 0 0 0 0;
        flex-shrink: 0;
        height: 17px;
    }

    .chkShowExtra .chklbl {
        font-size: 11px;
        color: #fff;
        white-space: nowrap;
        line-height: 1;
        flex-shrink: 0;
        position: absolute;
        bottom: 0;
        margin-top: 4px;
    }

.essentials-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 34px;
    gap: 0;
}

    .essentials-toggle .switch {
        margin: 0 0 0 0;
        flex-shrink: 0;
        height: 17px;
    }

    .essentials-toggle .chklbl {
        font-size: 11px;
        color: #fff;
        white-space: nowrap;
        line-height: 1;
        flex-shrink: 0;
        position: absolute;
        bottom: 0;
        margin-top: 4px;
    }

.logobrand {
    text-align: center;
}
    .logobrand img {
        max-height: 42px;
    }

.input-group-container {
    display: inline-block;
    width: 100%;
}

.input-group {
    width: 100%;
}

.input-group-addon {
    background-color: #fff;
    color: #aaa;
    border-radius: 15px 0 0 15px !important;
    border-color: #515C65;
}

.input-group input {
    border-left: 0 none;
    border-radius: 0 15px 15px 0 !important;
    border-color: #515C65;
    color: #515C65;
    height: 31px !important;
    outline: none;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

.navbar-toggle {
    margin-top: 15px;
}

.flags-area {
    display: flex !important;
    align-items: center;
    gap: 10px;
    position: relative;
}
    .flags-area img {
        width: 30px;
        height: 30px;
    }

.ca-menu-container {
    position: relative;
    display: inline-block;
}

.navbar-left .ca-menu-container {
    display: flex;
    align-items: flex-end;
    position: relative;
    height: 35px;
    justify-content: center;
}

.navbar-left #iconLangTrigger {
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.navbar-left #iconLangTrigger img {
    width: 30px;
    height: 30px;
}

.ca-menu-trigger {
    display: inline-block;
}

.ca-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,.2);
    min-width: auto;
    z-index: 1000;
    margin-top: 5px;
    display: flex;
    flex-direction: row;
}

.ca-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border: 0;
    background: #f3f3f3;
    color: #333;
    padding: 8px 10px;
    margin: 0;
    border-radius: 6px;
    cursor: pointer;
}

    .ca-menu-item img {
        width: 30px;
        height: 30px;
    }

.ca-menu-item:hover {
    background: #e7e7e7;
}

.btn {
    border-radius: 15px;
}
.btn-default {
    color: #ccc;
    display: inline-block;
}

.btn-primary {
    color: #fff;
    background-color: #F08200;
    border: 1px solid #F08200;
    max-width: 240px;
    display: inline-block;
}

    .btn-primary:hover {
        background-color: #515c65;
        border-color: #515c65;
    }

.filter_content_container .btn-sm {
    padding: 6px 10px 5px 10px;
    font-size: 12px;
    line-height: 18px;
}
.filter_content_container .btn-default {
    border: 1px solid #515C65;
    margin-top: 8px;
}

.result-container {
    color: #9b9b9b;
    text-align: center;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}
.result-container > .container > h3 {
    color: #fff;
}

.result-container > .container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}


.searchInput .searchIcon {
    position: absolute;
    left: 25px;
    top: 0px;
    color: #999;
    font-size: 18px;
    line-height: 54px;
}

.removeIcon {
    font-size: 19px;
    cursor: pointer;
}

.download-btn-container {
    padding-top: 10px;
    padding-right: 20px;
    text-align: right;
}

    .download-btn-container .btn {
        letter-spacing: 1.2px;
        min-width: 160px;
    }

.filter_content_container {
    position: absolute;
    top: 80px;
    right: 20px;
    bottom: 60px;
    left: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
    padding: 20px 0;
    -moz-transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

    .filter_content_container div.doc-item {
        display: inline-block;
        width: 150px;
        padding: 0;
        margin: 10px 20px;
        vertical-align: top;
        color: #000;
        text-decoration: none;
        font-size: 12px;
        font-weight: bold;
        -moz-transition: all 0.2s ease;
        -webkit-transition: all 0.2s ease;
        -o-transition: all 0.2s ease;
        transition: all 0.2s ease;
    }
        .filter_content_container div.doc-item:hover img {
            box-shadow: 2px 8px 12px rgba(0,0,0,0.3);
            -ms-transform: scale(1.1, 1.1);
            -webkit-transform: scale(1.1, 1.1);
            transform: scale(1.1, 1.1);
            transform-origin: center bottom;
        }
        .filter_content_container div.doc-item img {
            /* background-color: #fff; */
            width: 100%;
            height: 200px;
            object-fit: contain;
            box-shadow: 2px 5px 10px rgba(0,0,0,0.2);
            cursor: pointer;
        }
        .filter_content_container div.doc-item > div {
            padding-top: 10px;
            padding-bottom: 10px;
            font-size: 13px;
            line-height: 1.4em;
            height: 100px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            line-clamp: 5;
            -webkit-box-orient: vertical;
        }

.filter_content_container table {
    background-color: #fff;
}
.filter_content_container tr.doc-item {
    cursor: pointer;
}
.filter_content_container tr img {
    width: 100%;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}
.filter_content_container td h4 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-align: left;
}
.filter_content_container td h5 {
    font-weight: bold;
    text-align: left;
	color: #209080;
}
.filter_content_container td p {
    text-align: left;
}
.filter_content_container .highlight {
    background-color: #ffff00;
} 
.text-danger {
    padding: 30px 20px;
    font-style: italic;
    text-align: center;
}
.chkContainer {
    text-align: center;
}

.appstores div:nth-child(1) {
    margin-top: -5px;
}
.appstores div:nth-child(2) {
    line-height: 1.8;
}
.appstores a {
    display: inline-block;
}
    .appstores a:first-child {
        margin-right: 18px;
    }
    .appstores a img {
        vertical-align: bottom;
    }
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
    vertical-align: bottom;
}
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #808080;
    -webkit-transition: .4s;
    transition: .4s;
}
  
  .slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }

input:checked + .slider {
    background-color: #F08200;
}
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
  }
  
  .slider.round {
    border-radius: 17px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

.filter_page_footer {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    padding: 10px;
    text-align: center;
}
.filter_page_footer a {
    color: #000;
}

/* Filter Panel Styles */
.main-content {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

.popin {
    position: fixed;
    width: 330px;
    left: -330px;
    top: 60px;
    bottom: 0;
    background-color: #e9911a;
    color: #ffffff;
    z-index: 999;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
    -moz-transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.popin.open {
    left: 0;
}

#filterPopin > .nav-tabs {
    position: absolute;
    left: 100%;
    top: -20px;
    width: 100%;
    transform-origin: 0% 100%;
    transform: rotate(90deg);
    border-bottom: 0 none;
    margin: 0;
}

#filterPopin > .nav-tabs > li > a {
    background-color: #e9911a;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    display: block;
    font-size: 11pt;
    letter-spacing: 2px;
}

#filterPopin > .nav-tabs>li > a,
#filterPopin > .nav-tabs>li > a:focus,
#filterPopin > .nav-tabs>li > a:hover {
    border: 0 none;
    color: #ffffff;
}

.popin .headline {
    font-size: 26px;
    vertical-align: top;
    padding-left: 20px;
    line-height: 50px;
}

.popin .buttonDivider {
    width: 100%;
    height: 1px;
    vertical-align: top;
    border-bottom: 1px solid #ffffff;
    margin-bottom: 2px;
}

.ai-panel-section {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 20px;
    height: 470px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ai-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-align: center;
}

.ai-logo {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.ai-icon-img {
    height: 80px;
    max-width: 120px;
    object-fit: contain;
}

.ai-title {
    text-align: center;
    margin-left: 15px;
}

.ai-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.ai-title p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #666;
}

.ai-questions {
    margin-bottom: 10px;
}

.ai-questions .question_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-questions .question_list button {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background-color: #ddd;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    cursor: pointer;
}

.ai-questions .question_list button:hover {
    background-color: #e8e8e8;
}

.ai-input-container {
    position: relative;
    margin-bottom: 10px;
}

.ai-input-container textarea {
    width: 100%;
    padding: 10px 45px 10px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 13px;
}

.ai-input-container .btn-ai-search {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 35px;
    height: 35px;
    padding: 0;
    border-radius: 50%;
    background-color: #e9911a;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ai-input-container .btn-ai-search:hover {
    background-color: #d18216;
}

.ai_progress {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #000;
}

.ai_progress img {
    display: block;
    margin: 0 auto 10px;
}

#ai_result {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #000;
}

#ai_result .aiQus {
    background-color: #f5f5f5;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
}

#ai_result .aiAns {
    padding: 8px;
    font-size: 12px;
    color: #333;
    line-height: 1.6;
}

#ai_result .aiAns strong {
    font-weight: bold;
    color: #000;
}

#ai_result .aiAns br {
    line-height: 1.2;
}

#ai_result .aiAns .ai-list-container {
    margin: 8px 0;
}

#ai_result .aiAns .ai-list-container + .ai-list-container {
    margin-top: 0;
}

#ai_result .aiAns .ai-list-item {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

#ai_result .aiAns .ai-list-item .ai-list-number {
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #e9911a;
}

#ai_result .aiAns a {
    color: #e9911a;
    text-decoration: underline;
    font-weight: 500;
}

#ai_result .aiAns a:hover {
    color: #d17a0f;
    text-decoration: none;
}

.popin-search-section {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 480px;
    padding: 15px 0;
    background-color: #e9911a;
}

.popin-search-section .input-group-container {
    margin-bottom: 10px;
    width: 100%;
}

.popin-search-section .input-group-container:last-child {
    margin-bottom: 0;
}

.popin-search-section .input-group {
    width: 100%;
}

.popin-search-section .input-group-addon {
    background-color: #fff;
    color: #aaa;
    border-radius: 15px 0 0 15px !important;
    border-color: #515C65;
}

.popin-search-section .input-group input {
    border-left: 0 none;
    border-radius: 0 15px 15px 0 !important;
    border-color: #515C65;
    color: #515C65;
    height: 31px !important;
    outline: none;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

.popin .listContainer {
    position: absolute;
    overflow-x: hidden;
    overflow-y: auto;
    left: 20px;
    right: 20px;
    top: 540px;
    bottom: 20px;
    background-color: #e9911a;
    color: #333;
}

.popin .listContainer p {
    margin-bottom: 10px;
    color: #333;
}

#accordionFilter {
    margin-bottom: 0;
}

#accordionFilter .panel-heading a {
    text-decoration: none;
    display: block;
}

#accordionFilter .list-group-item{
    border: 2px solid #ccc;
}
#accordionFilter .list-group-item.active {
    background-color: #888;
    color: #fff;
    border-color: #ccc;
}

.filter_content_container.has-side {
    left: 350px;
}

@media (max-width: 992px) {
    .result-container > .container > h3 {
          margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .navbar {
        min-height: auto;
    }

    .main-content {
        top: 198px;
    }

    .popin {
        top: 198px;
    }
    
    .navbar-topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
        gap: 8px;
        position: relative;
    }
    
    .navbar-left {
        order: 1;
        width: 100%;
        justify-content: center;
        gap: 50px;
        margin-bottom: 0;
        flex-wrap: wrap;
    }

    .navbar-center {
        order: 2;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 25px;
        flex-wrap: nowrap;
        margin-bottom: 8px;
        position: relative;
        padding: 0 15px;
    }


    .navbar-right {
        order: 3;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-bottom: 0;
    }

    .navbar-right .flags-area {
        display: none;
    }
    
    /* Flags area visibility is controlled by JavaScript based on library settings */
        
    .download-btn-container {
        position: absolute;
        top: 20px;
        padding-top: 15px;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        width: 100%;
    }
    
    .result-container {
        padding: 220px 0 0 0;
    }
    
    .filter_content_container {
        margin-left: 0;
        margin-right: 0;
    }
    
    .filter_content_container div.doc-item {
        margin: 10px;
    }
        
    .homebtn {
        display: none !important;
    }
    
    .homebtn {
        display: none !important;
    }
    
    /* Hide US and CA flag icons on mobile */
    #iconUsTrigger {
        display: none !important;
    }
    
    #iconCaTrigger {
        display: none !important;
    }
    
    .homebtn img {
        width: 24px;
        height: 24px;
    }
    
    .helpbtn img {
        width: 18px;
        height: 18px;
    }

    .main-content {
        top: 128px;
    }

    .popin {
        top: 128px;
    }
}

/* Hide home button */
.homebtn {
    display: none !important;
}

/* Hide US and CA flag icons, but keep language selector visible */
#iconUsTrigger {
    display: none !important;
}

#iconCaTrigger {
    display: none !important;
}

/* Flags area visibility is controlled by JavaScript based on library settings */