/* =========================================================
   GLOBAL BASE STYLES (existing)
   ========================================================= */

body, div, p, a, th, td, h1, h2 {
  color: #818181;
  font-family: "Quicksand", Arial, sans-serif;
  line-height: 1;
}

.dynamic {
  color: #ffffff !important;
}

h1 {
  font-family: "Quicksand", sans-serif;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  font-size: 38px !important;
  font-weight: 600;
  color: #ffffff;
}

h2 {
  font-family: "Quicksand", sans-serif;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  font-size: 18px !important;
  font-weight: 600;
}

h3 {
  font-family: "Quicksand", sans-serif;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  font-size: 18px !important;
  font-weight: 600;
  color: #ffffff;
}

/* server live status headers */
h4 {
  font-family: "Quicksand", sans-serif;
  display: inline;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  font-size: 23px !important;
  font-weight: 1200;
  color: #aaaaaa;
}

/* server live status data */
h5 {
  font-family: "Quicksand", sans-serif;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  font-size: 23px !important;
  font-weight: 300;
  color: #ffffff;
}

/* big star character for lists */
h6 {
  font-family: "Quicksand", sans-serif;
  display: inline;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  font-size: 54px !important;
  font-weight: 900;
  color: #ffffff;
}

/* list text after star character */
h7 {
  font-family: "Quicksand", sans-serif;
  display: inline;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  font-size: 23px !important;
  font-weight: 300;
  color: #ffffff;
}

h8 {
  font-family: "Quicksand", sans-serif;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
  font-size: 22px !important;
  font-weight: 1200;
  color: #ffffff;
}

/* =========================================================
   TABLE LAYOUT (existing)
   ========================================================= */

table {
  border-collapse: collapse;
  border-spacing: 0;
  margin-left: 0 !important;
  font-size: 21px;
  table-layout: fixed;
  width: 100%;
}

table th,
table td {
  text-align: left;
  vertical-align: middle;
  padding: 0;
  height: 32px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
white-space: normal !important;
}

.col-label  { width: 10px; }
.col-value  { width: 10px; }
.col-label2 { width: 340px; }
.col-value2 { width: 600px; }
.col-label3 { width: 160px; }
.col-value3 { width: 800px; }
.col-label4 { width: 950px; }

.value {
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* --- FIX list rows (col-label4) --- */

th.col-label4,
td.col-label4 {
  height: auto;
  padding: 0;
}

.col-label4 {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  white-space: nowrap;
}

.col-label4 h6,
.col-label4 h4 {
  line-height: 1;
  margin: 0;
  padding: 0;
  display: block;
}

.col-label4 h6 {
  transform: translateY(1px);
}

/* Absolute-positioned star version */
th.col-label4 {
  position: relative !important;
  padding-left: 44px !important;
  line-height: 1 !important;
  overflow: visible !important;
}

th.col-label4 h4 {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

th.col-label4 h6 {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

th.col-label4 {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

/* =========================================================
   DIVIDERS (existing)
   ========================================================= */

hr.divider-panel{
  border: none;
  height: 6px;
  margin: 30px 0 24px 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
}

hr.divider-glow{
  border: none;
  height: 5px;
  width: 95%;
  margin: 14px 0 22px 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.99),
    transparent
  );
  box-shadow: 0 0 6px rgba(255,255,255,0.15);
}

/* =========================================================
   DAYZ STATS EMBED (isolated, NEW)
   ========================================================= */

#dayzstats-embed{
  --txt:#818181;
  --muted:#aaaaaa;
  --bright:#ffffff;
  --line:rgba(255,255,255,0.14);
  --line2:rgba(255,255,255,0.20);
  --accent:#aaaaaa;
  --bad:#ff6b6b;
  --ok:#6bffb0;
  --card:rgba(0,0,0,0.55);
  --card2:rgba(0,0,0,0.70);
  --radius:18px;

  color:var(--txt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
}

#dayzstats-embed *{
  box-sizing:border-box;
}

#dayzstats-embed .wrap{
  width:100%;
  max-width:840px;
  margin:18px 0 40px;
  padding:0 14px;
}

#dayzstats-embed .panel{
  background: linear-gradient(180deg, var(--card) 0%, var(--card2) 100%);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  overflow:hidden;
  margin:14px 0;
}

#dayzstats-embed .panelhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}

#dayzstats-embed .title{
  font-weight:700;
  letter-spacing:2px;
  font-size:25px;
  text-transform:uppercase;
  color:var(--bright);
}

#dayzstats-embed .badge{
  border:1px solid var(--line2);
  background:rgba(0,0,0,0.35);
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

#dayzstats-embed .controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

#dayzstats-embed input,
#dayzstats-embed select{
  background:rgba(0,0,0,0.35);
  border:1px solid var(--line2);
  border-radius:12px;
  padding:8px 10px;
  color:var(--bright);
  outline:none;
}

#dayzstats-embed input{
  width:250px;
  max-width:100%;
}

#dayzstats-embed button{
  background:rgba(255,255,255,0.10);
  border:1px solid var(--line2);
  border-radius:12px;
  padding:8px 10px;
  color:var(--bright);
  cursor:pointer;
}

#dayzstats-embed button:hover{
  background:rgba(255,255,255,0.14);
}

#dayzstats-embed .grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  padding:12px 14px;
}

@media (max-width:640px){
  #dayzstats-embed .grid2{
    grid-template-columns:1fr;
  }
}

#dayzstats-embed .tile{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  background:rgba(0,0,0,0.22);
}

#dayzstats-embed .k{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:1px;
}

#dayzstats-embed .v{
  font-size:18px;
  color:var(--bright);
  margin-top:6px;
  font-weight:700;
}

#dayzstats-embed table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

#dayzstats-embed thead th,
#dayzstats-embed tbody td{
  padding:10px 14px;
  border-bottom:1px solid var(--line);
  color:#ffffff;
}

#dayzstats-embed thead th{
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:12px;
}

#dayzstats-embed tbody tr:hover td{
  background:rgba(255,255,255,0.04);
}

#dayzstats-embed tbody tr:last-child td{
  border-bottom:none;
}

#dayzstats-embed .rowbtn{
  padding:6px 10px;
  border-radius:10px;
  border:1px solid var(--line2);
  background:rgba(255,255,255,0.08);
  color:var(--bright);
  cursor:pointer;
  font-size:12px;
}

#dayzstats-embed .rowbtn:hover{
  background:rgba(255,255,255,0.12);
}

#dayzstats-embed .split{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:14px;
  padding:12px 14px;
}

@media (max-width:900px){
  #dayzstats-embed .split{
    grid-template-columns:1fr;
  }
}

#dayzstats-embed .subpanel{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:rgba(0,0,0,0.18);
}

#dayzstats-embed .subhead{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  color:var(--bright);
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:12px;
}

#dayzstats-embed .subbody{
  padding:10px 12px;
  font-size:13px;
  color:var(--txt);
  line-height:1.35;
}

#dayzstats-embed .footline{
  padding:10px 14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

#dayzstats-embed .warn{ color:var(--bad); }
#dayzstats-embed .ok{ color:var(--ok); }
#dayzstats-embed a{
  color:var(--accent);
  text-decoration:none;
}

/* =========================================================
   FORCE ALL STATS TABLES TO EXACTLY 776px
   (overrides /itemstats/ui.php min-width:1000px)
   ========================================================= */

/* 1) Hard-set table width */
#dayzstats-embed table{
  width: 776px !important;
  min-width: 776px !important;
  max-width: 776px !important;
  table-layout: fixed !important;
}

/* 2) Remove the horizontal scrollbar bars from the table wrappers */
#dayzstats-embed .panel div[style*="overflow:auto"]{
  overflow-x: hidden !important;
}

/* 3) If any cell forces extra width, keep it contained */
#dayzstats-embed th,
#dayzstats-embed td{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
