/* OneCloud-branded modern skin for classic NetSapiens portal
   Wired via PORTAL_CSS_CUSTOM -> /portal/css/horizon-skin.css */

:root {
  --h-canvas: #f3f4f6;
  --h-canvas-2: #e9ecef;
  --h-surface: #ffffff;
  --h-surface-alt: #fafbfd;
  --h-border: #e6e9ef;
  --h-border-strong: #d3d8e0;
  --h-text: #0f172a;
  --h-text-soft: #334155;
  --h-text-muted: #64748b;
  --h-text-faint: #94a3b8;

  /* OneCloud brand */
  --h-navy: #18508D;
  --h-navy-700: #143f70;
  --h-navy-800: #103257;
  --h-navy-900: #0a1f38;
  --h-cyan: #3AA6DE;
  --h-cyan-600: #268bc3;
  --h-cyan-50: #e8f4fc;

  --h-primary: var(--h-navy);
  --h-primary-600: var(--h-navy-700);
  --h-primary-50: #e8f1fa;
  --h-accent: var(--h-cyan);

  --h-success: #16a34a;
  --h-success-soft: #dcfce7;
  --h-warning: #d97706;
  --h-warning-soft: #fef3c7;
  --h-danger: #dc2626;
  --h-danger-soft: #fee2e2;

  /* Softer, layered shadows */
  --h-shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --h-shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.05);
  --h-shadow:    0 2px 4px rgba(15,23,42,.05), 0 4px 8px rgba(15,23,42,.05);
  --h-shadow-md: 0 4px 8px rgba(15,23,42,.06), 0 8px 20px rgba(15,23,42,.08);
  --h-shadow-lg: 0 10px 24px rgba(15,23,42,.10), 0 20px 48px rgba(15,23,42,.10);
  --h-ring:      0 0 0 4px rgba(58,166,222,.18);

  --h-radius-xs: 6px;
  --h-radius-sm: 8px;
  --h-radius:    12px;
  --h-radius-lg: 16px;
  --h-radius-pill: 999px;

  --h-font: "Inter var", "Inter", -apple-system, BlinkMacSystemFont,
            "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial,
            "Noto Sans", sans-serif;

  /* Layout */
  --h-sidebar-w: 232px;
  --h-sidebar-bg-top:   #15467c;
  --h-sidebar-bg-bot:   #0e3460;
  --h-sidebar-border:   rgba(255,255,255,.06);
  --h-sidebar-hover:    rgba(255,255,255,.06);
  --h-sidebar-active:   linear-gradient(135deg, rgba(58,166,222,.22), rgba(58,166,222,.10));
  --h-sidebar-text:     #c9d6e6;
  --h-sidebar-text-on:  #ffffff;
  --h-topbar-h: 64px;

  --h-ease: cubic-bezier(.2,.8,.2,1);
}

/* --- Base --- */
body,
body.no-wrapper-style {
  background: var(--h-canvas) !important;
  color: var(--h-text);
  font-family: var(--h-font);
  font-feature-settings: "cv11","ss01","ss03";
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body, table td, select, button, input, textarea {
  font-family: var(--h-font);
  color: var(--h-text);
}
h1,h2,h3,h4,h5,h6 { font-family: var(--h-font); color: var(--h-text); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 21px; line-height: 1.25; }
h3 { font-size: 17px; line-height: 1.3; }
h4 { font-size: 15px; }
h5 { font-size: 14px; }
h6 { font-size: 11px; color: var(--h-text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
a { color: var(--h-primary); text-decoration: none; transition: color .15s var(--h-ease); }
a:hover { color: var(--h-cyan-600); }
hr { border-top-color: var(--h-border); }
::selection { background: var(--h-cyan-50); color: var(--h-primary); }

/* Prettier scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(15,23,42,.12); border-radius: var(--h-radius-pill); border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,.22); background-clip: padding-box; border: 2px solid transparent; }
*::-webkit-scrollbar-track { background: transparent; }

/* --- Layout shift for the fixed sidebar --- */
.wrapper { padding-left: var(--h-sidebar-w) !important; box-sizing: border-box; }
#footer  { margin-left: var(--h-sidebar-w); width: auto; }

/* "Masquerading as…" and "You are viewing the X domain" banners live in
   .fixed-container. Original CSS pins it at top:0 width:100% z-index:1100.
   Un-pin it and push it right of the sidebar so banners don't cover the
   sidebar or get cropped behind it. */
.fixed-container {
  position: static !important;
  visibility: visible !important;
  width: auto !important;
  z-index: auto !important;
  margin-left: var(--h-sidebar-w) !important;   /* start after the rail */
  padding: 0 !important;
}
/* Hide the spacer-only empty mask-bar that renders outside .fixed-container
   when masquerading (it's a sibling of .wrapper and has no content). */
body > .mask-bar:empty { display: none !important; }
/* Empty flash container shouldn't eat vertical space */
#flashContainer:empty { display: none; }

/* portal.ctp renders TWO #domain-message divs — the real banner inside
   .fixed-container, and an empty spacer right after .fixed-container
   (leftover from when .fixed-container was position:fixed). Hide the
   spacer so we don't get a second phantom blue bar. */
#domain-message:empty,
.alert-info:empty,
.alert:empty { display: none !important; }

.mask-bar {
  background: linear-gradient(180deg, #fff7df, #fdeeb5) !important;
  color: #92400e !important;
  box-shadow: var(--h-shadow-sm) !important;
  border-bottom: 1px solid #f5d78a;
  font-weight: 600 !important;
  border-radius: var(--h-radius) !important;
  margin: 10px 16px !important;
  padding: 8px 14px !important;
  height: auto !important;
}
.mask-bar .btn { background: #fff; color: var(--h-text); }

#domain-message {
  background: linear-gradient(180deg, var(--h-cyan-50), #dbeafe) !important;
  border: 1px solid #bfdbfe !important;
  color: var(--h-navy) !important;
  border-radius: var(--h-radius) !important;
  margin: 10px 16px 6px 16px !important;
  padding: 10px 14px !important;
  box-shadow: var(--h-shadow-sm) !important;
}
#domain-message h5 { color: var(--h-navy) !important; margin: 0; font-weight: 600; }
.domain-description { color: var(--h-navy); font-weight: 700; }
#domain-message .domain-message-buttons .btn { background: #fff; }
/* Back-to-list button reads better with an arrow glyph */
#domain-message a.btn[href*="unmanage"] { font-weight: 500; }

/* --- Topbar ---
   Collapse to a single 56px row: the page title (#navigation-subbar) sits
   left, the user toolbar (#header-user) sits right. Don't grow the box. */
#header {
  position: relative;
  min-height: 56px !important;
  height: 56px !important;
  padding: 0 28px !important;
  margin: 0 0 12px 0 !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--h-border);
  box-shadow: var(--h-shadow-xs);
  display: block;
  overflow: visible;
}
/* Kill any background on .wrapper so the canvas isn't layered under white */
.wrapper { background: transparent !important; }

/* Brand block pinned over the sidebar head */
#header-logo {
  position: fixed !important;
  top: 0; left: 0;
  width: var(--h-sidebar-w);
  height: var(--h-topbar-h);
  padding: 0 !important;
  margin: 0;
  background: linear-gradient(180deg, var(--h-sidebar-bg-top) 0%, #124076 100%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--h-sidebar-border);
  border-bottom: 1px solid rgba(255,255,255,.04);
  z-index: 1001;
}
#header-logo img {
  max-height: 36px;
  max-width: 180px;
  filter: brightness(0) invert(1);
  opacity: .95;
  transition: opacity .2s var(--h-ease);
}
#header-logo:hover img { opacity: 1; }

/* Topbar right — user toolbar */
#header-user {
  float: right !important;
  height: 56px !important;
  display: flex;
  align-items: center;
  padding: 0 !important;
}
.user-toolbar { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.user-toolbar > li { display: inline-flex; align-items: center; }
.user-toolbar > li > a,
.user-toolbar .header-link {
  color: var(--h-text-soft) !important;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--h-radius-sm);
  transition: background .15s var(--h-ease), color .15s var(--h-ease);
}
.user-toolbar > li > a:hover { color: var(--h-primary) !important; background: var(--h-cyan-50); }
.user-toolbar .nsicon,
.user-toolbar .iconfont { opacity: .75; }

/* --- SIDEBAR --- */
#navigation {
  position: fixed !important;
  top: var(--h-topbar-h);
  left: 0;
  bottom: 0;
  width: var(--h-sidebar-w);
  background: linear-gradient(180deg, var(--h-sidebar-bg-top) 0%, var(--h-sidebar-bg-bot) 100%);
  border-right: 1px solid var(--h-sidebar-border);
  box-shadow: 1px 0 0 rgba(255,255,255,.02) inset, -1px 0 0 rgba(0,0,0,.06);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  padding: 6px 0 14px;
}
#navigation::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); }
#navigation::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); }

#nav-buttons {
  display: flex !important;
  flex-direction: column !important;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  gap: 0;
}
#nav-buttons li {
  display: block !important;
  margin: 0 8px !important;
  border-radius: var(--h-radius-xs);
  position: relative;
  background: transparent !important;
  box-shadow: none !important;
  width: auto !important;
  float: none !important;
  transition: background .15s var(--h-ease);
}
#nav-buttons a.nav-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 10px !important;
  text-decoration: none;
  color: var(--h-sidebar-text) !important;
  width: 100%;
  height: auto !important;
  border: 0 !important;
  box-shadow: none !important;
  position: relative;
  border-radius: var(--h-radius-xs);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .15s var(--h-ease), background .15s var(--h-ease);
}
#nav-buttons a.nav-link:hover {
  background: var(--h-sidebar-hover);
  color: var(--h-sidebar-text-on) !important;
}

/* Kill the old rectangular btn; keep the sprite icon */
#nav-buttons .nav-button { display: none !important; }
#nav-buttons .nav-bg-image {
  position: static !important;
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px;
  top: auto !important;
  left: auto !important;
  background-size: auto 24px !important;
  filter: brightness(0) invert(.85);
  opacity: .82;
  transition: opacity .15s var(--h-ease), filter .15s var(--h-ease);
}
#nav-buttons a.nav-link:hover .nav-bg-image { opacity: 1; }

#nav-buttons .nav-text {
  color: inherit !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
  height: 24px !important;         /* match the icon height exactly */
  text-transform: none !important;
  letter-spacing: 0 !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
  align-self: center !important;    /* don't stretch vertically */
  position: static !important;
  display: block;
}
#nav-buttons .nav-arrow, .nav-arrow { display: none !important; }

/* Active item: soft cyan gradient pill + left accent */
#nav-buttons li.nav-link-current {
  background: var(--h-sidebar-active) !important;
}
#nav-buttons li.nav-link-current::before {
  content: "";
  position: absolute;
  left: -8px; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--h-cyan);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(58,166,222,.45);
}
#nav-buttons li.nav-link-current a.nav-link,
#nav-buttons li.nav-link-current a.nav-link:hover {
  color: var(--h-sidebar-text-on) !important;
  background: transparent !important;
}
#nav-buttons li.nav-link-current .nav-bg-image {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* --- Modern Lucide-style icons per nav item ---
   Replace the legacy sprite with crisp SVGs. Stroke is black in the source;
   the existing filter (brightness(0) invert) tints them light/white for the dark rail. */

#nav-buttons .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><circle cx='12' cy='12' r='9' opacity='.3'/></svg>") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 20px 20px !important;
}

#nav-home .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/><polyline points='9 22 9 12 15 12 15 22'/></svg>") !important;
}
#nav-users .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M22 21v-2a4 4 0 0 0-3-3.87'/><path d='M16 3.13a4 4 0 0 1 0 7.75'/></svg>") !important;
}
#nav-contacts .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='4' width='16' height='16' rx='2'/><circle cx='12' cy='10' r='3'/><path d='M7 20a5 5 0 0 1 10 0'/></svg>") !important;
}
#nav-voicemails .nav-bg-image, #nav-msg .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='12' r='4'/><circle cx='18' cy='12' r='4'/><line x1='6' y1='16' x2='18' y2='16'/></svg>") !important;
}
#nav-fax .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9V2h12v7'/><rect x='2' y='9' width='20' height='12' rx='2'/><path d='M6 14h.01M10 14h.01M14 14h.01M18 14h.01M6 18h.01M10 18h.01M14 18h.01M18 18h.01'/></svg>") !important;
}
#nav-callhistory .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v5h5'/><path d='M3.05 13A9 9 0 1 0 6 5.3L3 8'/><path d='M12 7v5l4 2'/></svg>") !important;
}
#nav-callqueues .nav-bg-image, #nav-agents .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 18v-6a9 9 0 0 1 18 0v6'/><path d='M21 19a2 2 0 0 1-2 2h-1v-7h3zM3 19a2 2 0 0 0 2 2h1v-7H3z'/></svg>") !important;
}
#nav-answerrules .nav-bg-image, #nav-smartRouting .nav-bg-image, #nav-routeprofiles .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='6' r='3'/><path d='M6 9v6a6 6 0 0 0 6 6h3'/><circle cx='18' cy='18' r='3'/><path d='M18 9V6a3 3 0 0 0-3-3h-3'/></svg>") !important;
}
#nav-phones .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.86 19.86 0 0 1-8.63-3.07 19.51 19.51 0 0 1-6-6A19.86 19.86 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") !important;
}
#nav-phonenumbers .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='M7 8h.01M11 8h.01M15 8h.01M7 12h.01M11 12h.01M15 12h.01M7 16h10'/></svg>") !important;
}
#nav-inventory .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/><polyline points='3.27 6.96 12 12.01 20.73 6.96'/><line x1='12' y1='22.08' x2='12' y2='12'/></svg>") !important;
}
#nav-siptrunks .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='6' rx='1'/><rect x='2' y='14' width='20' height='6' rx='1'/><path d='M6 7h.01M10 7h.01M6 17h.01M10 17h.01'/></svg>") !important;
}
#nav-conferences .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='23 7 16 12 23 17 23 7'/><rect x='1' y='5' width='15' height='14' rx='2' ry='2'/></svg>") !important;
}
#nav-attendants .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 11a9 9 0 0 1 18 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3M3 11v5a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3'/></svg>") !important;
}
#nav-timeframes .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/><path d='M12 14v3l2 1'/></svg>") !important;
}
#nav-music .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18V5l12-2v13'/><circle cx='6' cy='18' r='3'/><circle cx='18' cy='16' r='3'/></svg>") !important;
}
#nav-analytics .nav-bg-image, #nav-scheduledReport .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='20' x2='18' y2='10'/><line x1='12' y1='20' x2='12' y2='4'/><line x1='6' y1='20' x2='6' y2='14'/><line x1='3' y1='20' x2='21' y2='20'/></svg>") !important;
}
#nav-settings .nav-bg-image, #nav-uiconfigs .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/></svg>") !important;
}
#nav-domains .nav-bg-image, #nav-resellers .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='2' y1='12' x2='22' y2='12'/><path d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/></svg>") !important;
}
#nav-support .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><circle cx='12' cy='12' r='4'/><line x1='4.93' y1='4.93' x2='9.17' y2='9.17'/><line x1='14.83' y1='14.83' x2='19.07' y2='19.07'/><line x1='14.83' y1='9.17' x2='19.07' y2='4.93'/><line x1='14.83' y1='9.17' x2='18.36' y2='5.64'/><line x1='4.93' y1='19.07' x2='9.17' y2='14.83'/></svg>") !important;
}
#nav-marketplace .nav-bg-image {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3h18l-2 7H5z'/><path d='M5 10v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9'/><circle cx='9' cy='16' r='1'/><circle cx='15' cy='16' r='1'/></svg>") !important;
}

/* Sub-bar sits on the SAME row as #header-user.
   Absolutely positioned at the left edge of #header so #header-user (floated
   right) and the page title don't stack vertically. */
#navigation-subbar {
  clear: none !important;
  position: absolute !important;
  left: 28px;
  top: 0;
  height: 56px !important;
  line-height: 56px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--h-text) !important;
  text-shadow: none !important;
  font-size: 13.5px !important;
  font-weight: normal !important;
  display: flex;
  align-items: center;
  z-index: 2;
}
.navigation-title {
  color: var(--h-text) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 56px !important;
  letter-spacing: -.015em;
  text-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove ALL refresh icons/links — browser refresh handles this. */
#pageRefresh,
.home-refresh,
a.home-refresh,
a.refresh,
.refresh-btn,
.btn-refresh,
a[title="Refresh"],
a[data-original-title="Refresh"],
a i.icon-refresh,
.nav-subbar a[href="#"] i.icon-refresh,
h6 a i.icon-refresh,
.home-panel-main h6 a.helpsy,
.home-panel-main h6 a.home-refresh { display: none !important; }
/* Hide the whole anchor when its only child is icon-refresh */
h6 > a:has(> i.icon-refresh) { display: none !important; }

/* Home dashboard stats panels:
   - Usage Statistics: full frame, no internal scroll (grows with its content)
   - Users and Applications: compact / collapsed, matches Usage Statistics data height */
.stats-panel-home { min-height: 0; }
.stats-panel-home .stats-tables { padding-top: 6px; }
.stats-panel-home .loading-container.relative[style*="padding: 50px"] { padding: 16px 0 !important; }

/* Usage Statistics — let the card grow to fit content */
#omp-usage-stats,
#reseller-usage-stats,
#site-usage-stats,
#home-usage-stats,
.stats-panel-home:has(#omp-usage-stats),
.stats-panel-home:has(#reseller-usage-stats) {
  max-height: none !important;
  overflow: visible !important;
}

/* Users and Applications — match the Current Active Calls card height
   (they sit in two columns side-by-side on the domain home). */
.active-panel-home,
.stats-panel-home:has(#omp-users-applications),
.stats-panel-home:has(#reseller-users-applications),
.stats-panel-home:has(#site-users-applications),
.stats-panel-home:has(#home-users-applications) {
  height: 260px !important;
  min-height: 260px !important;
  max-height: 260px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding-bottom: 12px !important;
}
#omp-users-applications,
#reseller-users-applications,
#site-users-applications,
#home-users-applications {
  max-height: calc(260px - 64px) !important;
  overflow: hidden !important;
}

/* Stats tables (Usage Statistics + Users and Applications):
   Number column shrinks to fit so the label sits right next to the number
   (no big gap). "0  Calls Today", not "0        Calls Today". */
table.stats-table { width: 100% !important; table-layout: auto !important; }
table.stats-table tr > td:first-child,
.stats-panel-home table tr > td:first-child {
  text-align: right !important;
  width: 1% !important;
  white-space: nowrap !important;
  padding: 4px 10px 4px 2px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  color: var(--h-text) !important;
}
table.stats-table tr > td:last-child,
.stats-panel-home table tr > td:last-child {
  text-align: left !important;
  padding: 4px 2px !important;
  color: var(--h-text-muted);
}
table.stats-table tr > td:first-child .helpsy {
  font-weight: 700;
  font-size: 14px;
}

/* Current Active Calls panel — left-aligned label, tighter height.
   (The real "Current Active Calls" number lives in .usage-stats-table; this
   card shows only a header + active-calls list/spinner, so make it compact.) */
.active-panel-home,
#omp-active-body,
#omp-active-body-meetings,
#home-active-body,
#reseller-active-body,
#site-active-body {
  text-align: left !important;
}
.active-panel-home { min-height: 0 !important; }
.active-panel-home h6 { margin-bottom: 8px !important; }
#omp-active-body:empty,
#omp-active-body:has(> .loading-container:only-child) { display: none; }
.active-panel-home h5, .active-panel-home h4, .active-panel-home h3,
.active-panel-home .big-number, .active-panel-home .count {
  text-align: left !important;
  margin-left: 0 !important;
}

/* Voicemail-count badge on the account dropdown.
   The element ships with `.hide { display:none !important }` (Bootstrap 3).
   jQuery .fadeIn() only sets inline style — which can't beat !important.
   Force it visible once jQuery has applied an inline style that isn't "none". */
.user-toolbar .dropdown-msg-count {
  margin: 0 6px 0 -2px !important;
  padding: 2px 7px !important;
  min-width: 18px;
  height: 18px;
  line-height: 14px;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  background: var(--h-danger) !important;
  color: #fff !important;
  text-align: center;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(220,38,38,.35);
  vertical-align: middle;
}
/* Defeat Bootstrap .hide once jQuery fadeIn has run (it sets inline display). */
.user-toolbar .dropdown-msg-count[style*="display: inline"],
.user-toolbar .dropdown-msg-count[style*="display: block"],
.user-toolbar .dropdown-msg-count[style*="opacity"] {
  display: inline-block !important;
}

/* --- Main content --- */
#content, #page-container, #wrapper { background: transparent; }
#content { padding: 0 28px !important; }

/* --- Cards / panels --- */
.rounded,
.home-panel-main .rounded,
.active-panel-home,
.graphs-panel-home,
.vmail-panel-home,
.callhistory-panel-home,
.status-panel-home,
.rules-panel-home,
.conference-panel-home,
.active-panel-home-meetings {
  background: var(--h-surface) !important;
  border: 1px solid var(--h-border) !important;
  border-radius: var(--h-radius-lg) !important;
  box-shadow: var(--h-shadow-sm) !important;
  padding: 22px 24px !important;
  margin-bottom: 18px !important;
  position: relative;
  transition: box-shadow .2s var(--h-ease), transform .2s var(--h-ease);
}
.home-panel-main .rounded:hover,
.active-panel-home:hover,
.graphs-panel-home:hover,
.vmail-panel-home:hover,
.callhistory-panel-home:hover,
.status-panel-home:hover,
.rules-panel-home:hover { box-shadow: var(--h-shadow-md) !important; }

.home-panel-main h6 {
  font-size: 11px;
  font-weight: 700;
  color: var(--h-text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 0 0 14px 0;
}
.home-panel-main h6 a { color: var(--h-text-muted); }
.home-panel-main h6 a:hover { color: var(--h-primary); }

.home-panel-main.container-fluid { padding: 0; }
.home-panel-main .home-content,
.home-panel-main .home-sidebar { padding: 0 8px; }

/* --- Tables --- */
table.dataTable,
.home-panel-main table,
.table {
  background: transparent;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.dataTable thead th,
.table thead th,
.home-panel-main table thead th {
  background: transparent !important;
  color: var(--h-text-muted) !important;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 0 !important;
  border-bottom: 1px solid var(--h-border) !important;
  padding: 12px 14px !important;
}
.dataTable tbody td,
.table tbody td,
.home-panel-main table tbody td {
  border: 0 !important;
  border-bottom: 1px solid var(--h-border) !important;
  padding: 13px 14px !important;
  background: transparent !important;
  vertical-align: middle;
  color: var(--h-text-soft);
}
.dataTable tbody tr:last-child td,
.table tbody tr:last-child td,
.home-panel-main table tbody tr:last-child td { border-bottom: 0 !important; }
.dataTable tbody tr,
.table tbody tr { transition: background .12s var(--h-ease); }
.dataTable tbody tr:hover td,
.table tbody tr:hover td { background: rgba(58,166,222,.05) !important; }
.table-striped tbody tr:nth-child(odd) td { background: transparent !important; }

/* Sort glyph */
.dataTable .sorting:after,
.dataTable .sorting_asc:after,
.dataTable .sorting_desc:after { opacity: .5; }

/* --- Buttons --- */
.btn {
  border-radius: var(--h-radius-sm);
  border: 1px solid var(--h-border-strong);
  background: var(--h-surface);
  color: var(--h-text);
  font-weight: 500;
  padding: 8px 14px;
  box-shadow: var(--h-shadow-xs);
  text-shadow: none;
  background-image: none !important;
  transition: background .15s var(--h-ease), border-color .15s var(--h-ease),
              box-shadow .15s var(--h-ease), transform .06s var(--h-ease);
}
.btn:hover { background: #f3f5f9; border-color: var(--h-border-strong); box-shadow: var(--h-shadow-sm); }
.btn:active { transform: translateY(1px); box-shadow: var(--h-shadow-xs); }
.btn:focus-visible { outline: none; box-shadow: var(--h-ring); }

.btn-primary,
a.btn-primary,
.form-actions > .btn-primary {
  background: linear-gradient(180deg, #1b59a0, var(--h-navy)) !important;
  border-color: var(--h-navy) !important;
  color: #fff !important;
  background-image: linear-gradient(180deg, #1b59a0, var(--h-navy)) !important;
  text-shadow: none !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, var(--h-shadow-sm);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #1e63b3, #144277) !important;
  background-image: linear-gradient(180deg, #1e63b3, #144277) !important;
  border-color: var(--h-navy-700) !important;
}
.btn-danger  { background: var(--h-danger) !important; border-color: var(--h-danger) !important; color: #fff !important; background-image: none !important; }
.btn-danger:hover { background: #b91c1c !important; border-color: #b91c1c !important; }
.btn-success { background: var(--h-success) !important; border-color: var(--h-success) !important; color: #fff !important; background-image: none !important; }
.btn-success:hover { background: #15803d !important; border-color: #15803d !important; }

/* --- Inputs --- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
.uneditable-input {
  border: 1px solid var(--h-border-strong) !important;
  border-radius: var(--h-radius-sm) !important;
  box-shadow: var(--h-shadow-xs) !important;
  background: var(--h-surface) !important;
  padding: 9px 12px !important;
  transition: border-color .15s var(--h-ease), box-shadow .15s var(--h-ease);
}
/* Native <select> — leave the browser's rendering alone for internal padding
   (9px would clip text in the closed control). Keep border + radius though. */
select {
  border: 1px solid var(--h-border-strong) !important;
  border-radius: var(--h-radius-sm) !important;
  box-shadow: var(--h-shadow-xs) !important;
  background-color: var(--h-surface) !important;
  padding: 5px 10px !important;
  min-height: 34px;
  line-height: 1.4;
  transition: border-color .15s var(--h-ease), box-shadow .15s var(--h-ease);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--h-cyan) !important;
  box-shadow: var(--h-ring) !important;
  outline: none !important;
}
input[type="search"] { background-image: none; }

/* Search in datatables looks nicer */
.dataTables_filter input {
  padding: 7px 12px 7px 32px !important;
  background: var(--h-surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat 10px center !important;
  min-width: 220px;
}

/* --- Alerts --- */
.alert {
  border-radius: var(--h-radius) !important;
  border: 1px solid transparent;
  padding: 12px 16px;
  text-shadow: none;
  box-shadow: var(--h-shadow-xs);
}
.alert-info    { background: #e8f4fc; border-color: #c8e3f5; color: #0b4a75; }
.alert-success { background: var(--h-success-soft); border-color: #bbf7d0; color: #14532d; }
.alert-warning { background: var(--h-warning-soft); border-color: #fde68a; color: #78350f; }
.alert-error, .alert-danger { background: var(--h-danger-soft); border-color: #fecaca; color: #7f1d1d; }

/* --- Dropdowns & popovers --- */
.dropdown-menu,
.popover {
  border: 1px solid var(--h-border) !important;
  border-radius: var(--h-radius) !important;
  box-shadow: var(--h-shadow-lg) !important;
  padding: 8px;
  background: var(--h-surface);
  min-width: 180px;
}
.dropdown-menu > li > a {
  padding: 8px 12px;
  color: var(--h-text-soft);
  border-radius: var(--h-radius-xs);
  transition: background .12s var(--h-ease);
}
.dropdown-menu > li > a:hover {
  background: var(--h-cyan-50);
  color: var(--h-primary);
}
.dropdown-menu .divider { margin: 6px 0; background: var(--h-border); }

/* --- Modals --- */
.modal {
  border-radius: var(--h-radius-lg) !important;
  border: 1px solid var(--h-border) !important;
  box-shadow: var(--h-shadow-lg) !important;
  overflow: hidden;
}
.modal-backdrop.in { opacity: .5; background: #0f172a; }
.modal-header {
  border-bottom: 1px solid var(--h-border);
  padding: 18px 22px;
  background: var(--h-surface);
}
.modal-header h3, .modal-header h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
.modal-body { padding: 20px 22px; }
.modal-footer {
  border-top: 1px solid var(--h-border);
  background: var(--h-surface-alt);
  padding: 14px 22px;
}

/* --- Tabs (bootstrap 2) --- */
.nav-tabs {
  border-bottom: 1px solid var(--h-border);
}
.nav-tabs > li > a {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 10px 16px;
  color: var(--h-text-muted);
  font-weight: 500;
  background: transparent;
  margin-right: 4px;
  border-bottom: 2px solid transparent !important;
  transition: color .15s var(--h-ease), border-color .15s var(--h-ease);
}
.nav-tabs > li > a:hover {
  background: transparent;
  color: var(--h-primary);
  border-bottom-color: var(--h-border-strong) !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background: transparent;
  color: var(--h-primary);
  border: 0 !important;
  border-bottom: 2px solid var(--h-cyan) !important;
}

/* --- Footer --- */
#footer {
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  padding: 18px 28px;
  margin-top: 24px;
  text-align: left;
}
#footer p { color: var(--h-text-faint) !important; font-size: 11px; margin: 0 10px 0 0; display: inline-block; }

/* Kill any stray right/bottom frame that the base theme draws on the content
   wrapper. The users/call-history/etc pages are plain <div>s under .wrapper /
   .page-container — they shouldn't render a box around the whole viewport. */
.wrapper, .page-container, #content, #page-container, #wrapper {
  border: 0 !important;
  box-shadow: none !important;
}
.users-panel-main, .directory-panel-main,
.callhistory-panel-main, .inventory-panel-main,
.stats-panel-main, .contacts-panel-main,
.timeframes-panel-main, .music-panel-main,
.attendants-panel-main, .callqueues-panel-main,
.domains-panel-main, .conferences-panel-main,
.answerrules-panel-main, .voicemails-panel-main,
.siptrunks-panel-main, .routeprofiles-panel-main {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* --- Login: no sidebar, centered card on gradient --- */
body:has(#login-container) {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(58,166,222,.18), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(24,80,141,.14), transparent 55%),
    var(--h-canvas) !important;
}
body:has(#login-container) .wrapper { padding-left: 0 !important; }
body:has(#login-container) #footer  { margin-left: 0; }
body:has(#login-container) #navigation,
body:has(#login-container) #header-logo {
  position: static !important;
  background: transparent !important;
  width: auto;
  height: auto;
}
body:has(#login-container) #header-logo img { filter: none; }

#login-group, #login-box {
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-lg);
  box-shadow: var(--h-shadow-lg);
  padding: 32px 32px 28px;
}
#login-logo { text-align: center; margin-bottom: 22px; }
#login-logo img { max-height: 56px; }
#login-fields label { font-weight: 600; font-size: 12px; color: var(--h-text-soft); letter-spacing: .01em; }
#login-fields input { width: 100%; box-sizing: border-box; padding: 11px 12px !important; }
#login-submit .btn { width: 100%; padding: 11px; font-weight: 600; font-size: 14px; }
.separator__content { color: var(--h-text-muted); font-weight: 600; }

/* --- Misc polish --- */
.pagination > li > a {
  border-radius: var(--h-radius-sm) !important;
  margin: 0 2px;
  border-color: var(--h-border) !important;
  color: var(--h-text-soft);
  padding: 6px 12px;
}
.pagination > li > a:hover { background: var(--h-cyan-50); border-color: var(--h-cyan) !important; color: var(--h-primary); }
.pagination > .active > a,
.pagination > .active > a:hover {
  background: var(--h-primary) !important;
  border-color: var(--h-primary) !important;
  color: #fff !important;
}

.badge, .label {
  border-radius: var(--h-radius-pill);
  padding: 3px 10px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .01em;
  box-shadow: none;
  text-shadow: none;
  background: var(--h-canvas-2);
  color: var(--h-text-soft);
}
.badge-success, .label-success { background: var(--h-success-soft); color: #166534; }
.badge-warning, .label-warning { background: var(--h-warning-soft); color: #92400e; }
.badge-important, .badge-danger, .label-important, .label-danger { background: var(--h-danger-soft); color: #991b1b; }
.badge-info, .label-info       { background: var(--h-cyan-50) !important; color: var(--h-navy) !important; }
/* Call History date-range chip uses .label.label-info.set-filters */
.set-filters, .set-filters.label-info, a.set-filters,
.set-filters.clear-filter, .clear-filter {
  background: var(--h-cyan-50) !important;
  color: var(--h-navy) !important;
  border: 1px solid #cfe4f6 !important;
  padding: 5px 12px !important;
  border-radius: var(--h-radius-pill) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}
.clear-filter a { color: var(--h-navy) !important; text-shadow: none !important; opacity: .55 !important; }
.clear-filter a:hover { opacity: 1 !important; color: var(--h-danger) !important; }

.well {
  background: var(--h-surface-alt) !important;
  border: 1px solid var(--h-border) !important;
  border-radius: var(--h-radius) !important;
  box-shadow: var(--h-shadow-xs) !important;
}

/* Loading spinners on brand color */
.loading-spinner.la-ball-spin-clockwise > div { background: var(--h-cyan) !important; }

/* Focus-visible affordance everywhere */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible { outline: none; box-shadow: var(--h-ring); border-radius: var(--h-radius-sm); }

/* Collapse sidebar on narrow screens */
@media (max-width: 900px) {
  .wrapper { padding-left: 0 !important; }
  #footer  { margin-left: 0; }
  #navigation { transform: translateX(-100%); transition: transform .2s var(--h-ease); }
  #navigation.open { transform: translateX(0); }
  #header-logo { position: static !important; width: auto; height: auto; background: transparent; }
  #header-logo img { filter: none; }
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---- Audit follow-ups ---- */

/* Give search/filter inputs room so placeholders don't clip */
input[type="text"][placeholder^="Enter"],
input[type="search"],
.search-input,
.ns-search input,
form .controls input[type="text"] {
  min-width: 280px;
}

/* Table row action icons (edit/delete/more) were rendering washed-out */
td .btn-link,
td a[class*="edit"],
td a[class*="delete"],
td a[class*="remove"],
td .icon-remove,
td .icon-pencil,
td .icon-trash,
td .nsicon,
.dataTable tbody td i[class^="icon-"],
.dataTable tbody td i[class^="nsicon-"] {
  opacity: 0.75;
  color: var(--h-text-muted);
  transition: opacity .12s var(--h-ease), color .12s var(--h-ease);
}
.dataTable tbody tr:hover td .nsicon,
.dataTable tbody tr:hover td i[class^="icon-"],
.dataTable tbody tr:hover td i[class^="nsicon-"],
td .btn-link:hover,
td a[class*="edit"]:hover,
td a[class*="delete"]:hover,
td a[class*="remove"]:hover { opacity: 1; color: var(--h-primary); }
td a[class*="delete"]:hover,
td a[class*="remove"]:hover,
td .icon-remove:hover { color: var(--h-danger); }

/* Date-range filter chip (Call History) */
.date-range-filter,
.daterange-toggle,
.dateRange,
.btn-date-range,
span.filter-date-range,
a.filter-date-range {
  background: var(--h-primary-50) !important;
  color: var(--h-primary) !important;
  border: 1px solid #cfe4f6 !important;
  border-radius: var(--h-radius-pill) !important;
  padding: 4px 12px !important;
  font-weight: 600;
  font-size: 12px;
}

/* Contacts / Webphone dock (bottom-right) — match the skin */
.dock-popup {
  border-radius: var(--h-radius) var(--h-radius) 0 0 !important;
  box-shadow: var(--h-shadow-lg) !important;
  overflow: hidden;
}
.dock-head {
  background: linear-gradient(180deg, var(--h-navy) 0%, var(--h-navy-700) 100%) !important;
  color: #fff !important;
  border: 0 !important;
  height: auto !important;
  padding: 10px 12px !important;
  border-radius: var(--h-radius) var(--h-radius) 0 0 !important;
  font-weight: 600;
  letter-spacing: .01em;
  font-size: 13px;
}
.dock-head .dock-name { color: #fff !important; font-size: 13px !important; }
.dock-head-button {
  background: transparent !important;
  border: 0 !important;
  color: rgba(255,255,255,.85) !important;
  padding: 4px 6px !important;
  border-radius: var(--h-radius-xs) !important;
  transition: background .12s var(--h-ease);
}
.dock-head-button:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.dock-head-button .icon-white { filter: brightness(0) invert(1); opacity: .9; }
.dock-body {
  background: var(--h-surface) !important;
  border: 1px solid var(--h-border) !important;
  border-top: 0 !important;
  color: var(--h-text) !important;
}
.dock-popup input[type="search"],
.dock-popup input[type="text"] {
  background: var(--h-surface) !important;
  border: 1px solid var(--h-border-strong) !important;
  border-radius: var(--h-radius-sm) !important;
  color: var(--h-text) !important;
}

/* Sidebar shouldn't extend past content when page is short — let the canvas
   bleed through below the nav list so the big navy block doesn't dominate. */
#navigation {
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - var(--h-topbar-h));
  /* keep it pinned from the top, but its background only fills content */
  /* use a repeating gradient so the visible nav section is navy and
     anything scrolled past fades to canvas */
}
#navigation::after {
  content: "";
  position: fixed;
  left: 0;
  bottom: 0;
  width: var(--h-sidebar-w);
  top: var(--h-topbar-h);
  background: linear-gradient(180deg, var(--h-sidebar-bg-top) 0%, var(--h-sidebar-bg-bot) 100%);
  z-index: -1;
  border-right: 1px solid var(--h-sidebar-border);
  pointer-events: none;
}

/* Home dashboard: Domain Quick Launch input */
#home-domain-quick input,
#home_domain_quick_launch input,
.domain-quick-launch input,
#current-quicklaunch input { min-width: 260px; }

/* Make the .filters bar ("Filters" toggle + date chip row) tidier */
.filters-bar,
#filters-bar,
.daterange-picker-container { gap: 10px; align-items: center; }
