/* نفس هوية تطبيق رفع الملفات البصرية (خلفية داكنة + لون برتقالي مميز) لتناسق المظهر بين تطبيقات الإدارة الداخلية */
:root { color-scheme: dark; }
* { box-sizing: border-box; min-width: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh; background: #0b0d10; color: #e8e8ea;
  font-family: -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  padding-bottom: 40px;
}
a { color: #d97a3f; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.center-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }

.brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.brand img { width: 96px; height: 96px; object-fit: contain; }

.card {
  background: #15181d; border: 1px solid #262b33; border-radius: 14px;
  padding: 26px; width: 100%; max-width: 440px; margin-top: 20px;
}
.card.wide { max-width: 780px; }

h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 15px; color: #9aa3af; margin: 0 0 18px; font-weight: 400; }

label { display: block; font-size: 13px; color: #9aa3af; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=date], textarea {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid #2c323b;
  background: #0f1114; color: #e8e8ea; font-size: 14px; font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: #d97a3f; }

.warn { max-width: 440px; width: 100%; margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  background: #26200f; border: 1px solid #4a3a17; color: #e8c77a; font-size: 12px; text-align: center; line-height: 1.6; }
.qr { text-align: center; margin: 16px 0; }
.qr svg { max-width: 220px; width: 100%; height: auto; border-radius: 8px; background: #fff; padding: 12px; }
code { direction: ltr; unicode-bidi: embed; font-family: ui-monospace, monospace; background: #0f1114; padding: 2px 6px; border-radius: 4px; }
.contact { max-width: 440px; width: 100%; margin-top: 14px; text-align: center; font-size: 12px; color: #7d858f; }
.contact a { color: #9aa3af; text-decoration: none; }
.contact a:hover { color: #d97a3f; }

button, .btn {
  margin-top: 18px; padding: 12px 18px; border-radius: 8px; border: none;
  background: #d97a3f; color: #16110b; font-weight: 700; font-size: 14px; cursor: pointer;
  text-align: center; display: inline-block; text-decoration: none;
}
button:hover, .btn:hover { background: #e5893f; text-decoration: none; }
button.secondary, .btn.secondary { background: #262b33; color: #e8e8ea; }
button.secondary:hover, .btn.secondary:hover { background: #2f3540; }
button.danger, .btn.danger { background: #7a2f2f; color: #fdeaea; }
button.small, .btn.small { margin-top: 0; padding: 7px 12px; font-size: 12.5px; }
button.full { width: 100%; }

.err { background: #3a1f1f; border: 1px solid #5c2a2a; color: #ffb3b3; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 14px; }
.ok { background: #1f3a24; border: 1px solid #2a5c33; color: #b3ffbe; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 14px; }
.flash-wrap { max-width: 780px; margin: 14px auto 0; padding: 0 16px; }

.topbar { display: flex; align-items: center; justify-content: space-between; max-width: 900px; margin: 0 auto; padding: 18px 16px 8px; }
.topbar .logo-row { display: flex; align-items: center; gap: 10px; }
.topbar .logo-row img { width: 34px; height: 34px; object-fit: contain; }
.topbar .logo-row span { font-weight: 700; font-size: 15px; }
.topbar nav { display: flex; gap: 14px; font-size: 13.5px; align-items: center; }
.topbar nav a.active { color: #e8e8ea; font-weight: 700; }

.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
th, td { text-align: right; padding: 10px 8px; border-bottom: 1px solid #23272e; white-space: nowrap; }
th { color: #9aa3af; font-weight: 500; }
tr:hover td { background: #171b21; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: 11px; background: #262b33; }
.muted { color: #7d858f; font-size: 13px; }
.total-preview { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: #0f1114; border: 1px solid #2c323b; font-size: 14px; }
.total-preview b { color: #d97a3f; font-size: 17px; }

.bank-card { background: #0f1114; border: 1px solid #2c323b; border-radius: 10px; padding: 14px; margin-top: 12px; }
.bank-card.hidden-acc { opacity: 0.5; }
.bank-card .row { margin-bottom: 4px; }
.bank-fields { font-size: 12.5px; color: #c3c8cf; line-height: 1.9; }
.bank-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.empty { text-align: center; color: #7d858f; padding: 40px 10px; }

.section-title { font-size: 15px; font-weight: 700; margin: 26px 0 4px; padding-top: 18px; border-top: 1px solid #23272e; }
.section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }
