.dw-kegm-gt{
  --dw-kegm-bg:#0b1220;
  --dw-kegm-fg:#f8fafc;
  --dw-kegm-muted:rgba(248,250,252,.7);
  --dw-kegm-border:rgba(148,163,184,.25);
  --dw-kegm-duration:45s;
  --dw-kegm-height:auto;
  --dw-kegm-radius:0px;

  width:100%;
  position:relative;
  overflow:hidden;
  font: inherit;
}

.dw-kegm-gt--light{
  --dw-kegm-bg:#ffffff;
  --dw-kegm-fg:#0f172a;
  --dw-kegm-muted:rgba(15,23,42,.65);
  --dw-kegm-border:rgba(148,163,184,.35);
}

.dw-kegm-gt__wrap{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  background:var(--dw-kegm-bg);
  color:var(--dw-kegm-fg);
  border:1px solid var(--dw-kegm-border);
  border-radius:var(--dw-kegm-radius);
  min-height:var(--dw-kegm-height);
}

.dw-kegm-gt__meta{
  flex:0 0 auto;
  padding:4px 10px;
  border:1px solid var(--dw-kegm-border);
  border-radius:999px;
  font-size:12px;
  letter-spacing:.3px;
  color:var(--dw-kegm-muted);
  user-select:none;
}

.dw-kegm-gt__updated{
  flex:0 0 auto;
  font-size:12px;
  color:var(--dw-kegm-muted);
  user-select:none;
}

.dw-kegm-gt__body{
  flex:1 1 auto;
  min-width:0;
}

.dw-kegm-gt__viewport{
  overflow:hidden;
  min-width:0;
}

.dw-kegm-gt__track{
  display:flex;
  align-items:center;
  gap:28px;
  white-space:nowrap;
  will-change:transform;
  animation:dwKegmMarquee var(--dw-kegm-duration) linear infinite;
}

.dw-kegm-gt__track.is-pausable:hover{
  animation-play-state: paused;
}

.dw-kegm-gt__item{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  line-height:1.2;
  color:var(--dw-kegm-fg);
}

.dw-kegm-gt__text{
  color:var(--dw-kegm-fg);
}

.dw-kegm-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  display:inline-block;
  background:rgba(148,163,184,.75);
}

.dw-kegm-dot.is-live{
  background:#ef4444;
  animation:dwKegmPulse 1s ease-in-out infinite;
}

.dw-kegm-dot.is-plan{ background:#f59e0b; }
.dw-kegm-dot.is-ready{ background:#22c55e; }
.dw-kegm-dot.is-other{ background:#60a5fa; }

/* LIST */
.dw-kegm-gt__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dw-kegm-gt__li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  line-height:1.35;
  color:var(--dw-kegm-fg);
}

.dw-kegm-gt__liText{ color:var(--dw-kegm-fg); }

/* TABLE */
.dw-kegm-gt__table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.dw-kegm-gt__table th,
.dw-kegm-gt__table td{
  text-align:left;
  padding:10px 10px;
  border-bottom:1px solid var(--dw-kegm-border);
  vertical-align:top;
}

.dw-kegm-gt__table th{
  font-size:12px;
  color:var(--dw-kegm-muted);
  letter-spacing:.2px;
  border-bottom:1px solid var(--dw-kegm-border);
}

.dw-kegm-gt__cell{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.dw-kegm-gt__error{
  padding:10px 12px;
  background:var(--dw-kegm-bg);
  color:var(--dw-kegm-muted);
  border:1px solid var(--dw-kegm-border);
  border-radius:var(--dw-kegm-radius);
}

@keyframes dwKegmMarquee{
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes dwKegmPulse{
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.35); opacity: 1; }
}


/* Header wrapper (optional) */
.dw-kegm-gt-header.is-sticky{
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
}

/* Table wrap for horizontal scroll (mobile) */
.dw-kegm-gt__tableWrap{
  width:100%;
  overflow-x:auto;
}

/* Filter row like KEGM */
.dw-kegm-gt__filtersRow td{
  padding:8px 10px;
}

.dw-kegm-gt__filterInput{
  width:100%;
  max-width:none;
  padding:8px 10px;
  font: inherit;
  font-size:13px;
  border:1px solid var(--dw-kegm-border);
  border-radius:4px;
  background:transparent;
  color:var(--dw-kegm-fg);
  outline:none;
}

.dw-kegm-gt__filterInput::placeholder{
  color:var(--dw-kegm-muted);
}

.dw-kegm-gt__planCell{
  display:inline-block;
  white-space:nowrap;
}

.dw-kegm-gt__status{
  font-weight:700;
}

.dw-kegm-gt__ptime{
  color:var(--dw-kegm-muted);
  font-size:12px;
}


/* FULL WIDTH FIX */
.dw-kegm-gt,
.dw-kegm-gt__wrap,
.dw-kegm-gt__body,
.dw-kegm-gt__tableWrap,
.dw-kegm-gt__table{
  width:100% !important;
  max-width:none !important;
}

.dw-kegm-gt__wrap{ justify-content:flex-start; }
.dw-kegm-gt__tableWrap{ overflow-x:auto; margin:0 !important; }
.dw-kegm-gt__table{ table-layout:fixed; border-collapse:collapse; }
.dw-kegm-gt__table th, .dw-kegm-gt__table td{ white-space:nowrap; }

/* Column sizing (KEGM feel) */
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(1),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(1){ width:20%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(2),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(2){ width:16%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(3),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(3){ width:8%; text-align:center; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(4),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(4){ width:12%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(5),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(5){ width:10%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(6),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(6){ width:10%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(7),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(7){ width:12%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(8),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(8){ width:12%; }


/* KEGM TABLE SKIN */
.dw-kegm-gt--layout-table .dw-kegm-gt__wrap{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__tableWrap{
  border: 1px solid #d0d7de;
  border-radius: 4px;
  overflow-x:auto;
  background:#fff;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__table{
  width:100%;
  border-collapse: separate;
  border-spacing:0;
  table-layout: fixed;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__table thead tr:first-child th{
  background:#f3f6f9;
  color:#0f172a;
  font-weight:600;
  font-size:13px;
  border-bottom:1px solid #d0d7de;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__table th,
.dw-kegm-gt--layout-table .dw-kegm-gt__table td{
  padding:12px 12px;
  border-right:1px solid #e5e7eb;
  border-bottom:1px solid #e5e7eb;
  vertical-align: middle;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__table th:last-child,
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:last-child{
  border-right:0;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__table tbody tr:nth-child(even){
  background:#f8fafc;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__table tbody tr:hover{
  background:#eef6ff;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__filtersRow td{
  background:#ffffff;
  border-bottom:1px solid #d0d7de;
  padding:10px 12px;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__filterInput{
  width:100%;
  padding:10px 10px;
  border:1px solid #cbd5e1;
  border-radius:3px;
  background:#ffffff;
  color:#0f172a;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__filterInput::placeholder{
  color:#94a3b8;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__planCell{
  display:inline-flex;
  gap:6px;
  align-items:baseline;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__status{
  font-weight:700;
  color:#0f172a;
}

.dw-kegm-gt--layout-table .dw-kegm-gt__ptime{
  color:#64748b;
  font-size:12px;
}

.dw-kegm-gt__actionBadge{display:inline-block;user-select:none;
  background:#2b7bb9;
  border:1px solid #2b7bb9;
  color:#fff;
  padding:8px 12px;
  border-radius:3px;
  font-size:13px;
  line-height:1;
  cursor:default;
}

/* Make first column (actions) narrow */
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(1),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(1){
  width: 120px;
}

/* Adjust remaining widths when actions exists */
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(2),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(2){ width: 22%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(3),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(3){ width: 16%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(4),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(4){ width: 8%; text-align:center; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(5),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(5){ width: 12%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(6),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(6){ width: 10%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(7),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(7){ width: 10%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(8),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(8){ width: 11%; }
.dw-kegm-gt--layout-table .dw-kegm-gt__table th:nth-child(9),
.dw-kegm-gt--layout-table .dw-kegm-gt__table td:nth-child(9){ width: 11%; }
