/* ==========================================================
   نظام ندر الأولى العقارية — الهوية البصرية
   برتقالي ندر + رمادي فحمي + أزرق رمادي (من الشعار)
   ========================================================== */
:root {
  --brand: #e98e23;
  --brand-600: #cf7710;
  --brand-50: #fdf3e7;
  --brand-100: #fbe3c6;
  --ink: #2f2f31;
  --charcoal: #4a4a4c;
  --charcoal-2: #3b3b3d;
  --slate: #8ea2b2;
  --slate-50: #eef2f5;
  --bg: #f4f4f2;
  --card: #ffffff;
  --line: #e7e5e1;
  --line-2: #f0eeeb;
  --muted: #78787c;
  --muted-2: #a3a3a7;
  --ok: #2e9a68;
  --ok-50: #e7f5ee;
  --info: #3f74a3;
  --info-50: #e9f0f7;
  --warn: #c98a06;
  --warn-50: #fdf5e1;
  --bad: #c8463d;
  --bad-50: #fbecea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(30, 30, 30, .05), 0 4px 16px rgba(30, 30, 30, .05);
  --shadow-lg: 0 20px 50px rgba(20, 20, 20, .18);
  --font: 'Tajawal', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --sidebar: 264px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.hidden { display: none !important; }
.grow { flex: 1; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ---------- الشاشة الرئيسية ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  background: var(--charcoal-2);
  color: #e9e9ea;
  position: fixed; inset: 0 0 0 auto;
  display: flex; flex-direction: column;
  z-index: 30;
  transition: transform .25s ease;
}
.sidebar::after { /* شريط الهوية السفلي */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(to left, var(--charcoal) 50%, var(--brand) 50%);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.brand img { width: 44px; height: 46px; }
.brand b { display: block; font-size: 18px; letter-spacing: .2px; color: #fff; }
.brand span { font-size: 12px; color: var(--slate); }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px 24px; }
.nav h6 { margin: 16px 12px 6px; font-size: 11.5px; font-weight: 700; color: #8d8d92; letter-spacing: .3px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 2px 0;
  border-radius: 9px; color: #d6d6d8; font-size: 14.5px; font-weight: 500;
  text-decoration: none; position: relative;
}
.nav a svg { width: 19px; height: 19px; opacity: .8; flex: none; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(233, 142, 35, .3); }
.nav a.active svg { opacity: 1; }
.nav .count { margin-inline-start: auto; background: var(--bad); color: #fff; font-size: 11px; border-radius: 20px; padding: 0 7px; line-height: 19px; font-weight: 700; }

.main { flex: 1; margin-inline-start: 0; margin-right: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 66px; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 20px; margin: 0; font-weight: 800; }
.topbar .crumbs { font-size: 13px; color: var(--muted); }
.menu-btn { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; position: relative; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center; font-weight: 800; border: 1px solid var(--brand-100);
}
.user-chip .who b { display: block; font-size: 14px; line-height: 1.2; }
.user-chip .who span { font-size: 12px; color: var(--muted); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 50;
}
.dropdown button { display: flex; gap: 10px; width: 100%; text-align: start; padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.dropdown button:hover { background: var(--bg); }

.content { padding: 26px 28px 60px; max-width: 1500px; width: 100%; }
@media (max-width: 980px) {
  .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-right: 0; }
  .menu-btn { display: inline-flex; }
  .content { padding: 18px 16px 50px; }
  .topbar { padding: 0 16px; }
  .user-chip .who { display: none; }
}

/* ---------- البطاقات ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { margin: 0; font-size: 16px; font-weight: 800; }
.card-b { padding: 18px 20px; }
.card-b.flush { padding: 0; }
.tag-title { /* عنوان على طريقة البروشور */
  display: inline-flex; align-items: stretch; font-weight: 800; font-size: 15px; color: #fff;
}
.tag-title span { background: var(--brand); padding: 4px 14px; }
.tag-title::before { content: ''; width: 6px; background: var(--charcoal); }

.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .label { font-size: 13.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: 25px; font-weight: 800; margin-top: 6px; letter-spacing: -.3px; }
.kpi .value small { font-size: 13px; font-weight: 600; color: var(--muted); margin-inline-start: 4px; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; position: absolute; left: 16px; top: 16px; }
.kpi .ico svg { width: 19px; height: 19px; }
.kpi.accent { background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-2) 100%); color: #fff; border: 0; }
.kpi.accent .label, .kpi.accent .sub, .kpi.accent .value small { color: #c9c9cc; }
.kpi.kpi-brand { background: linear-gradient(135deg, #f19a33 0%, var(--brand-600) 100%); color: #fff; border: 0; }
.kpi.kpi-brand .label, .kpi.kpi-brand .sub, .kpi.kpi-brand .value small { color: #fff3e3; }
.tone-ok { background: var(--ok-50); color: var(--ok); }
.tone-info { background: var(--info-50); color: var(--info); }
.tone-warn { background: var(--warn-50); color: var(--warn); }
.tone-bad { background: var(--bad-50); color: var(--bad); }
.tone-brand { background: var(--brand-50); color: var(--brand-600); }
.tone-light { background: rgba(255, 255, 255, .14); color: #fff; }

.progress { height: 8px; background: var(--line-2); border-radius: 10px; overflow: hidden; display: flex; }
.progress > i { display: block; height: 100%; }
.bar-sold { background: var(--brand); }
.bar-res { background: var(--info); }
.bar-av { background: var(--ok); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: #d4d1cb; background: #fbfaf9; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(233, 142, 35, .25); }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.dark { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn.dark:hover { background: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-50); border-color: #f0c9c5; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ---------- الشارات ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-available, .b-paid, .b-completed, .b-valid, .b-issued, .b-accepted, .b-active-user { background: var(--ok-50); color: var(--ok); }
.b-reserved, .b-reservation, .b-sent, .b-partial { background: var(--info-50); color: var(--info); }
.b-sold, .b-sale, .b-active { background: var(--brand-50); color: var(--brand-600); }
.b-pending, .b-draft, .b-expired { background: var(--line-2); color: var(--muted); }
.b-overdue, .b-cancelled, .b-void, .b-rejected, .b-inactive { background: var(--bad-50); color: var(--bad); }
.b-warn { background: var(--warn-50); color: var(--warn); }

/* ---------- الجداول ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.search { position: relative; min-width: 240px; flex: 1; max-width: 380px; }
.search svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--muted-2); }
.search input { padding-right: 38px !important; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th {
  text-align: start; font-weight: 700; color: var(--muted); font-size: 12.5px;
  padding: 11px 14px; background: #fafaf8; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: #fcfaf7; }
table.t tfoot td { background: #fafaf8; font-weight: 800; border-top: 1px solid var(--line); }
table.t .actions { text-align: end; white-space: nowrap; }
table.t.compact td, table.t.compact th { padding: 8px 12px; }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; color: var(--muted-2); margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--brand-600); border-color: var(--brand); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* ---------- النماذج ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form.cols1 { grid-template-columns: 1fr; }
@media (max-width: 700px) { .form, .form.cols3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 13px; font-weight: 700; color: var(--charcoal); }
.field > label .req { color: var(--bad); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, input.input, select.input, textarea.input, .toolbar input, .toolbar select {
  height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.toolbar select, .toolbar input[type=date] { width: auto; }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(233, 142, 35, .15); }
.input[readonly] { background: var(--bg); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.form-section { grid-column: 1 / -1; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 800; font-size: 14px; color: var(--charcoal); display: flex; align-items: center; gap: 8px; }
.form-section::before { content: ''; width: 4px; height: 16px; background: var(--brand); border-radius: 2px; }

/* حقول إضافية */
.kv-row { display: grid; grid-template-columns: 1fr 1.6fr 34px; gap: 8px; margin-bottom: 8px; }

/* ---------- النوافذ ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(25, 25, 27, .45); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto;
  animation: fade .15s ease;
}
.modal { background: var(--card); border-radius: 16px; width: 100%; max-width: 720px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal.wide { max-width: 980px; }
.modal.narrow { max-width: 460px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-h h3 { margin: 0; font-size: 18px; font-weight: 800; }
.modal-b { padding: 20px 22px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line-2); background: #fbfbfa; border-radius: 0 0 16px 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

.toasts { position: fixed; bottom: 22px; left: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--charcoal-2); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; min-width: 260px; border-inline-start: 4px solid var(--ok); animation: pop .2s ease; }
.toast.err { border-color: var(--bad); }

/* ---------- قائمة البحث المنسدلة ---------- */
.combo { position: relative; }
.combo-list {
  position: absolute; top: calc(100% + 4px); right: 0; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 280px; overflow-y: auto; z-index: 120;
}
.combo-list div { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.combo-list div:hover, .combo-list div.on { background: var(--brand-50); }
.combo-list div small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- صفحة التفاصيل ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.page-head .meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; display: flex; gap: 14px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; font-size: 14px; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; }
.money-box { padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.money-box .l { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.money-box .v { font-size: 20px; font-weight: 800; margin-top: 2px; }

/* الملاحظات */
.note { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 10px; background: #fdfdfc; }
.note.pinned { border-color: var(--brand-100); background: var(--brand-50); }
.note .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.note p { margin: 0; white-space: pre-wrap; }

/* خريطة القطع */
.plots { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 7px; }
.plot {
  border-radius: 9px; padding: 8px 4px; text-align: center; cursor: pointer; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; transition: transform .12s, box-shadow .12s; line-height: 1.25;
}
.plot small { display: block; font-size: 10.5px; font-weight: 600; opacity: .8; }
.plot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plot.available { background: var(--ok-50); color: var(--ok); border-color: #cbe9d9; }
.plot.reserved { background: var(--info-50); color: var(--info); border-color: #cddcea; }
.plot.sold { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-100); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }

/* المشروعات */
.proj-card { padding: 18px 20px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.proj-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.proj-card h4 { margin: 0 0 4px; font-size: 17px; }
.proj-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 14px 0 12px; }
.proj-stats b { display: block; font-size: 20px; }
.proj-stats span { font-size: 12px; color: var(--muted); }

/* الرسوم */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.chart-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.chart-bars .b { width: 100%; max-width: 34px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; transition: background .15s; }
.chart-bars .b.alt { background: var(--charcoal); }
.chart-bars .col:hover .b { background: var(--brand-600); }
.chart-bars .col:hover .b.alt { background: var(--ink); }
.chart-bars .m { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart-bars .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; white-space: nowrap; display: none; z-index: 2; }
.chart-bars .col:hover .tip { display: block; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 180px; }
.donut-legend .it { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.donut-legend .it i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.donut-legend .it b { margin-inline-start: auto; }

.alert { padding: 12px 16px; border-radius: 10px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.alert svg { width: 19px; flex: none; margin-top: 2px; }
.alert.warn { background: var(--warn-50); color: #8a5d00; }
.alert.info { background: var(--info-50); color: #2c5679; }
.alert.bad { background: var(--bad-50); color: #8f2c25; }

.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.list-item:last-child { border-bottom: 0; }
.list-item.click { cursor: pointer; }
.list-item.click:hover { background: #fcfaf7; }

.perm-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.perm-group h5 { margin: 0 0 8px; font-size: 13.5px; }
.perm-group .check { display: flex; margin: 5px 0; font-weight: 500; }

/* شاشة الدخول */
.login {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
}
.login-art {
  background: linear-gradient(160deg, rgba(59, 59, 61, .94), rgba(47, 47, 49, .97)), url('../img/pattern.svg');
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.login-art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(to left, var(--charcoal) 50%, var(--brand) 50%); }
.login-art h2 { font-size: 40px; line-height: 1.3; margin: 0; font-weight: 800; }
.login-art h2 em { font-style: normal; color: var(--brand); }
.login-art p { color: #c4c4c8; font-size: 17px; max-width: 460px; }
.login-art .slogan { display: inline-flex; font-weight: 800; }
.login-art .slogan span:first-child { background: var(--brand); padding: 6px 14px; }
.login-art .slogan span:last-child { background: #1f1f21; padding: 6px 14px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.login-form form { width: 100%; max-width: 380px; }
.login-form img { width: 260px; max-width: 100%; display: block; margin: 0 auto 28px; }
.login-form h3 { margin: 0 0 4px; font-size: 22px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } }

.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 25; }

@media print { .sidebar, .topbar, .no-print { display: none !important; } .main { margin: 0; } }
table.t td { white-space: nowrap; }
table.t td .small, table.t td.wrap { white-space: normal; }
.money-box .v { font-size: 15px !important; word-break: break-word; }
