:root { --a-bg: #f4f6fa; --a-panel: #fff; --a-line: #e5e8f0; --a-ink: #14161f; --a-mut: #6f7488; --a-teal: #10816e; }
* { -webkit-tap-highlight-color: transparent; }
body { background: var(--a-bg); color: var(--a-ink); font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
.a-shell { display: flex; min-height: 100vh; }
.a-side { width: 216px; flex: 0 0 216px; background: #0f1a2b; color: #cfd6e4; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.a-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; padding: 4px 8px 18px; }
.a-brand i { color: var(--a-teal); }
.a-nav { display: flex; flex-direction: column; gap: 4px; }
.a-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #cfd6e4; text-decoration: none; font-size: 14px; font-weight: 600; }
.a-nav-item i { width: 18px; text-align: center; opacity: .9; }
.a-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.a-nav-item.on { background: var(--a-teal); color: #fff; }
.a-main { flex: 1 1 auto; padding: 18px 20px 40px; min-width: 0; }
.a-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.a-top h1 { font-size: 20px; font-weight: 800; margin: 0; }
.a-top-tools { display: flex; align-items: center; gap: 10px; }
.a-user { font-size: 13px; color: var(--a-mut); display: inline-flex; align-items: center; gap: 6px; }
.a-card { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 14px; padding: 14px 16px; height: 100%; }
.a-card-k { font-size: 12.5px; color: var(--a-mut); font-weight: 600; }
.a-card-v { font-size: 26px; font-weight: 800; margin: 4px 0 2px; }
.a-card-s { font-size: 11.5px; color: var(--a-mut); }
.a-panel { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.a-panel-h { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.a-list { list-style: none; margin: 0; padding: 0; }
.a-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--a-line); font-size: 13px; }
.a-list li:last-child { border-bottom: 0; }
.a-list b { font-weight: 700; color: var(--a-mut); }
.table > :not(caption) > * > * { padding: .45rem .5rem; }
.a-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #0f1a2b; }
.a-login { width: 100%; max-width: 360px; padding: 16px; }
.a-login-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.a-login-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 18px; }
.a-login-brand i { color: var(--a-teal); }
body.a-dark { --a-bg: #0e1520; --a-panel: #16202e; --a-line: #24303f; --a-ink: #e7ecf5; --a-mut: #93a0b4; }
body.a-dark .form-control, body.a-dark .form-select { background: #101a26; border-color: #24303f; color: #e7ecf5; }
body.a-dark .table { color: #e7ecf5; }
body.a-dark .btn-outline-secondary { color: #cfd6e4; border-color: #35455a; }
@media (max-width: 860px) {
  .a-shell { flex-direction: column; }
  .a-side { width: 100%; flex: none; height: auto; position: static; padding: 12px; }
  .a-nav { flex-direction: row; flex-wrap: wrap; }
  .a-nav-item { padding: 8px 10px; font-size: 13px; }
}
