/* Scoped exclusively under #tab-erp-workstation so existing web styles are 100% untouched */
#tab-erp-workstation .erp-web-shell {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 155px);
  background: rgba(10, 14, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

#tab-erp-workstation .erp-sidebar {
  width: 292px;
  min-width: 292px;
  background: rgba(11, 16, 30, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 155px);
}

#tab-erp-workstation .sidebar-search-box {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#tab-erp-workstation .sidebar-dept-shortcuts {
  padding: 9px 12px;
  background: rgba(56, 189, 248, 0.07);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

#tab-erp-workstation .shortcut-label {
  display: block;
  font-size: 11px;
  color: #7dd3fc;
  font-weight: 700;
  margin-bottom: 6px;
}

#tab-erp-workstation .shortcut-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

#tab-erp-workstation .erp-menu-tree {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px 20px;
}

#tab-erp-workstation .menu-cat-group {
  margin-bottom: 8px;
}

#tab-erp-workstation .menu-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 6px;
}

#tab-erp-workstation .menu-cat-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 4px;
}

#tab-erp-workstation .menu-tree-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

#tab-erp-workstation .menu-tree-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #fff;
}

#tab-erp-workstation .menu-tree-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.42);
  color: #38bdf8;
  font-weight: 700;
}

#tab-erp-workstation .menu-new-dot {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-weight: 700;
  flex-shrink: 0;
}

#tab-erp-workstation .erp-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 155px);
  overflow: hidden;
}

#tab-erp-workstation .workspace-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(14, 20, 36, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

#tab-erp-workstation .breadcrumb-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

#tab-erp-workstation .crumb-cat { font-size: 12px; color: #94a3b8; }
#tab-erp-workstation .crumb-sep { color: #64748b; }
#tab-erp-workstation .crumb-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }

#tab-erp-workstation .erp-screen-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 28px;
}

#tab-erp-workstation .erp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 10px;
}

#tab-erp-workstation .erp-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#tab-erp-workstation .erp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#tab-erp-workstation .erp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

#tab-erp-workstation .erp-stat-box {
  background: rgba(18, 24, 41, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}

#tab-erp-workstation .erp-stat-box .lbl {
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 4px;
  display: block;
}

#tab-erp-workstation .erp-stat-box .val {
  font-size: 20px;
  font-weight: 800;
}

#tab-erp-workstation .form-input-sm {
  padding: 7px 10px;
  font-size: 12px;
}

#tab-erp-workstation .action-toast-inline {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-weight: 600;
}

#tab-erp-workstation .safe-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fde68a;
  font-size: 12.5px;
  margin-bottom: 14px;
}

#tab-erp-workstation .worker-terminal {
  height: 150px;
  overflow-y: auto;
  padding: 10px 14px;
  background: #070b14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #38bdf8;
}

#tab-erp-workstation .byte-pill {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
#tab-erp-workstation .byte-ok { background: rgba(16, 185, 129, 0.18); color: #34d399; }
#tab-erp-workstation .byte-over { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }

#tab-erp-workstation .thumb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
#tab-erp-workstation .thumb-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
#tab-erp-workstation .thumb-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 6px;
  background: #1e293b;
  margin-bottom: 8px;
}

#tab-erp-workstation .perm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
}
#tab-erp-workstation .perm-cat-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
}
#tab-erp-workstation .perm-check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 3px 0;
  color: #e2e8f0;
  cursor: pointer;
}

#tab-erp-workstation .sched-btn-group {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

#tab-erp-workstation .sched-int-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
#tab-erp-workstation .sched-int-btn:last-child { border-right: none; }
#tab-erp-workstation .sched-int-btn:hover { background: rgba(56, 189, 248, 0.15); color: #fff; }
#tab-erp-workstation .sched-int-btn.active {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #04101f;
  font-weight: 800;
}

#tab-erp-workstation .sched-time-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#tab-erp-workstation .pk-dropzone {
  border: 2px dashed rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.65);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
#tab-erp-workstation .pk-dropzone:hover,
#tab-erp-workstation .pk-dropzone.dragover {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.09);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.14);
}
#tab-erp-workstation .pk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 1400px) {
  #tab-erp-workstation .pk-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
#tab-erp-workstation .pk-file-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#tab-erp-workstation .pk-opt-drawer {
  background: rgba(6, 10, 20, 0.92);
  border-left: 3px solid #38bdf8;
  padding: 10px 14px;
}
#tab-erp-workstation .pk-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
#tab-erp-workstation .pk-chip.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}



