/* SmartLab theme (t32, spec B/E/F/G). Colours, fonts, radii and motion come from SmartLab/tokens.css (--sl-*).
   The Colorlib sections with no users (hero, about video, application form, pricing, team, courses, footer,
   breadcrumb option, about hero, testimonial, feature, room slider, faq, blog*, map, contact) were removed:
   every class they styled has zero matches in app/ and public/assets/js (grep proof in the t32 report). */

/* ---------- Base ---------- */
html, body {
	height: 100%;
	font-family: var(--sl-font-sans);
	-webkit-font-smoothing: antialiased;
	background-color: var(--sl-color-surface);
	color: var(--sl-color-ink);
	font-size: var(--sl-font-size-md);
	line-height: var(--sl-line-height);
}
body { overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: inherit; font-family: var(--sl-font-sans); line-height: var(--sl-line-height-tight, 1.25); }
h1 { font-size: var(--sl-font-size-2xl); font-weight: var(--sl-weight-semibold); }
h2 { font-size: var(--sl-font-size-xl); font-weight: var(--sl-weight-medium); }
h3 { font-size: var(--sl-font-size-lg); font-weight: var(--sl-weight-medium); }
h4 { font-size: var(--sl-font-size-lg); font-weight: var(--sl-weight-regular); }
h5 { font-size: var(--sl-font-size-md); font-weight: var(--sl-weight-medium); }
h6 { font-size: var(--sl-font-size-md); font-weight: var(--sl-weight-regular); }
p { margin: 0 0 var(--sl-space-4) 0; }
img { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--sl-focus-ring); }
ul, ol { padding: 0; margin: 0; }
ul { list-style: none; }
/* Legacy numbered content lists (1. 1.1 ...). Not for Bootstrap list components: they made the breadcrumb show "1." (PM addendum). */
ol:not(.breadcrumb):not(.list-unstyled):not(.carousel-indicators) { list-style-type: none; counter-reset: item; }
ol:not(.breadcrumb):not(.list-unstyled):not(.carousel-indicators) > li { display: table; counter-increment: item; margin-bottom: .4em; }
ol:not(.breadcrumb):not(.list-unstyled):not(.carousel-indicators) > li::before { content: counters(item, ".") ". "; display: table-cell; padding-right: .4em; }
li ol:not(.breadcrumb) > li { margin: 0; }
li ol:not(.breadcrumb) > li::before { content: counters(item, ".") " "; }
ul.disc > li { list-style-type: disc; margin-left: 1rem; }
ul.square > li { list-style-type: square; margin-left: 1rem; }
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white p, .text-white span, .text-white li, .text-white a { color: var(--sl-color-surface); }

/* ---------- Helpers ---------- */
.card-hover:hover { opacity: .8; cursor: pointer; }
.under-line { text-decoration: underline; font-weight: var(--sl-weight-semibold); }
.cursorPointer { cursor: pointer; }
.cursorDefault { cursor: default; }
.cursorDeny { cursor: not-allowed; }
.cursorWait { cursor: wait; }
.show { visibility: visible; }
.hide { visibility: hidden; }
.notHieght { max-height: 0; }
.upper { text-transform: uppercase; }
.font-small, .text-small { font-size: var(--sl-font-size-sm); }
.text-black { color: var(--sl-color-ink); }
.default-color { color: var(--sl-color-primary); }
.font-size-36 { font-size: 36px; }
.font-size-28 { font-size: 28px; }
.font-size-24 { font-size: 24px; font-weight: var(--sl-weight-medium); }
.font-size-22 { font-size: 22px; }
.font-size-20 { font-size: 20px; }
.font-size-18 { font-size: 18px; }
.font-size-16 { font-size: 16px; }
.font-size-14 { font-size: 14px; }
.font-size-12 { font-size: 12px; }
.font-size-10 { font-size: 10px; }
.text-shadow { text-shadow: 0 2px 2px rgb(0 0 0 / .4); }
.text-border-gray { text-shadow: -1px 0 gray, 0 1px gray, 1px 0 gray, 0 -1px gray; }
.text-border-lightgray { text-shadow: -1px 0 lightgrey, 0 1px lightgrey, 1px 0 lightgrey, 0 -1px lightgrey; }
.round-18 { border-radius: var(--sl-radius-lg); }
.line-border { border-top: 1px solid var(--sl-color-border); }
.value-underline-gray { padding: 0 15px; border-bottom: 1px dotted var(--sl-color-ink-subtle); display: inline-block; text-align: center; font-weight: var(--sl-weight-semibold); }
.img-min-wh { min-width: 100px; min-height: 100px; }
.img-thumbnail-max-w { max-width: 150px; }
.maxWidthImg { max-width: 250px; }
.vertical-middle, .table thead th { vertical-align: middle; }
.dropdown-padding-top-left-15 { padding-left: 15px; padding-top: 15px; }
.logo-circle-img { height: 55px; }
.rounded-circle { border-radius: 50% !important; border: 1px solid; padding: 2px 6px; font-size: x-small; }
.checkbox-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.ui.grid { margin: 0 -1.5rem 0 0; }
.carousel-caption { width: 100%; height: 100%; left: 0; padding: 50px; }
.plyr { border-radius: var(--sl-radius-md); }
h4 .text-button { font-size: 12px; }
@media (max-width: 360px) and (orientation: portrait) { .logo-circle-img { height: 6vh; } }

/* ---------- Status / level colours (legacy class names kept; values from tokens) ---------- */
.bg-warning { background-color: var(--sl-color-primary) !important; } /* ponytail: legacy alias, views use bg-warning as the brand blue */
.bg-orange { background-color: var(--sl-color-warning) !important; color: var(--sl-color-surface) !important; }
.bg-yellow { background-color: var(--sl-color-warning-subtle) !important; color: var(--sl-color-warning) !important; }
.bg-red { background-color: var(--sl-color-danger) !important; color: var(--sl-color-surface) !important; }
.bg-green { background-color: var(--sl-color-success) !important; color: var(--sl-color-surface) !important; }
.bg-light-gray { background-color: var(--sl-color-surface-alt); }
.border-warning { border-color: var(--sl-color-brand) !important; }
.alert-orange { color: var(--sl-color-warning); background-color: var(--sl-color-warning-subtle); border-color: var(--sl-color-warning); }
.alertMessageWarning, .alertMessageSuccess, .alertMessageDanger { border-radius: var(--sl-radius-md); border: 2px dashed currentColor; padding: var(--sl-space-4); text-align: center; vertical-align: middle; }
.alertMessageWarning { background-color: var(--sl-color-warning-subtle); color: var(--sl-color-warning); }
.alertMessageSuccess { background-color: var(--sl-color-success-subtle); color: var(--sl-color-success); }
.alertMessageDanger { background-color: var(--sl-color-danger-subtle); color: var(--sl-color-danger); }
.text-admin-system { color: var(--sl-color-danger); }
.text-admin-university { color: var(--bs-pink); }
.text-admin-faculty { color: var(--bs-orange); }
.text-admin-department { color: var(--sl-color-warning); }
.text-admin-laboratory { color: var(--sl-color-primary); }
.text-user { color: var(--sl-color-ink); }
.text-executive { color: var(--sl-chart-3); }
.text-building { color: var(--sl-color-success); }
.text-committee { color: var(--bs-indigo); }
.text-cleaner { color: var(--sl-color-ink-subtle); }
.text-head { color: var(--sl-chart-5); }

/* ---------- Buttons (legacy names map to the primary action colour) ---------- */
.btn-smartLab {
	--bs-btn-color: var(--sl-color-surface); --bs-btn-bg: var(--sl-color-primary); --bs-btn-border-color: var(--sl-color-primary);
	--bs-btn-hover-color: var(--sl-color-surface); --bs-btn-hover-bg: var(--sl-color-primary-hover); --bs-btn-hover-border-color: var(--sl-color-primary-hover);
	--bs-btn-active-color: var(--sl-color-surface); --bs-btn-active-bg: var(--sl-color-primary-active); --bs-btn-active-border-color: var(--sl-color-primary-active);
	--bs-btn-disabled-color: var(--sl-color-surface); --bs-btn-disabled-bg: var(--sl-color-primary); --bs-btn-disabled-border-color: var(--sl-color-primary);
	color: var(--bs-btn-color); background-color: var(--bs-btn-bg); border-color: var(--bs-btn-border-color);
}
.btn-smartLab:hover { color: var(--bs-btn-hover-color); background-color: var(--bs-btn-hover-bg); border-color: var(--bs-btn-hover-border-color); }
.btn-smartLab:active { color: var(--bs-btn-active-color); background-color: var(--bs-btn-active-bg); }
.btn-lightgray { background-color: var(--sl-color-surface-alt); color: var(--sl-color-ink); border-color: var(--sl-color-border); }
.btn-shadow { box-shadow: var(--sl-shadow-md); }
[type="button"]:disabled, [type="reset"]:disabled, [type="submit"]:disabled, button:disabled { cursor: not-allowed; }

/* ---------- Forms ---------- */
.input-group-text-right-transparent { background-color: transparent; border: 1px solid var(--sl-color-border-strong); border-right: 0; }
.input-form-control-left-transparent { border: 1px solid var(--sl-color-border-strong); border-left: 0; }
.form-control-clear { z-index: 10; pointer-events: auto; width: 14px; cursor: pointer; }
.input-border-less { border: 0; width: 90%; }
::-ms-clear { display: none; }
.ui-autocomplete, ul.ui-autocomplete.ui-menu, .pac-container, .ui-front { z-index: 9999 !important; }

/* ---------- Tables ---------- */
table#idTable.display tbody tr:hover td { cursor: pointer; }

.text-room-link { color: var(--sl-color-ink-subtle); text-decoration: none; }
.text-room-link:hover, .text-room-link:focus, .text-room-link:active { color: var(--sl-color-ink-subtle); text-decoration: underline; }

/* ---------- Preloader ---------- */
#preloder { position: fixed; inset: 0; z-index: 999999; background: var(--sl-color-surface); }
.loader { width: 40px; height: 40px; position: absolute; top: 50%; left: 50%; margin: -20px 0 0 -20px; border-radius: 50%;
	border: 4px solid var(--sl-color-primary-subtle); border-top-color: var(--sl-color-primary); animation: loader .8s linear infinite; }
@keyframes loader { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader { animation-duration: 2.4s; } }

/* ---------- Legacy module menu (menu.php, t30 replaces it with nav_module; delete this block then) ----------
   ponytail: kept only so module pages stay usable until t30's nav lands. */
.header { background: var(--sl-color-surface); width: 100%; z-index: 999; border-bottom: 1px solid var(--sl-color-border); }
.header__logo { position: relative; z-index: 1; }
.header__logo a { display: inline-block; }
.header__menu { padding: var(--sl-space-3) 0; }
.header__menu > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--sl-space-2) clamp(12px, 2.2vw, 32px); margin: 0; padding: 0; }
.header__menu ul li { list-style: none; display: inline-block; position: relative; }
.header__menu > ul > li { white-space: nowrap; }
.header__menu ul li a { font-size: var(--sl-font-size-md); color: var(--sl-color-ink); display: block; padding: 6px 0; position: relative; text-decoration: none; }
.header__menu ul li a::after { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--sl-color-brand); content: ""; transition: opacity var(--sl-duration-fast) var(--sl-ease); opacity: 0; }
.header__menu ul li.active a::after, .header__menu ul li:hover a::after, .header__menu ul li a:focus-visible::after { opacity: 1; }
.header__menu ul li .dropdown, .dropdownHide, .dropdownShow {
	position: absolute; left: 0; top: 33px; min-width: 250px; background: var(--sl-color-surface); border: 1px solid var(--sl-color-border);
	border-radius: var(--sl-radius-md); box-shadow: var(--sl-shadow-md); text-align: left; padding: var(--sl-space-1) 0; z-index: 9;
	opacity: 0; visibility: hidden; transition: opacity var(--sl-duration-fast) var(--sl-ease);
}
.dropdownShow { opacity: 1; visibility: visible; min-width: 300px; }
.header__menu ul li .dropdown li, .header__menu ul li .dropdownShow li { display: block; }
.header__menu ul li .dropdown li a, .header__menu ul li .dropdownShow li a { font-size: var(--sl-font-size-sm); color: var(--sl-color-ink); padding: var(--sl-space-2) var(--sl-space-4); }
.header__menu ul li .dropdownShow li a:hover, .header__menu ul li .dropdownShow li a:focus-visible { color: var(--sl-color-primary-active); background-color: var(--sl-color-primary-subtle); }
.header__menu ul li .dropdown li a::after, .header__menu ul li .dropdownShow li a::after { display: none; }
.header__right { text-align: right; }
.offcanvas__btn { padding-top: 10px; }
.offcanvas__btn ul li { font-size: var(--sl-font-size-lg); margin-bottom: 20px; }
.offcanvas__btn ul li a, .offcanvas__btn ul li a:hover { text-decoration: none; color: var(--sl-color-surface); }
.offcanvas-menu-wrapper, .canvas__open { display: none; }
#idModuleName { font-size: var(--sl-font-size-xl); color: var(--sl-color-surface); font-weight: var(--sl-weight-semibold); cursor: pointer; }
@media (max-width: 991px) {
	.canvas__open { display: block; font-size: 22px; color: var(--sl-color-primary); height: 44px; width: 44px; line-height: 42px; text-align: center; border: 1px solid var(--sl-color-primary); border-radius: var(--sl-radius-sm); cursor: pointer; position: absolute; right: 15px; top: 6px; z-index: 9; }
	.offcanvas-menu-overlay { position: fixed; inset: 0; background: rgb(15 23 42 / .5); z-index: 98; visibility: hidden; }
	.offcanvas-menu-overlay.active { visibility: visible; }
	.offcanvas-menu-wrapper { position: fixed; top: 0; left: 0; width: min(320px, 85vw); height: 100%; background: var(--sl-color-ink); padding: 50px 20px 30px; display: block; z-index: 99; overflow-y: auto; transform: translateX(-100%); transition: transform var(--sl-duration-normal) var(--sl-ease); }
	.offcanvas-menu-wrapper.active { transform: none; }
	.offcanvas__menu, .slicknav_btn, .header__menu, .header__right { display: none; }
	.slicknav_menu { background: transparent; padding: 0; margin-bottom: 20px; }
	.slicknav_nav { display: block !important; }
	.slicknav_nav ul { margin: 0; }
	.slicknav_nav .slicknav_row, .slicknav_nav a { padding: 10px 0; margin: 0; color: var(--sl-color-surface); font-weight: var(--sl-weight-medium); }
	.slicknav_nav .slicknav_row:hover, .slicknav_nav a:hover { border-radius: 0; background: transparent; color: var(--sl-color-primary-subtle); }
	.header .container { position: relative; }
}
#breadcrumbs-arrow { display: flex; flex-wrap: nowrap; align-items: center; width: 100%; overflow-x: auto; scrollbar-width: thin; }
#breadcrumbs-arrow li { flex: 0 0 auto; margin: 0 .5em 0 1em; }
#breadcrumbs-arrow a { background: var(--sl-color-surface-alt); padding: .7em 1em; display: block; white-space: nowrap; text-decoration: none; color: var(--sl-color-ink-muted); position: relative; }
#breadcrumbs-arrow a:hover, #breadcrumbs-arrow .current { background: var(--sl-color-primary); color: var(--sl-color-surface); }
@media (max-width: 1179px) { #breadcrumbs-arrow { display: none; } }
@media (min-width: 1180px) { #navBreadcrumbs { display: none; } }

/* ---------- Breadcrumbs (spec F1: wrap / truncate, never overflow) ---------- */
.sl-breadcrumb { flex-wrap: wrap; }
.sl-breadcrumb .breadcrumb-item { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-breadcrumb .breadcrumb-item.active { max-width: none; white-space: normal; color: var(--sl-color-ink-muted); }
.sl-breadcrumb a, .sl-back-link { color: var(--sl-color-primary); text-decoration: none; border-radius: var(--sl-radius-sm); }
.sl-breadcrumb a:hover, .sl-back-link:hover { color: var(--sl-color-primary-hover); text-decoration: underline; }
ul.breadcrumb { padding: 10px 16px; display: flex; flex-wrap: wrap; background-color: transparent; }
ul.breadcrumb li { font-size: var(--sl-font-size-md); color: var(--sl-color-ink-subtle); }
ul.breadcrumb li + li::before { padding: 0 .5em; color: var(--sl-color-ink-subtle); content: "/\00a0"; }
ul.breadcrumb li a { color: var(--sl-color-primary); text-decoration: none; }
ul.breadcrumb li a:hover { color: var(--sl-color-primary-hover); text-decoration: underline; }

/* ---------- Top bar states (spec E1; layout lives in components.css) ---------- */
.sl-topbar .btn-link { border-radius: var(--sl-radius-sm); }
.sl-topbar .btn-link:hover { color: var(--sl-color-primary); background-color: var(--sl-color-surface-alt); }
.sl-topbar .btn-link:active, .sl-topbar .btn-link.show { color: var(--sl-color-primary-active); background-color: var(--sl-color-primary-subtle); }
.sl-brand { border-radius: var(--sl-radius-sm); }
.sl-nav-list .list-group-item-action:hover { background-color: var(--sl-color-surface-alt); }
.sl-nav-list [aria-current] { box-shadow: inset 3px 0 0 var(--sl-color-brand); }

/* ---------- Home hero, logged out only (spec G) ---------- */
.sl-hero {
	display: flex; align-items: center; min-height: 40vh; padding: var(--sl-space-6) 0 var(--sl-space-8);
	color: var(--sl-color-surface);
	background: url("../img/banner/home.jpg") center / cover no-repeat;
}
@media (min-width: 768px) { .sl-hero { min-height: min(50vh, 34rem); } }
.sl-hero-title { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); font-weight: var(--sl-weight-semibold); letter-spacing: .02em; margin-bottom: var(--sl-space-3); text-wrap: balance; }
.sl-hero .banner-text-subtitle { font-size: var(--sl-font-size-lg); font-weight: var(--sl-weight-light); max-width: 46rem; }
.sl-hero-features { margin-top: calc(-1 * var(--sl-space-7)); position: relative; }
.sl-feature-card { border: 1px solid var(--sl-color-border); border-radius: var(--sl-radius-md); box-shadow: var(--sl-shadow-sm); border-top: 3px solid var(--sl-color-primary); }
.sl-feature-card h2 { font-size: var(--sl-font-size-lg); font-weight: var(--sl-weight-medium); color: var(--sl-color-brand); margin-bottom: var(--sl-space-3); text-wrap: balance; }
.sl-feature-card ul { list-style: disc; padding-left: 1.2rem; color: var(--sl-color-ink-muted); }
.sl-feature-card li.font-size-12, .sl-feature-card li { font-size: var(--sl-font-size-sm); margin-bottom: var(--sl-space-2); }
.ul-white, .ul-black { list-style: none; margin-left: 15px; }
.ul-white li, .ul-black li { list-style-position: outside; }
.ul-white li::before, .ul-black li::before { content: "\2022"; font-weight: 500; display: inline-block; width: 1em; margin-left: -1em; }
.ul-white li::before { color: var(--sl-color-surface); }
.ul-black li::before { color: var(--sl-color-ink); }
.line-title-primary { height: 24px; border-bottom: 4px solid var(--sl-color-primary); width: 48px; margin-bottom: 15px; }
.background-services { background: var(--sl-color-surface-alt); border-radius: var(--sl-radius-lg); border: 1px solid var(--sl-color-border); }
.section-bottom-content-mt { margin-top: 1.5rem !important; }

/* ---------- Footers (spec G) ---------- */
.sl-footer-app a, .sl-footer-public a { color: var(--sl-color-primary); text-decoration: none; border-radius: var(--sl-radius-sm); }
.sl-footer-app a:hover, .sl-footer-public a:hover { color: var(--sl-color-primary-hover); text-decoration: underline; }
.sl-footer-app { padding-bottom: calc(var(--sl-space-4) + 56px) !important; }
.sl-footer-public { background: var(--sl-color-surface-alt) !important; color: var(--sl-color-ink-muted); padding-bottom: calc(var(--sl-space-4) + 56px) !important; }
.sl-footer-public h2 { font-size: var(--sl-font-size-sm); font-weight: var(--sl-weight-semibold); color: var(--sl-color-ink); }
.sl-footer-public li { padding: var(--sl-space-1) 0; }
.sl-footer-public img { flex-shrink: 0; }

/* ---------- Return to top: sits in the footer's reserved bottom padding ---------- */
#return-to-top {
	position: fixed; bottom: var(--sl-space-4); right: var(--sl-space-4); width: 44px; height: 44px; z-index: 999;
	display: none; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none;
	color: var(--sl-color-surface); background: var(--sl-color-primary); box-shadow: var(--sl-shadow-md);
	transition: transform var(--sl-duration-fast) var(--sl-ease);
}
#return-to-top[style*="block"] { display: flex !important; }
#return-to-top:hover { background: var(--sl-color-primary-hover); color: var(--sl-color-surface); }

/* ---------- Cookie notice: bottom-right toast card (spec G / P13) ---------- */
.foot-cookie {
	position: fixed; right: var(--sl-space-4); bottom: var(--sl-space-4); left: var(--sl-space-4); max-width: 24rem; margin-left: auto; z-index: 1000;
	background: var(--sl-color-surface); color: var(--sl-color-ink); border: 1px solid var(--sl-color-border); border-radius: var(--sl-radius-md);
	box-shadow: var(--sl-shadow-lg); padding: var(--sl-space-4); font-size: var(--sl-font-size-sm);
}
body:has(.sl-form-actions) .foot-cookie { bottom: 5rem; }
.foot-cookie-condition { display: flex; flex-direction: column; gap: var(--sl-space-3); }
.foot-cookie a { color: var(--sl-color-primary); }

/* ---------- Modals ---------- */
.modalMainColor { background-color: var(--sl-color-primary); }
.modal-content-login { border-radius: var(--sl-radius-lg); border: 0; overflow: hidden; }
@media (max-width: 767.98px) { .modal-fullscreen-md-down .modal-content-login { overflow-y: auto; } }
@media (max-width: 575.98px) { .modal-fullscreen-sm-down .modal-content-login { overflow-y: auto; } }
.modal-background-image { background: url('../img/slider/02.jpg') center / cover no-repeat; }
.modal-container-login { padding: 0; margin: 0; }
.modal-container-login > .row { margin: 0; }
@media (max-width: 767.98px) { .modal-background-image { background: var(--sl-color-surface); } }
.modal-form-login { background-color: var(--sl-color-surface); padding: var(--sl-space-4); }
.modal-form-login table td:first-child { white-space: nowrap; }
@media (max-width: 575.98px) {
  body:not(.sl-guest) .modal-form-login > div:first-child table { flex: 1; min-width: 0; }
  body:not(.sl-guest) .modal-form-login table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  body:not(.sl-guest) .modal-form-login table td:first-child img { height: 32px !important; }
  body:not(.sl-guest) .modal-form-login table td:last-child { display: contents; }
  body:not(.sl-guest) .modal-form-login table td:last-child br { display: none; }
  body:not(.sl-guest) .modal-form-login table td:last-child .font-size-10 { grid-column: 1 / -1; font-size: var(--sl-font-size-xs); }
}
.modal-left-login { display: flex; justify-content: center; flex-direction: column; align-items: center; height: 100%; width: 100%; }
.modal-left-login-font { font-size: var(--sl-font-size-xl); color: var(--sl-color-surface); font-weight: var(--sl-weight-semibold); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .1em; }
.sl-modal-title { color: var(--sl-color-brand); font-weight: var(--sl-weight-medium); overflow-wrap: anywhere; }
.modal-form-login a { color: var(--sl-color-primary); }
.modal-form-login .btn-smartLab, .modal-form-login .btn-secondary { min-height: var(--sl-tap-min); }
.modal-form-login .btn-smartLab:focus-visible { box-shadow: var(--sl-focus-ring); }
.modal-dialog-wh { width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
.modal-header-wh { color: var(--sl-color-surface); background: var(--sl-color-primary); border-bottom: 1px solid var(--sl-color-primary) !important; border-radius: 0; }
.modal-header-wh .modal-title, .modalMainColor .modal-title { color: var(--sl-color-on-primary); }
.modal-content-wh { height: auto !important; min-height: 100% !important; border-radius: 0 !important; background-color: var(--sl-color-surface-alt) !important; }
.close-icon-gray { cursor: pointer; display: block; width: 20px; height: 20px; border: 3px solid var(--sl-color-border-strong); border-radius: 100%;
	background: linear-gradient(-45deg, transparent 46%, white 46%, white 56%, transparent 56%), linear-gradient(45deg, transparent 46%, white 46%, white 56%, transparent 56%);
	background-color: var(--sl-color-border-strong); }

/* ---------- Page-specific leftovers ---------- */
.lab-border-white { background-color: var(--sl-color-surface); border: 1px solid var(--sl-color-border); }
.lab-border-gray { background-color: var(--sl-color-surface-alt); border: 1px solid var(--sl-color-border); }
.lab-img-border { border: 1px solid var(--sl-color-border); border-radius: var(--sl-radius-sm); min-height: 430px; }
.lab-table-border { border: 1px solid var(--sl-color-border); border-radius: var(--sl-radius-sm); }
.help-div-shelf { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 10; margin: 0 auto -80px; width: min(770px, 100%); }
#carouselSlider { border-bottom: 3px solid var(--sl-color-border); }
#idSectionBottom { overflow: hidden; position: relative; height: 240px; margin-top: 60px; }
@media (max-width: 768px) { #idSectionBottom { height: 200px; } }
@media (max-width: 576px) { #idSectionBottom { height: 150px; } .section-bottom-content-mt { margin-top: .8rem !important; } }
@media (max-width: 989px) { .lab-font { font-size: .9rem; } .lab-font-button { font-size: .8rem; } .lab-font-button-group { font-size: .9rem; } }
@media (min-width: 990px) and (max-width: 1420px) { .lab-font { font-size: .9rem; } .lab-font-button, .lab-font-button-group { font-size: .7rem; } }
@media (min-width: 1421px) and (max-width: 1624px) { .lab-font { font-size: .8rem; } .lab-font-button { font-size: .7rem; } .lab-font-button-group { font-size: .8rem; } }
@media (min-width: 1625px) { .lab-font { font-size: 1rem; } .lab-font-button { font-size: .8rem; } .lab-font-button-group { font-size: .9rem; } }

/* ---------- Module nav (t30 nav_module.php, spec E2) ---------- */
.sl-module-nav-link { min-height: var(--sl-tap-min); display: inline-flex; align-items: center; padding: var(--sl-space-2) var(--sl-space-3); color: var(--sl-color-ink); text-decoration: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font: inherit; font-weight: var(--sl-weight-medium); white-space: nowrap; }
.sl-module-nav-link:hover { color: var(--sl-color-primary); }
.sl-module-nav-link:focus-visible { outline: none; box-shadow: var(--sl-focus-ring); border-radius: var(--sl-radius-sm); }
.sl-module-nav-link.active, .sl-module-nav-link[aria-current="page"] { border-bottom-color: var(--sl-color-brand); color: var(--sl-color-brand); }
.sl-module-nav-menu { width: max-content; min-width: 15rem; max-width: min(90vw, 32rem); max-height: 70vh; overflow-y: auto; }
.sl-module-nav-menu .dropdown-item { white-space: normal; min-height: 44px; display: flex; align-items: center; }
.sl-module-nav-menu .dropdown-item .fa { flex: 0 0 1.28571429em; }
.sl-nav-list details.list-group-item { display: block; }
.sl-nav-list summary { min-height: 48px; cursor: pointer; }
.sl-nav-list summary:focus-visible { outline: 2px solid var(--sl-color-primary); outline-offset: -2px; }

.sl-nav-list .list-group-item { min-height: 48px; }
.sl-nav-list a.list-group-item, .sl-nav-list button.list-group-item { display: flex; align-items: center; }

@media (min-width: 992px) and (max-width: 1023.98px) {
  .sl-topbar .d-lg-none { display: inline-flex !important; }
  .sl-topbar .d-lg-block, .sl-topbar .d-lg-inline-block, .sl-module-nav { display: none !important; }
}

/* Shared application surfaces: the original SmartLab blue and Kanit on a quiet workbench. */
body:not(.sl-guest) { min-height: 100%; height: auto; background: var(--sl-color-surface-alt); }
body:not(.sl-guest) .sl-topbar { background: var(--sl-color-surface) !important; box-shadow: none; }
body:not(.sl-guest) .sl-module-nav { background: var(--sl-color-surface) !important; position: relative; z-index: 1020; }
.sl-module-nav > .container-xxl { min-width: 0; }
.sl-module-nav-link { font-family: var(--sl-font-sans); font-size: var(--sl-font-size-sm); line-height: var(--sl-line-height); font-weight: var(--sl-weight-medium); }
.sl-module-nav-link:hover, .sl-module-nav-link[aria-expanded="true"] { background: var(--sl-color-primary-subtle); color: var(--sl-color-primary-active); }
.sl-module-nav-link.active { box-shadow: inset 0 -2px var(--sl-color-brand); }
.sl-module-nav-link.active:focus-visible { box-shadow: inset 0 -2px var(--sl-color-brand), var(--sl-focus-ring); }
.sl-module-nav-menu { padding: var(--sl-space-2); }
.sl-module-nav-menu .dropdown-item { border-radius: var(--sl-radius-sm); gap: var(--sl-space-1); }
@media (min-width: 992px) {
  .sl-report .sl-report-nav .sl-nav-scroll { overflow: visible; }
  .sl-report .sl-report-nav .sl-nav-scroll .nav-link { display: flex; align-items: flex-start; gap: var(--sl-space-2); white-space: normal; overflow-wrap: anywhere; }
  .sl-report .sl-report-nav .sl-nav-scroll .nav-link .fa { flex: 0 0 auto; margin-top: .25em; }
}
.sl-offcanvas { box-shadow: var(--sl-shadow-lg); }
.sl-nav-list summary { display: flex; align-items: center; }
.sl-nav-list summary::after { content: '+'; margin-inline-start: auto; color: var(--sl-color-ink-muted); }
.sl-nav-list details[open] > summary::after { content: '−'; }
body:not(.sl-guest) .sl-page { padding-top: var(--sl-space-6); }
.sl-page-header { border-bottom-color: var(--sl-color-border); padding-bottom: var(--sl-space-5); }
.sl-page-title { color: var(--sl-color-brand); letter-spacing: -.015em; }
.sl-breadcrumb { margin-bottom: var(--sl-space-2); }
body:not(.sl-guest) .sl-page .card, body:not(.sl-guest) .sl-page .sl-kpi {
  border-color: var(--sl-color-border); border-radius: var(--sl-radius-lg); box-shadow: var(--sl-shadow-sm);
}
body:not(.sl-guest) .sl-page .sl-task-card { border-top: 3px solid var(--sl-color-primary); }
body:not(.sl-guest) .sl-task-card:hover { box-shadow: var(--sl-shadow-md); }
.sl-task-icon { border-radius: var(--sl-radius-md); background: var(--sl-color-primary-subtle); color: var(--sl-color-primary-active); }
.sl-filter-bar { border: 1px solid var(--sl-color-border); border-radius: var(--sl-radius-lg); box-shadow: var(--sl-shadow-sm); }
.sl-table-wrap { border-radius: var(--sl-radius-lg); box-shadow: var(--sl-shadow-sm); }
.sl-table thead th { position: sticky; top: 0; z-index: 1; background: var(--sl-color-surface-alt); }
@media (min-width: 768px) {
  .sl-dt-wrap .dt-layout-table { max-height: min(70vh, 48rem); overflow: auto; }
}
.sl-table tbody > tr:nth-child(even) > * { --bs-table-bg: var(--sl-color-row-stripe, #f8fafc); }
.sl-table tbody > tr:hover > * { --bs-table-accent-bg: var(--sl-color-row-hover); }
.sl-state { border: 1px dashed var(--sl-color-border-strong); border-radius: var(--sl-radius-lg); background: var(--sl-color-surface); }
.sl-state h2 { color: var(--sl-color-ink); }
.sl-state-error { border-color: var(--sl-color-danger); }
.badge.bg-warning, .badge.text-bg-warning { color: var(--sl-color-on-primary) !important; background: var(--sl-color-warning) !important; }
.badge.bg-info, .badge.text-bg-info { color: var(--sl-color-on-primary) !important; background: var(--sl-color-info) !important; }
.sl-dt-loading .sl-state { border: 0; }
body:not(.sl-guest) .sl-page .sl-form-actions { position: static; }
.sl-footer-app { background: var(--sl-color-surface); }
.sl-footer-app .container-xxl { align-items: center; }
@media (max-width: 575.98px) {
  body:not(.sl-guest) .sl-page { padding-top: var(--sl-space-5); }
  .sl-table-stack thead th { position: static; }
  .sl-table-stack tbody > tr:nth-child(even) > * { --bs-table-bg: var(--sl-color-surface); }
  .sl-table-stack tr { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loader, .spinner-border, .spinner-grow, .fa-spin { animation: none !important; }
}

/* Shared navigation and dashboard refinements. */
.sl-breadcrumb .breadcrumb-item { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; }
.sl-module-nav-row { min-width: 0; }
.sl-nav-task { flex: 0 0 auto; }
.sl-nav-task[hidden], .sl-nav-overflow[hidden] { display: none !important; }
.sl-module-nav .dropdown-toggle::after, .sl-module-switcher .dropdown-toggle::after { margin-left: .65em; vertical-align: middle; border: 0; font: var(--fa-font-solid); content: '\f078'; font-size: .7em; }
.sl-menu-label { margin-left: .4rem; font-size: .8rem; font-weight: 500; }
.sl-icon-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sl-offcanvas { background: var(--sl-color-surface-alt); }
.sl-offcanvas .list-group-item { background: transparent; border-color: var(--sl-color-border); }
.sl-offcanvas .sl-nav-list [aria-current] { background: var(--sl-color-primary-subtle); }
@media (min-width: 1200px) {
 .sl-dashboard > section.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
 .sl-dashboard > section.row > .col { width: auto; grid-column: span 3; }
 .sl-dashboard > section.row > .col:nth-last-child(-n+3) { grid-column: span 4; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
 .sl-dashboard > section.row > .col:last-child { width: 100%; }
}
@media (max-width: 575.98px) {
 .sl-topbar nav { gap: .25rem !important; }
 .sl-topbar .sl-icon-btn { min-width: var(--sl-tap-min); padding-inline: .25rem; }
 .sl-topbar .sl-brand { gap: .2rem !important; }
 .sl-topbar .sl-brand img { height: 28px; width: auto; }
 .sl-topbar .sl-wordmark { font-size: .76rem; white-space: nowrap; }
 .sl-topbar .sl-user-btn { padding-inline: .35rem; }
}

/* Interactive controls and dense records */
#return-to-top { left: 1rem; right: auto; width: 48px; height: 48px; font-size: 1.15rem; }
body:has(.foot-cookie:not([style*="display: none"])) #return-to-top, body.modal-open #return-to-top { visibility: hidden; }
.select2-container--smartlab .select2-results > .select2-results__options { max-height: min(320px, 45vh); overflow-y: auto; overscroll-behavior: contain; }
.select2-container--smartlab .select2-results__option { line-height: 1.4; }
.select2-container--smartlab .sl-option-code, .select2-container--smartlab .sl-option-name { display: block; }
.select2-container--smartlab .sl-option-code { font-weight: 500; }
.select2-container--smartlab .sl-option-name { color: #526477; font-size: .875em; }
.select2-container--smartlab .select2-results__option--highlighted .sl-option-name { color: inherit; }
.select2-container--smartlab mark { padding: 0; color: inherit; background: #ffe995; }
.lab-area-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.lab-area-action { flex: 0 0 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.lab-area-row + .lab-area-row { border-top: 1px solid var(--sl-color-border); }
.sl-life-search { flex: 1 1 16rem; max-width: 24rem; }
.sl-column-picker { position: relative; }
.sl-column-picker summary { white-space: nowrap; list-style: none; }
.sl-column-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: max-content; min-width: 16rem; max-width: min(22rem, calc(100vw - 32px)); max-height: 20rem; overflow: auto; padding: 8px; background: white; border: 1px solid var(--sl-color-border); border-radius: 8px; box-shadow: var(--sl-shadow-md); }
.sl-column-menu label { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 8px; }
.sl-code-actions { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.sl-code-actions a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; border: 1px solid var(--sl-color-border); border-radius: .25rem; }
#lifeCycleTable th { white-space: normal; min-width: 6rem; }
#lifeCycleTable th:first-child { min-width: 2rem; }
#lifeCycleTable td { vertical-align: middle; }
#ChemDetailModal #div_hazard img { width: 68px; height: 68px; max-width: 68px; object-fit: contain; flex: 0 0 68px; }
#ChemDetailModal .modal-footer { background: var(--sl-color-surface); }
#ChemDetailModal .modal-body h2 { font-size: 1.05rem; font-weight: 500; color: var(--sl-color-primary); }
#ChemDetailModal .modal-body label { font-size: .875rem; font-weight: 500; color: var(--sl-color-ink-muted); }
#return-to-top[style*="inline"], #return-to-top[style*="block"] { display: flex !important; }
.sl-table-wrap:has(.sl-column-picker) { overflow: visible; }
.sl-data-table .sl-column-picker { z-index: 3; }
.sl-table-wrap .dt-scroll-body { overflow: auto; }
#lifeCycleTable td:first-child, .sl-table:not(.sl-table-stack) tbody td:first-child { position: sticky; left: 0; z-index: 2; background: var(--sl-color-surface); }
.sl-hazard-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .35rem; max-width: 10rem; text-align: center; font-size: .75rem; color: var(--sl-color-ink-muted); }
body.modal-open #debug-icon { visibility: hidden; }
@media (min-width: 769px) {
  .sl-table-stack tbody td:first-child, #lifeCycleTable thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--sl-color-surface); }
}
.modal .modal-body img { max-width: 100%; max-height: min(60vh, 24rem); object-fit: contain; }
@media (max-width: 767.98px) {
  .sl-life-toolbar { position: relative; }
  #debug-icon { visibility: hidden !important; }
  #lifeCycleTable_wrapper .dt-scroll-head { display: none; }
  #lifeCycleTable, #lifeCycleTable tbody, #lifeCycleTable tr, #lifeCycleTable td { display: block; width: 100% !important; }
  #lifeCycleTable tr { border: 0; border-bottom: 1px solid var(--sl-color-border); border-radius: 0; margin: 0; padding: 12px 4px; }
  #lifeCycleTable td { display: block; padding: 6px 8px; border: 0; white-space: normal !important; text-align: left !important; }
  #lifeCycleTable td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--sl-color-ink-muted); font-size: .875rem; font-weight: 500; }
  #lifeCycleTable td.sl-num { text-align: right !important; }
  #lifeCycleTable td.sl-num::before { text-align: left; }
  #lifeCycleTable td:first-child { position: static; }
  #lifeCycleTable td:last-child { border-bottom: 0; }
  #lifeCycleTable td[colspan] { display: block; text-align: center !important; }
  #lifeCycleTable .sl-code-actions { max-width: 100%; flex-wrap: wrap; }
}

/* Unit-specific chemical rankings */
.sl-unit-ranking{text-align:start;padding:.5rem 0 1rem}.sl-unit-ranking+.sl-unit-ranking{border-top:1px solid var(--sl-color-border);padding-top:1.25rem}.sl-unit-ranking h3{font-size:1.05rem;line-height:1.45;color:var(--sl-color-primary);margin:0 0 1rem}.sl-unit-ranking-list{list-style:none;margin:0;padding:0;display:grid;gap:.85rem}.sl-unit-ranking-label{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;line-height:1.4}.sl-unit-ranking-label span{overflow-wrap:anywhere;min-width:0}.sl-unit-ranking-label strong{white-space:nowrap;font-variant-numeric:tabular-nums}.sl-unit-ranking-track{height:.5rem;margin-top:.35rem;border-radius:1rem;background:#e6f1f7;overflow:hidden}.sl-unit-ranking-track span{display:block;height:100%;border-radius:inherit;background:var(--sl-color-primary)}.sl-unit-empty{margin:1rem;color:var(--sl-color-ink-muted)}
ol.sl-unit-ranking-list:not(.breadcrumb):not(.list-unstyled):not(.carousel-indicators)>li{display:grid;grid-template-columns:2.5ch minmax(0,1fr);margin-bottom:0}
ol.sl-unit-ranking-list:not(.breadcrumb):not(.list-unstyled):not(.carousel-indicators)>li::before{display:block;grid-column:1;grid-row:1}
.sl-unit-ranking-label,.sl-unit-ranking-track{grid-column:2}.sl-unit-ranking-label span{flex:1}

/* Guided entry for chemical inventory and waste tags */
.sl-wizard-progress{background:var(--sl-color-surface);border:1px solid var(--sl-color-border);border-radius:var(--sl-radius-lg);padding:1rem 1.2rem;margin:0 0 1.25rem;box-shadow:var(--sl-shadow-sm);scroll-margin-top:1rem}.sl-wizard-progress-text{font-weight:500;color:var(--sl-color-primary);margin-bottom:.65rem}.sl-wizard-track{height:.4rem;border-radius:1rem;background:#e2edf3;overflow:hidden}.sl-wizard-track span{display:block;height:100%;background:var(--sl-color-primary);border-radius:inherit}.sl-wizard .sl-wizard-hidden,.sl-wizard [hidden]{display:none!important}.sl-wizard-review{background:var(--sl-color-surface);border:1px solid var(--sl-color-border);border-radius:var(--sl-radius-lg);padding:clamp(1rem,3vw,1.5rem);margin-bottom:1.25rem;box-shadow:var(--sl-shadow-sm)}.sl-wizard-review h2{font-size:1.3rem;color:var(--sl-color-primary);margin:0 0 1rem}.sl-wizard-review h3{font-size:1rem;color:var(--sl-color-primary);margin:1rem 0 .4rem}.sl-wizard-review dl{margin:0}.sl-wizard-review dl>div{display:flex;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid var(--sl-color-border);overflow-wrap:anywhere}.sl-wizard-review dt{font-weight:500;color:var(--sl-color-ink-muted)}.sl-wizard-review dd{margin:0;text-align:right;font-weight:500;max-width:60%}.sl-wizard .sl-form-actions{position:static!important}.sl-wizard .sl-form-actions .btn{min-height:44px}.sl-wizard ~ .sl-tag-nav{display:none}body:has(#iFormTag.sl-wizard) .sl-tag-nav{display:none}@media(max-width:575.98px){.sl-wizard .sl-form-actions .btn{flex:1 1 auto}.sl-wizard-progress{padding:.85rem 1rem}}

body:not(.sl-guest) { background: var(--sl-color-surface-alt); color: var(--sl-color-ink); }
body:not(.sl-guest) .sl-page { padding-top: var(--sl-space-5); }
body:not(.sl-guest) .sl-shell-header > .sl-page-header {
  position: relative; padding: 0 0 var(--sl-space-5) var(--sl-space-4);
  border: 0; border-bottom: 1px solid var(--sl-color-border); border-radius: 0;
  background: transparent; box-shadow: none;
}

.sl-page-title { color: var(--sl-color-ink); font-size: var(--sl-font-size-2xl); line-height: var(--sl-line-height-tight); font-weight: var(--sl-weight-medium); letter-spacing: normal; }
.sl-page-subtitle { max-width: 70ch; line-height: var(--sl-line-height); font-size: var(--sl-font-size-md); color: var(--sl-color-ink-muted) !important; }
.sl-module-nav-link.active, .sl-module-nav-link[aria-current="page"] { color: var(--sl-accent-text, var(--sl-accent)); border-bottom-color: var(--sl-accent); box-shadow: inset 0 -2px var(--sl-accent); }
body:not(.sl-guest) .sl-page .btn-primary, body:not(.sl-guest) .sl-page .btn-smartLab {
  --bs-btn-bg: var(--sl-color-primary); --bs-btn-border-color: var(--sl-color-primary); --bs-btn-hover-bg: var(--sl-color-primary-hover); --bs-btn-hover-border-color: var(--sl-color-primary-hover);
  --bs-btn-active-bg: var(--sl-color-primary-active); --bs-btn-active-border-color: var(--sl-color-primary-active); color: var(--sl-color-on-primary);
}
body:not(.sl-guest) .sl-page .sl-module-cards .sl-task-card { border: 1px solid var(--sl-color-border); border-radius: var(--sl-radius-md); box-shadow: none; }
.sl-module-cards .sl-task-card .card-body { padding: 20px; align-items: flex-start; }
.sl-module-cards .sl-task-card h2 { font-size: 1rem; font-weight: 500; line-height: 1.4; }
.sl-module-cards .sl-task-card h2 a { color: var(--sl-color-ink); }
.sl-module-cards .sl-task-card p { font-size: .875rem; line-height: 1.5; }
.sl-module-cards .sl-task-card .sl-task-icon { width: 36px; height: 36px; border-radius: 8px; font-size: 1rem; color: var(--sl-color-ink-muted); background: var(--sl-color-surface-alt); }
.sl-module-cards .sl-task-card { transition: border-color var(--sl-duration-fast) var(--sl-ease), background-color var(--sl-duration-fast) var(--sl-ease); }
body:not(.sl-guest) .sl-page .sl-module-cards .sl-task-card:hover { border-color: var(--sl-color-border-strong); box-shadow: none; transform: none; }
.sl-module-cards .sl-task-card:focus-within { transform: none; box-shadow: var(--sl-focus-ring) !important; }
body:not(.sl-guest) .sl-page .sl-module-dashboard .sl-module-cards .sl-task-card, body.sl-module-dashboard:not(.sl-guest) .sl-page .sl-module-cards .sl-task-card { background: var(--sl-color-surface); border-left: 3px solid var(--sl-accent); }
.sl-module-dashboard .sl-module-cards .sl-task-card h2 a { color: var(--sl-accent-text, var(--sl-accent)); }
.sl-module-dashboard .sl-module-cards .sl-task-card .sl-task-icon { color: var(--sl-accent-text, var(--sl-accent)); }
.sl-switcher-icon { color: var(--sl-color-ink-muted); }
.sl-module-switcher [aria-current] .sl-switcher-icon, .sl-nav-list [aria-current] .sl-switcher-icon { color: var(--sl-accent-text, var(--sl-accent)); }
.sl-module-switcher .dropdown-menu { padding: var(--sl-space-2); width: max-content; min-width: 19rem; max-width: min(90vw, 32rem); }
.sl-module-switcher .dropdown-item { white-space: normal; border-radius: var(--sl-radius-sm); }
.sl-module-switcher .dropdown-item.active { box-shadow: inset 3px 0 var(--sl-accent); color: var(--sl-accent-text, var(--sl-accent)); }
.sl-module-nav .fa, .sl-module-switcher .fa, .sl-nav-list .fa { width: 24px; flex: 0 0 24px; font-size: 16px; text-align: center; }
.sl-nav-list .list-group-item, .sl-nav-list summary { min-height: var(--sl-tap-min); overflow-wrap: anywhere; }
.sl-module-nav-link { transition: color var(--sl-duration-fast) var(--sl-ease), background-color var(--sl-duration-fast) var(--sl-ease), border-color var(--sl-duration-fast) var(--sl-ease); }
.sl-module-nav-link:hover, .sl-module-nav-link[aria-expanded="true"] { background: #F0F2F2; color: var(--sl-accent-text, var(--sl-accent)); }
.sl-module-nav-link.active:focus-visible { box-shadow: inset 0 -2px var(--sl-accent), var(--sl-focus-ring); }
.sl-offcanvas { --bs-offcanvas-transition: transform var(--sl-duration-normal) var(--sl-ease); }
.sl-topbar :focus-visible, .sl-module-nav :focus-visible, .sl-offcanvas :focus-visible { outline: 2px solid var(--sl-color-primary); outline-offset: -2px; }
.sl-dashboard .sl-dashboard-section-title { color: var(--sl-color-ink); font-size: 1.25rem; font-weight: 500; }
.sl-dashboard .sl-tasks.sl-tasks-attention { border-color: #dfb875; }
.sl-dashboard .sl-tasks-attention .sl-tasks-head { background: #fff1d8; border-color: #e4c38e; }
.sl-dashboard .sl-tasks-attention .sl-tasks-head h2, .sl-dashboard .sl-tasks-attention .sl-task-count { color: #784000; }
.sl-dashboard .sl-tasks-attention .sl-task-row .sl-task-icon { background: #fff1d8; color: #784000; }
.sl-task-total { float: right; color: #784000; font-size: 2rem; font-variant-numeric: tabular-nums; font-weight: 500; line-height: 1; margin-left: 1rem; }
.sl-task-total .fa { font-size: 1.1rem; vertical-align: middle; }
body:not(.sl-guest) .sl-page h2:not(.sl-page-title), body:not(.sl-guest) .sl-page h3 { letter-spacing: -.01em; }
.sl-table thead th, .sl-data-table thead th { background: var(--sl-color-surface-alt); color: var(--sl-color-ink-muted); font-weight: 500; border-bottom: 1px solid var(--sl-color-border); }
.sl-table tbody td:first-child, .sl-data-table tbody td:first-child { font-weight: 500; }
.sl-num, .dt-type-numeric { font-variant-numeric: tabular-nums; }
.sl-table tbody > tr:hover > *, .sl-data-table tbody > tr:hover > * { --bs-table-hover-bg: var(--sl-color-row-hover); }
@media (min-width: 1200px) { body:not(.sl-module-dashboard) .sl-module-cards > .sl-featured-action { width: 40%; } body:not(.sl-module-dashboard) .sl-module-cards > .col:not(.sl-featured-action) { width: 30%; } #inventoryCharts > div:first-child { width: 100%; } #learnCharts > div:first-child { width: 66.666667%; } #learnCharts > div:nth-child(2) { width: 33.333333%; } }
@media (max-width: 575.98px) { body:not(.sl-guest) .sl-page { padding-top: 1rem; } body:not(.sl-guest) .sl-shell-header > .sl-page-header { padding: 0 0 var(--sl-space-4) var(--sl-space-4); } .sl-task-total { font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .sl-module-cards .sl-task-card { transition: none; } .sl-module-cards .sl-task-card:hover, .sl-module-cards .sl-task-card:focus-within { transform: none; } }
/* DataTables and Bootstrap paint cells through their own background variables. */
body:not(.sl-guest) .sl-page table.sl-table > thead > tr > th { --bs-table-bg: var(--sl-color-surface-alt); background-color: var(--sl-color-surface-alt) !important; color: var(--sl-color-ink-muted); border-bottom: 1px solid var(--sl-color-border); }
#inventoryCharts .sl-chart-card:has(.sl-unit-empty) .card-body, #inventoryCharts .sl-chart-card:has(.is-unavailable) .card-body { min-height: 0; }
#inventoryCharts .sl-inventory-chart:has(> .sl-unit-empty), #inventoryCharts .sl-inventory-chart.is-unavailable { min-height: 8rem; display: flex; align-items: center; justify-content: center; }
#inventoryCharts .sl-inventory-chart.is-unavailable .sl-inventory-chart-state { min-height: 8rem; }
#inventoryCharts .sl-unit-empty { margin: 0; color: var(--sl-color-ink-muted); }
.sl-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.sl-dashboard-kpi { background: var(--sl-color-surface); border: 1px solid var(--sl-color-border); border-top: 3px solid var(--sl-accent); border-radius: var(--sl-radius-md); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; color: var(--sl-color-ink-muted); }
.sl-dashboard-kpi strong { color: var(--sl-accent-text, var(--sl-accent)); font-size: 2rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
@media (max-width: 575.98px) { .sl-kpi-grid { grid-template-columns: 1fr; gap: 8px; } .sl-dashboard-kpi { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; } .sl-module-cards { --bs-gutter-y: 8px; } .sl-module-cards .sl-task-card .card-body { padding: 12px 16px; gap: 12px !important; } .sl-module-cards .sl-task-card h2 { font-size: 1rem; } .sl-module-cards .sl-task-card p { margin-bottom: 0 !important; } }

/* Shared status: text and icon carry meaning alongside the semantic colors. */
.sl-status { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .2rem .55rem; border-radius: 6px; font-size: .8125rem; font-weight: 500; line-height: 1.35; white-space: nowrap; }
.sl-status--success { color: var(--sl-color-success); background: var(--sl-color-success-subtle); }
.sl-status--warning { color: var(--sl-color-warning); background: var(--sl-color-warning-subtle); }
.sl-status--danger { color: var(--sl-color-danger); background: var(--sl-color-danger-subtle); }
.sl-status--neutral { color: #334155; background: #e8eef2; }

/* List controls and records share one quiet surface; the selected filter remains distinct. */
body:not(.sl-guest) .sl-page #buildingFilter,
body:not(.sl-guest) .sl-page .sl-chem-filters .sl-filter-bar {
  padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
.sl-chem-filters .sl-filter-actions { padding-top: 16px; }
.sl-life-results { box-shadow: none; }
.sl-life-toolbar .btn-group .btn.active { color: #fff; background: var(--sl-accent-chem); border-color: var(--sl-accent-chem); }
.sl-life-toolbar .btn, .sl-column-picker summary { min-height: 44px; }
.sl-code-actions { font-variant-numeric: tabular-nums; }
.sl-code-actions a { min-width: 44px; min-height: 44px; border-radius: 8px; }
#lifeCycleTable { font-size: 14px; }
#lifeCycleTable > thead > tr > th { --bs-table-bg: var(--sl-color-surface-alt); color: var(--sl-color-ink-muted); border-bottom: 1px solid var(--sl-color-border); font-weight: 500; }
@media (max-width: 767.98px) {
  .sl-life-toolbar .sl-life-sources { width: 100%; flex-wrap: nowrap; }
  .sl-life-toolbar .sl-life-sources .btn { flex: 1 1 0; min-width: 0; padding-inline: .25rem; white-space: nowrap; font-size: .85rem; }
  .sl-life-toolbar .sl-life-search { order: 1; flex: 1 0 100%; max-width: none; }
  .sl-life-toolbar #btnFilterQty, .sl-life-toolbar .sl-column-picker, .sl-life-toolbar > label { order: 2; }
  .sl-life-toolbar #btnDeleteSelected { order: 3; }
  .sl-life-column-label { display: none; }
  .sl-life-toolbar .sl-column-picker summary { min-width: 44px; }
  .sl-life-toolbar .sl-column-picker { position: static; }
  .sl-life-toolbar .sl-column-menu { left: 0; right: 0; top: 100%; width: 100%; max-width: none; }
  .sl-life-results { padding: 16px !important; }
  #lifeCycleTable td { font-size: 14px; }
  #lifeCycleTable td[data-label]::before { margin-bottom: 2px; overflow-wrap: anywhere; }
  #lifeCycleTable td.sl-num { text-align: left !important; }
  #lifeCycleTable .sl-code-actions { white-space: normal; overflow-wrap: anywhere; }
}

/* Missing practice records are ordinary status values, not request errors. */
[data-sl-practice] .badge.text-bg-danger { background-color: var(--bs-secondary-bg) !important; color: var(--bs-secondary-color) !important; }

/* The room-plan month switches retain their original inputs and toggle behavior. */
.sl-plan-month-buttons .toggle { width: auto !important; height: auto !important; min-width: 4.5rem !important; min-height: 0 !important; padding: 0; border: 0; background: transparent !important; overflow: visible; }
.sl-plan-month-buttons .toggle > .toggle-group, .sl-plan-month-buttons .toggle.off > .toggle-group { position: static; width: auto; transition: none; }
.sl-plan-month-buttons .toggle > .toggle-group > .toggle-on, .sl-plan-month-buttons .toggle > .toggle-group > .toggle-off { position: static; display: none; width: 100%; padding: .375rem .75rem; border: 1px solid var(--sl-color-success); border-radius: var(--bs-border-radius); line-height: 1.5; }
.sl-plan-month-buttons .toggle:not(.off) > .toggle-group > .toggle-on { display: block; color: #fff; background: var(--sl-color-success); }
.sl-plan-month-buttons .toggle.off > .toggle-group > .toggle-off { display: block; color: var(--sl-color-success); background: transparent; }
.sl-plan-month-buttons .toggle > .toggle-group > .toggle-handle { display: none; }
.sl-plan-month-buttons .toggle:focus-visible { outline: 3px solid var(--sl-color-success); outline-offset: 2px; }

/* Chemical inventory: keep progress in the flow and the fields as the main surface. */
#iForm.sl-wizard .sl-wizard-progress { padding: 0 0 16px; margin: 0 0 24px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
#iForm.sl-wizard .sl-wizard-progress-text { margin-bottom: 8px; font-weight: 500; color: var(--sl-accent-chem); }
#iForm.sl-wizard .sl-wizard-track { height: 4px; background: var(--sl-color-border); }
#iForm.sl-wizard .sl-wizard-track span { background: var(--sl-accent-chem); }
#iForm.sl-wizard .sl-form-section { box-shadow: none !important; }
#iForm.sl-wizard .sl-form-section > legend { font-weight: 500 !important; }
#iForm.sl-wizard .sl-form-actions { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
#iForm.sl-wizard .sl-wizard-review { padding: 24px; }
#iForm.sl-wizard .sl-wizard-review dd { font-weight: 500; }
@media (max-width: 575.98px) {
 #iForm.sl-wizard .sl-wizard-progress { margin-bottom: 16px; }
 #iForm.sl-wizard .sl-wizard-review { padding: 16px; }
 #iForm.sl-wizard .sl-form-actions { padding-bottom: env(safe-area-inset-bottom) !important; }
}
@media (max-width: 575.98px) {
 #iForm .row:has(#chem_inventory_purchase_date) > .col-6 { width: 100%; }
}
