.jef4docs-room {
    width: 100%;
    min-height: 200px;
    margin: 1em 0;
}

.jef4docs-room iframe {
    display: block;
    width: 100%;
    border: 0;
}

.jef4docs-room--message {
    height: auto !important;
    min-height: 0;
    padding: 1em;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

/* [jef4docs_group_rooms] tabs */
.jef4docs-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.jef4docs-tabs__tab {
	margin: 0 0 -1px;
	padding: 8px 16px !important;
	border: 1px solid transparent !important;
	border-radius: 5px 5px 0 0;
	background-color: #e5e5e5 !important;
	color: inherit;
	font-family: var(--primary-website-font);
	cursor: pointer;
	font-size: 14px !important;
	position: relative;
	min-width: 125px;
	text-align: left !important;
}

.jef4docs-tabs__tab:hover 
{
    background-color: white !important;
}

.jef4docs-tabs__tab.is-active {
    font-weight: 600 !important;
    background-color: white !important;
}

.jef4docs-tabs__badge {
	display: inline-block;
	/* margin-left: 6px; */
	padding: 2px 6px;
	border-radius: 10px;
	background-color: #e64938;
	font-size: 9px;
	font-weight: 600;
	vertical-align: middle;
	color: white;
	text-transform: uppercase;
	position: absolute;
	top: -9px;
	left: 6px;
	font-family: var(--primary-website-font);
}

.jef4docs-tabs__panel[hidden] {
    display: none;
}

.jef4docs-tabs__panel .jef4docs-room {
    margin-top: 0;
}


/* Intranet ----------------------------------------------------------------
   Colours can be overridden by the theme with these custom properties. */
.jef4docs-intranet-page,
.jef4docs-intranet-index {
    --jef4docs-intranet-accent: #e8483b;
    --jef4docs-intranet-link: #3366b0;
}

/* Single intranet page: the theme template prints only the content, the container is here.
   Same width as the Elementor boxed container of the intranet index page (kit: 1420px, 10px side padding). */
.jef4docs-intranet-page {
    box-sizing: border-box;
    max-width: 1420px;
    margin: 0 auto;
    padding: 40px 10px 56px;
}

.jef4docs-intranet-kicker {
    margin: 0;
    color: var(--jef4docs-intranet-accent);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.jef4docs-intranet-heading {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
}

.jef4docs-intranet-heading a {
    color: inherit;
    text-decoration: none;
}

.jef4docs-intranet-breadcrumb {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #888;
}

.jef4docs-intranet-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.jef4docs-intranet-breadcrumb a:hover {
    text-decoration: underline;
}

.jef4docs-intranet-breadcrumb [aria-current="page"],
.jef4docs-intranet-breadcrumb .current-item {
    color: #333;
}

.jef4docs-intranet-title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.jef4docs-intranet-content {
    margin-bottom: 1.5rem;
}

.jef4docs-intranet-children {
    margin-bottom: 1.5rem;
}

/* Folders list: [jef4docs_intranet] and sub-pages of an intranet page. */
.jef4docs-intranet-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jef4docs-intranet-list .jef4docs-intranet-list {
    margin: 0.25em 0 0.25em 1.6em;
}

.jef4docs-intranet-list li {
    margin: 0.3em 0;
    line-height: 1.4;
}

.jef4docs-intranet-icon {
    flex: none;
    margin-right: 0.5em;
    vertical-align: -3px;
    color: #333;
}

.jef4docs-intranet-list a {
    color: var(--jef4docs-intranet-link);
    font-size: 1.1rem;
    text-decoration: none;
}

.jef4docs-intranet-list a:hover {
    text-decoration: underline;
}

/* Ancestor the user may not see: shown only to reach the accessible sub-pages. */
.jef4docs-intranet-list li.is-restricted > a,
.jef4docs-intranet-list li.is-restricted > .jef4docs-intranet-icon {
    opacity: 0.6;
}

.jef4docs-intranet-restricted {
    font-size: 0.85em;
    opacity: 0.7;
}

/* Title row of a single intranet page: breadcrumb + title on the left, search on the right. */
.jef4docs-intranet-titlebar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 1.5rem;
}

.jef4docs-intranet-titlebar__main {
    flex: 1 1 320px;
    min-width: 0;
}

.jef4docs-intranet-titlebar .jef4docs-intranet-title {
    margin-bottom: 0;
}

/* Search (titles only): [jef4docs_intranet_search] and title row of the single pages. */
.jef4docs-intranet-search {
    position: relative;
    flex: 0 1 340px;
    width: 100%;
    max-width: 340px;
    margin: 0;
}

.jef4docs-intranet-search input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.jef4docs-intranet-search input[type="search"]:focus {
    border-color: var(--jef4docs-intranet-link, #3366b0);
    outline: none;
}

.jef4docs-intranet-search__results {
    position: absolute;
    z-index: 50;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.jef4docs-intranet-search__results[hidden] {
    display: none;
}

.jef4docs-intranet-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jef4docs-intranet-results a {
    display: block;
    padding: 8px 14px;
    color: inherit;
    text-decoration: none;
}

.jef4docs-intranet-results a:hover,
.jef4docs-intranet-results a:focus {
    background: #f3f5f9;
}

.jef4docs-intranet-results__title {
    display: block;
    color: var(--jef4docs-intranet-link, #3366b0);
    font-weight: 600;
}

.jef4docs-intranet-results__path {
    display: block;
    margin-top: 2px;
    color: #888;
    font-size: 0.8rem;
}

.jef4docs-intranet-results-none {
    margin: 0;
    padding: 8px 14px;
    color: #888;
}

/* Results page ([jef4docs_intranet] with ?intranet_q=). */
.jef4docs-intranet-results-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.jef4docs-intranet-index > .jef4docs-intranet-results a {
    padding-left: 0;
}

@media (max-width: 600px) {
    .jef4docs-intranet-search {
        flex-basis: 100%;
        max-width: none;
    }
}

/* The theme may not define WordPress' screen-reader-text. */
.jef4docs-intranet-search .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Search: loader while the folders list loads, "Show all results" link. */
.jef4docs-intranet-results-none.is-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jef4docs-intranet-spinner {
    flex: none;
    width: 14px;
    height: 14px;
    border: 2px solid #ddd;
    border-top-color: var(--jef4docs-intranet-link, #3366b0);
    border-radius: 50%;
    animation: jef4docs-intranet-spin 0.7s linear infinite;
}

@keyframes jef4docs-intranet-spin {
    to {
        transform: rotate(360deg);
    }
}

.jef4docs-intranet-results__more {
    display: block;
    width: 100%;
    margin: 4px 0 0;
    padding: 8px 14px;
    border: 0;
    border-top: 1px solid #eee;
    background: none;
    color: var(--jef4docs-intranet-link, #3366b0);
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.jef4docs-intranet-results__more:hover {
    background: #f3f5f9;
}

/* Single intranet page with sub-folders and room: sub-folders on the left.
   Column split: --jef4docs-intranet-sidebar (default 1/4; e.g. 33.333% for 1/3 + 2/3). */
.jef4docs-intranet-columns {
    --jef4docs-intranet-sidebar: 25%;
    display: grid;
    grid-template-columns: minmax(200px, var(--jef4docs-intranet-sidebar)) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.jef4docs-intranet-columns .jef4docs-room {
    margin-top: 0;
}

.jef4docs-intranet-sidebar {
    max-height: 70vh;
    overflow-y: auto;
}

.jef4docs-intranet-sidebar__title {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
}

.jef4docs-intranet-sidebar .jef4docs-intranet-children {
    margin: 0;
}

.jef4docs-intranet-sidebar .jef4docs-intranet-list a {
    font-size: 1rem;
}

.jef4docs-intranet-sidebar .jef4docs-intranet-list li {
    overflow-wrap: anywhere;
}

@media (max-width: 782px) {
    .jef4docs-intranet-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .jef4docs-intranet-sidebar {
        max-height: none;
    }
}

/* [jef4docs_my_rooms] */
.jef4docs-myrooms__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 0 0 20px;
}

.jef4docs-myrooms__title {
    margin: 0 !important;
    flex: 1 1 auto;
}

.jef4docs-myrooms__search {
    flex: 0 1 320px;
    min-width: 200px;
    padding: 10px 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 24px !important;
    font-size: 15px;
}

.jef4docs-myrooms__cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.jef4docs-myrooms__room {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 180px;
    max-width: 100%;
    padding: 18px 26px;
    border: 1px solid #d5dbe3;
    border-radius: 14px;
    background: #f4f7fb;
    color: inherit !important;
    font-family: var(--primary-website-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;
    transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
}

.jef4docs-myrooms__room:hover,
.jef4docs-myrooms__room:focus-visible {
    background: #fff;
    border-color: #5299e0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.jef4docs-myrooms__room[hidden] {
    display: none;
}

.jef4docs-myrooms__level {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e3ecf7;
    color: #33475b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.jef4docs-myrooms--room .jef4docs-myrooms__head {
    margin-bottom: 10px;
}

.jef4docs-myrooms__back {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    color: inherit !important;
    font-weight: 600;
    text-decoration: none !important;
}

.jef4docs-myrooms__back:hover {
    background: #f4f7fb;
}

.jef4docs-myrooms__empty {
    margin-top: 1em;
    color: #666;
}

.jef4docs-myrooms__level--public {
    background: #e6f4ea;
    color: #1e6b34;
}

.jef4docs-myrooms__section + .jef4docs-myrooms__section {
    margin-top: 28px;
}

.jef4docs-myrooms__section[hidden] {
    display: none;
}

.jef4docs-myrooms__section-title {
    margin: 0 0 12px !important;
    padding-bottom: 6px;
    border-bottom: 1px solid #d5dbe3;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #33475b;
}
