/*
 * Emirate of Tabuk look on GLPI's own shell (approved offline design v5: forest-green sidebar #164d3c / #123e31, primary green #16644a,
 * gold #d8a102, ink #172b25, canvas #f4f6f8, border #d9e2dd, Tahoma). Styling only: no GLPI function is hidden except what is stated.
 */
:root, :root[data-glpi-theme] {
    --tbk-green: #16644a; --tbk-side: #164d3c; --tbk-deep: #123e31; --tbk-gold: #d8a102; --tbk-ink: #172b25; --tbk-line: #d9e2dd; --tbk-muted: #56685f;
    --glpi-mainmenu-bg: #164d3c !important; --glpi-mainmenu-fg: #ffffff !important; --glpi-mainmenu-fg-muted: #ffffffc0 !important; --glpi-mainmenu-active-bg: #1f5f4b !important;
    --glpi-palette-color-1: #16644a !important; --glpi-palette-color-2: #ffffff !important; --glpi-palette-color-3: #d8a102 !important; --glpi-palette-color-4: #d9e2dd !important;
    --tblr-primary: #16644a !important; --tblr-primary-rgb: 22, 100, 74 !important; --tblr-link-color: #16644a !important; --tblr-link-color-rgb: 22, 100, 74 !important;
    --tblr-link-hover-color: #0f4a36 !important; --tblr-body-color: #172b25 !important; --tblr-border-color: #d9e2dd !important; --tblr-body-bg: #f4f6f8 !important;
    --tblr-font-sans-serif: Tahoma, Arial, system-ui, sans-serif !important; --tblr-border-radius: 5px !important;
    --glpi-helpdesk-header: #16644a !important; --glpi-illustrations-primary: #16644a !important;
}
body { font-family: Tahoma, Arial, system-ui, sans-serif; color: #172b25; }
/* sidebar: deep green with a gold marker on the open entry, as in the approved console */
.navbar-vertical, aside.navbar { background: linear-gradient(180deg, #164d3c 0%, #123e31 100%) !important; }
.navbar-vertical .nav-link.active, .navbar-vertical .nav-item.active > .nav-link, .navbar-vertical .dropdown-item.active { background: rgba(255,255,255,.09) !important; box-shadow: inset 3px 0 0 #d8a102; }
[dir="rtl"] .navbar-vertical .nav-link.active, [dir="rtl"] .navbar-vertical .nav-item.active > .nav-link, [dir="rtl"] .navbar-vertical .dropdown-item.active { box-shadow: inset -3px 0 0 #d8a102; }
/* brand block in place of the GLPI logo (text is added by tabuk.js; the image is hidden) */
.navbar-vertical .glpi-logo, .navbar-brand .glpi-logo, .page .glpi-logo { display: none !important; }
.tbk-brand { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; color: #fff; text-decoration: none !important; }
.tbk-brand img { width: 30px; height: 30px; flex: 0 0 auto; }
.tbk-brand strong { display: block; font-size: 1.05rem; line-height: 1.35; color: #fff; }
.tbk-brand small { display: block; font-size: .8rem; color: #c2dbcf; }
body.navbar-collapsed .tbk-brand span, .navbar-vertical.collapsed .tbk-brand span { display: none; }
/* header underline in green */
header.navbar[data-testid="main-header"], .page .navbar.navbar-expand-md:not(.navbar-vertical) { border-bottom: 2px solid #16644a; background: #fff; }
/* buttons and tabs */
.btn-primary { color: #fff !important; background-color: #16644a !important; border-color: #16644a !important; }
.btn-primary:hover { background-color: #105039 !important; }
.btn-outline-primary { color: #16644a !important; border-color: #16644a !important; }
.btn-outline-primary:hover { background: #16644a !important; color: #fff !important; }
.nav-tabs .nav-link.active { border-top: 2px solid #16644a !important; font-weight: 700; }
a:not(.btn):not(.nav-link):not(.dropdown-item) { color: #16644a; }
/* GLPI's own logos in the user menu and "About" */
.user-menu img[src*="logo-GLPI"], img[src*="pics/logos/logo-GLPI"], img[src*="pics/logos/logo-G-"] { display: none !important; }
/* dashboards: white tiles with a green edge instead of GLPI's coloured tiles (tile colours are inline, hence !important) */
.dashboard .card.big-number, .dashboard .card.multiple-numbers { background-color: #fff !important; color: #172b25 !important; border: 1px solid #d9e2dd !important; border-inline-start: 4px solid #2e7d5b !important; border-radius: 5px !important; }
.dashboard .card.big-number *, .dashboard .card.multiple-numbers * { color: #172b25 !important; }
.dashboard .card.big-number .main-icon, .dashboard .card.big-number i { color: #2e7d5b !important; }
.dashboard .card.g-chart, .dashboard .card.search-table { background-color: #fff !important; border: 1px solid #d9e2dd !important; }
/* one workspace: the separate KGT ITSM / KGT ITAM menu groups are not shown (their pages and engines are untouched and are reached from the Service Desk workspace) */
li.nav-item.dropdown:has(a.dropdown-item[href*="/plugins/kgtitsm/front/home.php"]), li.nav-item.dropdown:has(a.dropdown-item[href*="/plugins/kgtitam/front/home.php"]) { display: none !important; }
/* administrator maintenance notice about date columns: hidden on purpose - the suggested command must not be run with KGT Analytics installed */
.tbk-hidden-notice { display: none !important; }
