/* هوية مزرعة روز: وردي ترابي + أخضر زيتوني */
:root {
  --rose: #b83a5b; --rose-d: #8f2945; --rose-l: #f9e6eb;
  --leaf: #4e6b3a; --leaf-l: #e7efdf;
  --sand: #faf6f1; --card: #ffffff; --ink: #2b2226; --muted: #7d6f74; --line: #ece3e1;
  --ok: #2f7d4f; --ok-l: #e1f2e7; --warn: #b7791f; --warn-l: #fbf0dc; --bad: #c0392b; --bad-l: #fbe3e0; --info: #2c6aa0; --info-l: #e2eef8;
  --radius: 14px; --shadow: 0 1px 2px rgba(60,30,40,.06), 0 4px 14px rgba(60,30,40,.06);
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sand); color: var(--ink); font-size: 15px; line-height: 1.6; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
a { color: var(--rose); }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; padding: .6em .75em; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-l); }
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .25em; font-weight: 500; }
.field { margin-bottom: .85rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .55em 1.1em; border-radius: 10px; border: 1px solid transparent;
  background: var(--rose); color: #fff; font-weight: 700; cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--rose-d); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: transparent; color: var(--rose); border-color: var(--rose-l); } .btn.ghost:hover { background: var(--rose-l); }
.btn.leaf { background: var(--leaf); } .btn.leaf:hover { background: #3d5530; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad-l); } .btn.danger:hover { background: var(--bad-l); }
.btn.sm { padding: .3em .7em; font-size: .85rem; border-radius: 8px; }
.btn.block { width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.badge { display: inline-block; padding: .1em .6em; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--line); color: var(--ink); white-space: nowrap; }
.b-confirmed, .b-ok, .b-published { background: var(--ok-l); color: var(--ok); }
.b-pending_deposit, .b-draft, .b-warn { background: var(--warn-l); color: var(--warn); }
.b-receipt_received, .b-scheduled, .b-info { background: var(--info-l); color: var(--info); }
.b-cancelled, .b-expired, .b-failed, .b-bad { background: var(--bad-l); color: var(--bad); }
.b-completed { background: #eee; color: #555; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hidden { display: none !important; }
.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 12px;
  z-index: 1000; box-shadow: var(--shadow); max-width: 90vw; animation: pop .2s ease;
}
.toast.err { background: var(--bad); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--rose); }
.logo svg { width: 30px; height: 30px; }
