/* ============================================
   Taiba Enterprise (TPF) — ثيمات الفئات
   App 100 | يُطبَّق عبر CSS Classes بمستوى كل صفحة
   ============================================ */

/* ====== ثيم الإداريين (1900-1999) ====== */
.tp-theme-admin {
  --tp-primary: #1a2332;
  --tp-accent: #d4af37;
  --tp-bg: #e8eaed;
  --tp-text: #1a2332;
  --tp-title: #2c5282;
  --tp-region-bg: #fbf8ef;
}
.tp-theme-admin.t-PageBody { background: var(--tp-bg) !important; }
.tp-theme-admin .t-Region { background: var(--tp-region-bg) !important; border-top: 3px solid var(--tp-accent); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tp-theme-admin h1, .tp-theme-admin h2, .tp-theme-admin h3 { color: var(--tp-primary); }
.tp-theme-admin .t-Region-title, .tp-theme-admin .t-Region-headerItems { color: var(--tp-title) !important; font-weight: 700; }
.tp-theme-admin .t-Button--success { background: #1a7a4a; border-color: #1a7a4a; color: #fff; }
.tp-theme-admin .t-Button--success:hover { background: #145a37; }
.tp-theme-admin .t-Button--danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.tp-theme-admin .t-Button--danger:hover { background: #922b21; }
.tp-theme-admin .t-Button--warning { background: #d4af37; border-color: #d4af37; color: #1a2332; }
.tp-theme-admin .t-Button--warning:hover { background: #b8962e; }
.tp-theme-admin .t-Button--hot { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-theme-admin .t-Button--hot:hover { background: var(--tp-accent); border-color: var(--tp-accent); color: #1a2332; }
.tp-theme-admin .t-Header { border-bottom: 2px solid var(--tp-accent); }

/* ====== ثيم العملاء (2000-2999) ====== */
.tp-theme-client {
  --tp-primary: #0c4a6e;
  --tp-accent: #38bdf8;
  --tp-bg: #d6edfb;
  --tp-text: #0c4a6e;
  --tp-title: #0369a1;
  --tp-region-bg: #f3fafe;
}
.tp-theme-client.t-PageBody { background: var(--tp-bg) !important; }
.tp-theme-client .t-Region { background: var(--tp-region-bg) !important; border-top: 3px solid var(--tp-accent); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tp-theme-client h1, .tp-theme-client h2, .tp-theme-client h3 { color: var(--tp-primary); }
.tp-theme-client .t-Region-title, .tp-theme-client .t-Region-headerItems { color: var(--tp-title) !important; font-weight: 700; }
.tp-theme-client .t-Button--success { background: #1a7a4a; border-color: #1a7a4a; color: #fff; }
.tp-theme-client .t-Button--success:hover { background: #145a37; }
.tp-theme-client .t-Button--danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.tp-theme-client .t-Button--danger:hover { background: #922b21; }
.tp-theme-client .t-Button--warning { background: #e67e22; border-color: #e67e22; color: #fff; }
.tp-theme-client .t-Button--warning:hover { background: #ca6f1e; }
.tp-theme-client .t-Button--hot { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-theme-client .t-Button--hot:hover { background: var(--tp-accent); border-color: var(--tp-accent); color: #0c4a6e; }
.tp-theme-client .t-Header { border-bottom: 2px solid var(--tp-accent); }

/* ====== ثيم المندوبين (3000-3999) ====== */
.tp-theme-agent {
  --tp-primary: #14532d;
  --tp-accent: #22c55e;
  --tp-bg: #d7f5e1;
  --tp-text: #14532d;
  --tp-title: #15803d;
  --tp-region-bg: #f3fcf6;
}
.tp-theme-agent.t-PageBody { background: var(--tp-bg) !important; }
.tp-theme-agent .t-Region { background: var(--tp-region-bg) !important; border-top: 3px solid var(--tp-accent); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tp-theme-agent h1, .tp-theme-agent h2, .tp-theme-agent h3 { color: var(--tp-primary); }
.tp-theme-agent .t-Region-title, .tp-theme-agent .t-Region-headerItems { color: var(--tp-title) !important; font-weight: 700; }
.tp-theme-agent .t-Button--success { background: #1a7a4a; border-color: #1a7a4a; color: #fff; }
.tp-theme-agent .t-Button--success:hover { background: #145a37; }
.tp-theme-agent .t-Button--danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.tp-theme-agent .t-Button--danger:hover { background: #922b21; }
.tp-theme-agent .t-Button--warning { background: #e67e22; border-color: #e67e22; color: #fff; }
.tp-theme-agent .t-Button--warning:hover { background: #ca6f1e; }
.tp-theme-agent .t-Button--info { background: #2471a3; border-color: #2471a3; color: #fff; }
.tp-theme-agent .t-Button--info:hover { background: #1a5276; }
.tp-theme-agent .t-Button--hot { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-theme-agent .t-Button--hot:hover { background: var(--tp-accent); border-color: var(--tp-accent); color: #14532d; }
.tp-theme-agent .t-Header { border-bottom: 2px solid var(--tp-accent); }

/* ====== ثيم التعريفات (4000-4999) ====== */
.tp-theme-setup {
  --tp-primary: #44403c;
  --tp-accent: #a78bfa;
  --tp-bg: #ece9f7;
  --tp-text: #44403c;
  --tp-title: #6d28d9;
  --tp-region-bg: #faf9fd;
}
.tp-theme-setup.t-PageBody { background: var(--tp-bg) !important; }
.tp-theme-setup .t-Region { background: var(--tp-region-bg) !important; border-top: 3px solid var(--tp-accent); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tp-theme-setup h1, .tp-theme-setup h2, .tp-theme-setup h3 { color: var(--tp-primary); }
.tp-theme-setup .t-Region-title, .tp-theme-setup .t-Region-headerItems { color: var(--tp-title) !important; font-weight: 700; }
.tp-theme-setup .t-Button--success { background: #1a7a4a; border-color: #1a7a4a; color: #fff; }
.tp-theme-setup .t-Button--success:hover { background: #145a37; }
.tp-theme-setup .t-Button--danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.tp-theme-setup .t-Button--danger:hover { background: #922b21; }
.tp-theme-setup .t-Button--warning { background: #e67e22; border-color: #e67e22; color: #fff; }
.tp-theme-setup .t-Button--warning:hover { background: #ca6f1e; }
.tp-theme-setup .t-Button--hot { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-theme-setup .t-Button--hot:hover { background: var(--tp-accent); border-color: var(--tp-accent); color: #fff; }
.tp-theme-setup .t-Header { border-bottom: 2px solid var(--tp-accent); }

/* ====== قواعد الأزرار الموحّدة — كل النظام ====== */
/* حفظ = أخضر */
.t-Button--success,
button.t-Button--success,
a.t-Button--success {
  background: #1a7a4a !important;
  border-color: #1a7a4a !important;
  color: #fff !important;
  border-radius: 4px !important;
}
.t-Button--success:hover { background: #145a37 !important; }

/* حذف/رفض = أحمر */
.t-Button--danger,
button.t-Button--danger,
a.t-Button--danger {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #fff !important;
  border-radius: 4px !important;
}
.t-Button--danger:hover { background: #922b21 !important; }

/* إلغاء/تحذير = أزرق */
.t-Button--warning,
button.t-Button--warning,
a.t-Button--warning {
  background: #2471a3 !important;
  border-color: #2471a3 !important;
  color: #fff !important;
  border-radius: 4px !important;
}
.t-Button--warning:hover { background: #1a5276 !important; }

/* معلومات = أزرق فاتح */
.t-Button--info,
button.t-Button--info,
a.t-Button--info {
  background: #2980b9 !important;
  border-color: #2980b9 !important;
  color: #fff !important;
  border-radius: 4px !important;
}
.t-Button--info:hover { background: #1f618d !important; }

/* محايد = رمادي */
.t-Button--neutral,
button.t-Button--neutral,
a.t-Button--neutral {
  background: #717d7e !important;
  border-color: #717d7e !important;
  color: #fff !important;
  border-radius: 4px !important;
}
.t-Button--neutral:hover { background: #5d6d7e !important; }

/* أزرار الجدول الصغيرة */
.t-Button.t-Button--small,
button.t-Button--small {
  border-radius: 4px !important;
  font-size: 11px !important;
  padding: 3px 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
