:root {
  --ink: #17211c;
  --muted: #64706a;
  --line: #dce4df;
  --brand: #0f6b4f;
  --danger: #b3261e;
  --warn: #9a6700;
  --bg: #f5f7f5;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Tahoma, Arial, sans-serif; background: var(--bg); color: var(--ink); direction: rtl; }
a { color: var(--brand); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
aside { background: #0d3328; color: #fff; padding: 22px; }
aside h1 { font-size: 18px; margin: 0 0 24px; line-height: 1.6; }
aside nav { display: grid; gap: 8px; }
aside a { color: #e9fff5; text-decoration: none; padding: 10px 12px; border-radius: 6px; }
aside a:hover { background: rgba(255,255,255,.1); }
main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar strong { font-size: 20px; }
.content { padding: 24px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card, .panel, .table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.login-card { width: min(420px, 100%); }
label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 700; }
input, select, textarea, button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
button, .btn { display: inline-block; width: auto; background: var(--brand); color: #fff; border: 0; text-decoration: none; cursor: pointer; }
.btn.secondary { background: #eef3ef; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.warn { background: var(--warn); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.card strong { display: block; font-size: 30px; color: var(--brand); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: right; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.flash, .error { margin: 16px 24px 0; padding: 12px; border-radius: 6px; background: #eef8f1; color: #175c32; }
.flash.error, .error { background: #fdeaea; color: var(--danger); }
.pagination { display: flex; gap: 8px; margin-top: 16px; }
.muted { color: var(--muted); }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  aside { position: static; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .table-wrap { overflow-x: auto; }
}

