#digitz-docs {
  /* ====== Base / Theme (standalone, no external deps) ====== */
  --txc-blue:#0b3c78;
  --txc-blue-2:#1761A0;
  --txc-ink:#0f172a;
  --txc-mid:#334155;
  --txc-line:rgba(2,6,23,.10);
  --txc-card:rgba(255,255,255,.98);
  --txc-shadow:0 8px 20px rgba(0,0,0,.06);
  --txc-grad:linear-gradient(180deg,#ffb154 0%, #ff8a00 100%);
  --wrap:1200px;
  --rad-lg:16px; --rad-md:12px; --rad-sm:10px;
}

#digitz-docs * { box-sizing: border-box; }
#digitz-docs html, #digitz-docs body { margin:0; padding:0; color:var(--txc-ink); background:#f6f8fb; font:500 14px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial; }
#digitz-docs a { color:var(--txc-blue-2); text-decoration:none; }
#digitz-docs a:hover { text-decoration:underline; }
#digitz-docs .wrap { max-width:var(--wrap); margin:0 auto; padding:0 16px; }

/* ====== Header ====== */
#digitz-docs .txc-header { position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--txc-line); box-shadow:0 4px 12px rgba(0,0,0,.04); }
#digitz-docs .txc-header__in { display:flex; align-items:center; justify-content:space-between; height:64px; }
#digitz-docs .txc-brand { display:flex; align-items:center; gap:10px; }
#digitz-docs .txc-logo { width:36px; height:36px; border-radius:9px; background:var(--txc-grad); box-shadow:0 6px 16px rgba(249,115,22,.18); }
#digitz-docs .txc-name { font:800 18px/1.2 Poppins,system-ui; color:var(--txc-blue); }
#digitz-docs .txc-nav { display:flex; gap:14px; align-items:center; }
#digitz-docs .txc-cta { display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; border-radius:10px; border:1px solid var(--txc-line); font-weight:700; }
#digitz-docs .txc-cta--primary { background:var(--txc-grad); color:#0b1a34; border-color:rgba(249,115,22,.35); box-shadow:0 10px 22px rgba(249,115,22,.18); }
#digitz-docs .txc-cta--ghost { background:#fff; color:var(--txc-blue); }

/* ====== Page Head ====== */
#digitz-docs .cs-head { padding:24px 0 10px; }
#digitz-docs .cs-eyebrow { display:inline-block; font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:12px; color:var(--txc-blue-2); background:rgba(23,97,160,.08); padding:6px 10px; border-radius:6px; }
#digitz-docs .cs-title { margin:10px 0 6px; font:800 clamp(22px,3.6vw,36px)/1.2 Poppins,system-ui; color:var(--txc-blue); }
#digitz-docs .cs-sub { color:var(--txc-mid); max-width:72ch; }

/* ====== Main Grid ====== */
#digitz-docs .cs-wrap { display:grid; grid-template-columns:300px 1fr; gap:clamp(16px,2.4vw,24px); align-items:start; margin:16px 0 42px; }
@media (max-width:980px){ #digitz-docs .cs-wrap { grid-template-columns:1fr; } #digitz-docs .cs-aside { position:static; } }

/* ====== Sidebar Tree ====== */
#digitz-docs .cs-aside { position:sticky; top:82px; align-self:start; }
#digitz-docs .cs-tree { background:#fff; border:1px solid var(--txc-line); border-radius:var(--rad-lg); box-shadow:var(--txc-shadow); padding:14px; }
#digitz-docs .cs-filter { width:100%; border:1px solid var(--txc-line); border-radius:10px; padding:10px 12px; margin-bottom:8px; }
#digitz-docs .cs-controls { display:flex; gap:8px; margin-bottom:8px; }
#digitz-docs .cs-ctrl { display:inline-flex; align-items:center; justify-content:center; padding:6px 10px; border-radius:8px; border:1px solid var(--txc-line); background:#fff; font-weight:700; cursor:pointer; }
#digitz-docs .cs-tree details { border-radius:10px; padding:4px 6px; }
#digitz-docs .cs-tree details + details { margin-top:6px; }
#digitz-docs .cs-tree summary { cursor:pointer; font-weight:700; color:var(--txc-blue); outline:none; }
#digitz-docs .cs-tree ul { list-style:none; margin:8px 0 0 0; padding:0 0 0 10px; }
#digitz-docs .cs-tree li { margin:2px 0; }
#digitz-docs .cs-tree li a { display:block; padding:6px 8px; border-radius:8px; border:1px solid transparent; text-decoration:none; color:var(--txc-ink); }
#digitz-docs .cs-tree li a:hover { background:#f8fafc; border-color:var(--txc-line); }
#digitz-docs .cs-tree .active>a { background:var(--txc-grad); color:#0b1a34; border-color:rgba(249,115,22,.35); }

/* ====== Content Area ====== */
#digitz-docs .cs-content { background:var(--txc-card); border:1px solid var(--txc-line); border-radius:var(--rad-lg); box-shadow:var(--txc-shadow); padding:clamp(18px,2.6vw,28px); }
#digitz-docs .cs-section { padding:12px 0 18px; border-top:1px dashed var(--txc-line); }
#digitz-docs .cs-section:first-child { border-top:none; padding-top:0; }
#digitz-docs .cs-h2 { color:var(--txc-blue); margin:0 0 6px; font:800 clamp(18px,2.6vw,26px)/1.25 Poppins,system-ui; }
#digitz-docs .cs-h3 { color:var(--txc-ink); margin:8px 0 6px; font-weight:700; }
#digitz-docs .cs-subhead { color:var(--txc-mid); margin-top:0; }

/* ====== Metrics / Cards ====== */
#digitz-docs .cs-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:8px 0 12px; }
#digitz-docs .cs-metric { background:#fff; border:1px solid var(--txc-line); border-radius:12px; padding:12px; }
#digitz-docs .cs-metric strong { display:block; color:var(--txc-blue); font-size:12px; letter-spacing:.02em; }
#digitz-docs .cs-metric span { font-size:18px; font-weight:700; }
#digitz-docs .cs-card { background:#fff; border:1px solid var(--txc-line); border-radius:12px; padding:12px; box-shadow:0 6px 16px rgba(2,6,23,.04); }
#digitz-docs .cs-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:980px){ #digitz-docs .cs-metrics { grid-template-columns:1fr; } #digitz-docs .cs-grid-2 { grid-template-columns:1fr; } }

/* ====== Tables / Quotes / Lists ====== */
#digitz-docs .cs-table { width:100%; border-collapse:collapse; margin:8px 0; }
#digitz-docs .cs-table th, #digitz-docs .cs-table td { border:1px solid var(--txc-line); padding:10px; text-align:left; }
#digitz-docs .cs-quote { border-left:4px solid var(--txc-blue); padding:8px 12px; background:#f8fafc; border-radius:4px; font-style:italic; color:var(--txc-ink); }
#digitz-docs .cs-list { margin:8px 0 0 18px; }
#digitz-docs .cs-cta { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
#digitz-docs .cs-btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; font-weight:700; border-radius:10px; border:1px solid var(--txc-line); text-decoration:none; transition:transform .15s ease, box-shadow .15s ease; }
#digitz-docs .cs-btn--primary { background:var(--txc-grad); color:#0b1a34; border-color:rgba(249,115,22,.35); box-shadow:0 10px 22px rgba(249,115,22,.18); }
#digitz-docs .cs-btn:hover { transform:translateY(-2px); box-shadow:0 12px 26px rgba(2,6,23,.12); }

/* ====== Footer ====== */
#digitz-docs .txc-footer { margin-top:32px; border-top:1px solid var(--txc-line); padding:18px 0; color:#64748b; background:#fff; }

/* Ensure distinct caption vs detail in docs page */
.txc-docs .erp-card .erp-card__title{font-weight:800;color:var(--txc-blue);}

/* === Modules as small clickable cards (CSS-only, no JS changes) === */
.txc-modules-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.txc-modules-grid .mod-chip{
  display: block;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .08s ease;
  white-space: normal;
  text-align: left;
}

.txc-modules-grid .mod-chip:hover{
  transform: translateY(-1px);
  border-color: rgba(29,78,216,.35);
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.txc-modules-grid .mod-chip:focus-visible{
  outline: 2px solid rgba(59,130,246,.6);
  outline-offset: 2px;
}

.txc-modules-grid .mod-chip.is-active{
  border-color: rgba(29,78,216,.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2), 0 2px 10px rgba(0,0,0,.06);
  background: #f8fbff;
}


/* === Header 'DOCUMENTATION' font enlargement === */
.txc-docs-topbar .brand{
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
}


/* === Header 'DOCUMENTATION' font enlargement to 30px === */
.txc-docs-topbar .brand{
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
}


/* === FORCE: DOCUMENTATION header text enlarged to 30px === */
.txc-docs-topbar .brand,
.txc-docs-topbar .brand *,
.txc-docs-topbar span.brand,
.txc-docs-topbar h1,
.txc-docs-topbar .txc-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* === Adjustment: DOCUMENTATION header text resized to 25px === */
.txc-docs-topbar .brand,
.txc-docs-topbar .brand *,
.txc-docs-topbar span.brand,
.txc-docs-topbar h1,
.txc-docs-topbar .txc-title {
  font-size: 25px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* === Match DOCUMENTATION header to section title font and color === */
.txc-docs-topbar .brand,
.txc-docs-topbar .brand *,
.txc-docs-topbar span.brand,
.txc-docs-topbar h1,
.txc-docs-topbar .txc-title {
  font-size: 25px !important;
  font-weight: 700 !important;
  font-family: 'Poppins', system-ui, sans-serif !important;
  color: var(--txc-blue) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* === Align DOCUMENTATION text vertically with icon === */
.txc-docs-topbar .brand {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1.2 !important;
  margin-top: 2px !important;
}


/* === Remove 'DOCUMENTATION' text near logo; keep logo visible === */
.txc-docs-topbar .brand{
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;             /* no spacing since text removed */
  font-size: 0 !important;       /* hide any stray text nodes */
  line-height: 0 !important;
}
/* Keep the logo visible and sized normally */
.txc-docs-topbar .brand img,
.txc-docs-topbar .brand svg{
  display: inline-block !important;
  height: auto;
  width: auto;
  font-size: initial !important;
  line-height: normal !important;
}
/* Hide any non-image children explicitly (spans, headings, etc.) */
.txc-docs-topbar .brand > :not(img):not(svg){
  display: none !important;
}


/* === Hierarchical visual balance for documentation tree === */
#txc-tree h4 {
  font-size: 15px !important;
  font-weight: 600;
  color: #64748b !important; /* soft neutral gray-blue */
  margin: 8px 0 4px;
  text-transform: none;
}

#txc-tree ul li a {
  font-size: 13px;
  color: #334155;
}

#txc-tree ul li.active > a {
  color: var(--txc-blue);
  font-weight: 600;
}


/* === Content typography refresh (scoped to the documentation content area) === */
.cs-content, 
#txc-content {
  font-size: 16.5px;         /* common practice minimum ~16px; a touch larger for readability */
  line-height: 1.65;
  color: #0f172a;            /* slate-900 for strong readability */
}

@media (min-width: 1024px) {
  .cs-content, 
  #txc-content {
    font-size: 17px;         /* gently larger on wide screens */
  }
}

/* Headings scale — clear hierarchy, comfortable spacing */
#txc-content h1, .cs-content h1 { font-size: 28px; line-height: 1.25; margin: 0 0 12px; color: var(--txc-blue); }
#txc-content h2, .cs-content h2 { font-size: 24px; line-height: 1.3;  margin: 22px 0 10px; color: #0f172a; }
#txc-content h3, .cs-content h3 { font-size: 20px; line-height: 1.35; margin: 18px 0 8px;  color: #0f172a; }
#txc-content h4, .cs-content h4 { font-size: 17px; line-height: 1.4;  margin: 14px 0 6px;  color: #0f172a; }

/* Paragraph rhythm */
#txc-content p, .cs-content p {
  margin: 10px 0 14px;
}

/* Lists spacing */
#txc-content ul, #txc-content ol,
.cs-content ul, .cs-content ol {
  margin: 10px 0 16px 22px;
}
#txc-content li, .cs-content li { margin: 4px 0; }
#txc-content li > ul, #txc-content li > ol,
.cs-content li > ul, .cs-content li > ol { margin-top: 6px; margin-bottom: 6px; }

/* Links — accessible contrast, underline on hover */
#txc-content a, .cs-content a { color: var(--txc-blue); text-decoration: none; }
#txc-content a:hover, .cs-content a:hover { text-decoration: underline; }

/* Code/Pre */
#txc-content code, .cs-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13.5px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 2px 6px;
  border-radius: 6px;
}
#txc-content pre, .cs-content pre {
  font-size: 13.5px;
  background: #0b1220;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  border: 1px solid #111827;
}

/* Tables — readable and not cramped */
#txc-content table, .cs-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  margin: 14px 0 18px;
}
#txc-content th, .cs-content th {
  text-align: left;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}
#txc-content td, .cs-content td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
}
#txc-content tr:nth-child(even) td, .cs-content tr:nth-child(even) td {
  background: #fbfdff;
}

/* Blockquote — subtle accent */
#txc-content blockquote, .cs-content blockquote {
  margin: 14px 0;
  padding: 8px 12px;
  border-left: 4px solid var(--txc-blue);
  background: #f8fbff;
  color: #334155;
  border-radius: 6px;
}

/* Images */
#txc-content img, .cs-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Card body padding tweaks for breathing room */
.cs-card__body { 
  padding: 16px 18px;
}
