/* The user guide (/docs). Self-contained: Flyer's own Cairo, flat blue, hairlines. No external file. */
@font-face { font-family: Cairo; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/assets/adminex/fonts/cairo-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Cairo; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/assets/adminex/fonts/cairo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Cairo; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/assets/adminex/fonts/cairo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --blue: #0058f8; --blue-ink: #0a3fb0; --blue-soft: #eaf1ff;
    --ink: #0b1b3f; --text: #25324f; --muted: #5b6785; --line: #e1e7f2; --bg: #f6f8fc; --card: #fff;
    --note: #eaf1ff; --note-b: #0058f8; --warn: #fff6e5; --warn-b: #d98a00; --tip: #e8f7ee; --tip-b: #1f9d55; --imp: #fdebec; --imp-b: #d93a3a;
    --top: 62px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #eaf0ff; --text: #cdd7ee; --muted: #93a0c0; --line: #26324f; --bg: #0b1226; --card: #111a33; --blue-soft: #12224a; --blue: #4d8dff; --blue-ink: #8db4ff;
        --note: #12224a; --warn: #2b2310; --tip: #112a1c; --imp: #2e1417;
    }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 14px); }
body { margin: 0; font-family: Cairo, system-ui, sans-serif; font-size: 17px; line-height: 1.9; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.top { position: sticky; top: 0; z-index: 30; height: var(--top); background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1320px; margin: 0 auto; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; font-size: 18px; margin-inline-end: auto; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.top-actions { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); color: var(--ink); background: transparent; line-height: 1.6; }
.btn:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.btn-solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-ink); color: #fff; }
.menu-btn { display: none; font: inherit; font-weight: 700; background: var(--blue-soft); color: var(--blue); border: 0; border-radius: 10px; padding: 6px 14px; cursor: pointer; }

.shell { max-width: 1320px; margin: 0 auto; padding: 24px 20px 80px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: start; }
.toc { position: sticky; top: calc(var(--top) + 18px); max-height: calc(100vh - var(--top) - 36px); overflow-y: auto; padding-inline-end: 10px; font-size: 15px; line-height: 1.7; }
.toc::-webkit-scrollbar { width: 6px; } .toc::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.search { position: sticky; top: 0; background: var(--bg); padding-bottom: 10px; z-index: 2; }
.search input { width: 100%; font: inherit; font-size: 15px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.search-state { margin: 6px 4px 0; font-size: 13px; color: var(--muted); }
.toc-group { font-size: 13px; letter-spacing: 0; color: var(--muted); font-weight: 700; margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.toc-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.toc-list, .toc-sub { list-style: none; margin: 0; padding: 0; }
.toc-link { display: block; padding: 4px 10px; border-radius: 8px; color: var(--ink); font-weight: 700; }
.toc-link:hover { background: var(--blue-soft); text-decoration: none; }
.toc-item.active > .toc-link { background: var(--blue-soft); color: var(--blue); }
.toc-sub { display: none; margin: 2px 14px 8px 0; border-inline-start: 2px solid var(--line); }
.toc-item.active > .toc-sub { display: block; }
.toc-sub a { display: block; padding: 2px 12px; color: var(--muted); font-size: 14px; }
.toc-sub a:hover { color: var(--blue); text-decoration: none; }
.toc-item.hidden-by-search { display: none; }

.content { min-width: 0; }
.hero { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px 36px; margin-bottom: 28px; }
.hero h1 { margin: 0 0 8px; color: var(--ink); font-size: 34px; line-height: 1.4; }
.hero .lead { margin: 0 0 20px; font-size: 18px; color: var(--muted); }
.hero-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hero-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--bg); transition: transform .15s, border-color .15s, box-shadow .15s; }
.hero-card strong { color: var(--blue); font-size: 17px; }
.hero-card span { font-size: 14px; color: var(--muted); line-height: 1.7; }
.hero-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 8px 22px rgba(0, 88, 248, .12); }
.hero-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px 40px 26px; margin-bottom: 28px; }
.doc > h1 { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 3px solid var(--blue); color: var(--ink); font-size: 30px; line-height: 1.5; }
.doc-body > p:first-child { font-size: 18px; color: var(--muted); }
.doc-body h2 { margin: 42px 0 12px; color: var(--ink); font-size: 24px; line-height: 1.6; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc-body h3 { margin: 28px 0 8px; color: var(--ink); font-size: 19px; line-height: 1.7; }
.doc-body .anchor { margin-inline-start: -1.1em; padding-inline-end: .4em; color: var(--line); font-weight: 400; opacity: 0; text-decoration: none; }
.doc-body h2:hover .anchor, .doc-body h3:hover .anchor { opacity: 1; color: var(--blue); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-inline-start: 26px; }
.doc-body li { margin: 4px 0; }
.doc-body li > p { margin: 0 0 6px; }
.doc-body ol > li::marker { color: var(--blue); font-weight: 800; }
.doc-body strong { color: var(--ink); }
.doc-body code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--blue-soft); color: var(--blue-ink); padding: 1px 7px; border-radius: 6px; word-break: break-word; }
.doc-body pre { direction: ltr; text-align: left; margin: 0 0 18px; padding: 16px 18px; background: #0d1530; color: #e6edff; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.doc-body pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.doc-body table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.7; }
.doc-body th { background: var(--blue-soft); color: var(--ink); text-align: start; font-weight: 800; white-space: nowrap; }
.doc-body th, .doc-body td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body tr:last-child td { border-bottom: 0; }
.doc-body td code { white-space: nowrap; }

.callout { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; border-inline-start: 5px solid var(--note-b); background: var(--note); }
.callout > :last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn); border-color: var(--warn-b); }
.callout-tip { background: var(--tip); border-color: var(--tip-b); }
.callout-important { background: var(--imp); border-color: var(--imp-b); }
.shot { margin: 8px 0 22px; text-align: center; }
.shot img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(11, 27, 63, .10); background: #fff; }
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; }
mark { background: #ffe58a; color: #1a1a1a; border-radius: 3px; padding: 0 2px; }
.doc.hidden-by-search { display: none; }
.foot { text-align: center; color: var(--muted); font-size: 15px; padding: 20px 0 0; }
.to-top { position: fixed; bottom: 22px; inset-inline-start: 22px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 88, 248, .35); z-index: 25; }
.to-top[hidden] { display: none; }

@media (max-width: 640px) {
    .top-in { padding: 0 12px; gap: 8px; }
    .brand span { display: none; }
    .brand-logo { height: 26px; }
    .btn { padding: 4px 12px; font-size: 14px; }
    .menu-btn { padding: 5px 10px; font-size: 14px; }
}
@media (max-width: 980px) {
    .shell { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
    .menu-btn { display: inline-block; }
    .toc { position: fixed; inset: var(--top) 0 0 0; z-index: 40; max-height: none; background: var(--bg); padding: 16px 20px 40px; transform: translateX(100%); visibility: hidden; transition: transform .2s, visibility .2s; }
    html[dir="rtl"] .toc.open { transform: none; visibility: visible; }
    .top-actions .btn-ghost { display: none; }
    .doc { padding: 24px 20px 18px; border-radius: 16px; }
    .hero { padding: 24px 20px; }
    .hero h1 { font-size: 26px; }
    .doc > h1 { font-size: 24px; }
    .doc-body h2 { font-size: 21px; }
    body { font-size: 16px; }
}
@media print {
    body { background: #fff; font-size: 12pt; }
    .top, .toc, .to-top, .hero-links, .pager, .menu-btn { display: none !important; }
    .shell { display: block; padding: 0; max-width: none; }
    .doc, .hero { border: 0; padding: 0; margin: 0 0 24pt; break-before: page; }
    .hero { break-before: auto; }
    a { color: #000; }
}
