/* ---- Vision Management Platform - style.css, part 2 of 5 ---- */
/* Phase 12 of frontend modularization: style.css was split into 5 files
   at safe boundaries (verified comment/string/brace-aware, each file ends
   right after a fully-closed rule) and loaded via 5 <link> tags in the
   same order as the original file. This preserves the exact CSS cascade
   order byte-for-byte -- selectors are NOT grouped by feature/component
   because the original file interleaves the same component's rules across
   thousands of lines (e.g. .mpx-* grid rules appear from line ~4320 to
   ~18367), so a semantic regrouping would require re-deriving cascade
   order by hand and risk silently changing which rule wins. See
   frontend_modularization_plan.md Phase 12 for the deferred full reorg. */


/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Professional Print Report -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.oee-report-header {
  display: none;
}

/* Styles for PDF Generation Mode */
.oee-content.pdf-downloading {
  height: auto !important;
  overflow: visible !important;
  position: static !important;
  background: #fff !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
}
.oee-content.pdf-downloading .oee-report-header {
  display: flex !important;
}
.oee-content.pdf-downloading .no-print {
  display: none !important;
}
.oee-content.pdf-downloading .oee-card {
  break-inside: avoid !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  margin-bottom: 30px !important;
}
.oee-content.pdf-downloading .oee-section-container {
  break-inside: avoid !important;
}
.oee-content.pdf-downloading .pdf-only-section {
  display: flex !important;
}
.pdf-page-break {
  page-break-before: always !important;
  break-before: page !important;
}
.oee-content.pdf-downloading .oee-badge {
  background: #fff !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

@media print {
  /* Aggressive Reset for all parents to expand naturally */
  html,
  body,
  .main-layout,
  .main-content,
  .tab-content,
  .oee-wrapper,
  .oee-content,
  #oee-scroll-container {
    height: auto !important;
    overflow: visible !important;
    position: static !important;
    background: #fff !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sidebar,
  .top-nav,
  .oee-controls,
  .oee-tabs,
  .btn:not(.no-print),
  .pagination-container,
  .filter-row,
  #recalculate-btn,
  .search-box {
    display: none !important;
  }

  #tab-productivity,
  #tab-productivity #tab-oee {
    display: block !important;
  }

  .oee-report-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 15px;
  }
  .oee-card {
    break-inside: avoid !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
  }
  .table-container {
    overflow: visible !important;
    break-inside: auto !important;
  }
  .nice-table tr {
    break-inside: avoid !important;
  }
  .util-chart-container {
    break-inside: avoid !important;
    border: 1px solid #e2e8f0 !important;
    margin: 20px 0 !important;
    height: 280px !important;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- User-Driven Video Loading UX -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */

/* Empty slot instructional prompt */
.grid-cell-empty-slot .grid-cell-video-container {
  border-bottom: none;
}

.grid-cell-empty-slot .grid-cell-empty {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  cursor: default;
  transition: all 0.3s ease;
}

.grid-cell-empty-slot:hover .grid-cell-empty {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

.empty-slot-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-slot-prompt i {
  font-size: 32px !important;
  color: #cbd5e1 !important;
  opacity: 1 !important;
  transition: color 0.3s ease;
}

.grid-cell-empty-slot:hover .empty-slot-prompt i {
  color: #3b82f6 !important;
}

.empty-slot-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

.empty-slot-hint {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
  text-align: center;
  max-width: 180px;
  line-height: 1.4;
}

/* --- Premium Stream Loader UI --- */
.stagger-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.5s ease;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
}

.loader-content {
  width: 80%;
  max-width: 250px;
}

.stagger-status {
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.loader-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  transition: width 0.4s ease;
  border-radius: 10px;
}

.loader-sub-text {
  color: #64748b;
  font-size: 0.7rem;
  font-style: italic;
  margin-top: 4px;
}

.animate-pulse-slow {
  animation: stagger-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes stagger-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* --- Offline / Signal Lost Overlay --- */
.offline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all 0.5s ease;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
}

.offline-content {
  color: #fca5a5;
}

.offline-icon {
  font-size: 1.2rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.offline-status {
  color: #fee2e2;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.offline-msg {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 200px;
}

.btn-retry {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-retry:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #3b82f6;
  color: #3b82f6;
}

.animate-pulse-red {
  animation: pulse-red 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-red {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    color: #ef4444;
  }
}

/* Remove button (x in footer) */
.footer-remove {
  background: #fef2f2 !important;
  color: #ef4444 !important;
}

.footer-remove:hover {
  background: #ef4444 !important;
  color: white !important;
  transform: none !important;
}

/* Archive viewer responsive layout */
@media (max-width: 1024px) {
  .archive-viewer {
    flex-direction: column;
  }
  .av-col-left {
    width: 100%;
    height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .av-col-mid {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .av-col-main {
    flex: 1;
  }
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Toast notifications (themed replacement for native alert) -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  line-height: 1.45;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.toast-hide {
  animation: toastOut 0.25s ease forwards;
}
.toast-icon {
  flex-shrink: 0;
  font-size: 18px;
  margin-top: 1px;
}
.toast-msg {
  flex: 1;
  word-break: break-word;
}
.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  transition: var(--transition);
}
.toast-close:hover {
  color: var(--text-primary);
}
.toast-success {
  border-left-color: var(--success);
}
.toast-success .toast-icon {
  color: var(--success);
}
.toast-error {
  border-left-color: var(--danger);
}
.toast-error .toast-icon {
  color: var(--danger);
}
.toast-warning {
  border-left-color: var(--warning);
}
.toast-warning .toast-icon {
  color: var(--warning);
}
.toast-info {
  border-left-color: var(--accent);
}
.toast-info .toast-icon {
  color: var(--accent);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- 25% Icon Size Reduction for Left Navigation -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.sidebar-item-link i,
.sidebar-header i,
.sidebar-group i {
  font-size: 12px !important;
}

.sidebar-svg-icon {
  width: 13.5px !important;
  height: 13.5px !important;
}

/*  -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Sidebar Bottom Profile & Logout Footer  -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.sidebar-profile-footer {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.sidebar.collapsed .sidebar-profile-footer {
  padding: 12px 0;
  justify-content: center;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-user-info span {
  display: none !important;
}

.sidebar-user-info .avatar-icon {
  font-size: 16px;
  color: var(--sidebar-text);
  flex-shrink: 0;
}

.sidebar-user-info span {
  font-size: 13px;
  font-weight: 600;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout-btn {
  background: transparent;
  border: none;
  color: var(--sidebar-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Monitoring Room Multiplexer Canvas System -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.multiplexer-canvas {
  display: grid;
  gap: 1px;
  background: #cbd5e1;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.multiplexer-canvas.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.multiplexer-canvas.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.multiplexer-canvas.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

/* Flush, square-cornered tile */
.mpx-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #060a10;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.mpx-tile:hover {
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.85);
  z-index: 2;
}

/* Drag-and-drop: grab affordance for filled tiles */
.mpx-tile {
  cursor: grab;
}

.mpx-tile:active {
  cursor: grabbing;
}

.mpx-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.mpx-pointer-none {
  pointer-events: none !important;
}

/* Status dot blinking */
.mpx-status-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 8px rgba(239, 68, 68, 0.75);
  animation: mpxLivePulse 1.5s ease-in-out infinite;
}

.mpx-status-dot-offline {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

@keyframes mpxLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
  animation: mpxLivePulse 1.5s ease-in-out infinite;
}

/* AI Badge top-right */
.mpx-ai-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(124, 58, 237, 0.88);
  color: #ffffff;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  transition: opacity 0.16s ease;
  z-index: 4;
}

.mpx-tile:hover .mpx-ai-badge {
  opacity: 0;
  pointer-events: none;
}

/* Bottom gradient scrim & camera identity */
.mpx-identity-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px 8px 10px;
  background: linear-gradient(transparent, rgba(6, 10, 16, 0.86));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 3;
}

.mpx-cam-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mpx-cam-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mpx-cam-sub {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  color: rgba(226, 232, 240, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mpx-timestamp {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  flex-shrink: 0;
}

/* On-feed Hover Glass Toolbar Pill */
.mpx-ctrls {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(10, 15, 22, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.mpx-tile:hover .mpx-ctrls {
  opacity: 1;
  pointer-events: auto;
}

.mpx-btn {
  height: 25px;
  padding: 0 7px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.16s ease;
}

.mpx-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mpx-btn-archive .mpx-btn-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.16s ease, opacity 0.16s ease;
  font-size: 11px;
  font-weight: 600;
}

.mpx-btn-archive:hover .mpx-btn-label {
  max-width: 78px;
  opacity: 1;
}

.mpx-btn-remove {
  color: #fca5a5;
}

.mpx-btn-remove:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.mpx-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 2px;
}

/* Empty Cell Styling */
.mpx-tile-empty {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.16s ease;
}

.mpx-tile-empty:hover {
  background: #f4f8ff;
}

.mpx-empty-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8edf4;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mpx-tile-empty:hover .mpx-empty-circle {
  background: #dbe6ff;
  color: #2563eb;
  transform: scale(1.06);
}

.mpx-empty-label {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

/* Drag-and-drop: dragged tile + valid drop-target affordances */
.mpx-tile.mpx-tile-dragging {
  opacity: 0.35;
}

.mpx-tile.mpx-drop-target-active,
.mpx-tile-empty.mpx-drop-target-active {
  box-shadow: inset 0 0 0 3px #2563eb;
  background: rgba(37, 99, 235, 0.12);
}

/* Offline Cell Overlay */
.mpx-offline-block {
  position: absolute;
  inset: 0;
  background: #060a10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 4;
  pointer-events: none;
}

.mpx-offline-block .mpx-btn-retry {
  pointer-events: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.16s ease;
  margin-top: 4px;
}

.upv-pag-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.upv-pag-btn:hover:not(:disabled) {
  background: #f1f5f9;
}

.upv-pag-btn:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Enhanced Pagination Nav Buttons ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
.upv-pag-nav-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}

.upv-pag-nav-btn.upv-pag-nav-labeled {
  padding: 0 12px;
  gap: 4px;
}

.upv-pag-nav-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

.upv-pag-nav-btn:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Page Number Pills ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
.upv-pag-pills {
  display: flex;
  align-items: center;
  gap: 3px;
}

.upv-pag-pill {
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.upv-pag-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.upv-pag-pill-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.upv-pag-pill-active:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.upv-pag-ellipsis {
  font-size: 13px;
  color: #94a3b8;
  padding: 0 4px;
  line-height: 32px;
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Page Jump Input ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
.upv-pag-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  padding-left: 10px;
  border-left: 1px solid #e2e8f0;
}

.upv-pag-jump-input {
  width: 52px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  outline: none;
  padding: 0 4px;
  font-family: inherit;
  transition: border-color 0.15s ease;
  -moz-appearance: textfield;
}

.upv-pag-jump-input::-webkit-outer-spin-button,
.upv-pag-jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.upv-pag-jump-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* In-place Feed Picker Popup */
.mpx-feed-picker {
  position: absolute;
  inset: 0;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  overflow: hidden;
}

.mpx-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.mpx-picker-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mpx-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 12px;
}

.mpx-picker-item:hover:not(.on-wall) {
  background: #eff6ff;
  color: #2563eb;
}

.mpx-picker-item.on-wall {
  opacity: 0.55;
  cursor: not-allowed;
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Uploaded Videos CSS Grid System -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.upv-input {
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  background: #ffffff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  font-family: inherit;
}

.upv-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.upv-input::placeholder {
  color: #94a3b8;
}

.upv-btn-clear {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 10px;
  height: 38px;
  padding: 0 14px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.upv-btn-clear:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.upv-btn-del-selected:hover {
  background: #fef2f2 !important;
}

.upv-btn-del-all:hover {
  background: #b91c1c !important;
}

.upv-btn-refresh:hover {
  background: #1d4ed8 !important;
}

/* CSS Grid Row Template */
.upv-grid-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) 132px;
  padding: 0 24px;
  align-items: center;
  box-sizing: border-box;
}

.upv-header-row {
  background: #fbfcfe;
  border-bottom: 1px solid #eef1f6;
}

.upv-header-row .upv-cell {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 8px 13px 0;
  display: flex;
  align-items: center;
}

.upv-search-row {
  background: #ffffff;
  border-bottom: 1px solid #eef1f6;
  padding-top: 6px;
  padding-bottom: 6px;
}

.upv-search-input {
  width: 100%;
  border: 1px solid #eef1f6;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  background: #f8fafc;
  color: #334155;
  outline: none;
  box-sizing: border-box;
  transition: background 0.16s ease, border-color 0.16s ease;
  font-family: inherit;
}

.upv-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.upv-data-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s ease;
  min-height: 48px;
}

.upv-data-row:hover {
  background: #f8fafc;
}

.upv-data-row .upv-cell {
  padding: 10px 8px 10px 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Custom Checkbox */
.upv-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  background: #ffffff;
  position: relative;
  transition: all 0.15s ease;
}

.upv-checkbox:checked {
  background: #2563eb;
  border-color: #2563eb;
}

.upv-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Row elements */
.upv-ts {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 600;
  color: #2563eb;
}

.upv-cam-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.upv-cam-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.upv-cam-dot.offline {
  background: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.upv-cam-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Neutral Tag */
.upv-cat-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e5e9f0;
  display: inline-flex;
  align-items: center;
}

/* Severity Pill Palette */
.upv-sev-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
}

.upv-sev-pill.low { background: #ecfdf5; color: #059669; }
.upv-sev-pill.medium { background: #fef3c7; color: #b45309; }
.upv-sev-pill.high { background: #ffedd5; color: #c2410c; }
.upv-sev-pill.critical { background: #fee2e2; color: #dc2626; }

/* Status Pill Palette */
.upv-stat-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.upv-stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.upv-stat-pill.processed { background: #ecfdf5; color: #059669; }
.upv-stat-pill.processing { background: #eff6ff; color: #2563eb; }
.upv-stat-pill.queued { background: #f1f5f9; color: #64748b; }
.upv-stat-pill.failed { background: #fee2e2; color: #dc2626; }

/* Actions Column */
.upv-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.upv-btn-view {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
}

.upv-data-row:hover .upv-btn-view {
  border-color: #c7d2fe;
  color: #2563eb;
}

.upv-btn-delete {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fef2f2;
  color: #dc2626;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.16s ease;
}

.upv-btn-delete:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Footer Styling */
.upv-footer-row {
  background: #fbfcfe;
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upv-footer-info {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

.upv-footer-info strong {
  color: #0f172a;
  font-weight: 700;
}

.upv-pager {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Empty State Block */
.upv-empty-block {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Alarms Overview Dashboard CSS System -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.alm-tab-btn {
  height: 100%;
  padding: 14px 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
  font-family: inherit;
}

.alm-tab-btn:hover {
  color: #334155;
}

.alm-tab-btn.active {
  color: #2563eb;
  font-weight: 700;
  border-bottom-color: #2563eb;
}

/* Time Range Segmented Control */
.alm-time-track {
  background: #e4e9f1;
  padding: 3px;
  border-radius: 11px;
  display: inline-flex;
  gap: 2px;
}

.alm-time-btn {
  padding: 7px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.alm-time-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* Severity Pills */
.alm-sev-pill {
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

.alm-sev-pill.low { background: #ecfdf5; color: #059669; }
.alm-sev-pill.low .alm-sev-dot { background: #22c55e; }

.alm-sev-pill.medium { background: #fef3c7; color: #b45309; }
.alm-sev-pill.medium .alm-sev-dot { background: #f59e0b; }

.alm-sev-pill.high { background: #ffedd5; color: #c2410c; }
.alm-sev-pill.high .alm-sev-dot { background: #f97316; }

.alm-sev-pill.critical { background: #fee2e2; color: #dc2626; }
.alm-sev-pill.critical .alm-sev-dot { background: #ef4444; }

.alm-sev-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* KPI Card */
.alm-kpi-card {
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  padding: 16px 18px 15px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.alm-kpi-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.alm-kpi-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3.5px;
}

/* Sparkline 12-bar container */
.alm-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  margin-top: 10px;
}

.alm-sparkline-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: height 0.3s ease;
}

/* Trend Delta Chip */
.alm-chip {
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.alm-chip.inc { background: #fef2f2; color: #dc2626; }
.alm-chip.dec { background: #ecfdf5; color: #059669; }
.alm-chip.flat { background: #f1f5f9; color: #94a3b8; }

/* Grid Table Row for Recent Activity */
.alm-act-row {
  display: grid;
  grid-template-columns: minmax(88px, 104px) minmax(0, 1fr) 84px 40px;
  padding: 0 20px;
  align-items: center;
  box-sizing: border-box;
}

.alm-act-header {
  background: #fbfcfe;
  border-bottom: 1px solid #eef1f6;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  height: 38px;
}

.alm-act-data {
  border-bottom: 1px solid #f4f7fa;
  min-height: 52px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.alm-act-data:hover {
  background: #f8fafc;
}

.alm-act-data:hover .alm-open-btn {
  opacity: 1;
}

.alm-open-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #2563eb;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  cursor: pointer;
}




/* 
   ALARM REPORT TABLE ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â .ar-* design system
    */

/* Grid template shared by header row AND every data row */
.ar-row {
  display: grid;
  grid-template-columns: 42px minmax(96px,110px) minmax(0,1fr) minmax(0,.85fr) 92px 84px 88px 120px;
  padding: 0 22px;
  align-items: center;
  min-width: 0;
}

.ar-header-row {
  background: #fbfcfe;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
  height: 40px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  position: sticky;
  top: 0;
  z-index: 2;
}

.ar-data-row {
  border-bottom: 1px solid #f4f7fa;
  min-height: 56px;
  transition: background 0.12s ease;
}

.ar-data-row:hover {
  background: #f8fafc;
}

/* Checkbox */
.ar-cb {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  accent-color: #2563eb;
  flex-shrink: 0;
}

/* Alert ID cell */
.ar-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ar-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

/* Event cell */
.ar-event-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ar-ev-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ar-ev-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Camera cell */
.ar-cam-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ar-cam-ch {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Clip chip */
.ar-clip-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff4ff;
  color: #2563eb;
  border: 1px solid #dbe6ff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.ar-clip-chip:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Action buttons ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â- always visible */
.ar-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}

.ar-btn-ack {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
  background: #fff;
  color: #059669;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.ar-btn-ack:hover {
  background: #059669;
  color: #fff;
}

.ar-btn-detail {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.ar-btn-detail:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* Severity segmented control */
.ar-sev-track {
  background: #e4e9f1;
  padding: 3px;
  border-radius: 10px;
  display: inline-flex;
  gap: 2px;
}

.ar-seg-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: all 0.14s ease;
  font-family: inherit;
  white-space: nowrap;
}

.ar-seg-btn .ar-seg-count {
  color: #475569;
  margin-left: 3px;
}

.ar-seg-btn.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15,23,42,.12);
}

.ar-seg-btn.active .ar-seg-count {
  color: #2563eb;
}

/* Repeat badge */
.ar-repeat-badge {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.13s ease, color 0.13s ease;
  margin-left: 6px;
  flex-shrink: 0;
}

.ar-repeat-badge:hover {
  background: #eef4ff;
  color: #2563eb;
}

/* Group toggle */
.ar-group-toggle {
  padding: 6px 13px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
  font-family: inherit;
  white-space: nowrap;
}

.ar-group-toggle.on {
  background: #eff4ff;
  color: #2563eb;
  border: 1px solid #c7d2fe;
}

.ar-group-toggle.off {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Bulk action bar */
.ar-bulk-bar {
  background: #eff4ff;
  border-top: 1px solid #dbe6ff;
  border-bottom: 1px solid #dbe6ff;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ar-bulk-count {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
}

.ar-bulk-actions {
  display: flex;
  gap: 8px;
}

.ar-bulk-btn {
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 9px;
  padding: 7px 13px;
  cursor: pointer;
  background: #fff;
  transition: all 0.13s ease;
}

.ar-bulk-btn.ack { color: #059669; border: 1px solid #a7f3d0; }
.ar-bulk-btn.ack:hover { background: #ecfdf5; }

.ar-bulk-btn.resolve { color: #2563eb; border: 1px solid #c7d2fe; }
.ar-bulk-btn.resolve:hover { background: #eff4ff; }

.ar-bulk-btn.clear { color: #64748b; border: 1px solid #e2e8f0; }
.ar-bulk-btn.clear:hover { background: #f8fafc; }

/* Drawer overlay */
.ar-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.42);
  z-index: 1000;
  animation: arScrimIn 0.18s ease;
}

@keyframes arScrimIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Drawer panel */
.ar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 520px;
  max-width: 92vw;
  background: #fff;
  box-shadow: -8px 0 32px rgba(15,23,42,.18);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  animation: arDrawerIn 0.22s cubic-bezier(.4,0,.2,1);
}

@keyframes arDrawerIn {
  from { transform: translateX(100%); opacity: 0.6; }
  to   { transform: translateX(0);    opacity: 1; }
}

.ar-drawer-header {
  padding: 18px 22px 15px;
  border-bottom: 1px solid #eef1f6;
  flex-shrink: 0;
}

.ar-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}

.ar-drawer-footer {
  background: #fbfcfe;
  border-top: 1px solid #eef1f6;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

/* Status pills */
.ar-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ar-status-pill.open { background: #fef3c7; color: #b45309; }
.ar-status-pill.open::before { content:''; width:5px; height:5px; border-radius:50%; background:#f59e0b; flex-shrink:0; }

.ar-status-pill.acked { background: #eff6ff; color: #2563eb; }
.ar-status-pill.acked::before { content:''; width:5px; height:5px; border-radius:50%; background:#2563eb; flex-shrink:0; }

.ar-status-pill.resolved { background: #ecfdf5; color: #059669; }
.ar-status-pill.resolved::before { content:''; width:5px; height:5px; border-radius:50%; background:#22c55e; flex-shrink:0; }

/* Detail tile grid */
.ar-tile-grid {
  display: grid;
  /* minmax(0, ...) so a long nowrap value ellipsises instead of widening the grid */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.ar-tile {
  background: #f8fafc;
  border: 1px solid #eef1f6;
  border-radius: 11px;
  padding: 11px 13px;
}

.ar-tile-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.ar-tile-val {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pager */
.ar-pager-btn {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s ease;
}

.ar-pager-btn:hover:not(:disabled) { background: #f1f5f9; }
.ar-pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Search input wrapper */
.ar-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}

.ar-search-wrap .ar-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 12px;
  pointer-events: none;
}

.ar-search-input {
  width: 100%;
  padding: 9px 11px 9px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.ar-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}

.ar-camera-select {
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  background: #fff;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.ar-camera-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Expanded group rows */
.ar-data-row.group-member {
  background: #fafbfe;
}

.ar-data-row.group-member:hover {
  background: #f1f5fb;
}


/* 
   ADM ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Alert Details Modal design system
   Width 640 px ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â· evidence-first ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â· pinned header + footer
    */

#adm-scrim {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.42); z-index: 1100;
  justify-content: center; align-items: center; padding: 26px 16px;
}
#adm-scrim.open { display: flex; }

.adm-shell {
  width: 640px; max-width: 100%; max-height: calc(100vh - 52px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15,23,42,.28);
  display: flex; flex-direction: column; overflow: hidden;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif; color: #0f172a;
}

.adm-header {
  padding: 15px 20px 13px; border-bottom: 1px solid #eef1f6;
  flex-shrink: 0; display: grid;
  grid-template-columns: 34px 1fr 30px; gap: 0 12px; align-items: start;
}
.adm-sev-tile {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px;
}
.adm-header-center { min-width: 0; }
.adm-header-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-event-name {
  font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-pill {
  border-radius: 20px; padding: 3px 9px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.adm-pill-low     { background:#ecfdf5; color:#059669; }
.adm-pill-medium  { background:#fef3c7; color:#b45309; }
.adm-pill-high    { background:#ffedd5; color:#c2410c; }
.adm-pill-critical{ background:#fee2e2; color:#dc2626; }

.adm-status-pill {
  border-radius: 20px; padding: 3px 9px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
}
.adm-status-open     { background:#fef3c7; color:#b45309; }
.adm-status-open::before     { content:""; width:5px; height:5px; border-radius:50%; background:#b45309; flex-shrink:0; }
.adm-status-acked    { background:#eff6ff; color:#2563eb; }
.adm-status-acked::before    { content:""; width:5px; height:5px; border-radius:50%; background:#2563eb; flex-shrink:0; }
.adm-status-resolved { background:#ecfdf5; color:#059669; }
.adm-status-resolved::before { content:""; width:5px; height:5px; border-radius:50%; background:#059669; flex-shrink:0; }

.adm-meta-line {
  margin-top: 5px; font-family: 'JetBrains Mono','Consolas',monospace;
  font-size: 11.5px; font-weight: 500; color: #64748b; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-close-btn {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid #e5e9f0;
  background: transparent; color: #64748b; display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 14px; flex-shrink: 0;
  transition: background .12s, border-color .12s;
}
.adm-close-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }

.adm-body { flex: 1; overflow-y: auto; min-height: 0; }

.adm-frame-wrap {
  position: relative; aspect-ratio: 16/9; background: #0b1220;
  overflow: hidden; width: 100%;
}
.adm-frame-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-frame-overlay { position: absolute; inset: 0; pointer-events: none; }

.adm-glass-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(10,15,22,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 5px; padding: 4px 8px; font-size: 9.5px; font-weight: 800;
  letter-spacing: .07em; color: rgba(255,255,255,.9); white-space: nowrap;
}
.adm-frame-tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; align-items: center; }
.adm-frame-ts { font-family: 'JetBrains Mono','Consolas',monospace; font-size: 9.5px; font-weight: 500; letter-spacing: 0; }

.adm-model-chip {
  position: absolute; top: 10px; right: 10px;
  background: rgba(124,58,237,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 5px; padding: 4px 8px; font-size: 9.5px; font-weight: 700; color: #fff;
  white-space: nowrap; transition: opacity .18s; pointer-events: none;
}
.adm-frame-wrap:hover .adm-model-chip { opacity: 0; }

.adm-cam-code {
  position: absolute; bottom: 9px; right: 10px;
  font-family: 'JetBrains Mono','Consolas',monospace; font-size: 9px; font-weight: 500;
  color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.7);
  letter-spacing: .04em; pointer-events: none;
}

.adm-frame-toolbar {
  position: absolute; top: 10px; right: 10px;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.adm-frame-wrap:hover .adm-frame-toolbar { opacity: 1; pointer-events: auto; }
.adm-toolbar-pill {
  display: flex; align-items: center; gap: 2px;
  background: rgba(10,15,22,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 3px;
}
.adm-toolbar-btn {
  width: 25px; height: 25px; background: transparent; border: none; border-radius: 5px;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 11px; transition: background .1s, color .1s;
}
.adm-toolbar-btn:hover { background: rgba(255,255,255,.22); }
.adm-toolbar-btn.active { color: #fbbf24; }

.adm-bbox-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .15s; }
.adm-bbox-svg.hidden { opacity: 0; }

.adm-fact-strip { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid #eef1f6; }
.adm-fact-cell { padding: 12px 14px; min-width: 0; border-right: 1px solid #f4f7fa; }
.adm-fact-cell:last-child { border-right: none; }
.adm-fact-label { font-size: 9.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.adm-fact-value { font-size: 13px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-fact-value.amber { color: #b45309; }
.adm-fact-value.red   { color: #c2410c; }
.adm-fact-sub  { font-size: 10.5px; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.adm-resolve-section { padding: 16px 20px 18px; }
.adm-resolve-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.adm-resolve-title { font-size: 11px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .06em; }
.adm-resolve-note  { font-size: 11px; color: #64748b; }
.adm-verdict-prompt { font-size: 12.5px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.adm-verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.adm-verdict-card {
  padding: 11px 13px; border-radius: 11px; border: 1.5px solid #e2e8f0; background: #fff;
  cursor: pointer; display: flex; align-items: flex-start; gap: 10px;
  transition: border-color .15s, background .15s; text-align: left;
}
.adm-verdict-card:hover { border-color: #cbd5e1; }
.adm-verdict-icon {
  width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #cbd5e1;
  background: #fff; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0; margin-top: 1px; transition: background .15s, border-color .15s;
}
.adm-verdict-label { font-size: 13px; font-weight: 700; color: #334155; }
.adm-verdict-desc  { font-size: 11px; color: #64748b; margin-top: 1px; }

.adm-verdict-card.sel-true  { background:#ecfdf5; border-color:#6ee7b7; }
.adm-verdict-card.sel-true .adm-verdict-label { color:#047857; }
.adm-verdict-card.sel-true .adm-verdict-desc  { color:#065f46; }
.adm-verdict-card.sel-true .adm-verdict-icon  { background:#059669; border-color:#059669; }
.adm-verdict-card.sel-false { background:#fef2f2; border-color:#fca5a5; }
.adm-verdict-card.sel-false .adm-verdict-label { color:#b91c1c; }
.adm-verdict-card.sel-false .adm-verdict-desc  { color:#991b1b; }
.adm-verdict-card.sel-false .adm-verdict-icon  { background:#dc2626; border-color:#dc2626; }

.adm-reason-block  { margin-bottom: 14px; }
.adm-reason-label  { font-size: 11px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.adm-reason-chips  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.adm-reason-chip   { border-radius: 20px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; border: 1.5px solid #e2e8f0; background: #fff; color: #475569; cursor: pointer; transition: background .13s, border-color .13s, color .13s; }
.adm-reason-chip:hover { border-color: #c7d2fe; background: #f5f7ff; }
.adm-reason-chip.sel   { background: #eff4ff; border-color: #c7d2fe; color: #2563eb; }
.adm-reason-hint   { font-size: 10.5px; color: #64748b; }

.adm-notes-label { font-size: 11px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.adm-notes-opt   { font-weight: 500; text-transform: none; letter-spacing: 0; color: #64748b; font-size: 11px; }
.adm-notes-ta    { width: 100%; min-height: 74px; border: 1.5px solid #e2e8f0; border-radius: 11px; padding: 10px 12px; font-size: 13px; font-family: 'Plus Jakarta Sans','Inter',sans-serif; color: #0f172a; resize: vertical; box-sizing: border-box; outline: none; transition: border-color .14s; }
.adm-notes-ta:focus { border-color: #93c5fd; }

.adm-resolved-state { padding: 16px 20px 18px; }
.adm-resolved-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.adm-resolved-cell  { padding: 12px; background: #f8fafc; border-radius: 10px; }
.adm-rc-label { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.adm-rc-value { font-size: 13px; font-weight: 600; color: #1e293b; }

.adm-footer {
  padding: 13px 20px; border-top: 1px solid #eef1f6; background: #fbfcfe;
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.adm-footer-state { font-size: 12px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-footer-state.warn    { color: #b45309; }
.adm-footer-state.success { color: #059669; }
.adm-footer-state.info    { color: #2563eb; }
.adm-footer-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.adm-btn-close   { padding: 7px 15px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .12s; }
.adm-btn-close:hover { background: #f1f5f9; }
.setup-subtab-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 26px;
  background: white;
  border-bottom: 1px solid #e5e9f0;
  flex-shrink: 0;
}

.setup-subtab {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 13px 0;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans','Inter',inherit;
  color: #94a3b8;
  cursor: pointer;
  transition: color .14s;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.setup-subtab:hover {
  color: #334155;
  background: transparent;
}

.setup-subtab.active {
  color: #2563eb;
  font-weight: 700;
  border-bottom-color: #2563eb;
  background: transparent;
}

.setup-subtab i {
  font-size: 12px;
  opacity: .75;
}
.setup-subtab.active i { opacity: 1; }
.adm-btn-ack     { padding: 7px 15px; background: #fff; border: 1px solid #a7f3d0; border-radius: 10px; color: #059669; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .12s; }
.adm-btn-ack:hover { background: #f0fdf4; }
.adm-btn-resolve {
  padding: 7px 16px; background: #2563eb; border: none; border-radius: 10px; color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(37,99,235,.26); transition: background .12s, box-shadow .12s;
}
.adm-btn-resolve:hover:not(:disabled) { background: #1d4ed8; }
.adm-btn-resolve:disabled { background: #c3d2ea; cursor: not-allowed; box-shadow: none; }


/* 
   OEE2 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Productivity / OEE Executive Summary design system
   All classes prefixed .oee2-* to avoid conflict with existing .oee-*
    */

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Fonts -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Page shell -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
#tab-productivity.active { background: #eef1f6; }
.oee2-page {
  padding: 20px 26px 40px;
  min-height: 100%;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  color: #0f172a;
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Card / tile -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.oee2-card {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.oee2-tile {
  background: #f8fafc;
  border: 1px solid #eef1f6;
  border-radius: 11px;
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Page header -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.oee2-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.oee2-page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}
.oee2-page-sub {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0;
  font-weight: 500;
}
.oee2-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.oee2-range-btn {
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, border-color .12s, color .12s;
}
.oee2-range-btn:hover { background: #f1f5f9; }
.oee2-range-btn.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.oee2-export-btn {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .12s;
}
.oee2-export-btn:hover { background: #f1f5f9; }

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Mono / tabular -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.oee2-mono {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Section label -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.oee2-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* 
   ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§3  Hero row
    */
.oee2-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.55fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 14px;
}
@media (max-width: 820px) {
  .oee2-hero { grid-template-columns: 1fr; }
}

/* 3.1  Gauge card */
.oee2-gauge-card {
  padding: 20px;
}
.oee2-gauge-top {
  margin-bottom: 16px;
}
.oee2-gauge-body {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.oee2-gauge-ring-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}
.oee2-gauge-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  /* conic-gradient set by JS */
  background: conic-gradient(#22c55e 0% 82.5%, #e8edf4 82.5% 100%);
}
.oee2-gauge-inner {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.oee2-gauge-value {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
}
.oee2-gauge-unit {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .04em;
  margin-top: 2px;
}
.oee2-gauge-aside { flex: 1; min-width: 0; }
.oee2-verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.oee2-gauge-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oee2-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.oee2-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.oee2-legend-threshold {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #64748b;
}

/* HOW IT'S BUILT breakdown */
.oee2-breakdown {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.oee2-breakdown-row {
  margin-bottom: 10px;
}
.oee2-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.oee2-breakdown-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.oee2-breakdown-val {
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
}
.oee2-breakdown-sub {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}
.oee2-bar-track {
  height: 5px;
  background: #eef1f6;
  border-radius: 3px;
  overflow: hidden;
}
.oee2-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}
.oee2-formula {
  margin-top: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* 3.2  Daily uptime vs shift */
.oee2-daily-card {
  padding: 18px 20px 16px;
}
.oee2-daily-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.oee2-daily-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.oee2-daily-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  margin: 3px 0 14px;
}
.oee2-shift-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.oee2-shift-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.oee2-shift-input {
  width: 56px;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'JetBrains Mono','Consolas',monospace;
  color: #0f172a;
  text-align: center;
  outline: none;
  transition: border-color .14s;
}
.oee2-shift-input:focus { border-color: #93c5fd; }
.oee2-daily-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.oee2-daily-row {
  display: grid;
  grid-template-columns: 34px 1fr 56px 76px;
  align-items: center;
  gap: 8px;
}
.oee2-daily-date {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
}
.oee2-daily-bar-track {
  height: 22px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.oee2-daily-bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono','Consolas',monospace;
  color: rgba(0,0,0,.55);
  white-space: nowrap;
  transition: width .4s ease;
  min-width: 36px;
}
.oee2-daily-oee {
  font-size: 12px;
  font-weight: 800;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.oee2-daily-alerts {
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono','Consolas',monospace;
  color: #64748b;
  text-align: right;
  white-space: nowrap;
}
.oee2-daily-alerts.has-alerts { color: #c2410c; }

/* 
   ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§4  KPI trio
    */
.oee2-kpi-row {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 600px) { .oee2-kpi-row { grid-template-columns: 1fr; } }

.oee2-kpi-card {
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.oee2-kpi-rail {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
}
.oee2-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oee2-kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.oee2-kpi-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
}
.oee2-kpi-unit {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* 
   ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§5  Reconciliation banner
    */
.oee2-recon-banner {
  display: none;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.oee2-recon-banner.visible { display: block; }
.oee2-recon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
}
.oee2-recon-list {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}
.oee2-recon-list li {
  font-size: 12.5px;
  color: #78350f;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.5;
}

/* 
   ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§6  Equipment performance table
    */
.oee2-mid-row {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}
@media (max-width: 900px) { .oee2-mid-row { grid-template-columns: 1fr; } }

.oee2-perf-card { overflow: hidden; }
.oee2-card-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid #eef1f6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.oee2-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.oee2-card-sub {
  font-size: 11.5px;
  color: #64748b;
  margin: 3px 0 0;
}

/* 9-column CSS grid for perf table */
.oee2-perf-grid-row {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 62px 58px 64px 66px 62px 68px 62px;
  padding: 0 20px;
  align-items: center;
}
.oee2-perf-thead {
  background: #fbfcfe;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
  padding-top: 8px;
  padding-bottom: 8px;
}
.oee2-perf-thead .oee2-perf-col {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.oee2-perf-thead .oee2-perf-col:not(:first-child):not(:nth-child(2)) {
  text-align: right;
}
.oee2-perf-body { max-height: 340px; overflow-y: auto; }
.oee2-perf-data-row {
  border-bottom: 1px solid #f4f7fa;
  padding-top: 7px;
  padding-bottom: 7px;
  transition: background .1s;
}
.oee2-perf-data-row:hover { background: #f8fafc; }
.oee2-perf-col { min-width: 0; }
.oee2-perf-col-date {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}
.oee2-perf-col-equip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.oee2-equip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.oee2-equip-name {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oee2-equip-sub {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oee2-perf-num {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: #475569;
  text-align: right;
  font-weight: 500;
}
.oee2-oee-chip {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  text-align: right;
  display: inline-block;
  white-space: nowrap;
}
/* Avg row */
.oee2-avg-row {
  background: #fbfcfe;
  border-top: 2px solid #e2e8f0;
  border-bottom: none;
  padding-top: 8px;
  padding-bottom: 8px;
  position: sticky;
  bottom: 0;
}
.oee2-avg-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.oee2-avg-window {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}
.oee2-avg-num {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-align: right;
}
.oee2-avg-chip {
  background: #eff4ff;
  color: #2563eb;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  text-align: right;
  display: inline-block;
  white-space: nowrap;
}
/* search bar in card header */
.oee2-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.oee2-search-wrap i {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 11px;
  pointer-events: none;
}
.oee2-search-input {
  padding: 5px 10px 5px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 12px;
  font-family: inherit;
  color: #0f172a;
  width: 160px;
  outline: none;
  transition: border-color .14s;
}
.oee2-search-input:focus { border-color: #93c5fd; }

/* 
   ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§7  Weekly efficiency trend
    */
.oee2-trend-card {
  padding: 18px 20px 16px;
}
.oee2-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 132px;
  margin-bottom: 6px;
}
.oee2-trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.oee2-trend-bar-val {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
}
.oee2-trend-bar {
  width: 100%;
  border-radius: 5px 5px 0 0;
  transition: height .35s ease;
  min-height: 3px;
}
.oee2-trend-day-labels {
  display: flex;
  gap: 7px;
}
.oee2-trend-day-lbl {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
}
.oee2-target-line-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
}
.oee2-target-dash {
  width: 20px;
  height: 2px;
  border-top: 2px dashed #94a3b8;
  flex-shrink: 0;
}

/* 
   ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§8  Safety section
    */
.oee2-safety-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.6fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 820px) { .oee2-safety-row { grid-template-columns: 1fr; } }

/* 8.1 Alarm mix */
.oee2-alarm-mix-card { padding: 18px 20px 16px; }
.oee2-alarm-bar-row {
  margin-bottom: 10px;
}
.oee2-alarm-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.oee2-alarm-type-name {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.oee2-alarm-type-count {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.oee2-alarm-bar-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}
.oee2-alarm-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
}

/* Evidence tile */
.oee2-evidence-tile {
  padding: 14px 16px;
  margin-top: 16px;
}
.oee2-evidence-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.oee2-evidence-value {
  font-size: 20px;
  font-weight: 800;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
}
.oee2-evidence-note {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.4;
}

/* 8.2 Events table */
.oee2-events-card { overflow: hidden; }
.oee2-events-header-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 116px 82px 74px 66px;
  padding: 8px 20px;
  background: #fbfcfe;
  border-bottom: 1px solid #eef1f6;
  border-top: 1px solid #eef1f6;
}
.oee2-events-col-hdr {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.oee2-events-data-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 116px 82px 74px 66px;
  padding: 9px 20px;
  border-bottom: 1px solid #f4f7fa;
  align-items: center;
  cursor: default;
}
.oee2-events-data-row:hover { background: #f8fafc; }
.oee2-equip-cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.oee2-equip-glyph {
  width: 26px;
  height: 26px;
  background: #f3e8ff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  font-size: 11px;
  flex-shrink: 0;
}
.oee2-equip-info { min-width: 0; }
.oee2-equip-ev-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oee2-equip-ev-time {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}
.oee2-ev-type {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oee2-sev-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.oee2-ev-time {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #475569;
  font-weight: 500;
}
.oee2-ev-badge {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 8px;
  cursor: pointer;
  user-select: none;
}
.oee2-ev-badge:hover { background: #e2e8f0; }
.oee2-events-footer {
  padding: 10px 20px;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.oee2-view-all-link {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
}
.oee2-view-all-link:hover { text-decoration: underline; }
/* group-repeat header row toggle */
.oee2-events-group-btn {
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.oee2-events-group-btn:hover { background: #f1f5f9; }


/* 
   ACT2 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Activity Intelligence / Activities tab design system
   All classes prefixed .act2-* to avoid conflict with existing
    */

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Page shell -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
#tab-activity .act2-page {
  padding: 20px 26px 40px;
  min-height: 100%;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  color: #0f172a;
  background: #eef1f6;
}

/* -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- Card -ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡-ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡- */
.act2-card {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  overflow: hidden;
}

/* 
   Duplicate banner
    */
.act2-dupe-banner {
  display: none;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.act2-dupe-banner.visible { display: block; }
.act2-dupe-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 5px;
}
.act2-dupe-banner-body {
  font-size: 12px;
  color: #92400e;
  margin-bottom: 10px;
  line-height: 1.5;
}
.act2-dupe-only-btn {
  padding: 5px 13px;
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s;
}
.act2-dupe-only-btn:hover { background: #fef9c3; }

/* 
   ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§3  KPI strip
    */
.act2-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width:700px) { .act2-kpi-strip { grid-template-columns: repeat(2,1fr); } }

.act2-kpi-card {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .14s, border-color .14s;
}
.act2-kpi-card:hover { box-shadow: 0 4px 16px rgba(15,23,42,.09); border-color: #cbd5e1; }
.act2-kpi-card.active { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(37,99,235,.12); }

.act2-kpi-rail {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
}
.act2-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act2-kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.act2-kpi-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  font-weight: 500;
}

/* 
   ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§5  Card header + filter bar
    */
.act2-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
}
.act2-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.act2-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg,#eff4ff,#dbe6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.act2-card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}
.act2-card-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 3px 0 0;
  font-weight: 500;
}
.act2-create-btn {
  padding: 9px 18px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(37,99,235,.26);
  transition: background .12s, box-shadow .12s;
  flex-shrink: 0;
}
.act2-create-btn:hover { background: #1d4ed8; box-shadow: 0 4px 14px rgba(37,99,235,.35); }

/* Filter bar */
.act2-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 22px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.act2-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}
.act2-search-wrap i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 12px;
  pointer-events: none;
}
.act2-search-input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  box-sizing: border-box;
  outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.act2-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}

/* Segmented control */
.act2-seg {
  display: inline-flex;
  background: #e4e9f1;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.act2-seg-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #475569;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .12s, color .12s, box-shadow .12s;
  white-space: nowrap;
}
.act2-seg-btn .act2-seg-count {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.act2-seg-btn.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15,23,42,.12);
}
.act2-seg-btn.active .act2-seg-count { color: #2563eb; }

/* Full prompts toggle */
.act2-toggle-btn {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #475569;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}
.act2-toggle-btn.active {
  background: #eff4ff;
  color: #2563eb;
  border-color: #c7d2fe;
}
.act2-toggle-btn:hover:not(.active) { background: #f1f5f9; }

.act2-filter-count {
  margin-left: auto;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

/* 
   ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§6  Table
    */
/* 7-column grid ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â- identical for header + data */
.act2-grid-row {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1.85fr) 128px 90px 78px 92px 108px;
  padding: 0 22px;
  align-items: center;
}

.act2-table-head {
  background: #fbfcfe;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
  min-height: 38px;
}
.act2-col-hdr {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 0;
}
.act2-col-hdr.right { text-align: right; }

/* Data rows */
.act2-data-row {
  border-bottom: 1px solid #f4f7fa;
  min-height: 52px;
  transition: background .1s;
}
.act2-data-row:hover { background: #f8fafc; }
.act2-data-row.is-dupe { background: #fffdf5; }
.act2-data-row.is-dupe:hover { background: #fef9e7; }

/* Activity cell */
.act2-act-cell { padding: 10px 0; }
.act2-act-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.act2-act-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.act2-dupe-chip {
  display: inline-flex;
  align-items: center;
  background: #fef3c7;
  color: #b45309;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 20px;
  padding: 2px 7px;
  letter-spacing: .04em;
  flex-shrink: 0;
  text-transform: uppercase;
}
.act2-act-code {
  font-family: 'JetBrains Mono','Consolas',monospace;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}
