:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --danger: #ef4444;
  --anim: 1s;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(120deg, #0f172a, #0b1022);
  color: var(--text);
}
html { overflow-y: scroll; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(17,24,39,0.8); backdrop-filter: blur(8px);
  position: sticky; top: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { font-weight: 700; letter-spacing: 0.4px; }
nav button {
  margin-left: 8px; background: #0b1220; color: var(--text); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 8px 12px; cursor: pointer; transition: .2s;
}
nav button:hover { border-color: var(--accent); color: white; }

#viewContainer { padding: 20px; max-width: 1100px; margin: 0 auto; }

.card {
  background: rgba(17,24,39,0.7); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 16px; margin-bottom: 16px;
}
.sticky-toolbar { backdrop-filter: blur(8px); }
.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }
/* Item rows spacing */
.stack > .stack { margin-top: 6px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: #0b1220; color: var(--text); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 10px 12px; outline: none; transition: .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: #07131f; font-weight: 700; }
.btn-danger { background: var(--danger); border: none; }
.btn { padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.stack { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: #0b1220; border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 6px 10px; font-size: 12px; }
.pill-input { position: relative; }
.suggestions { position: absolute; z-index: 50; background: #0b1220; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; margin-top: 6px; max-height: 220px; overflow: auto; width: 100%; }
.suggestions div { padding: 8px 10px; cursor: pointer; }
.suggestions div:hover { background: rgba(34,211,238,0.08); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 10px; text-align: left; }
.swipeable { position: relative; touch-action: pan-y; }
.swipe-action { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: none; }
.swiped .swipe-action { display: inline-block; }

.muted { color: var(--muted); font-size: 12px; }
/* Central Data filter spacing */
#central_search_all { margin-bottom: 10px; }

/* Checkbox alignment and typography */
label.checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
input[type="checkbox"] { width: auto; height: auto; }

/* Smooth slide animations */
.slide { overflow: hidden; max-height: 0; transition: max-height var(--anim) ease; }
.slide-open { max-height: 1000px; }
.collapsible { overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-6px); transition: max-height var(--anim) ease, opacity calc(var(--anim) * 0.8) ease, transform calc(var(--anim) * 0.8) ease; }
.collapsible.open { max-height: 1800px; opacity: 1; transform: translateY(0); }


