/**
 * h6styles.css - Global stylesheet for Heurist Version 6.
 *
 * @fileOverview This file provides the global CSS styles for the Heurist academic knowledge management system, Version 6.
 * It includes styles for layout, typography, forms, menus, and various UI components specific to H6.
 * @project     Heurist academic knowledge management system
 * @package Core
 * @link https://HeuristNetwork.org
 * @copyright (C) 2005-2023 University of Sydney, (C) 2024 onwards Heurist Network
 * @license https://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0
 * @author Artem Osmakov <osmakov@gmail.com>
 * @author Ian Johnson <ian.johnson.heurist@gmail.com>
 * @since 6.0
 */

body {
    /*overflow:hidden;*/
}
body.popup {
    font-size: 13px;
    background: none;
}

.logo {
    background-image: url("hclient/assets/v6/h6logo_inv.png") !important;
    background-repeat: no-repeat !important;
    background-size: contain;
    width: 98px;
    height: 40px;
}

.ui-icon-file-plus { 
    background-image: url(hclient/assets/v6/file-plus.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-file-plus-black { 
    background-image: url(hclient/assets/v6/file-plus-000000.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-file-plus-import { 
    background-image: url(hclient/assets/v6/file-plus-import.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-file-plus-explore { 
    background-image: url(hclient/assets/v6/file-plus-305586.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-entity-explore { 
    background-image: url(hclient/assets/v6/entity-305586.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-magnify-explore { 
    background-image: url(hclient/assets/v6/filter-plus-305586.png) !important;
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-lightning-explore { 
    background-image: url(hclient/assets/v6/lightning-305586.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-filter-explore { 
    background-image: url(hclient/assets/v6/filter-305586.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-filter-plus-explore { 
    background-image: url(hclient/assets/v6/filter-plus-305586.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}

.ui-icon-entity { 
    background-image: url(hclient/assets/v6/entity-000000.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-magnify-search { 
    background-image: url(hclient/assets/v6/filter-plus-000000.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-database-search { 
    background-image: url(hclient/assets/v6/database-search.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-filter { 
    background-image: url(hclient/assets/v6/filter_icon.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-filter-black { 
    background-image: url(hclient/assets/v6/filter-000000.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-icon-filter-plus { 
    background-image: url(hclient/assets/v6/filter-plus-000000.png) !important; 
    width: 18px;
    height: 18px;
    background-size: contain;
}
.ui-button-action{
    font-weight:bold  !important;
    text-transform: uppercase;
}
.ui-heurist-title{
    font-size: 14px !important;
}

/*   MAIN SIDE MENU */
.ui-menu6{
    /* height:100%; 2024-12-08  */
    /*box-shadow: 3px 1px 3px #00000080;*/
}
    
.ui-menu6 .ui-menu6-section, .ui-menu6 .ui-menu6-container{
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border: 0.25px solid #707070;
    border-radius: 4px;
    position:absolute;
    display:none;    
    top:2px;
    bottom:4px;
}
.ui-menu6 .ui-menu6-section{
    box-shadow: 2px 3px 10px #00000080;
}
.ui-menu6 .ui-menu6-section{
    left:96px;
    width:200px;
    overflow-y:auto;
}
.ui-menu6 .ui-menu6-container{
    left:304px;
    right: 0px;
}

.ui-helper-popup{
    display:none;    
}
.ui-helper-slideout{
    position:absolute;
    top:36px;
    bottom:0px;
    right: 0px;
    width:450px;
    font-size:0.9em;
    border-left: 2px solid;
    background: white;
}
.ui-helper-slideout #content{
    padding-left: 20px;
}

.menu-text{
    margin-left:0.5em;
    cursor: pointer;
}
li.menu-explore{
    font-size:smaller;
    padding:6px 2px 6px 30px;
}

.ui-heurist-header{
    /*font: Bold 20px/26px Roboto;*/
    font-weight:bold;
    letter-spacing: 0.26px;
    color: white;
}
.ui-menu6 .ui-heurist-header{
    text-align:center;
    padding:10px 0px;
    left:0;
    right:0;
    position:absolute;
}

.ui-heurist-admin .banner,
.ui-heurist-populate .banner{
    display: none;
    visibility: hidden;
}
.ui-suppress-border-and-shadow{
    border:none !important;
    box-shadow:none !important;
    background:none !important;
}
/* getting started */
.gs-box {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 1px 3px #00000033;
    border: 1px solid #707070;
    border-radius: 4px;
    padding: 5px 10px 10px 30px;
}
.entry-box {
    background: #EBEBEB 0% 0% no-repeat padding-box;
    box-shadow: 0px 1px 3px #00000033;
    border-radius: 4px;
    padding: 5px 20px 20px;
    margin: 20px 0;
    min-width: 520px;    
}

/* narrow scroll for saved filters list */
div.svs-list-container::-webkit-scrollbar {
    width: 6px;
}

div.slidersMenu > div.ui-heurist-header:hover{
    color:black;
    background: white !important;
    border-right: 1px solid gray;
}

.ui-dialog .ui-dialog-content{
    padding: 1.5em 1em;
}

/* 
    General styling for vertical text in jQuery Layout togglers, 
    additional widths, margin-top, and font-size changes are use specific
    margin-left and margin-right may need changing per situation
*/
.eastTogglerVertical {
    transform: rotate(90deg);

    margin-left: 30px;
}

.westTogglerVertical {
    transform: rotate(-90deg);

    margin-left: 8px;
}

.eastTogglerVertical, .westTogglerVertical {
    transform-origin: top left;

    display: inline-block;

    font-size: 17px;
}
/* Space for toggler text */
.togglerVertical{
    height: 500px !important;
}

/* TinyMCE Smaller Toolbar Icons */
.tox .tox-toolbar .tox-tbtn{
    transform: scale(70%) !important;

    width: unset !important;
    height: unset !important;

    padding: 0 !important;
}

.tox .tox-toolbar .tox-tbtn.tox-tbtn--select.tox-tbtn--bespoke{
    transform: scale(80%) !important;

    height: 22px !important;
    padding: 0 !important;
}
.tox .tox-tbtn--bespoke .tox-tbtn__select-label{
    width: unset !important;
}

.tox .tox-toolbar{
    background-image: none !important;
}

.tox .tox-toolbar__group{
    height: 25px !important;
    border-bottom: 1px solid #CCC !important;
}

/* ADAPTIVE FORM */
/* Base reset / safety */
.hf-fieldset {
  padding: 5px;
  border: 0;
  box-sizing: border-box;

  /* Enable container queries on THIS element */
  container-type: inline-size;
}

/* Row layout (wide by default): label column + input column */
.hf-fieldset .input {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding-top: 0.2em;
}

/* Label cell */
.hf-fieldset .header {
  flex: 0 0 150px;      /* same as your old 150px */
  min-width: 150px;
  text-align: right;
  padding: 4px 0.4em 0 0;
  box-sizing: border-box;
}

/* Inputs should never overflow */
.hf-fieldset input,
.hf-fieldset select,
.hf-fieldset textarea,
.hf-fieldset .ui-selectmenu-button {
  max-width: 100%;
  box-sizing: border-box;
}

/* Make text inputs fill remaining space */
.hf-fieldset input[type="text"],
.hf-fieldset input[type="email"],
.hf-fieldset input[type="password"],
.hf-fieldset input[type="url"],
.hf-fieldset input[type="tel"],
.hf-fieldset input[type="search"],
.hf-fieldset input[type="number"],
.hf-fieldset select,
.hf-fieldset .ui-selectmenu-button {
  flex: 1 1 auto;
  min-width: 0;          /* critical in flex to allow shrinking */
  width: 100%;
}

/* Textarea should also fill the available width */
.hf-fieldset textarea {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

/* ARROW FIELDSET: labels above inputs, left aligned */
@container (max-width: 399px) {
  .hf-fieldset .input {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .hf-fieldset .header {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    text-align: left;
    padding: 0 16px 0 16px; /* mimic your inline padding */
  }
}
/* CAPTCHA row: use flex and allow wrapping */
.hf-fieldset .hf-captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;  /* ← THIS FIXES IT */
  gap: 8px;
  width: 100%;
}

@container (max-width: 499px) {
  .hf-fieldset .hf-captcha .header {
    width: 100%;
    text-align: left;
    padding: 0 16px;
  }

  .hf-fieldset #captcha_img {
    padding: 6px 0;
  }

  .hf-fieldset #captcha {
    width: 10em;
    max-width: 100%;
  }
}



