/*!************************************************************************************************************************************************************************************************************************!*\
  !*** css ../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].rules[0].oneOf[0].use[1]!../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[5].rules[0].oneOf[0].use[2]!./src/styles.css?ngGlobalStyle ***!
  \************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #121315;
  --card: #1a1c1f;
  --card-elevated: #20242a;
  --text: #e8e8e8;
  --muted: #a7acb3;
  --muted-2: #8e959d;
  --line: #34383e;
  --line-soft: #2b2f35;
  --accent: #c32a1a;
  --accent-strong: #9e2115;
  --success-bg: #1f3525;
  --success-text: #9de1ad;
  --error-bg: #3b2320;
  --error-text: #ffb3a8;
  --sidebar: #282828;
  --sidebar-line: #494949;
  --sidebar-text: #dfdfdf;
  --sidebar-muted: #c5c5c5;
  --radius-sm: 7px;
  --radius-md: 9px;
  --radius-lg: 11px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: 28px;
  --shadow-1: 0 10px 24px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 16px 36px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,

/* Dark scrollbars (avoid default bright/white bars on desktop). */
html {
  scrollbar-gutter: stable both-edges;
  scrollbar-color: rgba(226, 232, 240, 0.32) rgba(11, 14, 18, 0.85);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(11, 14, 18, 0.55);
}

*::-webkit-scrollbar-thumb {
  background: rgba(11, 14, 18, 0.55);
  border-radius: 999px;
  border: 2px solid rgba(11, 14, 18, 0.55);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 232, 240, 0.34);
}

/* Desktop: hide scrollbars (Apple-style) */
@media (min-width: 901px) {
  /* Keep scrolling, hide the visible bars. */
  html,
  .content-area,
  .side-nav,
  .special-panel,
  .breadcrumb-bar,
  .week-grid,
  .day-grid {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .app-shell::-webkit-scrollbar,
  .content-area::-webkit-scrollbar,
  .side-nav::-webkit-scrollbar,
  .special-panel::-webkit-scrollbar,
  .breadcrumb-bar::-webkit-scrollbar,
  .week-grid::-webkit-scrollbar,
  .day-grid::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
  }
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: Bahnschrift, 'Segoe UI Variable Text', 'Trebuchet MS', sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(circle at top right, rgba(195, 42, 26, 0.2) 0%, transparent 36%),
    radial-gradient(circle at 8% 92%, rgba(123, 123, 123, 0.1) 0%, transparent 46%),
    linear-gradient(160deg, #111214 0%, #16181b 58%, #1c2024 100%);
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0.1px;
}

h2 {
  font-size: clamp(1.26rem, 2vw, 1.7rem);
  line-height: 1.23;
}

h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.3;
}

p {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

.app-shell.sidebar-collapsed .sidebar-context,
.app-shell.sidebar-collapsed .role-panel,
.app-shell.sidebar-collapsed .quick-access,
.app-shell.sidebar-collapsed .side-section-label {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
  border-left: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  flex: 0 0 0;
}

.sidebar {
  width: 304px;
  flex: 0 0 304px;
  min-width: 0;
  border-left: 1px solid #29313d;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 4% 8%, rgba(239, 67, 55, 0.08) 0%, transparent 30%),
    linear-gradient(180deg, #111720 0%, #0f151d 62%, #0d131b 100%);
  color: var(--sidebar-text);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(10, 14, 20, 0.3);
  transition: width 0.22s ease, padding 0.22s ease, opacity 0.22s ease, border-color 0.22s ease;
}

.sidebar-float-toggle {
  display: none;
}

.sidebar-float-toggle:hover {
  display: none;
}

.sidebar-toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  transform: rotate(180deg);
}

.sidebar-float-toggle.is-collapsed .sidebar-toggle-icon {
  display: none;
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 8px;
  border-bottom: 1px solid rgba(164, 180, 203, 0.16);
}

.sidebar-title-row strong {
  color: #d8e4f5;
  font-size: 10.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 800;
}

.sidebar-pop-close {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: 1px solid #3f4d61;
  border-radius: 6px;
  background: #162131;
  color: #e8effa;
  line-height: 1;
  font-size: 14px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.sidebar-pop-close:hover {
  border-color: #5f7189;
  background: #1d2a3d;
}

.sidebar-inline-toggle {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: 1px solid #425064;
  border-radius: 6px;
  background: #172131;
  color: #e6edf8;
  line-height: 1;
  font-size: 14px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.sidebar-inline-toggle:hover {
  border-color: #607186;
  background: #1f2c3f;
}

.sidebar-context {
  display: none;
}

.sidebar-context-row {
  display: none;
}

.sidebar-context-row strong {
  display: none;
}

.role-panel {
  display: none;
}

.role-panel label {
  color: #9eb3cf;
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.side-section-label {
  display: none;
}

.role-panel select {
  background: rgba(8, 16, 25, 0.92);
  color: #e0e9f6;
  border: 1px solid #3a4b60;
  border-radius: 8px;
}

.role-panel input {
  background: rgba(8, 16, 25, 0.92);
  color: #e0e9f6;
  border: 1px solid #3a4b60;
  border-radius: 8px;
}

.side-nav {
  display: grid;
  gap: 9px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.side-nav-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(141, 170, 205, 0.12);
}

.side-link-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.side-link-logout {
  color: #ffd7d7;
}

.side-link-logout:hover {
  background: rgba(187, 63, 63, 0.24);
  color: #fff3f3;
}

.nav-group {
  border-top: 1px solid rgba(141, 170, 205, 0.08);
  padding: 5px 0 0;
}

.nav-group-title {
  margin: 0 0 5px;
  padding: 0 8px;
  color: #d7e0ee;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.group-count {
  display: none;
}

.nav-group-items {
  display: grid;
  gap: 2px;
  margin-top: 2px;
  margin-bottom: 0;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #dde6f4;
  text-decoration: none;
  font-size: 12.8px;
  font-weight: 600;
  border: 0;
  transition: background 140ms ease, color 140ms ease;
  line-height: 1.25;
}

.side-link-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  display: inline-block;
  position: relative;
  color: inherit;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  opacity: 0.88;
  transition: opacity 140ms ease, transform 140ms ease;
}

.side-link-icon::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  left: calc(var(--ax, 78) * 1%);
  top: calc(var(--ay, 22) * 1%);
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.side-link:hover {
  background: rgba(67, 95, 128, 0.24);
  color: #f2f6fc;
}

.side-link:hover .side-link-icon {
  opacity: 1;
  transform: scale(1.03);
}

.side-link.active {
  background: rgba(239, 67, 55, 0.14);
  box-shadow: inset 2px 0 0 rgba(255, 138, 125, 0.9);
  color: #fff;
}

.side-link.active .side-link-icon {
  color: inherit;
  opacity: 1;
}

.mobile-menu-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.mobile-menu-logo {
  width: 136px;
  height: auto;
}

.mobile-side-nav {
  display: grid;
  gap: 8px;
  padding: 6px 2px 2px;
}

.mobile-side-link {
  width: 100%;
  border: 1px solid #4f5560;
  border-radius: 0;
  background: #d7d7d9;
  color: #2f343d;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1px;
  padding: 10px 12px;
  text-align: center;
  display: block;
}

.mobile-side-link.active {
  border-color: #2f4f94;
  color: #1f3e80;
  background: #e2e5ec;
}

.mobile-side-link.logout-link {
  margin-top: 6px;
  border-color: #ab4a4a;
  color: #8b2e2e;
}

.icon-dashboard { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 20h16v-2H4v2zm2-4h3V8H6v8zm5 0h3V4h-3v12zm5 0h3v-6h-3v6z'/></svg>"); }
.icon-notifications { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 22a2.5 2.5 0 002.45-2h-4.9A2.5 2.5 0 0012 22zm7-6V11a7 7 0 10-14 0v5L3 18v1h18v-1l-2-2z'/></svg>"); }
.icon-cart { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 18a2 2 0 100 4 2 2 0 000-4zm10 0a2 2 0 100 4 2 2 0 000-4zM6.2 6l.6 2h12.3l-1.5 6H8.3L6 4H3V2h4l.7 2H21v2H6.2z'/></svg>"); }
.icon-feed { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 18h16v2H4zm0-7h16v2H4zm0-7h16v2H4z'/></svg>"); }
.icon-chat { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 4h16v12H7l-3 3V4zm2 2v8h12V6H6z'/></svg>"); }
.icon-search { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M10 4a6 6 0 104.472 10.002l4.763 4.763 1.414-1.414-4.763-4.763A6 6 0 0010 4zm0 2a4 4 0 110 8 4 4 0 010-8z'/></svg>"); }
.icon-calendar { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm11 8H6v10h12V10z'/></svg>"); }
.icon-projects { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 5h7l2 2h9v12H3V5zm2 4v8h14V9H5z'/></svg>"); }
.icon-jobs { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 4h6v2h5a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V8a2 2 0 012-2h5V4zm2 2h2V6h-2V6zm9 6H4v6h16v-6z'/></svg>"); }
.icon-rfq { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 5h18v14H3V5zm2 2v10h14V7H5zm1 1h12l-6 4-6-4z'/></svg>"); }
.icon-quote { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 3h14v18H5V3zm2 2v14h10V5H7zm2 3h6v2H9V8zm0 4h6v2H9v-2z'/></svg>"); }
.icon-orders { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 7l9-4 9 4v10l-9 4-9-4V7zm9-2.2L7 7l5 2.2L17 7 12 4.8zM5 8.3v7.5l6 2.7V11L5 8.3zm14 0L13 11v7.5l6-2.7V8.3z'/></svg>"); }
.icon-returns { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 5V2L7 6l5 4V7c3.3 0 6 2.7 6 6a6 6 0 01-6 6 6 6 0 01-5.7-4H4.2A8 8 0 0012 21a8 8 0 000-16z'/></svg>"); }
.icon-reports { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 20h16v-2H4v2zm2-4h2V9H6v7zm5 0h2V5h-2v11zm5 0h2v-4h-2v4z'/></svg>"); }
.icon-finance { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 5h2v2h-2v1h2a2 2 0 012 2v2a2 2 0 01-2 2h-2v2h-2v-2H9v-2h4v-1H9a2 2 0 01-2-2v-2a2 2 0 012-2h2V7h2z'/></svg>"); }
.icon-folder { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 5h7l2 2h9v12H3V5zm2 4v8h14V9H5z'/></svg>"); }
.icon-tools { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M22 19.6L13.4 11a5 5 0 01-6.2-6.2L10 7.6l2.6-2.6-2.8-2.8a5 5 0 016.2 6.2l8.6 8.6-2.6 2.6z'/></svg>"); }
.icon-machines { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 8a4 4 0 100 8 4 4 0 000-8zm10 4l-2.2.8.1 2.4-2.2 1.3-1.8-1.6-2.1 1.1-.4 2.4h-2.6l-.4-2.4-2.1-1.1-1.8 1.6-2.2-1.3.1-2.4L2 12l2.2-.8-.1-2.4 2.2-1.3 1.8 1.6 2.1-1.1.4-2.4h2.6l.4 2.4 2.1 1.1 1.8-1.6 2.2 1.3-.1 2.4L22 12z'/></svg>"); }
.icon-params { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 7h10v2H4V7zm0 8h16v2H4v-2zm0-4h16v2H4v-2zm12-5h4v4h-4V6zm-6 8h4v4h-4v-4z'/></svg>"); }
.icon-assembly { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 7l5-3 5 3-5 3-5-3zm8 0l5-3 5 3-5 3-5-3zM3 13l5-3 5 3-5 3-5-3zm8 0l5-3 5 3-5 3-5-3z'/></svg>"); }
.icon-accounts { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M16 11a4 4 0 100-8 4 4 0 000 8zm-8 1a4 4 0 100-8 4 4 0 000 8zm8 2c-2.7 0-8 1.3-8 4v3h16v-3c0-2.7-5.3-4-8-4zM0 18v3h6v-3c0-1.2.5-2.2 1.4-3C4.7 15.2 0 16.3 0 18z'/></svg>"); }
.icon-suppliers { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 21h18v-2h-1V9l-5-4-5 4v10h-2V5H3v14H2v2h1zm9-12l3-2.4L18 9v10h-6V9z'/></svg>"); }
.icon-distributors { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M1 6h13v9h-1a3 3 0 00-6 0H5a3 3 0 00-4 2V6zm15 3h4l3 4v4h-2a3 3 0 00-6 0h-1V9h2zm-9 9a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm10 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z'/></svg>"); }
.icon-products { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm9 0h7v7h-7v-7z'/></svg>"); }
.icon-compliance { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2l8 3v6c0 5-3.4 9.7-8 11-4.6-1.3-8-6-8-11V5l8-3zm-1 12l6-6-1.4-1.4L11 11.2 8.4 8.6 7 10l4 4z'/></svg>"); }
.icon-admin { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.4 13a7.8 7.8 0 000-2l2-1.6-2-3.4-2.4 1a7.7 7.7 0 00-1.7-1l-.3-2.6h-4l-.3 2.6a7.7 7.7 0 00-1.7 1l-2.4-1-2 3.4 2 1.6a7.8 7.8 0 000 2l-2 1.6 2 3.4 2.4-1a7.7 7.7 0 001.7 1l.3 2.6h4l.3-2.6a7.7 7.7 0 001.7-1l2.4 1 2-3.4-2-1.6zM12 15a3 3 0 110-6 3 3 0 010 6z'/></svg>"); }
.icon-approvals { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2L4.8 12 3.4 13.4 9 19l12-12-1.4-1.4z'/></svg>"); }
.icon-billing { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 3h16v18H4V3zm2 2v14h12V5H6zm2 3h8v2H8V8zm0 4h8v2H8v-2z'/></svg>"); }
.icon-inventory { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 3h18v6H3V3zm0 8h18v10H3V11zm2-6v2h14V5H5zm0 8v6h14v-6H5z'/></svg>"); }
.icon-timeline { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M11 7h2v6h5v2h-7V7zm1-5a10 10 0 100 20 10 10 0 000-20z'/></svg>"); }
.icon-maintenance { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M22 19.6L13.4 11a5 5 0 01-6.2-6.2L10 7.6l2.6-2.6-2.8-2.8a5 5 0 016.2 6.2l8.6 8.6-2.6 2.6z'/></svg>"); }
.icon-certification { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 3h14v14H5V3zm2 2v10h10V5H7zm5 14l4 2-1-4 3-3h-4l-2-4-2 4H6l3 3-1 4 4-2z'/></svg>"); }
.icon-audit { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 3h14v18l-7-3-7 3V3zm2 3v2h10V6H7zm0 4v2h10v-2H7z'/></svg>"); }
.icon-docs { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M6 2h9l5 5v15H6V2zm8 1.5V8h4.5L14 3.5zM8 10h8v2H8v-2zm0 4h8v2H8v-2z'/></svg>"); }
.icon-users { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M16 11a4 4 0 100-8 4 4 0 000 8zm-8 1a4 4 0 100-8 4 4 0 000 8zm8 2c-2.7 0-8 1.3-8 4v3h16v-3c0-2.7-5.3-4-8-4zM0 18v3h6v-3c0-1.2.5-2.2 1.4-3C4.7 15.2 0 16.3 0 18z'/></svg>"); }
.icon-settings { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M19.4 13a7.8 7.8 0 000-2l2-1.6-2-3.4-2.4 1a7.7 7.7 0 00-1.7-1l-.3-2.6h-4l-.3 2.6a7.7 7.7 0 00-1.7 1l-2.4-1-2 3.4 2 1.6a7.8 7.8 0 000 2l-2 1.6 2 3.4 2.4-1a7.7 7.7 0 001.7 1l.3 2.6h4l.3-2.6a7.7 7.7 0 001.7-1l2.4 1 2-3.4-2-1.6zM12 15a3 3 0 110-6 3 3 0 010 6z'/></svg>"); }
.icon-health { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M10 3h4v4h4v4h4v4h-4v4h-4v-4h-4v-4H6V7h4V3z'/></svg>"); }
.icon-show { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 6h12a2 2 0 012 2v8a2 2 0 01-2 2H4V6zm14 4l4-2v8l-4-2v-4z'/></svg>"); }
.icon-default { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='5' fill='black'/></svg>"); }
.icon-logout { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M16 17l1.4-1.4-2.6-2.6H22v-2h-7.2l2.6-2.6L16 7l-5 5 5 5zM4 5h7V3H4a2 2 0 00-2 2v14a2 2 0 002 2h7v-2H4V5z'/></svg>"); }

.side-link-icon {
  mask-image: var(--icon);
}

.favorite-link {
  display: none;
}

.favorite-links {
  display: none;
}

.quick-access {
  display: none;
}

.content-area {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  position: relative;
  transition: flex 0.22s ease;
}

.top-nav {
  border-bottom: 1px solid #1f2330;
  background: #04070f;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 3000;
  isolation: isolate;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(239, 67, 55, 0.0), rgba(239, 67, 55, 0.85), rgba(239, 67, 55, 0.25));
}


.top-brand-inline {
  display: flex;
  align-items: center;
}

.top-logo {
  width: 154px;
  height: auto;
  display: block;
}

.header-search {
  min-width: 220px;
  flex: 0 1 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border: 1px solid #525967;
  border-radius: 999px;
  background: #f3f5f9;
  color: #252932;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-search:hover {
  border-color: #6c7484;
  background: #ffffff;
}

.header-search-placeholder {
  color: #707786;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.header-search-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #8a91a0;
  border-radius: 50%;
  position: relative;
}

.header-search-icon::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  background: #8a91a0;
  border-radius: 2px;
  transform: rotate(45deg);
  right: -5px;
  bottom: 0;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #4d5157;
  border-radius: 999px;
  background: rgba(18, 20, 22, 0.9);
  font-size: 11px;
  font-weight: 700;
  color: #9de1ad;
  white-space: nowrap;
}

.system-status.offline {
  color: #ffb3a8;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

kbd {
  border: 1px solid #4d5157;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  background: #202327;
  color: #d2d5d8;
}

.special-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 20, 20, 0.45);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: grid;
  place-items: start center;
  padding-top: 72px;
}

.special-panel {
  width: min(860px, 94vw);
  max-height: min(78vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #1b1d20;
  box-shadow: 0 20px 42px rgba(12, 12, 12, 0.35);
  padding: 14px;
}

.special-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.special-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.special-results {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.special-group h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #9ba2aa;
}

.special-row {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #14171a;
  padding: 9px 10px;
  margin-bottom: 4px;
}

.special-row:hover {
  border-color: var(--line);
  background: #1f2328;
}

.active-special-row {
  border-color: var(--accent);
  background: #ffdbd6;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: flex-start;
  margin-left: auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: visible;
  scrollbar-width: thin;
  white-space: nowrap;
  padding-bottom: 2px;
  position: relative;
  z-index: 3001;
}

.nav-hamburger {
  border: 1px solid #2c3442;
  border-radius: 8px;
  background: #111826;
  color: #f0f0f0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  width: 40px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-left: 2px;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-hamburger-right {
  margin-left: auto;
}

.nav-hamburger.is-active {
  border-color: #556170;
  background: #1a2534;
}

.app-shell.sidebar-collapsed .side-nav {
  padding-right: 0;
}

.app-shell.sidebar-collapsed .nav-group {
  border-top-color: transparent;
  padding-top: 0;
}

.app-shell.sidebar-collapsed .nav-group-items {
  gap: 0;
  margin-top: 0;
}

.app-shell.sidebar-collapsed .side-link {
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  font-size: 0;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(7, 9, 12, 0.52);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile sidebar overlay - rendered outside app-shell so it stacks above all content */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: auto;
}

.sidebar-overlay .sidebar-backdrop {
  z-index: 1;
  background: rgba(6, 9, 14, 0.58);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.sidebar-overlay .sidebar-mobile-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(67.2vw, 272px);
  max-width: 272px;
  z-index: 2;
  transform: translateX(0);
  visibility: visible;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  background: linear-gradient(180deg, #111827 0%, #0d1522 100%);
  color: #e8edf6;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: -12px 0 28px rgba(0, 0, 0, 0.34);
}

.sidebar-overlay .sidebar-title-row {
  margin: -2px -2px 4px;
  padding: 8px 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.92) 100%);
}

.sidebar-overlay .sidebar-title-row strong {
  color: #f3f6fc;
  font-size: 0.76rem;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.sidebar-overlay .sidebar-pop-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 214, 234, 0.32);
  border-radius: 10px;
  background: rgba(35, 47, 66, 0.66);
  color: #e5ebf6;
  font-size: 20px;
  line-height: 1;
}

.sidebar-overlay .sidebar-pop-close:hover {
  border-color: rgba(239, 67, 55, 0.46);
  background: rgba(63, 26, 26, 0.56);
  color: #fff;
}

.sidebar-overlay .mobile-menu-logo-wrap {
  justify-content: flex-start;
  padding: 10px 4px 6px;
}

.sidebar-overlay .mobile-menu-logo {
  width: 128px;
  opacity: 0.95;
}

.sidebar-overlay .mobile-side-nav {
  gap: 8px;
  padding: 6px 2px 2px;
}

.sidebar-overlay .mobile-side-link {
  border: 1px solid rgba(194, 207, 228, 0.28);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf6;
  font-weight: 700;
  letter-spacing: 0.1px;
  padding: 10px 12px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.sidebar-overlay .mobile-side-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(221, 230, 242, 0.44);
  transform: translateX(1px);
}

.sidebar-overlay .mobile-side-link.active {
  border-color: rgba(239, 67, 55, 0.58);
  background: rgba(239, 67, 55, 0.16);
  color: #fff;
  box-shadow: inset 2px 0 0 rgba(255, 140, 128, 0.9);
}

.sidebar-overlay .mobile-side-link.logout-link {
  margin-top: 8px;
  border-color: rgba(255, 137, 137, 0.48);
  background: rgba(127, 24, 24, 0.24);
  color: #ffd0cb;
}

.sidebar-overlay .mobile-side-link.logout-link:hover {
  border-color: rgba(255, 160, 160, 0.62);
  background: rgba(157, 29, 29, 0.3);
  color: #ffe4e1;
}

body:has(.app-shell.mobile-sidebar-open),
body:has(.sidebar-overlay) {
  overflow: hidden;
  touch-action: none;
}

.top-link {
  color: #eef2f8;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.1px;
  flex: 0 0 auto;
}

.top-link:hover {
  color: #ffffff;
  border-color: #2e3848;
  background: rgba(255, 255, 255, 0.06);
}

.top-link.active {
  color: #c32a1a;
  border-color: transparent;
  background: transparent;
}

.top-menu {
  position: relative;
  z-index: 3100;
}

.top-link-button {
  font: inherit;
  font-family: inherit;
  color: inherit;
  font-weight: 700;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  text-rendering: geometricPrecision;
}

.top-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  z-index: 3200;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #1b1f24;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  padding: 6px;
  display: grid;
  gap: 4px;
}

.top-menu-item {
  display: block;
  color: #eff3f7;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
}

.top-menu-button {
  width: 100%;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.top-menu-item:hover {
  border-color: #707780;
  background: #262b32;
}

.top-menu-item.danger {
  color: #ffb3a8;
}

.breadcrumb-bar {
  border-bottom: 1px solid #3f444b;
  background: rgba(27, 30, 35, 0.86);
  padding: 0 10px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -ms-overflow-style: auto;
  scrollbar-color: rgba(226, 232, 240, 0.28) transparent;
  font-size: 11px;
  white-space: nowrap;
  min-height: 24px;
  max-height: 24px;
  line-height: 1;
}

.breadcrumb-bar::-webkit-scrollbar {
  height: 6px;
}

.breadcrumb-bar::-webkit-scrollbar-track {
  background: transparent;
}

.breadcrumb-bar::-webkit-scrollbar-thumb {
  background: rgba(226, 232, 240, 0.22);
  border-radius: 999px;
}

.breadcrumb-bar::-webkit-scrollbar-thumb:hover {
  background: rgba(226, 232, 240, 0.32);
}



.crumb-link {
  color: #cfd6e2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 1px 5px;
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crumb-link:hover {
  border-color: #636a73;
  background: #232931;
}

.crumb-current {
  color: #f0f3f8;
  font-weight: 700;
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crumb-sep {
  color: #8f97a3;
}

.page-title strong {
  font-size: 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.user-chip {
  border: 1px solid #636871;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1.1;
  color: #e7e7e7;
  background: rgba(15, 16, 18, 0.65);
}

.top-actions .nav-button {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.1;
}

.page-shell {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px 12px;
  display: grid;
  align-content: start;
  grid-auto-rows: min-content;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.page-shell > :first-child {
  margin-top: 0 !important;
}

.page-shell.login-only {
  max-width: none;
  padding: 0;
  gap: 0;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.grid-two > :only-child {
  grid-column: 1 / -1;
}

.full-span {
  grid-column: 1 / -1;
}

.panel {
  background: #1b1e22;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: clip;
  min-width: 0;
}

.panel-header {
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-header.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #c32a1a;
  font-weight: 700;
}

h2,
h3 {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 11.5px;
  color: var(--muted-2);
}

.form-grid {
  display: grid;
  gap: var(--space-2);
}

label {
  font-size: 12px;
  font-weight: 700;
  color: #d4d8dd;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  font: inherit;
  background: #131518;
  color: var(--text);
}

.panel-header.inline input {
  min-width: 180px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(195, 42, 26, 0.15);
}

button {
  border: 1px solid var(--line);
  background: #202327;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  font-weight: 600;
  cursor: pointer;
  transition: 140ms ease;
}

button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

button[type='submit'] {
  width: -moz-fit-content;
  width: fit-content;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  margin-top: 6px;
}

button[type='submit']:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nav-button.danger,
.ghost.danger {
  color: #8f2f2f;
}

.ghost {
  background: transparent;
}

.alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

.alert.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.alert.error {
  background: var(--error-bg);
  color: var(--error-text);
}

.record-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #353a42;
  border-radius: 9px;
  background: #171b20;
  overflow: hidden;
}

.record-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  border: 0;
  border-bottom: 1px solid #2d3239;
  border-radius: 0;
  padding: 7px 9px;
  background: transparent;
  min-width: 0;
  overflow-wrap: anywhere;
}

.record-list li:last-child {
  border-bottom: 0;
}

.directory-table-wrap {
  border: 1px solid #3a3f47;
  border-radius: 12px;
  overflow: auto;
  background: linear-gradient(180deg, #1a1e23 0%, #171b20 100%);
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.directory-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted);
  background: #1f2329;
  border-bottom: 1px solid #3f444d;
  padding: 9px 11px;
}

.directory-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #2f343c;
  vertical-align: top;
}

.directory-row:hover {
  background: #1f2429;
}

.directory-row.branch-row:hover {
  background: transparent;
}

.directory-table.compact td {
  padding: 8px 10px;
}

.row-open {
  border: 0;
  background: transparent;
  color: #e7ecf2;
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.row-open:hover {
  color: #ffffff;
}

.cell-link {
  color: #cfd7e2;
  text-decoration: none;
  border-bottom: 0;
}

.cell-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.branch-list {
  display: grid;
  gap: 8px;
}

.branch-item {
  border: 1px solid #363c45;
  border-radius: 10px;
  background: #171c22;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.branch-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.click-row {
  cursor: pointer;
}

.click-row:hover {
  border-color: #707780;
  background: #1f2429;
}

.click-row:focus-visible,
.booth-card:focus-visible,
.kpi-open:focus-visible,
.special-row:focus-visible,
[role='button']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feed-link {
  border: 0;
  background: transparent;
  color: #e8edf3;
  text-decoration: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.feed-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.record-list.compact li {
  padding: 7px 10px;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.plain-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}

.plain-list li:last-child {
  border-bottom: 0;
}

.plain-list.single-col li {
  display: block;
}

.plain-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.plain-value {
  color: var(--text);
  font-size: 13px;
  text-align: right;
  word-break: break-word;
}

.plain-list.single-col .plain-value {
  text-align: left;
}

.status-label {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #202327;
  white-space: nowrap;
}

.pill.status-good,
.status-label.status-good {
  background: #d0ffd1;
  border-color: #88d08a;
  color: #245928;
}

.pill.status-bad,
.status-label.status-bad {
  background: #ffdbd6;
  border-color: #e89a90;
  color: #7b2419;
}

.pill.status-warn,
.status-label.status-warn {
  background: #fff3d8;
  border-color: #e4c98f;
  color: #6a4a10;
}

.pill.status-neutral,
.status-label.status-neutral {
  background: #252a2f;
  border-color: #5b6169;
  color: #d0d5db;
}

.pill.status-critical,
.status-label.status-critical {
  background: #4b1512;
  border-color: #d4493b;
  color: #ffd4cf;
}

.pill.status-draft,
.status-label.status-draft {
  background: #1f2530;
  border-color: #627185;
  color: #cfd8e3;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: var(--space-3);
  color: var(--muted);
  background: #17191c;
}

.sub-panel {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
}

.sub-panel legend {
  padding: 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.drawer {
  margin-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.active-tab {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.stack-gap {
  display: grid;
  gap: var(--space-3);
}

.section-gap {
  margin-top: 4px;
}

.section-gap-sm {
  margin-top: 4px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 6px 0 8px;
}

.space-top-xs {
  margin-top: var(--space-1);
}

.space-top-sm {
  margin-top: var(--space-2);
}

.controls-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.controls-inline > * {
  min-width: 0;
}

.controls-tight {
  gap: var(--space-1);
}

.controls-end {
  justify-content: flex-end;
}

.controls-between {
  justify-content: space-between;
}

.field-inline {
  display: grid;
  gap: 6px;
  flex: 1 1 260px;
  min-width: 220px;
}

.field-compact {
  display: grid;
  gap: 4px;
  min-width: 120px;
}

.section-block {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.mono-textarea {
  width: 100%;
  margin-top: 8px;
  font-family: Consolas, monospace;
}

.meta-grid {
  display: grid;
  gap: 4px;
}

.input-min-220 {
  min-width: 220px;
}

.input-max-76 {
  max-width: 76px;
}

.input-max-220 {
  max-width: 220px;
}

.input-min-260 {
  min-width: 260px;
}

.input-min-280 {
  min-width: 280px;
}

.cell-min-120 {
  min-width: 120px;
}

.cell-min-160 {
  min-width: 160px;
}

.cell-min-90 {
  min-width: 90px;
}

.input-compact-86 {
  max-width: 86px;
}

.input-compact-72 {
  max-width: 72px;
  padding: 5px 6px;
}

.input-compact-66 {
  max-width: 66px;
  padding: 5px 6px;
}

.input-compact-62 {
  max-width: 62px;
  padding: 5px 6px;
}

.meta-stack-end {
  display: grid;
  gap: var(--space-1);
  justify-items: end;
}

.meta-stack-tight {
  display: grid;
  gap: 4px;
}

.filter-stack {
  display: grid;
  gap: var(--space-1);
  min-width: 220px;
}

.filter-row-top {
  align-items: flex-start;
}

.input-xs {
  max-width: 220px;
}

.timeline-toolbar {
  display: grid;
  gap: 8px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  padding: 8px;
  border: 1px solid #3b4048;
  border-radius: 8px;
  background: #181c21;
}

.filter-row > input[type='text'],
.filter-row > input[type='search'] {
  flex: 1 1 300px;
  min-width: 220px;
}

.filter-dropdown {
  position: relative;
  display: inline-flex;
}

.filter-trigger {
  min-width: 190px;
  width: auto;
  max-width: 320px;
  text-align: left;
  border-color: #565c65;
  background: #1f242a;
}

.filter-trigger.active-filter {
  border-color: #c32a1a;
  background: #2a1c1a;
  color: #ffd2cb;
}

.filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 600;
  min-width: 220px;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  max-height: min(46vh, 420px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1d2024;
  box-shadow: 0 10px 20px rgba(40, 40, 40, 0.16);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px;
  font-weight: 500;
}

.filter-option:hover {
  background: #2a2e33;
  border-color: #4f555d;
}

.filter-option input:checked + span {
  color: #ffd2cb;
  font-weight: 700;
}

.filter-option input {
  width: auto;
  margin: 0;
}

.filter-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  border-top: 1px solid #40454d;
  padding-top: 6px;
}

.filter-reset {
  margin-left: auto;
}

.timeline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.event-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  font-size: 11px;
}

.event-created {
  background: #252a2f;
  color: #d0d5db;
  border-color: #5b6169;
}

.event-status {
  background: #fff3d8;
  color: #6a4a10;
  border-color: #e4c98f;
}

.event-comment {
  background: #d0ffd1;
  color: #245928;
  border-color: #88d08a;
}

.role-badge {
  display: inline-block;
  border: 1px solid #595f67;
  border-radius: 999px;
  background: #252a2f;
  padding: 2px 8px;
  font-size: 11px;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.check-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  font-weight: 500;
}

.check-item input {
  width: auto;
  margin: 0;
}

.workflow-board {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.board-header h3 {
  margin: 0;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.board-col {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #181b1e;
  min-height: 120px;
}

.board-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.board-cards {
  display: grid;
  gap: 8px;
}

.board-card {
  border: 1px solid #3f444b;
  border-radius: 8px;
  background: #121417;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.board-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.board-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
}

.booth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booth-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171a1d;
  padding: 12px;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.booth-card:hover {
  border-color: #6a7078;
  background: #1f2429;
}

.trade-room-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}

.trade-room-side {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171a1d;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.trade-room-brand h2 {
  margin: 6px 0 0;
  font-size: 17px;
}

.trade-room-actions {
  display: grid;
  gap: 8px;
}

.trade-room-main {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171a1d;
  padding: 12px;
}

.login-wrap {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(520px, 95vw);
}

.hint-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171a1d;
  padding: 10px 12px;
  font-size: 13px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.kpi-card {
  border: 1px solid #3b414a;
  border-left: 3px solid #c32a1a;
  border-radius: 8px;
  padding: 10px 10px;
  background: #1a1f24;
  box-shadow: none;
}

.kpi-open {
  cursor: pointer;
  text-align: left;
}

.kpi-open:hover {
  border-color: #707780;
  background: #1f2429;
}

.kpi-card span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.kpi-card strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.96rem, 1.5vw, 1.12rem);
}

.chart-card {
  border: 1px solid #3a3f47;
  border-radius: 10px;
  background: #181d22;
  padding: 10px 11px;
  display: grid;
  gap: 8px;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.bar-list {
  display: grid;
  gap: var(--space-2);
}

.bar-row {
  display: grid;
  gap: 4px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 12px;
}

.bar-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: #2a2f36;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4493b 0%, #f7776b 100%);
}

.chat-msg {
  display: grid;
  gap: var(--space-1);
}

.chat-msg-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: baseline;
}

.chat-msg-body {
  line-height: 1.5;
  display: block;
}

.chat-own {
  border-color: #8b4040 !important;
  background: linear-gradient(180deg, #241d1d 0%, #1f1a1a 100%) !important;
}

.mention-chip {
  display: inline-block;
  border: 1px solid #5f4e23;
  background: #3a3117;
  color: #f5d889;
  border-radius: 999px;
  padding: 1px 8px;
  margin-right: 4px;
  font-size: 12px;
  font-weight: 700;
}

.chat-compose-wrap {
  position: relative;
}

.mention-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  min-width: 260px;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1d2024;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 2px;
  padding: 6px;
}

.mention-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 2px;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px;
}

.layout-flow {
  display: grid;
  gap: var(--space-4);
}

.trade-stage-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #333946;
  display: block;
}

.rfq-stepper {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 6px 0;
  background: linear-gradient(180deg, rgba(27, 30, 34, 0.96) 0%, rgba(27, 30, 34, 0.86) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: row;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 320px);
    max-width: 320px;
    border-left: 1px solid var(--sidebar-line);
    border-bottom: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.22s ease, visibility 0.22s ease;
    visibility: hidden;
    background: #d4d4d6;
    color: #2f343d;
    flex: none;
  }

  .sidebar-float-toggle {
    display: none;
  }

  .app-shell.mobile-sidebar-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  .sidebar-title-row {
    border-bottom: 1px solid rgba(60, 66, 73, 0.22);
  }

  .sidebar-title-row strong {
    color: #4a4f57;
  }

  .sidebar-pop-close {
    border: 0;
    background: transparent;
    color: #6a6f78;
    font-size: 28px;
    width: 28px;
    height: 28px;
  }

  .top-nav {
    padding: 10px 12px;
    gap: 10px;
  }

  .top-links {
    gap: 6px;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .grid-two {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 0 var(--space-2) var(--space-2);
  }

  .split-row,
  .check-grid,
  .kpi-grid,
  .board-grid,
  .booth-grid,
  .trade-room-shell {
    grid-template-columns: 1fr;
  }

  .top-nav {
    align-items: center;
  }

  .header-search {
    min-width: 110px;
    flex: 1 1 auto;
    max-width: none;
    padding: 7px 10px;
  }

  .top-logo {
    width: 132px;
  }

  .top-links {
    width: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-end;
  }

  .top-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .user-chip {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .panel-header,
  .controls-inline,
  .status-line,
  .filter-row {
    gap: 8px;
    align-items: stretch;
  }

  .controls-inline > *,
  .status-line > *,
  .filter-row > * {
    min-width: 0;
  }

  .field-inline,
  .field-compact,
  .filter-stack,
  .input-min-220,
  .input-min-260,
  .input-min-280,
  .cell-min-120,
  .cell-min-160,
  .cell-min-90 {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .filter-row > input[type='text'],
  .filter-row > input[type='search'] {
    min-width: 0;
    flex: 1 1 100%;
  }

  .directory-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .directory-table {
    min-width: 760px;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 0 var(--space-2) var(--space-2);
  }

  .panel {
    padding: 13px;
  }

  .top-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-end;
  }

  .top-menu-popover {
    right: 0;
    left: auto;
    min-width: 150px;
  }

  .top-link {
    text-align: center;
    padding: 6px 5px;
    font-size: 14px;
    min-width: 0;
  }

  .record-list li {
    flex-direction: column;
    align-items: stretch;
  }

  .input-xs {
    max-width: 100%;
  }

  .panel-header.inline input {
    min-width: 0;
    width: 100%;
  }

  .filter-stack {
    min-width: 0;
    width: 100%;
  }

  .field-inline,
  .field-compact {
    flex: 1 1 100%;
  }

  .filter-trigger {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .filter-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .filter-actions > * {
    flex: 1 1 auto;
  }

  .filter-menu {
    min-width: 180px;
    width: max-content;
    max-width: min(320px, calc(100vw - 24px));
  }
}

@media (max-width: 480px) {
  .top-links {
    display: flex;
  }

  .top-logo {
    width: 122px;
  }

  .header-search {
    min-width: 92px;
    flex-basis: 120px;
    padding: 6px 8px;
  }

  .header-search-placeholder {
    font-size: 12px;
  }

  .pill {
    white-space: normal;
    text-align: center;
  }
}



/*# sourceMappingURL=styles.css.map*/