/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  --page: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --grid: #e2e8f0;
  --baseline: #cbd5e1;
  --border: #e2e8f0;

  /* Nav (Orange Warehouse / AutoStore style - 38px) */
  --nav-bg: #f3821a;
  --nav-bg-dark: #df710f;
  --nav-text: #111827;
  --nav-text-dim: rgba(17, 24, 39, 0.75);
  --nav-hover: rgba(0, 0, 0, 0.06); /* 50% less intense grey */
  --nav-active: rgba(0, 0, 0, 0.06);
  --nav-dropdown-bg: #ffffff;
  --nav-h: 38px; /* Enlarged by 15% */

  /* Chart colors */
  --inbound: #2563eb;
  --outbound: #ea580c;
  --deliv: #10b981;
  --target: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  padding-top: calc(var(--nav-h) + 14px);
  padding-bottom: 48px;
}

.wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 16px;
}

/* ═══════════════════════════════════════════════════════
   TOP NAVIGATION BAR
═══════════════════════════════════════════════════════ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  overflow: visible;
}

.topnav-inner {
  max-width: 100%;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

/* Brand */
.topnav-brand {
  display: flex;
  align-items: center;
  color: #111827;
  text-decoration: none;
  padding: 0 8px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 120ms;
}

.topnav-brand:hover { background: var(--nav-hover); }
.topnav-brand-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
  color: #111827;
}

/* Divider */
.topnav-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  margin: 0 3px;
}

/* Menu list */
.topnav-menu {
  display: flex;
  list-style: none;
  gap: 3px;
  flex: 1;
  overflow: visible;
  white-space: nowrap;
}

/* Nav items */
.nav-item { position: relative; flex-shrink: 0; }

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  padding: 0 12px;
  border-radius: 4px;
  transition: background 120ms, color 120ms;
  white-space: nowrap;
  line-height: 1;
  height: 30px;
  letter-spacing: 0.01em;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-link-icon {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  margin-right: 2px;
  opacity: 0.9;
}

/* Shading only on hover or when open; no permanent grey active background */
.nav-link:hover,
.nav-item-dropdown:hover > .nav-link,
.nav-item-dropdown:focus-within > .nav-link,
.nav-item-dropdown.open > .nav-link {
  background: rgba(0, 0, 0, 0.06);
  color: #111827;
}

.nav-link.active {
  background: none;
  color: #111827;
  font-weight: 600;
}

.nav-arrow {
  font-size: 15px;
  opacity: 0.7;
  display: inline-block;
  transition: transform 150ms;
  margin-left: -2px;
  line-height: 1;
}

.nav-item.open > .nav-link .nav-arrow {
  transform: rotate(180deg);
}

/* Nav dropdown on hover for main navigation items */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  max-width: 320px;
  width: max-content;
  max-height: calc(100vh - 55px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 3px 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
  pointer-events: none;
}

.nav-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.nav-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.nav-dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.nav-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Open strictly on click (.open) unless dismissed */
.nav-item-dropdown.open:not(.dismissed) > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-link {
  width: 100%;
  display: block;
  padding: 4px 10px;
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: #222222;
  white-space: nowrap;
  letter-spacing: 0;
  transition: background 80ms, color 80ms, transform 60ms;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  background: #eceff1;
  color: #111111;
}

/* ═══════════════════════════════════════════════════════
   ANIMATION STYLES (User Selectable)
═══════════════════════════════════════════════════════ */

/* Default / Fallback & Style 1: Slide & Fade */
.nav-dropdown-link.clicked-pulse,
.anim-style-slide-fade .nav-dropdown-link.clicked-pulse {
  background: #cbd5e1 !important;
  color: #0f172a !important;
  transform: scale(0.97);
  transition: transform 60ms ease, background 60ms ease;
}
.nav-dropdown-menu.anim-closing-slide-fade {
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.98) !important;
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
}

/* Style 2: Scale & Shrink */
.anim-style-scale-shrink .nav-dropdown-link.clicked-pulse {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: inset 0 0 0 1px #94a3b8;
  transform: scale(0.94);
  transition: transform 60ms ease, background 60ms ease;
}
.nav-dropdown-menu.anim-closing-scale-shrink {
  opacity: 0 !important;
  transform: scale(0.88) !important;
  transform-origin: top left !important;
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1), transform 160ms cubic-bezier(0.2, 0, 0, 1) !important;
  pointer-events: none !important;
}

/* Style 3: AutoStore Brand Glow */
.anim-style-brand-glow .nav-dropdown-link.clicked-pulse {
  background: #fff7ed !important;
  color: #ea580c !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px #f3821a, 0 0 8px rgba(243, 130, 26, 0.35);
  transform: scale(0.98);
  transition: transform 70ms ease, background 70ms ease, box-shadow 70ms ease;
}
.nav-dropdown-menu.anim-closing-brand-glow {
  opacity: 0 !important;
  transform: translateY(6px) !important;
  filter: blur(2px) !important;
  transition: opacity 200ms ease, transform 200ms ease, filter 200ms ease !important;
  pointer-events: none !important;
}

/* Style 4: Tactile Pop */
.anim-style-tactile-press .nav-dropdown-link.clicked-pulse {
  background: #334155 !important;
  color: #ffffff !important;
  transform: scale(0.92);
  transition: transform 40ms ease, background 40ms ease;
}
.nav-dropdown-menu.anim-closing-tactile-press {
  opacity: 0 !important;
  transform: translateY(-4px) !important;
  transition: opacity 120ms ease, transform 120ms ease !important;
  pointer-events: none !important;
}

/* Force dropdown to stay hidden when dismissed until mouse leaves */
.nav-item-dropdown.dismissed > .nav-dropdown-menu {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.nav-item-dropdown.dismissed > .nav-link {
  background: none !important;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 140ms ease, visibility 140ms;
  z-index: 2000;
}

.nav-item.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  padding: 8px 14px;
  text-align: left;
  transition: background 100ms;
  color: #1f2937;
}

.dd-item:hover,
.dd-item.active {
  background: #f1f5f9;
  color: #111827;
}

.dd-item:disabled,
.dd-item.coming-soon {
  opacity: 0.5;
  cursor: default;
}

.dd-item:disabled:hover {
  background: none;
}

.dd-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.dd-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.dd-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.dd-divider {
  height: 1px;
  background: var(--grid);
  margin: 5px 4px;
}

.dd-loading {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 14px;
  font-style: italic;
}

.badge-soon {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Right side */
.topnav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-btn-icon {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #111827;
  cursor: pointer;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms, transform 300ms;
}

.nav-btn-icon:hover { background: rgba(0, 0, 0, 0.10); }
.nav-btn-icon.spinning #refresh-icon { display: inline-block; animation: spin 0.8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.nav-user-wrapper {
  position: relative;
  display: inline-block;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #111827;
  font-size: 13px;
  font-weight: 500;
  padding: 0 8px;
  height: 28px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  user-select: none;
  transition: background 120ms;
}

.nav-user:hover,
.nav-user:focus-visible,
.nav-user-wrapper.open .nav-user {
  background: rgba(0, 0, 0, 0.10);
}

.nav-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.nav-user-chevron {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 150ms ease;
  margin-left: 2px;
}

.nav-user-wrapper.open .nav-user-chevron,
.nav-user-wrapper:hover .nav-user-chevron {
  transform: rotate(180deg);
}

.nav-user-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  padding: 4px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
}

.nav-user-wrapper:hover .nav-user-menu,
.nav-user-wrapper.open .nav-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  width: 100%;
  display: block;
  padding: 7px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background 100ms;
}

.user-menu-item:hover {
  background: #f1f5f9;
}

.user-menu-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}

.user-menu-version {
  padding: 4px 12px 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADER / BREADCRUMB
═══════════════════════════════════════════════════════ */
.page-header {
  display: none !important;
}

.page-breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-sep { opacity: 0.5; }

#breadcrumb-page {
  color: #fff;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════ */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 150ms;
}

.tile:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.tile .k { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.tile .v { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; }
.tile .v.crit { color: var(--target); }
.tile .d { font-size: 12px; color: var(--muted); margin-top: 4px; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.control-group { display: flex; align-items: center; gap: 8px; }
.control-group label { font-size: 12px; font-weight: 600; color: var(--ink-2); }

select, input[type="date"], input[type="number"] {
  border: 1px solid var(--baseline);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  min-height: 34px;
  padding: 6px 10px;
}

select:focus, input:focus {
  outline: 2px solid var(--nav-bg);
  outline-offset: -1px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.panel h2 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel h2 .scope { color: var(--ink-2); font-weight: 500; font-size: 14px; }

.legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-2);
  margin: 6px 0 14px;
  flex-wrap: wrap;
}

.legend span { display: inline-flex; align-items: center; gap: 6px; }

.swatch {
  width: 14px; height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.info {
  display: inline-block;
  color: var(--muted);
  cursor: help;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}

.info::after {
  content: attr(data-tip);
  position: fixed;
  left: var(--tx, -9999px);
  top: var(--ty, -9999px);
  transform: translate(-50%, -100%) translateY(-9px);
  background: var(--ink);
  color: #fff;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  width: max-content;
  max-width: min(320px, 86vw);
  white-space: pre-line;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 100ms;
  z-index: 50;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info:hover::after, .info:focus::after { opacity: 1; visibility: visible; }

.chart-container { position: relative; height: 380px; width: 100%; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  margin-top: 8px;
}

th, td {
  text-align: right;
  padding: 8px 12px;
  border-bottom: 1px solid var(--grid);
  font-variant-numeric: tabular-nums;
}

th:first-child, td:first-child { text-align: left; }

th {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 12px;
  background: rgba(11,11,11,0.02);
}

tr:hover td { background: rgba(11,11,11,0.015); }

.badge {
  display: inline-block;
  border-radius: 999px;
  background: #eeeee9;
  color: var(--ink-2);
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.good { background: #e4f4ec; color: #08613f; }
.badge.warn { background: #fff0d6; color: #7a4800; }
.badge.bad  { background: #fbe3e3; color: #8c2020; }

/* Coming soon placeholder */
/* Wide dropdown for OEE (2-column layout) */
.nav-dropdown--wide {
  min-width: 340px;
}

/* Dropdown group labels */
.dd-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 12px 4px;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   HOME CARD GRID
═══════════════════════════════════════════════════════ */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 8px 0 24px;
}

.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  cursor: pointer;
  transition: box-shadow 180ms, transform 180ms, border-color 180ms;
  position: relative;
  overflow: hidden;
}

.home-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
  border-color: var(--nav-bg);
}

.home-card--soon {
  opacity: 0.6;
  cursor: default;
}

.home-card--soon:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--border);
}

.home-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}

.home-card-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nav-bg);
  margin-bottom: 4px;
}

.home-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.home-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.home-card-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  background: #eeeee9;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
}

.home-card-badge--live {
  background: #e4f4ec;
  color: #08613f;
}

/* ═══════════════════════════════════════════════════════
   COMING SOON
═══════════════════════════════════════════════════════ */
.coming-soon-view {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.coming-soon-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.coming-soon-view h2 { font-size: 20px; color: var(--ink-2); margin-bottom: 8px; }
.coming-soon-view p { font-size: 14px; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  body { padding-left: 0; padding-right: 0; }
  .wrap { padding: 0 12px; }
  .topnav-menu .nav-item:not(:first-child) { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .nav-user-name { display: none; }
}

/* ═══════════════════════════════════════════════════════
   NAV EXTRA STYLES
═══════════════════════════════════════════════════════ */
.nav-flag {
  font-size: 20px;
  flex-shrink: 0;
  margin-left: 2px;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 4px;
  transition: background 120ms;
}
.nav-flag:hover {
  background: var(--nav-hover);
}

/* ═══════════════════════════════════════════════════════
   OEE MATRIX & TOOLBAR
═══════════════════════════════════════════════════════ */
.oee-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: transparent;
  border: none;
  padding: 4px 0;
  margin-bottom: 12px;
}

.oee-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.oee-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.oee-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.oee-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.oee-select {
  border: 1px solid var(--baseline);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  min-height: 30px;
  padding: 4px 9px;
}

.day-toggles {
  display: inline-flex;
  gap: 3px;
}

/* Joined segmented control for comparisons (DoD | WoW | MoM | YoY) */
.day-toggles-segmented {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  gap: 0;
  background: #ffffff;
  padding: 0;
}

.day-toggles-segmented .day-btn {
  border: none;
  border-radius: 0;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  padding: 5px 11px;
  min-width: 42px;
  text-align: center;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  transition: background 120ms, color 120ms;
}

.day-toggles-segmented .day-btn:last-child {
  border-right: none;
}

.day-toggles-segmented .day-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.day-toggles-segmented .day-btn.active {
  background: #181c24;
  color: #ffffff;
  font-weight: 600;
}

.day-btn {
  appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  min-width: 38px;
  transition: all 120ms;
}

.day-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.day-btn.active {
  background: #181c24;
  border-color: #181c24;
  color: #ffffff;
  font-weight: 600;
}

.oee-refresh-btn {
  appearance: none;
  border: 1px solid var(--baseline);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  transition: all 120ms;
}

.oee-refresh-btn:hover {
  background: rgba(0,0,0,0.04);
}

.oee-refresh-btn.loading #oee-refresh-icon {
  display: inline-block;
  animation: oeeSpin 0.8s linear infinite;
}

@keyframes oeeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes oeeBreathe {
  0% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.38;
    filter: brightness(0.96) saturate(0.85);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes oeeSkeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.oee-matrix-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.oee-matrix-wrap.is-loading {
  border-color: #cbd5e1;
}

.oee-matrix-wrap.is-loading .oee-matrix {
  animation: oeeBreathe 1.35s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  user-select: none;
}

.oee-skeleton-pill {
  display: inline-block;
  height: 14px;
  width: 55px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: oeeSkeletonShimmer 1.5s infinite;
  vertical-align: middle;
}

.oee-skeleton-pill.wide {
  width: 110px;
  height: 15px;
}

.oee-skeleton-pill.short {
  width: 38px;
  height: 13px;
}

.oee-matrix {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  width: 100%;
  min-width: 100%;
}

.oee-matrix .kpi-col,
.oee-matrix thead th.kpi-col,
.oee-matrix td.kpi-col,
.kpi-pillar-row td.kpi-col {
  position: sticky;
  left: 0;
  z-index: 20;
  background: #fff;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  box-sizing: border-box;
  border-right: 2px solid #e5e7eb;
}

.oee-matrix thead th {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 8px;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.oee-matrix thead th.kpi-col {
  z-index: 30;
  text-align: left;
  height: 72px;
  font-size: 13px;
  padding: 0 14px;
}

.oee-inst-header {
  background: #f3f4f6 !important;
  border-right: 2px solid #d1d5db !important;
  height: 42px;
}

.oee-inst-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.oee-flag {
  font-size: 17px;
}

.oee-day-header {
  background: #f3f4f6 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569;
  height: 28px;
  border-bottom: 1px solid #e5e7eb !important;
  min-width: 85px;
  max-width: 140px;
  box-sizing: border-box;
}

.oee-day-header.grp-end {
  border-right: 2px solid #d1d5db !important;
}

.oee-col-header {
  background: #f9fafb !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #94a3af;
  height: 24px;
  border-right: 1px solid #f0f0f0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  min-width: 85px;
  max-width: 140px;
  box-sizing: border-box;
}

.oee-col-header.oee-dod-header {
  min-width: 58px;
  max-width: 85px;
}

.oee-col-header.grp-end {
  border-right: 2px solid #d1d5db !important;
}

.oee-matrix tbody tr:hover td {
  background: rgba(0,0,0,0.013);
}

.oee-matrix tbody tr:hover td.kpi-col {
  background: #f9fafb;
}

.oee-matrix td {
  padding: 7px 9px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  font-size: 13px;
  box-sizing: border-box;
}

.oee-matrix td.kpi-col {
  text-align: left;
  font-weight: 500;
  padding: 7px 14px;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-group-row td,
.kpi-pillar-row td {
  background: #f8fafc !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  color: #475569;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: 2px solid #cbd5e1 !important;
  padding: 8px 14px !important;
  user-select: none;
}

.kpi-pillar-row td.kpi-col {
  position: sticky;
  left: 0;
  z-index: 25;
  background: #f8fafc !important;
  border-right: 2px solid #e5e7eb !important;
  font-size: 12px !important;
}

.kpi-pillar-row td.kpi-pillar-rest {
  background: #f8fafc !important;
  border-right: none;
}

.pillar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  transition: transform 150ms ease;
  user-select: none;
}

.pillar-toggle.collapsed {
  transform: rotate(-90deg);
}

.kpi-child-row {
  font-weight: 400;
  color: #334155;
  background: #ffffff;
}

.kpi-child-row td.kpi-col {
  padding-left: 24px !important;
  color: #475569;
  font-size: 12px;
}

.kpi-child-row:hover td {
  background: #f8fafc;
}

.kpi-child-row.hidden {
  display: none !important;
}

.cell-ok { color: #059669; font-weight: 500; }
.cell-warn { color: #d97706; font-weight: 500; }
.cell-bad { color: #dc2626; font-weight: 500; }
.cell-none { color: #475569; font-weight: 400; }

.tl-icon {
  font-weight: 400;
  margin-left: 4px;
  font-size: 12px;
  vertical-align: middle;
  display: inline-block;
}
.tl-icon.ok { color: #059669; }
.tl-icon.warn { color: #d97706; }
.tl-icon.bad { color: #dc2626; }
.tl-icon.none { color: #94a3b8; }

.val-cell-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.val-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.oee-val-cell {
  border-right: 1px solid #f0f0f0;
  min-width: 85px;
  max-width: 140px;
  width: 100px;
  box-sizing: border-box;
}
.oee-val-cell.grp-end {
  border-right: 2px solid #d1d5db !important;
}

.oee-dod-cell {
  font-size: 12px;
  color: #6b7280;
  min-width: 58px;
  max-width: 85px;
  width: 65px;
  border-right: 1px solid #f0f0f0;
  box-sizing: border-box;
}
.oee-dod-cell.grp-end {
  border-right: 2px solid #d1d5db !important;
}

.oee-filler-header {
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-left: 1px solid #e5e7eb !important;
  padding: 0 !important;
  pointer-events: none;
  width: 100%;
}

.oee-filler-cell {
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  border-left: 1px solid #f0f0f0;
  padding: 0 !important;
  pointer-events: none;
  width: 100%;
}

.dod-good { color: #059669 !important; font-weight: 500; }
.dod-bad { color: #dc2626 !important; font-weight: 500; }

/* Chilled AutoStore columns styling (subtle, soft grey shading) */
.oee-matrix th.oee-inst-header.col-chilled {
  background: #edf0f3 !important;
}

.oee-matrix th.oee-day-header.col-chilled,
.oee-matrix th.oee-col-header.col-chilled {
  background: #f4f6f8 !important;
}

.oee-matrix td.col-chilled {
  background-color: #f8fafc;
}

.oee-matrix tbody tr:hover td.col-chilled {
  background-color: #edf2f7;
}

.oee-loading {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-style: normal;
  font-size: 13.5px;
  border: none !important;
}

.oee-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 4px 0;
}

.oee-legend-items {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.oee-legend-items span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.oee-telemetry {
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 500;
}

.nav-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 120ms;
}

.nav-btn-link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.oee-loading-inline {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  padding: 4px 8px;
}

/* ═══════════════════════════════════════════════════════
   SETTINGS MODAL (Minimalist Corporate)
═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.60);
  backdrop-filter: blur(2px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 120ms ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 8px;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 100ms;
}

.modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-divider {
  height: 1px;
  background: #f1f5f9;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  transition: all 0.2s ease;
  border-radius: 20px;
  box-sizing: border-box;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #94a3b8; /* šedivá výplň */
  border-color: #0f172a;     /* černé ohraničení okolo */
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
  background-color: #ffffff;
}

.settings-section {
  margin-bottom: 18px;
}

.settings-section-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}

.settings-list {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-info {
  flex: 1;
}

.settings-item-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.settings-item-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.settings-item-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.modal-input-compact,
.modal-select-compact {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.modal-input-compact:focus,
.modal-select-compact:focus {
  border-color: #0f172a;
  background: #ffffff;
}

.settings-item-action {
  flex-shrink: 0;
}

.text-btn {
  background: transparent;
  border: none;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 120ms ease;
  white-space: nowrap;
}

.text-btn-action {
  color: #b91c1c;
}

.text-btn-action:hover {
  color: #991b1b;
  text-decoration: underline;
}

.text-btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: none;
}

.text-btn-secondary {
  color: #64748b;
  font-weight: 600;
}

.text-btn-secondary:hover {
  color: #0f172a;
  text-decoration: underline;
}

.settings-feedback {
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 4px 2px;
}

.settings-feedback.success { color: #16a34a; }
.settings-feedback.error { color: #dc2626; }
.settings-feedback.info { color: #475569; }

.settings-version-line {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  padding-top: 6px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 18px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* ═══════════════════════════════════════════════════════
   SITE & COUNTRY MULTI-SELECT PICKER (1:1 Exact Match)
═══════════════════════════════════════════════════════ */
.site-picker-wrapper {
  position: relative;
  display: inline-block;
}

.site-picker-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  height: 32px;
  line-height: 1;
  transition: all 120ms ease;
  user-select: none;
}

.site-picker-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.site-picker-btn.active,
.site-picker-btn:focus {
  border-color: #111827;
  outline: none;
}

.site-picker-chevron {
  font-size: 11px;
  color: #6b7280;
  margin-left: 2px;
}

.site-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 12px;
  user-select: none;
}

.site-picker-dropdown.open {
  display: flex;
}

.site-picker-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.site-picker-search-icon {
  position: absolute;
  left: 10px;
  color: #9ca3af;
  pointer-events: none;
}

.site-picker-search-input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
  font-family: inherit;
  transition: border-color 120ms;
}

.site-picker-search-input::placeholder {
  color: #9ca3af;
}

.site-picker-search-input:focus {
  border-color: #9ca3af;
}

.site-picker-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 10px 2px;
  font-size: 13.5px;
  color: #4b5563;
}

.site-picker-count {
  font-weight: 500;
  color: #4b5563;
}

.site-picker-clear {
  background: none;
  border: none;
  color: #111827;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.site-picker-clear:hover {
  text-decoration: underline;
}

.site-picker-list {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-picker-list::-webkit-scrollbar {
  width: 5px;
}
.site-picker-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.country-item {
  display: flex;
  flex-direction: column;
}

.country-row {
  display: flex;
  align-items: center;
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
  gap: 8px;
  transition: background-color 100ms;
  user-select: none;
}

.country-row:hover {
  background: #f8fafc;
}

.country-expand-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
  cursor: pointer;
  transition: transform 120ms ease;
  flex-shrink: 0;
}

.country-expand-btn.expanded {
  transform: rotate(90deg);
}

.country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.country-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-badge {
  background: #f3f4f6;
  color: #111827;
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 4px;
  flex-shrink: 0;
}

.country-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #111827;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.site-group-list {
  display: none;
  flex-direction: column;
  padding-left: 24px;
  margin-top: 2px;
  margin-bottom: 4px;
  gap: 2px;
}

.site-group-list.expanded {
  display: flex;
}

.site-row {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  gap: 10px;
  transition: background-color 100ms;
}

.site-row:hover {
  background: #f8fafc;
}

.site-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #111827;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.site-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════
   UNIFY PIVOT READY MANAGEMENT STYLES
═══════════════════════════════════════════════════ */
#unify-mgmt-table {
  width: 100%;
  border-collapse: collapse;
}

#unify-mgmt-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

#unify-mgmt-table tbody tr {
  transition: background-color 100ms ease;
}

#unify-mgmt-table tbody tr:hover {
  background-color: #f8fafc;
}

#unify-mgmt-table tbody td {
  font-size: 12.5px;
  color: var(--ink);
  vertical-align: middle;
}

.force-push-btn:hover:not(:disabled) {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
}

.force-push-btn:active:not(:disabled) {
  transform: translateY(0);
}

.icon-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: all 120ms ease;
}

.icon-edit-btn:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* ═══════════════════════════════════════════════════
   EXPANDABLE ACTION BUTTONS (Smooth hover expansion)
═══════════════════════════════════════════════════ */
.expandable-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.expandable-pill-btn .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.expandable-pill-btn .pill-label {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  transition: max-width 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease, margin-left 240ms ease;
  white-space: nowrap;
}

.expandable-pill-btn:hover .pill-label {
  max-width: 120px;
  opacity: 1;
  margin-left: 6px;
}

.expandable-pill-dark {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.expandable-pill-dark:hover {
  background: #1e293b;
  border-color: #1e293b;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.expandable-pill-light {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.expandable-pill-light:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


