/**
 * Dev Auth Shell: padding, spacing, and light/dark theme support.
 * Loaded after app.css and ui-overrides.css.
 */

/* -------------------------------------------------------------------------- */
/* Buttons: prevent text wrapping, keep content centred                        */
/* -------------------------------------------------------------------------- */

.dev-auth-shell .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Icon-only btn-link (DataTables filter, row actions) - no text to wrap */
.dev-auth-shell .btn.btn-link {
  white-space: normal;
}

/* -------------------------------------------------------------------------- */
/* Light mode: body and main background                                       */
/* -------------------------------------------------------------------------- */

body.dev-auth-shell.dev-auth-shell-body {
  background-color: #e5e7eb; /* gray-200 equivalent for shell */
}

body.dev-auth-shell.dev-auth-shell-body .main-content {
  background-color: transparent;
}

/* Header/navbar: match page background instead of white */
body.dev-auth-shell.dev-auth-shell-body .navbar-main.navbar-app-shell {
  background-color: transparent !important;
  box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* Padding and spacing (mobile-first)                                          */
/* -------------------------------------------------------------------------- */

.dev-auth-shell .app-shell-content {
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 576px) {
  .dev-auth-shell .app-shell-content {
    padding-top: 1rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  .dev-auth-shell .app-shell-content {
    padding-top: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 992px) {
  .dev-auth-shell .app-shell-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.dev-auth-shell .dev-shell-container {
  padding: 0;
}

/* Cards: consistent inner padding */
.dev-auth-shell .card .card-body {
  padding: 1rem;
}

@media (min-width: 576px) {
  .dev-auth-shell .card .card-body {
    padding: 1.25rem;
  }
}

@media (min-width: 768px) {
  .dev-auth-shell .card .card-body {
    padding: 1.5rem;
  }
}

.dev-auth-shell .card .card-header {
  padding: 0.75rem 1rem;
}

@media (min-width: 576px) {
  .dev-auth-shell .card .card-header {
    padding: 1rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .dev-auth-shell .card .card-header {
    padding: 1rem 1.5rem;
  }
}

.dev-auth-shell .card .card-footer {
  padding: 0.75rem 1rem;
}

@media (min-width: 576px) {
  .dev-auth-shell .card .card-footer {
    padding: 1rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .dev-auth-shell .card .card-footer {
    padding: 1rem 1.5rem;
  }
}

/* Page header and content blocks */
.dev-auth-shell .dev-page-header {
  padding-bottom: 0.25rem;
}

.dev-auth-shell .dev-page-title {
  margin-bottom: 0.1rem;
}

.dev-auth-shell .row.g-3 {
  --bs-gutter-y: 0.75rem;
  --bs-gutter-x: 0.75rem;
}

@media (min-width: 768px) {
  .dev-auth-shell .row.g-3 {
    --bs-gutter-y: 1rem;
    --bs-gutter-x: 1rem;
  }
}

/* Sidenav: comfortable padding */
.dev-auth-shell .sidenav .sidenav-header {
  padding: 1rem 1.25rem !important;
}

.dev-auth-shell .sidenav .navbar-nav .nav-link {
  padding: 0.5rem 1rem 0.5rem 1rem;
}

.dev-auth-shell .navbar-main.navbar-app-shell {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 576px) {
  .dev-auth-shell .navbar-main.navbar-app-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Top nav dropdown: padding */
.dev-auth-shell .top-nav-actions .dropdown-menu {
  padding: 0.5rem 0.25rem;
  min-width: 12rem;
}

.dev-auth-shell .top-nav-actions .dropdown-item {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

/* Offcanvas (notifications + profile drawers): padding - dev shell and main app */
.dev-auth-shell #devNotificationsDrawer .offcanvas-header,
.dev-auth-shell #notificationsDrawer .offcanvas-header,
.dev-auth-shell #profileOffcanvas .offcanvas-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dev-auth-shell #devNotificationsDrawer .offcanvas-body > .px-3,
.dev-auth-shell #notificationsDrawer .offcanvas-body > .px-3,
.dev-auth-shell #profileOffcanvas .offcanvas-body > .p-3 {
  padding: 1rem 1.25rem !important;
}

.dev-auth-shell #devNotificationsDrawer .list-group-item,
.dev-auth-shell #notificationsDrawer .list-group-item,
.dev-auth-shell #profileOffcanvas .list-group-item {
  padding: 0.875rem 1.25rem;
}

.dev-auth-shell #devNotificationsDrawer .border-top.p-3,
.dev-auth-shell #notificationsDrawer .border-top.p-3 {
  padding: 1rem 1.25rem !important;
}

/* Modal body padding (dev shell modals) */
.dev-auth-shell .modal-body {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .dev-auth-shell .modal-body {
    padding: 1.5rem;
  }
}

.dev-auth-shell .modal-header,
.dev-auth-shell .modal-footer {
  padding: 1rem 1.25rem;
}

/* DataTables wrapper in dev shell: spacing and alignment (mobile-first) */
.dev-auth-shell .dataTables_wrapper .dev-dt-toolbar,
.dev-auth-shell .dataTables_wrapper .dev-dt-footer {
  padding: 0.5rem 0;
}

.dev-auth-shell .dataTables_wrapper .dev-dt-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .dev-auth-shell .dataTables_wrapper .dev-dt-toolbar {
    gap: 0.75rem;
  }
}

.dev-auth-shell .dataTables_wrapper .dev-dt-toolbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dev-auth-shell .dataTables_wrapper .dev-dt-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .dev-auth-shell .dataTables_wrapper .dev-dt-search,
  .dev-auth-shell .dataTables_wrapper .dataTables_filter input {
    max-width: 100%;
    box-sizing: border-box;
  }

  .dev-auth-shell .dataTables_wrapper .dataTables_filter label {
    display: flex;
    min-width: 0;
    width: 100%;
  }
}

.dev-auth-shell .dataTables_wrapper .dev-dt-toolbar-right .dataTables_filter {
  margin-bottom: 0;
}

.dev-auth-shell .dataTables_wrapper .dev-dt-toolbar-right .dataTables_filter label {
  margin-bottom: 0;
}

.dev-auth-shell .dataTables_wrapper .dev-dt-search {
  padding: 0.375rem 0.75rem;
}

/* Light mode: ensure filter UI is visible (not white on white) */
.dev-auth-shell .dataTables_wrapper .dev-dt-search,
.dev-auth-shell .dataTables_wrapper .dataTables_filter input {
  background-color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #111827 !important;
}

.dev-auth-shell .dataTables_wrapper .dev-dt-search::placeholder,
.dev-auth-shell .dataTables_wrapper .dataTables_filter input::placeholder {
  color: rgba(52, 71, 103, 0.55) !important;
}

.dev-auth-shell .dev-dt-filter-btn {
  color: rgba(52, 71, 103, 0.7) !important;
}

.dev-auth-shell .dev-dt-filter-btn:hover {
  color: rgba(52, 71, 103, 0.95) !important;
}

.dev-auth-shell .dev-dt-filter-menu.dropdown-menu {
  background-color: #fff !important;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #111827;
}

.dev-auth-shell .dev-dt-filter-menu .form-label {
  color: rgba(52, 71, 103, 0.9) !important;
}

.dev-auth-shell .dev-dt-filter-menu .form-control,
.dev-auth-shell .dev-dt-filter-menu .form-select {
  background-color: #fff !important;
  border-color: rgba(148, 163, 184, 0.35);
  color: #111827;
}

.dev-auth-shell .dataTables_wrapper .dev-dt-toolbar,
.dev-auth-shell .dataTables_wrapper .dev-dt-footer {
  color: rgba(52, 71, 103, 0.8);
}

.dev-auth-shell .dataTables_wrapper .dev-dt-clear-all.btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.5);
  color: rgba(52, 71, 103, 0.9);
}

.dev-auth-shell .dataTables_wrapper .dev-dt-clear-all.btn-outline-secondary:hover {
  background-color: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.6);
  color: rgba(52, 71, 103, 1);
}

/* -------------------------------------------------------------------------- */
/* Dark mode: dev auth shell                                                  */
/* -------------------------------------------------------------------------- */

html.theme-dark body.dev-auth-shell,
html.theme-dark body.dev-auth-shell .main-content {
  background-color: #0f172a !important;
}

html.theme-dark .dev-auth-shell .sidenav {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.12) !important;
}

html.theme-dark .dev-auth-shell .sidenav .nav-link,
html.theme-dark .dev-auth-shell .sidenav .nav-link-text,
html.theme-dark .dev-auth-shell .sidenav .navbar-brand {
  color: rgba(229, 231, 235, 0.86) !important;
}

html.theme-dark .dev-auth-shell .sidenav .nav-link:hover,
html.theme-dark .dev-auth-shell .sidenav .nav-link:focus {
  color: #e5e7eb !important;
}

html.theme-dark .dev-auth-shell .sidenav .nav-link.active {
  color: #e5e7eb !important;
  background: rgba(148, 163, 184, 0.15) !important;
  border-radius: 0.375rem;
}

html.theme-dark .dev-auth-shell .sidenav .horizontal.dark {
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.25), transparent) !important;
  opacity: 1;
}

html.theme-dark .dev-auth-shell .sidenav .nav-item h6.text-muted {
  color: rgba(148, 163, 184, 0.7) !important;
}

html.theme-dark .dev-auth-shell .navbar-main.navbar-app-shell {
  background: #0f172a !important;
}

html.theme-dark .dev-auth-shell .navbar-main .text-dark,
html.theme-dark .dev-auth-shell .navbar-main .nav-link.text-dark {
  color: #e5e7eb !important;
}

html.theme-dark .dev-auth-shell .navbar-main .sidenav-toggler-inner .sidenav-toggler-line {
  background: #e5e7eb !important;
}

/* Offcanvas (notifications + profile drawers) dark mode - dev shell and main app */
html.theme-dark .dev-auth-shell #devNotificationsDrawer.offcanvas,
html.theme-dark .dev-auth-shell #notificationsDrawer.offcanvas,
html.theme-dark .dev-auth-shell #profileOffcanvas.offcanvas {
  background-color: #111827 !important;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
}

html.theme-dark .dev-auth-shell #devNotificationsDrawer .offcanvas-header,
html.theme-dark .dev-auth-shell #notificationsDrawer .offcanvas-header,
html.theme-dark .dev-auth-shell #profileOffcanvas .offcanvas-header {
  border-bottom-color: rgba(148, 163, 184, 0.2);
  color: #e5e7eb;
}

html.theme-dark .dev-auth-shell #devNotificationsDrawer .offcanvas-title,
html.theme-dark .dev-auth-shell #notificationsDrawer .offcanvas-title,
html.theme-dark .dev-auth-shell #profileOffcanvas .offcanvas-title {
  color: #e5e7eb !important;
}

html.theme-dark .dev-auth-shell #devNotificationsDrawer .btn-close,
html.theme-dark .dev-auth-shell #notificationsDrawer .btn-close,
html.theme-dark .dev-auth-shell #profileOffcanvas .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.7;
}

html.theme-dark .dev-auth-shell #devNotificationsDrawer .text-muted,
html.theme-dark .dev-auth-shell #notificationsDrawer .text-muted,
html.theme-dark .dev-auth-shell #profileOffcanvas .text-muted {
  color: rgba(229, 231, 235, 0.65) !important;
}

html.theme-dark .dev-auth-shell #devNotificationsDrawer .list-group-item,
html.theme-dark .dev-auth-shell #notificationsDrawer .list-group-item,
html.theme-dark .dev-auth-shell #profileOffcanvas .list-group-item {
  background-color: transparent !important;
  border-color: rgba(148, 163, 184, 0.15);
  color: #e5e7eb;
}

html.theme-dark .dev-auth-shell #devNotificationsDrawer .list-group-item:hover,
html.theme-dark .dev-auth-shell #devNotificationsDrawer .list-group-item:focus,
html.theme-dark .dev-auth-shell #notificationsDrawer .list-group-item:hover,
html.theme-dark .dev-auth-shell #notificationsDrawer .list-group-item:focus,
html.theme-dark .dev-auth-shell #profileOffcanvas .list-group-item:hover,
html.theme-dark .dev-auth-shell #profileOffcanvas .list-group-item:focus {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

html.theme-dark .dev-auth-shell #devNotificationsDrawer .list-group-item .text-dark,
html.theme-dark .dev-auth-shell #notificationsDrawer .list-group-item .text-dark {
  color: #e5e7eb !important;
}

html.theme-dark .dev-auth-shell #devNotificationsDrawer .border-top,
html.theme-dark .dev-auth-shell #notificationsDrawer .border-top {
  border-top-color: rgba(148, 163, 184, 0.2) !important;
}

html.theme-dark .dev-auth-shell #profileOffcanvas .border-bottom {
  border-bottom-color: rgba(148, 163, 184, 0.2) !important;
}

html.theme-dark .dev-auth-shell #profileOffcanvas strong {
  color: #e5e7eb;
}

/* Badges in dark mode (keep success/warning semantics, ensure readable) */
html.theme-dark .dev-auth-shell .badge.bg-light.text-dark {
  background-color: rgba(229, 231, 235, 0.2) !important;
  color: #e5e7eb !important;
}

/* Modals in dev shell dark mode */
html.theme-dark body.dev-auth-shell .modal-content {
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e5e7eb;
}

html.theme-dark body.dev-auth-shell .modal-header,
html.theme-dark body.dev-auth-shell .modal-footer {
  border-color: rgba(148, 163, 184, 0.2);
}

html.theme-dark body.dev-auth-shell .modal-title {
  color: #e5e7eb !important;
}

html.theme-dark body.dev-auth-shell .modal-header .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.7;
}

/* -------------------------------------------------------------------------- */
/* Dark mode: dev shell content (Payments, Matters, etc.)                     */
/* -------------------------------------------------------------------------- */

/* Page header */
html.theme-dark .dev-auth-shell .dev-page-title {
  color: #e5e7eb !important;
}

html.theme-dark .dev-auth-shell .dev-page-subtitle,
html.theme-dark .dev-auth-shell .dev-page-header .text-muted {
  color: rgba(229, 231, 235, 0.7) !important;
}

/* Cards in content area */
html.theme-dark .dev-auth-shell .dev-shell-container .card {
  background-color: #1e293b !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  color: #e5e7eb;
}

html.theme-dark .dev-auth-shell .dev-shell-container .card .card-header,
html.theme-dark .dev-auth-shell .dev-shell-container .card .card-body,
html.theme-dark .dev-auth-shell .dev-shell-container .card .card-footer {
  border-color: rgba(148, 163, 184, 0.15);
  color: inherit;
}

html.theme-dark .dev-auth-shell .dev-shell-container .card h1,
html.theme-dark .dev-auth-shell .dev-shell-container .card h2,
html.theme-dark .dev-auth-shell .dev-shell-container .card h3,
html.theme-dark .dev-auth-shell .dev-shell-container .card h4,
html.theme-dark .dev-auth-shell .dev-shell-container .card h5,
html.theme-dark .dev-auth-shell .dev-shell-container .card h6 {
  color: #e5e7eb !important;
}

html.theme-dark .dev-auth-shell .dev-shell-container .card .text-muted {
  color: rgba(229, 231, 235, 0.65) !important;
}

/* Nav tabs (e.g. Payments tabs) - pill style in dark mode */
html.theme-dark .dev-auth-shell .nav-tabs .nav-link {
  background: #1f2937 !important;
  color: rgba(229, 231, 235, 0.7) !important;
  border-color: transparent !important;
}

html.theme-dark .dev-auth-shell .nav-tabs .nav-link:hover {
  background: #374151 !important;
  color: #e5e7eb !important;
}

html.theme-dark .dev-auth-shell .nav-tabs .nav-link.active {
  background: var(--org-theme-primary, #00c875) !important;
  color: #000 !important;
}

html.theme-dark .dev-auth-shell .nav-tabs .nav-link .material-icons,
html.theme-dark .dev-auth-shell .nav-tabs .nav-link .material-icons-round {
  color: #00c875;
}

/* Tables inside dev shell cards */
html.theme-dark .dev-auth-shell .dev-shell-container .table {
  color: rgba(229, 231, 235, 0.9);
}

html.theme-dark .dev-auth-shell .dev-shell-container .table thead th {
  color: rgba(229, 231, 235, 0.7) !important;
  border-bottom-color: rgba(148, 163, 184, 0.25) !important;
  background-color: rgba(15, 23, 42, 0.5);
}

html.theme-dark .dev-auth-shell .dev-shell-container .table tbody td {
  border-bottom-color: rgba(148, 163, 184, 0.15) !important;
}

html.theme-dark .dev-auth-shell .dev-shell-container .table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

html.theme-dark .dev-auth-shell .dev-shell-container .table .text-muted {
  color: rgba(229, 231, 235, 0.6) !important;
}

/* Row action dropdown (btn-link text-secondary) */
html.theme-dark .dev-auth-shell .dev-shell-container .table .btn-link.text-secondary {
  color: rgba(229, 231, 235, 0.8) !important;
}

html.theme-dark .dev-auth-shell .dev-shell-container .table .btn-link.text-secondary:hover {
  color: #e5e7eb !important;
}

/* DataTables wrapper: toolbar, search, length, info, pagination */
html.theme-dark .dev-auth-shell .dataTables_wrapper {
  color: rgba(229, 231, 235, 0.9);
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-toolbar,
html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-footer {
  color: inherit;
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-search,
html.theme-dark .dev-auth-shell .dataTables_wrapper .dataTables_filter input {
  background-color: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(148, 163, 184, 0.3);
  color: #e5e7eb;
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-search::placeholder,
html.theme-dark .dev-auth-shell .dataTables_wrapper .dataTables_filter input::placeholder {
  color: rgba(229, 231, 235, 0.5);
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dataTables_length label,
html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-info {
  color: rgba(229, 231, 235, 0.75) !important;
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dataTables_length select {
  background-color: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  color: #e5e7eb;
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-pagination .pagination .page-link {
  background-color: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
  color: rgba(229, 231, 235, 0.9);
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-pagination .pagination .page-link:hover {
  background-color: rgba(51, 65, 85, 0.8);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-pagination .pagination .page-item.active .page-link {
  background-color: rgba(59, 130, 246, 0.5);
  border-color: rgba(59, 130, 246, 0.5);
  color: #fff;
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-clear-all.btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.4);
  color: rgba(229, 231, 235, 0.9);
}

html.theme-dark .dev-auth-shell .dataTables_wrapper .dev-dt-clear-all.btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

/* DataTables filter dropdown (column filter) */
html.theme-dark .dev-auth-shell .dev-dt-filter-menu.dropdown-menu {
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, 0.25);
  color: #e5e7eb;
}

html.theme-dark .dev-auth-shell .dev-dt-filter-menu .form-label {
  color: rgba(229, 231, 235, 0.9) !important;
}

html.theme-dark .dev-auth-shell .dev-dt-filter-menu .form-control,
html.theme-dark .dev-auth-shell .dev-dt-filter-menu .form-select {
  background-color: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(148, 163, 184, 0.3);
  color: #e5e7eb;
}

html.theme-dark .dev-auth-shell .dev-dt-filter-btn {
  color: rgba(229, 231, 235, 0.85) !important;
}

/* Dropdown menus inside content (row actions) */
html.theme-dark .dev-auth-shell .dev-shell-container .dropdown-menu {
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, 0.25);
}

html.theme-dark .dev-auth-shell .dev-shell-container .dropdown-menu .dropdown-item {
  color: rgba(229, 231, 235, 0.9);
}

html.theme-dark .dev-auth-shell .dev-shell-container .dropdown-menu .dropdown-item:hover,
html.theme-dark .dev-auth-shell .dev-shell-container .dropdown-menu .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

html.theme-dark .dev-auth-shell .dev-shell-container .dropdown-menu .dropdown-item.text-danger {
  color: #f87171 !important;
}

/* Modal body: form controls (reinforce for dev shell modals) */
html.theme-dark body.dev-auth-shell .modal-content .form-label {
  color: rgba(229, 231, 235, 0.9) !important;
}

html.theme-dark body.dev-auth-shell .modal-content .form-control,
html.theme-dark body.dev-auth-shell .modal-content .form-select {
  background-color: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(148, 163, 184, 0.3);
  color: #e5e7eb;
}

html.theme-dark body.dev-auth-shell .modal-content .form-control::placeholder {
  color: rgba(229, 231, 235, 0.45);
}

html.theme-dark body.dev-auth-shell .modal-content .form-check-label {
  color: rgba(229, 231, 235, 0.9) !important;
}

html.theme-dark body.dev-auth-shell .modal-content .form-check-input {
  background-color: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.4);
}

html.theme-dark body.dev-auth-shell .modal-content .form-check-input:checked {
  background-color: rgba(59, 130, 246, 0.8);
  border-color: rgba(59, 130, 246, 0.8);
}

html.theme-dark body.dev-auth-shell .modal-content p,
html.theme-dark body.dev-auth-shell .modal-content .fw-semibold {
  color: rgba(229, 231, 235, 0.95) !important;
}

/* Top nav dropdown (profile menu) */
html.theme-dark .dev-auth-shell .navbar-main .dropdown-menu.bg-white {
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, 0.2);
}

html.theme-dark .dev-auth-shell .navbar-main .dropdown-menu .dropdown-item,
html.theme-dark .dev-auth-shell .navbar-main .dropdown-menu .dropdown-item-text {
  color: rgba(229, 231, 235, 0.9) !important;
}

html.theme-dark .dev-auth-shell .navbar-main .dropdown-menu .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .dev-auth-shell .navbar-main .dropdown-menu .text-secondary {
  color: rgba(229, 231, 235, 0.6) !important;
}

.agreement-card {
  border: 1px solid #e8e9ed;
  border-radius: 12px;
}

.agreement-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 200, 117, 0.12);
  color: #00a862;
  flex-shrink: 0;
}

.agreement-card-icon .material-icons-round {
  font-size: 24px;
}

.agreement-card-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html.theme-dark .agreement-card {
  border-color: rgba(148, 163, 184, 0.25);
}

html.theme-dark .agreement-card-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

/* -------------------------------------------------------------------------- */
/* Modal open: sidebar below overlay and not focusable                        */
/* -------------------------------------------------------------------------- */

body.dev-auth-shell.modal-open #sidenav-main,
body.modal-open #sidenav-main {
  z-index: 1020 !important;
  pointer-events: none;
}

body.dev-auth-shell.modal-open #sidenav-backdrop,
body.modal-open #sidenav-backdrop {
  z-index: 1010 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
