/* Documentation site (erp-ma.com/docs), on top of site.css */
.dsite { background: #fff; color: var(--ink); }
.dnav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dnav-in { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.dbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.dbrand img { border-radius: 9px; }
.dbrand span { display: flex; flex-direction: column; line-height: 1.15; }
.dbrand small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.dsw { display: flex; gap: 4px; margin-inline-start: 8px; }
.dsw a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; }
.dsw a:hover { background: var(--bg-soft); color: var(--ink); }
.dsw a[aria-current] { background: var(--grad); color: #fff; }
.dsearch { position: relative; flex: 1; max-width: 460px; margin-inline-start: auto; }
.dsearch input { width: 100%; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); font: inherit; color: var(--ink); }
.dsearch input:focus { outline: 2px solid var(--purple); outline-offset: 1px; background: #fff; }
.dsearch.big { max-width: 560px; margin: 26px 0 0; }
.dsearch.big input { padding: 16px 20px; font-size: 1.08rem; border-radius: 16px; background: #fff; }
.dres { position: absolute; inset-inline: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(16, 12, 52, .16); max-height: 60vh; overflow: auto; z-index: 60; }
.dres a { display: block; padding: 11px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.dres a:last-child { border-bottom: 0; }
.dres a:hover, .dres a.on { background: var(--bg-soft); }
.dres b { display: block; font-size: .98rem; }
.dres small { color: var(--muted); font-size: .8rem; }
.dres .none { padding: 16px; color: var(--muted); }
.dsite-link { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; flex: none; }
.dnav-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.dnav-menu span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

.dlayout { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 290px minmax(0, 1fr) 230px; gap: 0 36px; padding: 0 20px; align-items: start; }
.dside { position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 68px); overflow: auto; padding: 24px 0 40px; border-inline-end: 1px solid var(--line); padding-inline-end: 18px; }
.dside-head { display: block; text-decoration: none; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--navy) url("/assets/background.svg") center / cover no-repeat; color: #F1ECFF; border-bottom: 3px solid var(--cyan); }
.dside-head b { display: block; font-size: 1.1rem; color: var(--cyan); }
.dside-head small { color: #C4B5FD; font-size: .8rem; }
.dside details { margin: 2px 0; }
.dside summary { cursor: pointer; padding: 9px 10px; border-radius: 10px; font-weight: 800; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.dside summary::-webkit-details-marker { display: none; }
.dside summary::after { content: "‹"; color: var(--muted); transition: transform .15s; }
.dside details[open] > summary::after { transform: rotate(-90deg); }
.dside summary:hover { background: var(--bg-soft); }
.dside ul { list-style: none; margin: 2px 0 8px; padding: 0; padding-inline-start: 10px; border-inline-start: 2px solid var(--line); }
.dside li a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: #475569; font-size: .92rem; font-weight: 600; }
.dside li a:hover { background: var(--bg-soft); color: var(--ink); }
.dside li a[aria-current] { background: #EFE9FF; color: #5B21D6; font-weight: 800; }

.dmain { min-width: 0; padding: 28px 0 60px; }
.dcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.dcrumb a { color: var(--muted); text-decoration: none; }
.dcrumb a:hover { color: var(--ink); }
.dcrumb i { font-style: normal; opacity: .6; }
.darticle { font-size: 1.04rem; line-height: 1.95; max-width: 780px; }
.darticle h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 900; margin: 0 0 18px; }
.darticle h2 { font-size: 1.45rem; font-weight: 900; margin: 38px 0 12px; padding-top: 6px; scroll-margin-top: 84px; }
.darticle h3 { font-size: 1.15rem; font-weight: 800; margin: 26px 0 8px; scroll-margin-top: 84px; }
.darticle p { margin: 0 0 14px; }
.darticle ul, .darticle ol { padding-inline-start: 24px; margin: 0 0 16px; }
.darticle li { margin: 4px 0; }
.darticle a { color: #5B21D6; font-weight: 700; text-underline-offset: 3px; }
.darticle code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: .9em; direction: ltr; unicode-bidi: embed; }
.darticle pre { background: var(--navy); color: #F1ECFF; border-radius: 12px; padding: 16px; overflow: auto; direction: ltr; text-align: left; }
.darticle pre code { background: none; border: 0; padding: 0; color: inherit; }
.darticle img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(16, 12, 52, .08); margin: 8px 0 18px; }
.tbl { overflow-x: auto; margin: 6px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.darticle table { border-collapse: collapse; width: 100%; font-size: .96rem; }
.darticle th { background: var(--bg-soft); text-align: start; font-weight: 800; }
.darticle th, .darticle td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.darticle tr:last-child td { border-bottom: 0; }
.admonition { border-radius: 12px; padding: 12px 16px; margin: 18px 0; border: 1px solid; border-inline-start-width: 5px; }
.admonition p { margin: 0 0 6px; }
.admonition p:last-child { margin-bottom: 0; }
.admonition-title { font-weight: 900; margin-bottom: 4px !important; }
.admonition.note { background: #EFF6FF; border-color: #BFDBFE; border-inline-start-color: #3B82F6; }
.admonition.tip { background: #ECFDF5; border-color: #A7F3D0; border-inline-start-color: #10B981; }
.admonition.warning { background: #F7F5FF; border-color: #FDE68A; border-inline-start-color: #F59E0B; }
.admonition.danger { background: #FEF2F2; border-color: #FECACA; border-inline-start-color: #EF4444; }
.dpn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 780px; margin: 38px 0 0; }
.dpn a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.dpn a:hover { border-color: var(--purple); background: #F7F5FF; }
.dpn small { display: block; color: var(--muted); font-size: .8rem; }
.dpn span { font-weight: 800; }
.dpn-next { text-align: start; }
.dpn-prev { text-align: end; }
.dhelp { max-width: 780px; margin: 26px 0 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; background: var(--bg-soft); border-radius: 14px; }
.dhelp b { font-weight: 900; }
.dhelp span { color: var(--muted); flex: 1; }
.dtoc { position: sticky; top: 68px; align-self: start; padding: 30px 0; max-height: calc(100vh - 68px); overflow: auto; font-size: .88rem; }
.dtoc b { display: block; margin-bottom: 8px; font-weight: 900; }
.dtoc ul { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.dtoc a { display: block; padding: 5px 12px; text-decoration: none; color: var(--muted); font-weight: 600; }
.dtoc a:hover, .dtoc a.on { color: #5B21D6; }
.dtoc .sub a { padding-inline-start: 26px; font-weight: 500; }

.dhero { background: var(--navy) url("/assets/background.svg") center / cover no-repeat; color: #F1ECFF; padding: 56px 20px 64px; }
.dhero-in { max-width: 1100px; margin: 0 auto; }
.dpill { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(34, 211, 238, .14); color: var(--cyan); font-weight: 800; font-size: .85rem; }
.dhero h1 { color: #fff; letter-spacing: -.01em; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 900; margin: 14px 0 10px; }
.dhero p { color: #C4B5FD; max-width: 640px; margin: 0; font-size: 1.1rem; }
.dhero-cta { margin-top: 22px; }
.dhome { max-width: 1100px; margin: 0 auto; padding: 36px 20px 70px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.dcard { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; }
.dcard h2 { font-size: 1.1rem; font-weight: 900; margin: 0 0 8px; }
.dcard ul { list-style: none; margin: 0; padding: 0; }
.dcard li a { display: block; padding: 5px 0; text-decoration: none; color: #475569; font-weight: 600; }
.dcard li a:hover { color: #5B21D6; }
.dprods { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.dprod { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); background: #fff; box-shadow: 0 10px 30px rgba(16, 12, 52, .06); }
.dprod:hover { border-color: var(--purple); transform: translateY(-2px); }
.dprod b { font-size: 1.6rem; font-weight: 900; }
.dprod span { color: var(--muted); }
.dprod i { font-style: normal; font-weight: 800; color: #5B21D6; }
.dfoot { border-top: 1px solid var(--line); background: var(--bg-soft); }
.dfoot-in { max-width: 1320px; margin: 0 auto; padding: 22px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.dfoot a { color: var(--muted); }

@media (max-width: 1100px) { .dlayout { grid-template-columns: 270px minmax(0, 1fr); } .dtoc { display: none; } }
@media (max-width: 800px) {
  .dnav-in { flex-wrap: wrap; }
  .dnav-menu { display: flex; }
  .dsw { order: 5; width: 100%; margin: 0; }
  .dsearch { order: 4; flex-basis: 100%; max-width: none; }
  .dsite-link { display: none; }
  .dlayout { grid-template-columns: minmax(0, 1fr); }
  .dside { display: none; position: static; max-height: none; border: 0; padding: 12px 0; }
  .dside.open { display: block; }
  .dpn { grid-template-columns: 1fr; }
}
/* site.css styles <details> as cards (FAQ): the guide menu wants them plain */
.dside details { border: 0; background: none; box-shadow: none; padding: 0; border-radius: 0; }
.dside summary { padding: 9px 10px; }

/* MA Solutions identity: navy, purple to cyan gradient, Cairo. Each product keeps its own accent. */
.dbrand b { font-weight: 900; letter-spacing: .01em; }
.dbrand b em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dnav { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.dnav::after { content: ""; display: block; height: 3px; background: var(--grad); }
.dprod[data-p="gold"] b { color: #B7791F; }
.dprod[data-p="erp"] b { color: var(--purple); }
.dprod::before { content: ""; display: block; width: 46px; height: 5px; border-radius: 5px; background: var(--grad); margin-bottom: 6px; }
.dprod[data-p="gold"]::before { background: linear-gradient(90deg, #FDE68A, #F59E0B); }
.dside-head b { color: #fff; }
.dside-head[data-p="gold"] b { color: #FBBF24; }
.dhero .dpill { border: 1px solid rgba(34, 211, 238, .35); }
.dhero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #C4B5FD; font-weight: 800; }
.dhero-brand img { border-radius: 12px; }
.dfoot { background: var(--navy); border-top: 3px solid transparent; border-image: var(--grad) 1; }
.dfoot-in, .dfoot a { color: #C4B5FD; }
.dfoot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; }
.dfoot-brand img { border-radius: 9px; }
.dfoot-brand small { display: block; color: #C4B5FD; font-weight: 600; font-size: .78rem; }
.dres a:hover, .dres a.on { background: #F1ECFF; }
.dpn a:hover { border-color: var(--purple); background: #F7F5FF; }
.dtoc a:hover, .dtoc a.on { color: var(--purple); }
.darticle a { color: var(--purple); }
.dside li a[aria-current] { background: #EFE9FF; color: #4C1DB8; }
.dsearch input:focus { outline-color: var(--purple); }
