/* Top Navbar Customization */
.navbar {
	width: 100%;
	min-height: 70px;
	z-index: 30;
	border-bottom: 1px solid #E8893B;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar .navbar-brand {
	height: 70px;
}

.huxamlogo{
	max-width: 100px !important;
}

/* Remove underline/border from logo on focus/hover */
.navbar-brand .navbar-item:focus,
.navbar-brand .navbar-item:focus-within,
.navbar-brand .navbar-item:hover {
	text-decoration: none;
	outline: none;
}

/* On desktop, keep navbar-menu at fixed height */
@media screen and (min-width: 1024px) {
	.navbar .navbar-menu {
		height: 70px;
	}
}

.navbar-dropdown .navbar-item {
        white-space: normal !important;
        word-wrap: break-word;
        min-width: 200px;
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
}
.navbar-dropdown .navbar-item .icon-text {
        white-space: normal;
        flex-wrap: nowrap;
        display: flex;
        align-items: center;
        gap: 0.5rem;
}
.navbar-dropdown .navbar-item .icon-text .icon {
        flex-shrink: 0;
}
.navbar-dropdown .navbar-item .icon-text span:not(.icon) {
        white-space: normal;
        word-break: break-word;
        line-height: 1.5;
}

.navbar .navbar-item,
.navbar .navbar-link,
.navbar a.navbar-item {
        display: flex;
        align-items: center;
        text-decoration: none !important;
        border-bottom: 1px solid transparent !important;
        outline: none !important;
        box-shadow: none !important;
}

.navbar .navbar-item a {
        text-decoration: none !important;
}

.navbar .navbar-item:focus,
.navbar .navbar-item:focus-within,
.navbar .navbar-link:focus,
.navbar .navbar-link:focus-within,
.navbar a.navbar-item:focus,
.navbar a.navbar-item:focus-within {
        outline: none !important;
        border-bottom: 1px solid transparent !important;
        box-shadow: none !important;
}

.navbar.is-fixed-top .navbar-item:hover,
.navbar.is-fixed-top .navbar-link:hover {
        background-color: #ffd3af !important;
        text-decoration: none !important;
        border-bottom: 1px solid transparent !important;
        outline: none !important;
        box-shadow: none !important;
}

.navbar-dropdown .navbar-item:hover {
        background-color: #ffd3af !important;
        text-decoration: none !important;
        font-weight: normal !important;

	color: white;
	display: inline-block;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	border-radius: 5px;
	transition: background-color 0.3s;
	width: 100%;  
	height: 35px;
}
.chatbot-button:hover {
	width: 100%;
}

/* Masked/unmasked are used to display or hide the API keys in the token manager */
.masked {
	display: inline;
	cursor: pointer;
}

.unmasked {
display: none;
	cursor: pointer;
}

/** Toggle visibility button */
.fa-eye
{
	color: gray;
	margin-left: 6px;
	cursor: pointer;
}

/** Button to remove access tokens */
.remove-button
{
	cursor: pointer;
}

@keyframes blink {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}

.blinking {
animation: blink 1s infinite;
}

.pagetitle-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
  }

.is-fullheight{
	height: 100%;
	display: flex; 
	flex-direction: column;
}
.form-card {
	border-radius: 6px;
	box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
	margin-bottom: 1.5rem;
}
.section-header {
	border-bottom: 1px solid #f5f5f5;
	padding-bottom: 0.75rem;
	margin-bottom: 1rem;
}
.file-name{
	background-color:white;
}

/* Collapsible Menu Styles */
.menu-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle .icon {
    transition: transform 0.2s ease;
}

.menu-collapsible {
    overflow: hidden;
}

/* Avatar Image Styles - Force Square and Circle */
.avatar-image {
    width: 128px !important;
    height: 128px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 2px solid #dbdbdb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media screen and (max-width: 840px) {
	.avatar-column {
	  display: none !important;
	}
}

.avatar-placeholder {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dbdbdb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style to make the application on an old ipad or resolution between full hd and smartphone more readable */
@media only screen and (min-width: 769px) and (max-width: 960px)  {
    .is-hidden-old-tablet{
        display:none !important;
    }
    .menu-label{
        word-wrap: break-word !important;
    }
}

/* Sortable Table Headers */
.sortable-header {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	transition: color 0.2s ease;
	color: black;
}

.sortable-header:hover {
	font-weight: bold;
	color: black;
}

.sortable-header .icon {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.sortable-header:hover .icon {
	opacity: 1;
}

/* Active sort column */
th .sortable-header .fa-sort-up,
th .sortable-header .fa-sort-down {
	opacity: 1;
	color: black;
}

/* Home Page Styles */
.quick-action-card {
	display: block;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	color: inherit;
}

.quick-action-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
	text-decoration: none;
	color: inherit;
}

.news-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card .card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news-card .card-content .content {
	flex: 1;
}
/* ===========================
   Filter Sidebar Layout
   =========================== */

.hx-page-with-sidebar {
	display: flex;
	align-items: stretch;
	gap: 0;
}

/* The sidebar panel itself */
.hx-filter-sidebar {
	width: 240px;
	min-width: 240px;
	background-color: var(--huxam-bulma-block-background, #fff);
	border-radius: 6px 0 0 6px;
	padding: 1rem 0.875rem 1.5rem;
	display: flex;
	flex-direction: column;
	transition: width 0.22s ease, min-width 0.22s ease, padding 0.22s ease;
	overflow: visible;
	position: relative;
	box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);
}

.hx-filter-sidebar.is-collapsed {
	width: 48px;
	min-width: 48px;
	padding: 1rem 0;
	align-items: center;
}

/* Toggle row at the top of the sidebar */
.hx-sidebar-toggle-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	white-space: nowrap;
	flex-shrink: 0;
}

.hx-filter-sidebar.is-collapsed .hx-sidebar-toggle-wrap {
	justify-content: center;
	margin-bottom: 0.75rem;
}

/* Filter title shown next to the toggle button */
.hx-sidebar-heading {
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #444;
	white-space: nowrap;
	overflow: hidden;
	transition: opacity 0.15s ease;
}

.hx-filter-sidebar.is-collapsed .hx-sidebar-heading {
	display: none;
}

/* The small square toggle button */
.hx-sidebar-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: none;
	background: rgba(0, 0, 0, 0.09);
	border-radius: 6px;
	cursor: pointer;
	flex-shrink: 0;
	color: inherit;
	transition: background 0.18s, transform 0.22s ease;
}

.hx-sidebar-toggle:hover {
	background: rgba(0, 0, 0, 0.16);
}

.hx-sidebar-toggle .fas {
	font-size: 0.75rem;
	transition: transform 0.22s ease;
}

.hx-filter-sidebar.is-collapsed .hx-sidebar-toggle .fas {
	transform: rotate(0deg);
}

/* The form content area */
.hx-filter-content {
	flex: 1;
	overflow: visible;
	transition: opacity 0.18s ease;
	width: 100%;
	min-width: 0;
}

.hx-filter-sidebar.is-collapsed .hx-filter-content {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	height: 0;
	max-height: 0;
	flex: none;
	overflow: hidden;
}

/* Hide the h3 title already present in filter forms (sidebar heading handles it) */
.hx-filter-content .content h3 {
	display: none;
}

/* Compact form element sizing */
.hx-filter-content .label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.055em;
	text-transform: uppercase;
	color: #555;
	margin-bottom: 0.2rem;
}

.hx-filter-content .input,
.hx-filter-content .select select,
.hx-filter-content .select,
.hx-filter-content .control.has-icons-left .icon,
.hx-filter-content .control.has-icons-right .icon {
	font-size: 0.84rem;
}

.hx-filter-content .button {
	font-size: 0.84rem;
}

/* Checkboxes inside sidebar */
.hx-filter-content .b-checkbox.checkbox .control-label {
	font-size: 0.82rem;
}

.hx-filter-content .b-checkbox.checkbox .check {
	width: 1em;
	height: 1em;
}

/* Treeselect inside sidebar: compact trigger button */
.hx-filter-content .tree-select-button {
	padding: 0.4rem 0.6rem;
	min-height: 2.2em;
	font-size: 0.84rem;
	box-shadow: none;
	border-radius: 6px;
}

.hx-filter-content .tree-select-value {
	font-size: 0.84rem;
}

/* Treeselect container must stay within the sidebar */
.hx-filter-content .tree-select-container {
	width: 100%;
	max-width: 100%;
}

/* Treeselect dropdown in sidebar floats freely over the content to the right */
.hx-filter-content .tree-select-dropdown {
	left: 0;
	right: auto;
	min-width: 260px;
	max-height: 280px;
	z-index: 1100;
	font-size: 0.82rem;
}

.hx-filter-content .tree-select-label {
	font-size: 0.82rem;
}

.hx-filter-content .tree-select-item {
	padding: 0.45rem 0.75rem;
}

.hx-filter-content .tree-select-actions {
	padding: 0.4rem 0.75rem;
	gap: 0.35rem;
}

.hx-filter-content .tree-select-actions .button {
	font-size: 0.78rem;
	padding: 0.3em 0.6em;
}

/* Inputs and selects are always constrained to sidebar width */
.hx-filter-content .input,
.hx-filter-content .select,
.hx-filter-content .select select {
	max-width: 100%;
	box-sizing: border-box;
}

/* Form grid inside sidebar */
.hx-filter-content .fixed-grid,
.hx-filter-content .grid {
	width: 100%;
	max-width: 100%;
}

/* Force single-column grid layout inside sidebar regardless of breakpoint */
.hx-filter-content .fixed-grid {
	--bulma-grid-columns: 1;
}

/* Cell dividers inside the sidebar form */
.hx-filter-content .grid .cell + .cell {
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
	margin-top: 0.25rem;
}

/* Submit button fills width nicely */
.hx-filter-content .button[type="submit"] {
	width: 100%;
	justify-content: center;
}

/* The main content box, adjacent to the sidebar */
.hx-sidebar-content-box {
	flex: 1;
	min-width: 0;
	border-top-left-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
}

/* Mobile: sidebar stacks on top */
@media screen and (max-width: 768px) {
	.hx-page-with-sidebar {
		flex-direction: column;
	}

	.hx-filter-sidebar,
	.hx-filter-sidebar.is-collapsed {
		width: 100% !important;
		min-width: 100% !important;
		border-radius: 6px 6px 0 0;
		padding: 0.75rem 1rem;
	}

	.hx-sidebar-content-box {
		border-top-left-radius: 0 !important;
		border-top-right-radius: 0 !important;
		border-bottom-left-radius: 6px !important;
		border-bottom-right-radius: 6px !important;
	}
}

@media print {
	.hx-filter-sidebar {
		display: none;
	}
}