/* DentalPro V4 — tenant and licence management.
   Same theme as the clinic application (templates/header.php, "DentalPro Azure Medical"): these rules are the
   ones V4 writes inline in its page head, kept here in a file because this application allows no inline script. */

:root {
  --dp-primary: #0ea5e9 !important;
  --dp-primary-dark: #0284c7 !important;
  --dp-primary-light: #f0f9ff;
  --dp-sidebar-bg: #0f172a;
  --dp-topbar-bg: #0f172a;
  --dp-font: 'Inter', sans-serif !important;
  --bs-primary: #0ea5e9 !important;
  --bs-primary-rgb: 14, 165, 233 !important;
  --bs-link-color: #0ea5e9 !important;
}

body, .dp-body { font-family: 'Inter', sans-serif !important; background-color: #f8fafc !important; color: #0f172a !important; }

.btn-primary, .btn-dp-primary, .bg-primary, .btn-primary:hover, .btn-primary:focus {
  background-color: #0ea5e9 !important; border-color: #0ea5e9 !important; color: #ffffff !important;
}
.btn-outline-primary { color: #0ea5e9 !important; border-color: #0ea5e9 !important; }
.btn-outline-primary:hover { background-color: #0ea5e9 !important; color: #ffffff !important; }
.text-primary, .dp-page-title i, .dp-page-title .bi { color: #0ea5e9 !important; }

.dp-sidebar .dp-nav-link:not(.active) { color: rgba(255, 255, 255, 0.72) !important; }
.dp-sidebar .dp-nav-link:not(.active):hover { color: #ffffff !important; background: rgba(255, 255, 255, 0.08) !important; }
.dp-sidebar .dp-nav-link.active, .nav-tabs .nav-link.active, .nav-pills .nav-link.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; border-color: #0ea5e9 !important; color: #ffffff !important;
  font-weight: 600 !important; box-shadow: 0 3px 10px rgba(14, 165, 233, 0.25) !important;
}
.dp-sidebar .dp-nav-link.active i, .dp-sidebar .dp-nav-link.active .dp-nav-label, .nav-tabs .nav-link.active i { color: #ffffff !important; }
.nav-tabs .nav-link { border-radius: 10px !important; border: 0 !important; color: #334155; }
.nav-tabs { border-bottom: 1px solid #e2e8f0; padding-bottom: 0.4rem; gap: 0.15rem; }

.badge.bg-primary { background-color: #f0f9ff !important; color: #0ea5e9 !important; border: 1px solid #0ea5e9 !important; }
.dp-sidebar { background: #0f172a !important; }
.dp-topbar, #topbar { background: #0f172a !important; }
.dp-card, .card, .modal-content { border-radius: 14px !important; }
.card { border-color: rgba(15, 23, 42, 0.08); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02); }

/* Specific to this application */
.tm-key { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.35rem; letter-spacing: 0.06em; font-weight: 700; color: #0f172a; }
.tm-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.85rem; }
.tm-once { border: 2px dashed #0ea5e9; background: #f0f9ff; border-radius: 14px; }
.tm-doc { max-height: 22rem; overflow: auto; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 1rem; font-size: 0.78rem; }
.tm-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 100%); }
.tm-login .card { width: 100%; max-width: 420px; }
.tm-chart { position: relative; height: 260px; }
.dp-stat-tile .tm-value { font-weight: 800; font-size: 1.45rem; color: #0f172a; line-height: 1.2; }
.table > :not(caption) > * > * { padding: 0.55rem 0.6rem; }
.tm-kv dt { font-weight: 500; color: #64748b; }
.tm-kv dd { margin-bottom: 0.45rem; }
input.tm-invalid { border-color: #dc2626 !important; }
input.tm-valid { border-color: #059669 !important; }
@media (max-width: 991px) {
  .dp-sidebar { transform: translateX(-100%); }
  body.tm-sidebar-open .dp-sidebar { transform: translateX(0); }
  .dp-main { margin-left: 0 !important; }
}
