﻿/* ============================================================
   HMC CAFM — Theme CSS  (Modernized 2026)
   Hamburg Messe und Congress GmbH
   Brand: Black/Charcoal primary, Navy accent — NO RED
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* HMC Brand — Black/Charcoal Primary */
  --hmc-primary:        #1A1A1A;
  --hmc-primary-hover:  #2D2D2D;
  --hmc-primary-light:  #F4F4F4;
  --hmc-primary-mid:    #E8E8E8;

  /* Accent — professional steel blue */
  --hmc-accent:         #1E3A5F;
  --hmc-accent-hover:   #152D4A;
  --hmc-accent-light:   #EFF4FA;

  /* Neutral / Slate */
  --hmc-text:           #0F172A;
  --hmc-text-body:      #334155;
  --hmc-text-muted:     #64748B;
  --hmc-text-faint:     #94A3B8;

  /* Sidebar — WHITE */
  --hmc-sidebar-bg:          #FFFFFF;
  --hmc-sidebar-border:      #E2E8F0;
  --hmc-sidebar-text:        #475569;
  --hmc-sidebar-hover-bg:    #F8FAFC;
  --hmc-sidebar-active-bg:   #EFF4FA;
  --hmc-sidebar-active-text: #1E3A5F;
  --hmc-sidebar-active-border: #1E3A5F;
  --hmc-sidebar-section:     #94A3B8;

  /* Navbar — DARK (matches HMC actual website) */
  --hmc-navbar-bg:      #1A1A1A;
  --hmc-navbar-text:    #FFFFFF;
  --hmc-navbar-border:  #2D2D2D;

  /* Page */
  --hmc-bg:             #F1F5F9;
  --hmc-white:          #FFFFFF;
  --hmc-border:         #E2E8F0;
  --hmc-border-light:   #F1F5F9;

  /* Legacy aliases (keep for JS compatibility) */
  --hmc-secondary:      #475569;

  /* Status */
  --hmc-success:        #16A34A;
  --hmc-success-bg:     #DCFCE7;
  --hmc-warning:        #D97706;
  --hmc-warning-bg:     #FEF3C7;
  --hmc-danger:         #DC2626;
  --hmc-danger-bg:      #FEE2E2;
  --hmc-info:           #0284C7;
  --hmc-info-bg:        #E0F2FE;

  /* Layout */
  --hmc-sidebar-width:    260px;
  --hmc-navbar-height:    64px;
  --hmc-border-radius:    10px;
  --hmc-border-radius-sm: 6px;
  --hmc-border-radius-lg: 14px;

  /* Shadows */
  --hmc-shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --hmc-shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --hmc-shadow:     0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --hmc-shadow-md:  0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --hmc-shadow-lg:  0 20px 25px rgba(0,0,0,0.10), 0 8px 10px rgba(0,0,0,0.04);

  --hmc-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--hmc-text-body);
  background-color: var(--hmc-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--hmc-accent);
}

a:hover {
  color: var(--hmc-accent-hover);
}

/* ── Scrollbar — thin, modern ── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ============================================================
   NAVBAR — DARK (matches HMC actual website)
   !important rules override any inline style overrides
   ============================================================ */
nav.navbar,
nav.fixed-top,
.hmc-navbar {
  background: #1A1A1A !important;
  border-bottom: 1px solid #2D2D2D !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
  height: 64px !important;
  padding: 0 20px !important;
  z-index: 1050 !important;
  display: flex !important;
  align-items: center !important;
}

/* Navbar text stays WHITE on dark background */
nav.navbar .text-white,
nav.fixed-top .text-white,
.hmc-navbar .text-white {
  color: #FFFFFF !important;
}

/* Brand logo — invert makes black marks white; screen blend dissolves
   the now-black PNG background into the dark navbar so no white box appears */
nav.navbar .navbar-brand img,
nav.fixed-top .navbar-brand img,
.hmc-navbar .navbar-brand img {
  filter: invert(1) !important;
  mix-blend-mode: screen !important;
  height: 38px !important;
  width: auto !important;
}

/* Hamburger / sidebar toggle */
nav.navbar .btn-link,
nav.fixed-top .btn-link,
.hmc-navbar .btn-link {
  color: #CBD5E1 !important;
}
nav.navbar .btn-link:hover,
nav.fixed-top .btn-link:hover {
  color: #FFFFFF !important;
  background: rgba(255,255,255,0.08) !important;
  border-radius: 6px !important;
}

nav.navbar #sidebarToggle,
nav.fixed-top #sidebarToggle,
.hmc-navbar #sidebarToggle {
  color: #CBD5E1 !important;
  border: none !important;
  background: transparent !important;
  padding: 6px !important;
  border-radius: 6px !important;
  transition: background 0.15s ease !important;
}
nav.navbar #sidebarToggle:hover,
nav.fixed-top #sidebarToggle:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #FFFFFF !important;
}

/* Language toggle */
nav.navbar .btn-outline-light,
nav.fixed-top .btn-outline-light,
.hmc-navbar .btn-outline-light {
  color: #CBD5E1 !important;
  border-color: #475569 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}
nav.navbar .btn-outline-light:hover,
nav.fixed-top .btn-outline-light:hover {
  background: rgba(255,255,255,0.10) !important;
  color: #FFFFFF !important;
  border-color: #94A3B8 !important;
}

/* Notification bell */
nav.navbar .bi-bell,
nav.fixed-top .bi-bell,
.hmc-navbar .bi-bell {
  color: #CBD5E1 !important;
}

/* User dropdown toggle */
nav.navbar .dropdown-toggle,
nav.fixed-top .dropdown-toggle,
.hmc-navbar .dropdown-toggle {
  color: #E2E8F0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* Page title in navbar */
nav.navbar #pageTitle,
nav.fixed-top #pageTitle,
nav.navbar [id="pageTitle"],
nav.navbar span.fw-bold,
nav.fixed-top span.fw-bold,
.hmc-navbar #pageTitle,
.hmc-navbar span.fw-bold {
  color: #FFFFFF !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* ── Dropdown Menu — modern, rounded, shadow, stays light ── */
nav.navbar .dropdown-menu,
nav.fixed-top .dropdown-menu,
.hmc-navbar .dropdown-menu,
.dropdown-menu {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.05) !important;
  padding: 6px !important;
  font-size: 13px !important;
  min-width: 180px !important;
  margin-top: 8px !important;
}

.dropdown-item {
  border-radius: 6px !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  color: #334155 !important;
  transition: background 0.12s ease !important;
}

.dropdown-item:hover {
  background: #F8FAFC !important;
  color: #0F172A !important;
}

.dropdown-item.text-danger {
  color: #DC2626 !important;
}

.dropdown-item.text-danger:hover {
  background: #FEE2E2 !important;
}

.dropdown-divider {
  border-color: #F1F5F9 !important;
  margin: 4px 0 !important;
}

/* ============================================================
   SIDEBAR — WHITE, CLEAN with NAVY active states
   !important overrides inline styles on #sidebar
   ============================================================ */
#sidebar,
.hmc-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: var(--hmc-sidebar-width) !important;
  height: 100vh !important;
  background: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
  box-shadow: 1px 0 0 #E2E8F0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 1040 !important;
  transition: var(--hmc-transition) !important;
  display: flex !important;
  flex-direction: column !important;
  padding-top: var(--hmc-navbar-height) !important;
}

#sidebar.collapsed,
.hmc-sidebar.collapsed {
  width: 64px !important;
}

/* Sidebar logo/header area — hidden behind fixed navbar */
#sidebar > div:first-child,
.hmc-sidebar .sidebar-logo {
  display: none !important;
}

/* Sidebar menu container */
.sidebar-menu {
  flex: 1;
  padding: 12px 0 24px;
  overflow-y: auto;
}

/* Section Labels */
#sidebar .sidebar-section-label,
.hmc-sidebar .sidebar-section-label,
#sidebar div[data-en],
.hmc-sidebar div[data-en] {
  color: #94A3B8 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  padding: 16px 20px 6px !important;
  background: transparent !important;
  border: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.hmc-sidebar.collapsed .sidebar-section-label {
  opacity: 0;
  height: 0;
  padding: 0 !important;
  pointer-events: none;
}

/* Sidebar Links */
#sidebar a,
.hmc-sidebar .sidebar-link,
#sidebar nav a {
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-left: 2px solid transparent !important;
  border-radius: 0 6px 6px 0 !important;
  margin: 1px 8px 1px 0 !important;
  padding: 9px 16px 9px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

#sidebar a:hover,
.hmc-sidebar .sidebar-link:hover,
#sidebar nav a:hover {
  background: #F8FAFC !important;
  color: #1E3A5F !important;
  border-left-color: #CBD5E1 !important;
}

/* Active state — navy blue, not red */
#sidebar a.active,
.hmc-sidebar .sidebar-link.active,
#sidebar nav a.active {
  background: #EFF4FA !important;
  color: #1E3A5F !important;
  border-left-color: #1E3A5F !important;
  font-weight: 600 !important;
}

/* Sidebar Icons */
#sidebar a i,
.hmc-sidebar .sidebar-link i,
#sidebar nav a i {
  font-size: 15px !important;
  width: 18px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  opacity: 0.85 !important;
  color: inherit !important;
}

#sidebar a.active i,
.hmc-sidebar .sidebar-link.active i,
#sidebar nav a.active i {
  color: #1E3A5F !important;
  opacity: 1 !important;
}

/* Sidebar text spans — override any text-white on white sidebar */
#sidebar span.text-white,
.hmc-sidebar span.text-white {
  color: #0F172A !important;
}

/* Collapsed sidebar */
.hmc-sidebar.collapsed .sidebar-link {
  padding: 10px 0 !important;
  justify-content: center !important;
  gap: 0 !important;
}

.hmc-sidebar.collapsed .sidebar-link span {
  opacity: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.hmc-sidebar.collapsed .sidebar-link i {
  width: auto !important;
}

/* Tooltip for collapsed sidebar */
.hmc-sidebar.collapsed .sidebar-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 72px;
  background: #1E293B;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.15s ease;
}

.hmc-sidebar.collapsed .sidebar-link:hover::after {
  opacity: 1;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.hmc-main {
  margin-left: var(--hmc-sidebar-width);
  margin-top: var(--hmc-navbar-height);
  padding: 0;
  min-height: calc(100vh - var(--hmc-navbar-height));
  background: var(--hmc-bg);
  transition: margin-left 0.3s ease;
}

.hmc-main.sidebar-collapsed {
  margin-left: 64px;
}

/* Override any inline margin-top:60px → 64px */
[style*="margin-top:60px"],
[style*="margin-top: 60px"] {
  margin-top: 64px !important;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.hmc-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 24px 16px;
  border-bottom: 1px solid #F1F5F9;
  gap: 16px;
  background: var(--hmc-white);
}

.hmc-page-header h1,
.hmc-page-header h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin-bottom: 3px !important;
  letter-spacing: -0.3px !important;
}

.hmc-page-header p {
  font-size: 13px !important;
  color: #64748B !important;
  margin: 0 !important;
}

.hmc-page-header .page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.hmc-breadcrumb {
  background: var(--hmc-white);
  border-bottom: 1px solid #F1F5F9;
  padding: 10px 24px;
}

.breadcrumb {
  font-size: 12px !important;
  color: #64748B !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #CBD5E1 !important;
}

.breadcrumb-item a {
  color: #64748B !important;
  text-decoration: none !important;
}

.breadcrumb-item a:hover {
  color: #1E3A5F !important;
}

.breadcrumb-item.active {
  color: #0F172A !important;
  font-weight: 500 !important;
}

/* ============================================================
   CONTENT PADDING
   ============================================================ */
.hmc-content {
  padding: 24px !important;
}

/* ============================================================
   CARDS — modern, white, no border, subtle shadow
   ============================================================ */
.card {
  border: none !important;
  border-radius: var(--hmc-border-radius) !important;
  box-shadow: var(--hmc-shadow-sm) !important;
  background: #FFFFFF !important;
}

.card-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid #F1F5F9 !important;
  border-radius: var(--hmc-border-radius) var(--hmc-border-radius) 0 0 !important;
  padding: 16px 20px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #0F172A !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.card-body {
  padding: 20px !important;
}

.card-footer {
  background: #FAFAFA !important;
  border-top: 1px solid #F1F5F9 !important;
  border-radius: 0 0 var(--hmc-border-radius) var(--hmc-border-radius) !important;
  padding: 14px 20px !important;
}

/* HMC custom card */
.hmc-card {
  background: var(--hmc-white);
  border-radius: var(--hmc-border-radius);
  box-shadow: var(--hmc-shadow-sm);
  border: none;
}

.hmc-card .hmc-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #F1F5F9;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0F172A;
}

.hmc-card .hmc-card-body {
  padding: 20px;
}

/* Chart card */
.hmc-chart-card {
  background: var(--hmc-white);
  border-radius: var(--hmc-border-radius);
  box-shadow: var(--hmc-shadow-sm);
  border: none;
  padding: 20px;
}

.hmc-chart-card .chart-title {
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Section card */
.hmc-section-card {
  background: var(--hmc-white);
  border-radius: var(--hmc-border-radius);
  box-shadow: var(--hmc-shadow-sm);
  border: none;
  margin-bottom: 20px;
  overflow: hidden;
}

.hmc-section-card .section-header {
  background: #F8FAFC;
  border-bottom: 1px solid #F1F5F9;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hmc-section-card .section-header i {
  color: var(--hmc-accent);
  font-size: 15px;
}

.hmc-section-card .section-body {
  padding: 20px;
}

/* Table card */
.hmc-table-card {
  background: var(--hmc-white);
  border-radius: var(--hmc-border-radius);
  box-shadow: var(--hmc-shadow-sm);
  border: none;
  overflow: hidden;
}

/* ============================================================
   TABLES — modern header, subtle rows
   ============================================================ */
.table {
  font-size: 13px !important;
  color: #334155 !important;
  border-color: #F1F5F9 !important;
}

.table thead th {
  background: #F8FAFC !important;
  color: #64748B !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  white-space: nowrap !important;
  border-top: none !important;
}

.table tbody td {
  padding: 12px 16px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #F8FAFC !important;
  color: #334155 !important;
}

.table tbody tr:hover {
  background: #FAFBFC !important;
}

.table-bordered {
  border: 1px solid #F1F5F9 !important;
}

/* hmc-table override */
.hmc-table {
  width: 100%;
  margin: 0;
}

.hmc-table thead th {
  background: #F8FAFC !important;
  color: #64748B !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  white-space: nowrap !important;
}

.hmc-table tbody td {
  padding: 11px 16px !important;
  vertical-align: middle !important;
  border-color: #F1F5F9 !important;
  font-size: 13px !important;
  color: #334155 !important;
}

.hmc-table tbody tr:hover {
  background: #F8FAFC !important;
}

.hmc-table tbody tr.table-warning {
  background-color: #FFFBEB !important;
}

/* Avatar Circle */
.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--hmc-primary);
  color: var(--hmc-white);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Filter Bar */
.hmc-filter-bar {
  background: var(--hmc-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--hmc-border-radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--hmc-shadow-xs);
}

/* ============================================================
   BUTTONS — dark charcoal primary
   ============================================================ */
.btn {
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  transition: all 0.15s ease !important;
  line-height: 1.5 !important;
}

.btn-primary {
  background: #1A1A1A !important;
  border-color: #1A1A1A !important;
  color: #FFFFFF !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #2D2D2D !important;
  border-color: #2D2D2D !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25) !important;
  transform: translateY(-1px) !important;
}
.btn-primary:active {
  background: #1A1A1A !important;
  border-color: #1A1A1A !important;
  transform: translateY(0) !important;
}

.btn-outline-primary {
  color: #1A1A1A !important;
  border-color: #1A1A1A !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background: #1A1A1A !important;
  color: #FFFFFF !important;
  border-color: #1A1A1A !important;
}

.btn-outline-secondary {
  color: #64748B !important;
  border-color: #CBD5E1 !important;
  background: transparent !important;
}
.btn-outline-secondary:hover {
  background: #F8FAFC !important;
  color: #334155 !important;
  border-color: #94A3B8 !important;
}

.btn-sm {
  padding: 5px 12px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}

.btn-lg {
  padding: 12px 24px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
}

/* Card header "View All" link button */
.card-header .btn-sm,
.hmc-table-card .card-header .btn-sm {
  font-size: 11px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  color: #64748B !important;
  border-color: #E2E8F0 !important;
  background: #F8FAFC !important;
}
.card-header .btn-sm:hover,
.hmc-table-card .card-header .btn-sm:hover {
  color: #1E3A5F !important;
  border-color: #DBEAFE !important;
  background: #EFF4FA !important;
}

/* Login / SSO buttons */
.btn-login {
  background: #1A1A1A;
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn-login:hover {
  background: #2D2D2D;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.btn-login:active {
  transform: translateY(0);
}

.btn-sso {
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #334155;
  font-weight: 500;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.btn-sso:hover {
  border-color: #0078D4;
  background: rgba(0,120,212,0.04);
  color: #334155;
}

/* ============================================================
   STATUS BADGES — soft colored pills
   ============================================================ */
.badge {
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  letter-spacing: 0.2px !important;
}

.badge.bg-success,
.badge-status-active {
  background: #DCFCE7 !important;
  color: #15803D !important;
  border: 1px solid #BBF7D0 !important;
}

.badge.bg-warning,
.badge-status-maintenance {
  background: #FEF3C7 !important;
  color: #B45309 !important;
  border: 1px solid #FDE68A !important;
}

.badge.bg-secondary,
.badge-status-inactive {
  background: #F1F5F9 !important;
  color: #64748B !important;
  border: 1px solid #CBD5E1 !important;
}

.badge.bg-danger,
.badge-status-danger {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  border: 1px solid #FECACA !important;
}

.badge.bg-primary {
  background: #EFF4FA !important;
  color: #1E3A5F !important;
  border: 1px solid #DBEAFE !important;
}

.badge.bg-info {
  background: #E0F2FE !important;
  color: #0369A1 !important;
  border: 1px solid #BAE6FD !important;
}

/* Legacy badge classes */
.badge-active {
  background-color: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
}

.badge-inactive {
  background-color: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
}

.badge-maintenance {
  background-color: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
}

.badge-decommissioned {
  background-color: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
}

.badge-pending {
  background-color: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
}

/* Role Badges */
.badge-role-admin {
  background-color: #EFF4FA;
  color: #1E3A5F;
  border: 1px solid #DBEAFE;
}
.badge-role-manager {
  background-color: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}
.badge-role-technician {
  background-color: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.badge-role-viewer {
  background-color: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.badge-role-admin,
.badge-role-manager,
.badge-role-technician,
.badge-role-viewer {
  font-weight: 600;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
}

/* ============================================================
   FORM INPUTS — modern border, navy focus ring
   ============================================================ */
.form-control,
.form-select {
  border-radius: 8px !important;
  border: 1px solid #CBD5E1 !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  color: #0F172A !important;
  background: #FFFFFF !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  line-height: 1.5 !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #1E3A5F !important;
  box-shadow: 0 0 0 3px rgba(30,58,95,0.12) !important;
  outline: none !important;
  background: #FFFFFF !important;
}

.form-control::placeholder {
  color: #94A3B8 !important;
}

.form-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 6px !important;
  letter-spacing: 0.2px !important;
}

.input-group-text {
  border-radius: 8px !important;
  border-color: #CBD5E1 !important;
  background: #F8FAFC !important;
  color: #64748B !important;
  font-size: 13px !important;
}

/* Input group border radius fix */
.input-group > .form-control:not(:first-child),
.input-group > .form-select:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group > .input-group-text:first-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group > .input-group-text:last-child {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Form check */
.form-check-input:checked {
  background-color: var(--hmc-primary);
  border-color: var(--hmc-primary);
}

.form-switch .form-check-input {
  width: 38px;
  height: 20px;
}

.form-check-label {
  font-size: 13px;
  color: #334155;
}

/* Password wrapper */
.password-wrapper {
  position: relative;
}

.password-wrapper .password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 5;
  transition: color 0.15s;
}

.password-wrapper .password-toggle:hover {
  color: #334155;
}

/* ============================================================
   KPI CARDS — modern
   ============================================================ */
.hmc-kpi-card {
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 20px !important;
  box-shadow: var(--hmc-shadow-sm) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  height: 100% !important;
}

.hmc-kpi-card:hover {
  box-shadow: var(--hmc-shadow) !important;
  transform: translateY(-2px) !important;
}

.hmc-kpi-card .kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hmc-kpi-value,
.hmc-kpi-card .kpi-value {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  line-height: 1.1 !important;
  letter-spacing: -1px !important;
}

.hmc-kpi-label,
.hmc-kpi-card .kpi-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-top: 4px !important;
}

.hmc-kpi-card .kpi-sub {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}

/* KPI accent: no heavy left border */
.hmc-kpi-card.kpi-primary   { border-left: none !important; }
.hmc-kpi-card.kpi-secondary { border-left: none !important; }
.hmc-kpi-card.kpi-warning   { border-left: none !important; }
.hmc-kpi-card.kpi-danger    { border-left: none !important; }
.hmc-kpi-card.kpi-success   { border-left: none !important; }
.hmc-kpi-card.kpi-info      { border-left: none !important; }

/* KPI Icon Background Variants */
.kpi-icon.bg-primary-light   { background-color: #EFF4FA; color: #1E3A5F; }
.kpi-icon.bg-secondary-light { background-color: #F1F5F9; color: #475569; }
.kpi-icon.bg-warning-light   { background-color: #FEF3C7; color: #D97706; }
.kpi-icon.bg-danger-light    { background-color: #FEE2E2; color: #DC2626; }
.kpi-icon.bg-success-light   { background-color: #DCFCE7; color: #16A34A; }
.kpi-icon.bg-info-light      { background-color: #E0F2FE; color: #0284C7; }

/* ============================================================
   QUICK LINKS
   ============================================================ */
.hmc-quick-link {
  background: var(--hmc-white);
  border-radius: var(--hmc-border-radius);
  box-shadow: var(--hmc-shadow-sm);
  border: 1px solid #F1F5F9;
  padding: 20px 16px;
  text-align: center;
  color: #334155;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  height: 100%;
}

.hmc-quick-link:hover {
  border-color: #DBEAFE;
  box-shadow: 0 4px 16px rgba(30,58,95,0.10);
  color: #1E3A5F;
  transform: translateY(-2px);
}

.hmc-quick-link i {
  font-size: 24px;
  color: var(--hmc-accent);
}

.hmc-quick-link span {
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================
   SETTINGS — VERTICAL NAV PILLS
   ============================================================ */
.hmc-settings-nav .nav-link {
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  transition: all 0.15s ease;
}

.hmc-settings-nav .nav-link i {
  font-size: 15px;
  color: #94A3B8;
  width: 18px;
}

.hmc-settings-nav .nav-link:hover {
  background-color: #EFF4FA;
  color: #1E3A5F;
}

.hmc-settings-nav .nav-link:hover i {
  color: #1E3A5F;
}

.hmc-settings-nav .nav-link.active {
  background-color: #EFF4FA;
  color: #1E3A5F;
  font-weight: 600;
}

.hmc-settings-nav .nav-link.active i {
  color: #1E3A5F;
}

/* ── Bootstrap Nav pills override ── */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #1E3A5F !important;
  color: #FFFFFF !important;
}

.nav-pills .nav-link {
  color: #64748B;
  font-size: 13px;
  border-radius: 8px;
}

.nav-pills .nav-link:hover {
  background: #EFF4FA;
  color: #1E3A5F;
}

/* ── Bootstrap Nav tabs override ── */
.nav-tabs {
  border-bottom: 1px solid #E2E8F0 !important;
}

.nav-tabs .nav-link {
  font-size: 13px;
  color: #64748B;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 16px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-tabs .nav-link:hover {
  color: #1E3A5F;
  border-bottom-color: #DBEAFE;
  background: transparent;
}

.nav-tabs .nav-link.active,
.nav-tabs .show > .nav-link {
  color: #1E3A5F !important;
  border-bottom: 2px solid #1E3A5F !important;
  background: transparent !important;
  font-weight: 600;
}

/* ============================================================
   PERMISSIONS MATRIX
   ============================================================ */
.permission-matrix th {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 8px;
  background-color: #F8FAFC;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.permission-matrix th:first-child {
  text-align: left;
  width: 180px;
}

.permission-matrix td {
  text-align: center;
  padding: 10px 8px;
  vertical-align: middle;
}

.permission-matrix td:first-child {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  padding-left: 16px;
  color: #334155;
}

.permission-matrix .form-check-input {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.permission-matrix .form-check-input:checked {
  background-color: var(--hmc-primary);
  border-color: var(--hmc-primary);
}

.permission-matrix tbody tr:hover {
  background: #F8FAFC !important;
}

/* ============================================================
   PAGINATION — modern
   ============================================================ */
.hmc-pagination-info {
  font-size: 12px;
  color: #64748B;
}

.pagination .page-link {
  color: #64748B;
  border-color: #E2E8F0;
  font-size: 13px;
  border-radius: 6px !important;
  margin: 0 2px;
  padding: 6px 12px;
  transition: all 0.15s ease;
}

.pagination .page-item.active .page-link {
  background-color: #1A1A1A;
  border-color: #1A1A1A;
  color: #FFFFFF;
}

.pagination .page-link:hover {
  color: #1E3A5F;
  background-color: #EFF4FA;
  border-color: #DBEAFE;
}

/* ============================================================
   ALERTS / TOAST
   ============================================================ */
.alert {
  border-radius: var(--hmc-border-radius) !important;
  border: none !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
}

.alert-success {
  background: #DCFCE7 !important;
  color: #15803D !important;
  border-left: 4px solid #16A34A !important;
}

.alert-warning {
  background: #FEF3C7 !important;
  color: #B45309 !important;
  border-left: 4px solid #D97706 !important;
}

.alert-danger {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  border-left: 4px solid #DC2626 !important;
}

.alert-info {
  background: #E0F2FE !important;
  color: #0369A1 !important;
  border-left: 4px solid #0284C7 !important;
}

#toastContainer {
  z-index: 9999;
}

#toastContainer .toast {
  min-width: 300px;
  border-radius: var(--hmc-border-radius);
  font-size: 13px;
  border: none;
  box-shadow: var(--hmc-shadow-md);
}

/* ============================================================
   STATUS DOTS
   ============================================================ */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.status-dot.connected    { background-color: #16A34A; }
.status-dot.disconnected { background-color: #94A3B8; }
.status-dot.error        { background-color: #DC2626; }

/* ============================================================
   FORM FOOTER / STICKY SAVE BAR
   ============================================================ */
.hmc-form-footer {
  background: var(--hmc-white);
  border-top: 1px solid #F1F5F9;
  padding: 14px 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  border-radius: 0 0 var(--hmc-border-radius) var(--hmc-border-radius));
}

/* ============================================================
   PASSWORD STRENGTH
   ============================================================ */
.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 6px;
  background: #E2E8F0;
  overflow: hidden;
}

.password-strength .strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0%;
}

.password-strength-label {
  font-size: 11px;
  margin-top: 3px;
  color: #64748B;
}

/* ============================================================
   AUDIT LOG
   ============================================================ */
.audit-table td, .audit-table th {
  font-size: 12px;
  padding: 8px 12px;
}

/* ============================================================
   LOGIN PAGE — centered single-column card
   ============================================================ */
.hmc-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  padding: 24px;
  position: relative;
}

/* Language toggle — fixed top right */
.hmc-login-lang-toggle {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
}

/* Login card */
.hmc-login-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  border-top: 4px solid #1A1A1A;
  position: relative;
}

.hmc-login-logo {
  display: block;
  margin: 0 auto 28px;
  max-width: 140px;
}

.hmc-login-heading {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
  text-align: center;
}

.hmc-login-subheading {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 28px;
  text-align: center;
}

.hmc-login-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 11px;
  color: #94A3B8;
}

/* Legacy login classes */
.hmc-login-left {
  display: none !important;
}

.hmc-login-right {
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0 !important;
}

.hmc-login-right .login-form-container {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  border-top: 4px solid #1A1A1A;
}

.hmc-login-right .login-heading {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
  text-align: center;
}

.hmc-login-right .login-subheading {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 28px;
  text-align: center;
}

.hmc-login-right .login-footer {
  position: static;
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: #94A3B8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   RESPONSIVE — Mobile-first breakpoints
   ============================================================ */

/* ── Sidebar backdrop overlay (mobile) ── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1039;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.active { display: block; }

/* ── Tablet (≤992px) — slightly compact ── */
@media (max-width: 992px) {
  :root { --hmc-sidebar-width: 240px; }

  .hmc-kpi-card { padding: 16px !important; }

  .table th, .table td { padding: 10px 12px !important; font-size: 12px !important; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* Sidebar slides off-screen by default */
  #sidebar,
  .hmc-sidebar {
    transform: translateX(-260px) !important;
    width: 260px !important;
    z-index: 1050 !important;
    padding-top: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    box-shadow: none !important;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1) !important;
  }

  /* Slide in when mobile-open */
  #sidebar.mobile-open,
  .hmc-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 4px 0 28px rgba(0,0,0,0.22) !important;
  }

  /* Main content: full width on mobile — covers BOTH class and ID */
  .hmc-main,
  #mainContent {
    margin-left: 0 !important;
    margin-top: 64px !important;
    padding: 16px !important;
  }
  .hmc-main.sidebar-collapsed,
  #mainContent.sidebar-collapsed {
    margin-left: 0 !important;
  }

  /* Navbar */
  nav.navbar,
  nav.fixed-top,
  .hmc-navbar {
    padding: 0 12px !important;
  }
  nav.fixed-top .navbar-brand img,
  nav.navbar .navbar-brand img {
    height: 30px !important;
  }
  nav.fixed-top span.fw-bold,
  nav.navbar span.fw-bold {
    display: none !important;
  }

  /* Page header: stack on mobile */
  .hmc-page-header,
  .d-flex.justify-content-between.align-items-center.mb-4 {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Breadcrumb smaller */
  .breadcrumb { font-size: 11px !important; }

  /* Tables: horizontal scroll */
  .table-responsive,
  .card .table-responsive,
  .card-body .table-responsive { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

  /* Make ALL tables inside cards scrollable */
  .card-body table,
  .card table {
    min-width: 600px;
  }

  /* KPI cards: 2 per row */
  .hmc-kpi-card {
    min-width: calc(50% - 8px) !important;
    flex: 1 1 calc(50% - 8px) !important;
    padding: 14px !important;
  }
  .hmc-kpi-value { font-size: 26px !important; }

  /* Bootstrap grid: collapse to full width */
  .col-md-4, .col-md-3, .col-md-2,
  .col-lg-4, .col-lg-3, .col-lg-2 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .col-md-6, .col-lg-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .col-md-8, .col-lg-8 { flex: 0 0 100% !important; max-width: 100% !important; }

  /* Forms */
  .row.g-3 > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .input-group { flex-wrap: nowrap; }

  /* Buttons: full width stacking in header */
  .hmc-page-header .d-flex.gap-2,
  .page-actions {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .hmc-page-header .btn,
  .page-actions .btn { flex: 1 1 auto; min-width: 120px; }

  /* Filter panels: stack fields */
  .filter-panel .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 8px;
  }

  /* Hide filter panel by default on mobile, show when expanded */
  .filter-panel-mobile-collapsed { display: none; }

  /* Wizard steps: compact */
  .hmc-wizard-steps { gap: 4px !important; }
  .hmc-wizard-step span:last-child { font-size: 10px !important; }
  .hmc-wizard-step .step-circle { width: 30px !important; height: 30px !important; font-size: 12px !important; }
  .wizard-connector { min-width: 20px !important; }

  /* Asset tree: full width, no split panel */
  .row.g-3 > .col-4,
  .row.g-3 > .col-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Login card */
  .login-card {
    margin: 16px !important;
    padding: 32px 24px !important;
  }

  /* Settings vertical nav: horizontal tabs on mobile */
  .hmc-settings-nav {
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: none !important;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 4px;
    gap: 2px;
    white-space: nowrap;
    padding-right: 8px;
    width: 100%;
  }
  .hmc-settings-nav .nav-link {
    border-radius: 6px 6px 0 0 !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  .hmc-settings-nav + .col,
  .hmc-settings-nav + [class*="col-"] {
    padding-top: 12px !important;
  }

  /* Role permissions matrix: scroll */
  .permission-matrix { overflow-x: auto !important; }
  .permission-matrix table { min-width: 480px; }

  /* Building cards: 1 per row */
  [class*="col-md-4"].building-card,
  .row > .col-md-4 { flex: 0 0 100% !important; max-width: 100% !important; }

  /* Import type cards: 1 per row */
  .import-type-card { margin-bottom: 8px; }

  /* Asset form: right panel below */
  .asset-form-right { margin-top: 24px; }

  /* Sidebar groups split panel */
  .col-4.border-end { flex: 0 0 100% !important; max-width: 100% !important; border-right: none !important; border-bottom: 1px solid #E2E8F0; margin-bottom: 16px; }

  /* Hide less critical table columns (dt-responsive pattern) */
  .hide-mobile { display: none !important; }

  /* Cards full width */
  .card { border-radius: 8px !important; }
}

/* ── Small mobile (≤576px) ── */
@media (max-width: 575.98px) {
  .hmc-kpi-value,
  .hmc-kpi-card .kpi-value {
    font-size: 22px !important;
  }

  /* KPI: 1 per row on very small */
  .hmc-kpi-card { min-width: 100% !important; flex: 1 1 100% !important; }

  /* Page title in navbar: shorter */
  nav.fixed-top #pageTitle { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Buttons: compact */
  .btn { padding: 6px 12px !important; font-size: 12px !important; }
  .btn-sm { padding: 4px 8px !important; font-size: 11px !important; }

  /* Modal: full screen on small mobile */
  .modal-dialog { margin: 8px !important; max-width: calc(100vw - 16px) !important; }

  /* Tabs: scroll */
  .nav-tabs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .nav-tabs .nav-item { flex-shrink: 0; }

  /* Import wizard steps: icon only */
  .hmc-wizard-step span:last-child { display: none !important; }

  /* Pagination: compact */
  .pagination .page-link { padding: 4px 8px !important; font-size: 12px !important; }
}

/* ── Print styles for report pages ── */
@media print {
  #sidebar, .hmc-sidebar,
  nav.navbar, nav.fixed-top,
  .sidebar-backdrop,
  .hmc-page-header .page-actions,
  .btn-outline-secondary.no-print,
  .hmc-filter-card { display: none !important; }

  #mainContent, .hmc-main {
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
  .table { font-size: 11px !important; }
  body { background: #fff !important; }
}