:root {
  --cenpi-bg: #f1f5f9;
  --cenpi-surface: #ffffff;
  --cenpi-surface-soft: #f8fafc;
  --cenpi-text: #0f172a;
  --cenpi-text-muted: #64748b;
  --cenpi-primary: #0d4aa6;
  --cenpi-primary-2: #2f7de1;
  --cenpi-accent: #14b8a6;
  --cenpi-border: #dbe4f1;
  --cenpi-danger: #ef4444;
  --cenpi-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
  --cenpi-bg: #0b1220;
  --cenpi-surface: #111b2e;
  --cenpi-surface-soft: #17243b;
  --cenpi-text: #e5edf8;
  --cenpi-text-muted: #9cb0ce;
  --cenpi-primary: #3b82f6;
  --cenpi-primary-2: #2563eb;
  --cenpi-accent: #2dd4bf;
  --cenpi-border: #22344f;
  --cenpi-danger: #f87171;
  --cenpi-shadow: 0 12px 28px rgba(2, 8, 23, 0.55);
}

body {
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--cenpi-text);
  background: radial-gradient(circle at 10% 0%, #e2efff 0, transparent 40%), radial-gradient(circle at 90% 10%, #dafaf6 0, transparent 35%), var(--cenpi-bg);
}

[data-theme="dark"] body {
  background: radial-gradient(circle at 10% 0%, #1c2f4f 0, transparent 45%), radial-gradient(circle at 90% 10%, #143d3b 0, transparent 40%), var(--cenpi-bg);
}

.app-shell a:focus-visible,
.app-shell button:focus-visible,
.app-shell input:focus-visible,
.app-shell select:focus-visible,
.app-shell textarea:focus-visible,
.app-login a:focus-visible,
.app-login button:focus-visible,
.app-login input:focus-visible {
  outline: 3px solid rgba(47, 125, 225, .55);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(47, 125, 225, .14);
}

.app-shell .wrapper {
  background: transparent;
}

.app-shell .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-right: 1px solid var(--cenpi-border);
  box-shadow: 6px 0 30px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .app-shell .sidebar {
  background: linear-gradient(180deg, #0f1a2d 0%, #101f34 100%);
  box-shadow: 6px 0 30px rgba(2, 8, 23, 0.4);
}

.app-shell .sidebar .logo {
  border-bottom: 1px solid var(--cenpi-border);
  padding: 22px 18px;
}

.app-shell .sidebar .logo img {
  width: 210px !important;
  max-width: 100%;
}

.app-shell .sidebar .nav-item .nav-link {
  border-radius: 12px;
  margin: 4px 10px;
  color: #334155;
  transition: all .2s ease;
}

[data-theme="dark"] .app-shell .sidebar .nav-item .nav-link {
  color: #c3d4ef;
}

.app-shell .sidebar .nav-item .nav-link:hover {
  background: #e8f1ff;
  color: var(--cenpi-primary);
}

[data-theme="dark"] .app-shell .sidebar .nav-item .nav-link:hover {
  background: #1d2d48;
  color: #e3efff;
}

.app-shell .sidebar .nav-item.active > .nav-link,
.app-shell .sidebar .nav-item .nav .nav-item.active > .nav-link {
  background: linear-gradient(135deg, var(--cenpi-primary), var(--cenpi-primary-2));
  color: #fff;
  box-shadow: 0 8px 16px rgba(47, 125, 225, .3);
}

.app-shell .sidebar .nav .nav .nav-item .nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding-left: 24px;
}

.app-shell .sidebar .nav .nav .nav-item .nav-link .sidebar-mini {
  display: none;
}

.app-shell .sidebar .nav .nav .nav-item .nav-link .sidebar-normal {
  display: inline-flex;
  min-width: 0;
  line-height: 1.2;
  white-space: normal;
}

body.sidebar-mini .app-shell .sidebar .nav .nav .nav-item .nav-link {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

body.sidebar-mini .app-shell .sidebar .nav .nav .nav-item .nav-link .sidebar-mini {
  display: inline-flex;
  width: auto !important;
  min-width: 24px;
  justify-content: center;
  opacity: 1 !important;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 !important;
}

body.sidebar-mini .app-shell .sidebar .nav .nav .nav-item .nav-link .sidebar-normal {
  display: none;
}

.app-shell .main-panel > .card,
.app-shell .main-panel .card.mb-12 {
  background: transparent;
  box-shadow: none;
  border: 0;
  overflow: visible;
}

.app-shell .card .card-header.card-header-primary {
  background: linear-gradient(120deg, #0d4aa6 0%, #2f7de1 60%, #1db8a7 100%);
  box-shadow: 0 10px 22px rgba(47, 125, 225, 0.35);
  border-radius: 14px;
  overflow: visible;
}

.app-shell .card .card-header .card-title {
  font-weight: 700;
  letter-spacing: .2px;
}

.app-shell .card.mb-12.col-sm-12,
.app-shell .main-panel .card > .card {
  background: var(--cenpi-surface);
  border: 1px solid var(--cenpi-border);
  border-radius: 16px;
  box-shadow: var(--cenpi-shadow);
  padding: 14px;
}

[data-theme="dark"] .app-shell .card.mb-12.col-sm-12,
[data-theme="dark"] .app-shell .main-panel .card > .card {
  background: var(--cenpi-surface);
}

.app-shell .table thead th {
  font-weight: 700;
  color: #1e293b;
}

[data-theme="dark"] .app-shell .table thead th {
  color: #d6e4f8;
}

[data-theme="dark"] .app-shell .table td,
[data-theme="dark"] .app-shell .table th {
  border-color: #233a59;
  color: #d9e7fb;
}

.app-shell .btn.btn-primary {
  background: linear-gradient(120deg, var(--cenpi-primary), var(--cenpi-primary-2));
  border: 0;
  box-shadow: 0 10px 20px rgba(47, 125, 225, 0.3);
}

.app-shell .btn.btn-primary:hover,
.app-shell .btn.btn-primary:focus {
  transform: translateY(-1px);
}

.app-shell .footer {
  opacity: 1;
}

.app-shell .navbar .container-fluid {
  padding-right: 20px;
}

.app-shell .navbar .navbar-nav {
  margin-right: 6px;
  align-items: center;
}

.app-shell .navbar .nav-link {
  overflow: visible;
}

.app-shell .navbar .nav-item-release {
  margin-right: 8px;
}

.app-shell .app-page {
  width: 100%;
  min-height: calc(100vh - 84px);
  padding: 18px 28px 32px;
}

.app-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(117, 139, 171, .28);
}

.app-page-heading {
  min-width: 0;
}

.app-page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 6px;
  color: var(--cenpi-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-page-heading h1 {
  margin: 0;
  color: var(--cenpi-text);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.16;
}

.app-page-heading p {
  margin: 6px 0 0;
  color: var(--cenpi-text-muted);
  font-size: .92rem;
  font-weight: 600;
}

.app-page-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.app-page-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(117, 139, 171, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #355172;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.app-page-meta-item .material-icons {
  font-size: 16px;
  color: var(--cenpi-primary);
}

.app-content-panel {
  margin-top: 18px;
  padding: 0;
}

.app-content-panel > .alert:first-child {
  margin-top: 0;
}

[data-theme="dark"] .app-page-header {
  border-bottom-color: rgba(93, 122, 164, .34);
}

[data-theme="dark"] .app-page-meta-item {
  background: rgba(17, 31, 53, .68);
  border-color: rgba(85, 122, 175, .32);
  color: #c8d9f1;
}

.app-release-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(47, 125, 225, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #204a89;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.environment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.environment-badge-beta {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: #b45309;
}

.app-release-pill .material-icons {
  font-size: 15px;
  line-height: 1;
}

[data-theme="dark"] .app-release-pill {
  background: rgba(17, 27, 46, 0.92);
  border-color: rgba(80, 145, 255, 0.28);
  color: #dbeafe;
  box-shadow: 0 10px 22px rgba(2, 8, 23, 0.28);
}

[data-theme="dark"] .environment-badge-beta {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

[data-theme="dark"] .app-shell .navbar .nav-link {
  color: #dbeafe !important;
}

.js-theme-option {
  width: 100%;
  text-align: left;
}

.js-theme-option.active {
  background: #eef4ff;
  color: #1f4f9d;
  font-weight: 700;
}

[data-theme="dark"] .dropdown-menu {
  background: #12213a;
  border: 1px solid #284268;
}

[data-theme="dark"] .dropdown-item {
  color: #d7e5fb;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background: #213558;
  color: #fff;
}

[data-theme="dark"] .js-theme-option.active {
  background: #2a4470;
  color: #fff;
}

.app-login {
  min-height: 100vh;
}

.login-screen {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 500px;
  background: var(--cenpi-surface);
  border: 1px solid var(--cenpi-border);
  border-radius: 20px;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
  padding: 30px 34px 28px;
  animation: loginIn .3s ease;
}

[data-theme="dark"] .login-card {
  background: #111b2e;
  border: 1px solid #27426b;
}

[data-theme="dark"] .login-field label,
[data-theme="dark"] .login-version {
  color: #a9bddb;
}

[data-theme="dark"] .login-field input {
  background: #1a2b46;
  border-color: #38547f;
  color: #e5eefc;
}

[data-theme="dark"] .login-google {
  background: #12213a;
  border-color: #284268;
  color: #dce7fa;
}

[data-theme="dark"] .app-shell .form-control,
[data-theme="dark"] .app-shell input,
[data-theme="dark"] .app-shell select,
[data-theme="dark"] .app-shell textarea {
  background-color: #16263f !important;
  color: #e4efff !important;
  border-color: #35547f !important;
}

[data-theme="dark"] .app-shell .form-control::placeholder {
  color: #93a9cc !important;
}

[data-theme="dark"] .modal-content {
  background: #13243c;
  color: #e4efff;
  border-color: #2b456b;
}

.theme-dark .modal-content {
  background: #13243c;
  color: #e4efff;
  border-color: #2b456b;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: #2a446a;
}

.theme-dark .modal-header,
.theme-dark .modal-footer {
  border-color: #2a446a;
}

.app-shell .modal {
  z-index: 2060 !important;
}

.app-shell .modal-backdrop {
  z-index: 2050 !important;
  pointer-events: none !important;
}

.app-shell .modal.show {
  display: block !important;
}

.app-shell .modal .modal-dialog,
.app-shell .modal .modal-content {
  pointer-events: auto !important;
}

[data-theme="dark"] .app-shell .modal-backdrop.show {
  background-color: #050d1b;
  opacity: .44;
}

.theme-dark .app-shell .modal-backdrop.show {
  background-color: #050d1b;
  opacity: .44;
}

[data-theme="dark"] .app-shell .modal .close,
[data-theme="dark"] .app-shell .modal .modal-title {
  color: #e2edff;
}

.theme-dark .app-shell .modal .close,
.theme-dark .app-shell .modal .modal-title {
  color: #e2edff;
}

[data-theme="dark"] .app-shell .modal .form-control,
[data-theme="dark"] .app-shell .modal select.form-control,
[data-theme="dark"] .app-shell .modal textarea.form-control {
  background: #11233a !important;
  color: #e4efff !important;
  border-color: #36557f !important;
}

.theme-dark .app-shell .modal .form-control,
.theme-dark .app-shell .modal select.form-control,
.theme-dark .app-shell .modal textarea.form-control {
  background: #11233a !important;
  color: #e4efff !important;
  border-color: #36557f !important;
}

/* Material adds pseudo-lines in .form-group that overlap fields inside modals */
.app-shell .modal .form-group::before,
.app-shell .modal .form-group::after {
  display: none !important;
  content: none !important;
}

.app-shell .modal .form-control,
.app-shell .modal select.form-control,
.app-shell .modal textarea.form-control {
  background-image: none !important;
}

[data-theme="dark"] .app-help-btn {
  background: #162741;
  border-color: #35537f;
  color: #dce9ff;
}

@keyframes loginIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.login-logo {
  max-width: 240px;
  margin-bottom: 14px;
}

.login-logo-redketovital {
  display: block;
  width: 174px;
  max-width: none;
  height: auto;
  transform: translateY(-5px);
}

.login-brand-redketovital {
  display: grid;
  justify-items: center;
  margin: 0 auto 22px;
  text-align: center;
}

.login-brand-mark-redketovital {
  width: 174px;
  height: 104px;
  overflow: hidden;
  display: block;
  margin-bottom: 6px;
}

.login-brand-project,
.login-brand-foundation {
  color: #8da1c3;
  line-height: 1;
}

.login-brand-project {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-brand-name {
  color: #dbe7ff;
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.login-brand-foundation {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .9rem;
  font-style: italic;
  margin-top: 1px;
}

[data-theme="light"] .login-brand-project,
[data-theme="light"] .login-brand-foundation {
  color: #64748b;
}

[data-theme="light"] .login-brand-name {
  color: #172554;
}

.login-screen-redketovital .login-title {
  margin-top: 0;
}

.login-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .4px;
  margin-bottom: 18px;
  text-transform: uppercase;
  color: #1e3a8a;
}

.login-field {
  margin-bottom: 14px;
}

.login-field label {
  font-size: .83rem;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.login-field input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fbff;
  padding: 0 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login-field input:focus {
  outline: 0;
  border-color: #2f7de1;
  box-shadow: 0 0 0 3px rgba(47, 125, 225, .2);
}

.login-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  height: 46px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(120deg, var(--cenpi-primary), #7e3af2);
  box-shadow: 0 12px 20px rgba(75, 85, 214, .35);
}

.login-btn:hover {
  filter: brightness(1.03);
}

.login-extra {
  margin-top: 10px;
  text-align: right;
}

.login-extra-split {
  text-align: center;
}

.login-extra a {
  font-size: .85rem;
  color: #2f73d6;
  text-decoration: none;
}

.login-extra a:hover {
  text-decoration: underline;
}

.login-help {
  margin: -6px 0 18px;
  color: var(--cenpi-text-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.login-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.login-btn-link:hover {
  color: #fff;
  text-decoration: none;
}

.login-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #94a3b8;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .45px;
}

.login-or::before,
.login-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e8f0;
}

.login-google {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #d0d9e6;
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.login-google:hover {
  background: #f8fafc;
  text-decoration: none;
}

.login-version {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--cenpi-text-muted);
  font-size: .92rem;
}

.login-feedback {
  margin-top: 14px;
}

@media (max-width: 992px) {
  .app-shell .sidebar {
    box-shadow: none;
  }

  .login-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

.app-about-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 12px 14px;
  background: transparent;
}

.app-about {
  margin: 0 12px;
  padding: 10px 12px;
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.app-about-title {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d4aa6;
}

.app-about-line {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.app-about-meta {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

/* Fix About block: keep it inside sidebar without overlaying content */
.app-shell .sidebar-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 92px);
}

.app-shell .sidebar-wrapper .nav {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

.app-about-footer {
  position: static;
  width: 100%;
  padding: 8px 10px 10px;
  margin-top: 8px;
}

.app-about {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
}

.app-about-title {
  font-size: 0.7rem;
  margin-bottom: 2px;
}

.app-about-line {
  font-size: 0.72rem;
  line-height: 1.25;
}

.app-about-meta {
  margin-top: 4px;
  font-size: 0.68rem;
}

@media (max-width: 992px) {
  .app-shell .sidebar-wrapper {
    height: calc(100vh - 92px);
    max-height: calc(100vh - 92px);
    overflow: hidden;
  }
  .app-shell .sidebar-wrapper .nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .app-about-footer {
    padding: 6px 10px 10px;
  }
}

/* Compact About typography */
.app-about-title {
  font-size: 0.64rem;
}

.app-about-line {
  font-size: 0.66rem;
}

.app-about-meta {
  font-size: 0.62rem;
}

.app-help-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid #c9d6ea;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 9px 10px;
  text-transform: none;
}

.app-help-btn:hover,
.app-help-btn:focus {
  background: #edf4ff;
  color: #0d4aa6;
}

[data-theme="dark"] .app-help-btn {
  border-color: #35557d;
  background: linear-gradient(180deg, #153051 0%, #112540 100%);
  color: #e7f0ff;
  box-shadow: 0 10px 22px rgba(2, 9, 22, 0.34);
}

[data-theme="dark"] .app-help-btn:hover,
[data-theme="dark"] .app-help-btn:focus {
  background: linear-gradient(180deg, #1b3b63 0%, #153152 100%);
  color: #ffffff;
  border-color: #4a73a6;
}

body.sidebar-mini .app-help-btn,
.sidebar-mini .app-help-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  justify-content: center;
  gap: 0;
}

body.sidebar-mini .app-help-btn span,
.sidebar-mini .app-help-btn span {
  display: none;
}

body.sidebar-mini .app-help-btn i.material-icons,
.sidebar-mini .app-help-btn i.material-icons {
  margin: 0;
  font-size: 20px;
}

body.sidebar-mini .app-about-footer,
.sidebar-mini .app-about-footer {
  display: flex;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

#helpInfoModal .modal-content {
  border: 1px solid #d6e0ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

#helpInfoModal .modal-header {
  border-bottom: 1px solid #e4ebf6;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

#helpInfoModal .modal-title {
  font-weight: 800;
  color: #0d4aa6;
}

#helpInfoModal .modal-body p {
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.92rem;
}

.help-modal-body {
  display: grid;
  gap: 14px;
}

.help-modal-intro {
  padding: 14px 16px;
  border: 1px solid #dfe8f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbff 0%, #f2f7ff 100%);
}

.help-modal-intro p {
  margin: 8px 0 0 !important;
}

.help-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e4efff;
  color: #0d4aa6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-modal-item {
  padding: 12px 14px;
  border: 1px solid #dfe8f4;
  border-radius: 12px;
  background: #f8fbff;
}

.help-modal-label {
  display: block;
  margin-bottom: 4px;
  color: #6b7d95;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.help-modal-item strong {
  color: #1b365d;
  font-size: 0.96rem;
}

.help-modal-support {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d8e5f5;
  background: #f7fbff;
}

.help-modal-support a {
  display: inline-block;
  margin-bottom: 6px;
  color: #1d5fd1;
  font-weight: 800;
  text-decoration: none;
}

.help-modal-support a:hover,
.help-modal-support a:focus {
  text-decoration: underline;
}

.help-modal-support small {
  display: block;
  color: #62738b;
  line-height: 1.5;
}

[data-theme="dark"] #helpInfoModal .modal-content {
  border-color: #2b476d;
  background: #0f1d33;
  box-shadow: 0 18px 36px rgba(2, 9, 22, 0.48);
}

[data-theme="dark"] #helpInfoModal .modal-header {
  border-bottom-color: #2c486f;
  background: linear-gradient(135deg, #153153, #122744);
}

[data-theme="dark"] #helpInfoModal .modal-title,
[data-theme="dark"] #helpInfoModal .close {
  color: #eef5ff;
}

[data-theme="dark"] .help-modal-intro,
[data-theme="dark"] .help-modal-item,
[data-theme="dark"] .help-modal-support {
  border-color: #2b476d;
  background: #132844;
}

[data-theme="dark"] .help-modal-badge {
  background: rgba(71, 122, 191, 0.18);
  color: #dbe9ff;
}

[data-theme="dark"] .help-modal-intro p,
[data-theme="dark"] #helpInfoModal .modal-body p,
[data-theme="dark"] .help-modal-support small {
  color: #9fb6d4;
}

[data-theme="dark"] .help-modal-label {
  color: #89a4c8;
}

[data-theme="dark"] .help-modal-item strong {
  color: #eef5ff;
}

[data-theme="dark"] .help-modal-support a {
  color: #7db7ff;
}

@media (max-width: 575.98px) {
  .help-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile-first polish for entire app ===== */
@media (max-width: 991.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  .app-shell .navbar.navbar-absolute {
    left: 0 !important;
    width: 100% !important;
    padding-top: 6px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .app-shell .main-panel {
    width: 100% !important;
    margin-left: 0 !important;
    float: none !important;
  }

  .app-shell .app-page {
    min-height: calc(100vh - 72px);
    padding: 12px 12px 24px;
  }

  .app-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
  }

  .app-page-heading h1 {
    font-size: 1.22rem;
  }

  .app-page-heading p {
    font-size: .84rem;
  }

  .app-page-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .app-page-meta-item {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-content-panel {
    margin-top: 12px;
  }

  .app-shell .main-panel > .card {
    margin: 8px 8px 0;
  }

  .app-shell .card .card-header.card-header-primary {
    border-radius: 12px;
    margin-top: 4px;
    margin-bottom: 10px;
  }

  .app-shell .card .card-header .card-title {
    font-size: 1.02rem;
    line-height: 1.25;
    margin: 4px 0;
  }

  .app-shell .card.mb-12.col-sm-12,
  .app-shell .main-panel .card > .card {
    border-radius: 12px;
    padding: 10px;
  }

  .app-shell .sidebar .logo {
    padding: 14px 12px;
  }

  .app-shell .sidebar .logo img {
    width: 165px !important;
  }

  .app-shell .sidebar .nav-item .nav-link {
    margin: 3px 8px;
    border-radius: 10px;
  }

  .app-shell .sidebar .nav-item .nav-link p {
    margin: 0;
    font-size: 0.9rem;
  }

  .app-shell .sidebar .nav i.material-icons {
    font-size: 20px;
  }

  .app-shell .btn {
    min-height: 38px;
    line-height: 1.15;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .app-shell .form-control {
    height: 40px;
    font-size: 15px;
  }

  .app-shell .table {
    font-size: 0.86rem;
  }

  .app-shell .table > thead > tr > th,
  .app-shell .table > tbody > tr > td {
    padding: 8px 6px;
  }

  .app-shell .table-responsive,
  .app-shell .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-shell .table-scroll {
    height: auto;
    max-height: 62vh;
  }

  .app-shell .table .btn,
  .app-shell .td-actions .btn,
  .app-shell .paciente-actions .btn {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 8px;
  }

  .modal .modal-dialog {
    width: calc(100% - 14px);
    max-width: calc(100% - 14px);
    margin: 7px auto;
  }

  .modal .modal-content {
    border-radius: 12px;
  }

  .modal .modal-header,
  .modal .modal-body,
  .modal .modal-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Navegación contextual compartida */
.app-shell .navbar-brand {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.app-shell .navbar-brand strong {
  color: var(--cenpi-text);
  font-size: 1rem;
  font-weight: 800;
}

.app-shell .navbar-brand small,
.app-shell .app-screen-description {
  color: var(--cenpi-text-muted);
  font-size: .72rem;
  font-weight: 600;
  text-transform: none;
}

.app-shell .app-screen-description {
  display: block;
  max-width: 560px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mobile-nav-toggle,
.app-nav-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .app-shell .navbar .container-fluid {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .app-shell .navbar-minimize,
  .app-shell .app-screen-description,
  .app-shell .navbar-brand small {
    display: none !important;
  }

  .app-mobile-nav-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--cenpi-border);
    border-radius: 10px;
    background: #fff;
    color: #0f766e;
  }

  .app-shell .main-panel {
    padding-top: 64px;
  }

  .app-shell .main-panel > .content {
    margin-top: 0;
  }

  .app-shell.app-mobile-nav-open,
  body.app-mobile-nav-open {
    overflow: hidden;
  }

  body.app-mobile-nav-open .app-shell .sidebar,
  body.app-mobile-nav-open .sidebar {
    transform: translate3d(0, 0, 0) !important;
  }

  body.app-mobile-nav-open .app-nav-backdrop {
    position: fixed;
    z-index: 1029;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, .48);
  }
}

@media (max-width: 575.98px) {
  .app-shell .navbar-brand strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .app-shell .main-panel > .card {
    margin: 6px 6px 0;
  }

  .app-shell .app-page {
    padding: 10px 8px 20px;
  }

  .app-page-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-page-meta-item {
    width: 100%;
    justify-content: flex-start;
  }

  .app-shell .card .card-header .card-title {
    font-size: 0.96rem;
  }

  .app-shell .navbar .navbar-nav {
    margin-right: 0;
  }

  .app-shell .navbar .nav-item-release {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin: 0 0 6px;
  }

  .app-shell .navbar .nav-link {
    padding-left: 8px;
    padding-right: 8px;
  }

  .app-release-pill {
    padding: 6px 9px;
  }

  .app-release-pill__label {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-shell .card.mb-12.col-sm-12,
  .app-shell .main-panel .card > .card {
    padding: 8px;
  }

  .app-shell .btn {
    min-height: 36px;
    font-size: 0.8rem;
  }

  .app-shell .table {
    font-size: 0.82rem;
  }

  .app-shell .table > thead > tr > th,
  .app-shell .table > tbody > tr > td {
    padding: 7px 5px;
  }

  .app-shell .table .btn,
  .app-shell .td-actions .btn,
  .app-shell .paciente-actions .btn {
    min-width: 32px;
    min-height: 32px;
    padding: 5px 7px;
  }

  .app-about {
    display: none;
  }
}

/* ===== Strong dark-theme overrides (module-level) ===== */
[data-theme="dark"] .app-shell .card .card-header.card-header-primary {
  background: linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 55%, #0f766e 100%);
  box-shadow: 0 12px 24px rgba(3, 10, 28, 0.6);
}

[data-theme="dark"] .app-shell .card .card-header .card-title {
  color: #e5efff;
}

[data-theme="dark"] .app-shell .navbar.navbar-transparent {
  background: rgba(10, 18, 34, 0.86) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a3f5f;
}

[data-theme="dark"] .app-shell .navbar .notification {
  background: #ef4444;
  color: #fff;
}

[data-theme="dark"] .app-shell .table thead th {
  background: #182b47 !important;
  color: #eef4ff !important;
}

[data-theme="dark"] .app-shell .table tbody tr {
  background: #111f35;
}

[data-theme="dark"] .app-shell .table tbody tr:nth-child(even) {
  background: #0f1b30;
}

[data-theme="dark"] .app-shell .table tbody tr:hover td {
  background: #1a2d4a !important;
}

[data-theme="dark"] .app-shell .form-group label,
[data-theme="dark"] .app-shell label {
  color: #b8c9e6 !important;
}

[data-theme="dark"] .app-shell .btn.btn-outline-secondary,
[data-theme="dark"] .app-shell .btn.btn-outline-primary {
  border-color: #4a6ea1;
  color: #dbeafe;
  background: transparent;
}

[data-theme="dark"] .app-shell .btn.btn-outline-secondary:hover,
[data-theme="dark"] .app-shell .btn.btn-outline-primary:hover {
  background: #233b5f;
  color: #fff;
}

[data-theme="dark"] .app-shell .btn.btn-warning {
  background: linear-gradient(120deg, #d97706, #f59e0b);
  border: 0;
  color: #fff;
}

[data-theme="dark"] .app-shell .btn.btn-danger {
  background: linear-gradient(120deg, #dc2626, #ef4444);
  border: 0;
  color: #fff;
}

[data-theme="dark"] .app-shell .btn.btn-success {
  background: linear-gradient(120deg, #15803d, #16a34a);
  border: 0;
  color: #fff;
}

[data-theme="dark"] .app-shell .dropdown-menu {
  box-shadow: 0 16px 28px rgba(2, 8, 23, 0.7);
}

[data-theme="dark"] .app-shell .modal-body {
  background: #10213a;
}

[data-theme="dark"] .app-shell .modal-title,
[data-theme="dark"] .app-shell .modal-body,
[data-theme="dark"] .app-shell .modal-footer,
[data-theme="dark"] .app-shell .modal-header .close {
  color: #e4efff;
}

[data-theme="dark"] .app-shell .pagination .btn {
  border-color: #4a6ea1;
  color: #dbeafe;
  background: transparent;
}

[data-theme="dark"] .app-shell .pagination .btn:hover {
  background: #233b5f;
  color: #fff;
}

[data-theme="dark"] :is(
  .usuario-shell,
  .paciente-shell,
  .catalogo-shell,
  .maestro-shell,
  .anf-shell,
  .mensajero-shell,
  .digi-turn-shell,
  .upload-shell,
  .upload-card,
  .perm-shell,
  .audit-auth-shell
) {
  background: #111f35 !important;
  border-color: #294366 !important;
  color: #dce9ff !important;
  box-shadow: 0 12px 24px rgba(3, 10, 28, 0.45) !important;
}

[data-theme="dark"] :is(
  .usuario-filtros,
  .paciente-filtros,
  .catalogo-filtros,
  .maestro-filtros,
  .anf-filtros,
  .mensajero-filtros,
  .digi-turn-filtros,
  .anf-bulk,
  .anf-subpanel,
  .anf-subpanel-filters
) {
  background: #0f1c31 !important;
  border-color: #2c4669 !important;
}

[data-theme="dark"] :is(
  .usuario-table-wrap,
  .paciente-table-wrap,
  .catalogo-table-wrap,
  .maestro-table-wrap,
  .anf-table-wrap,
  .mensajero-table-wrap,
  .digi-turn-table-wrap,
  .perm-table-wrap,
  .audit-auth-table-wrap
) {
  background: #0f1a2d !important;
  border-color: #2b4467 !important;
}

[data-theme="dark"] :is(
  .usuario-pagination,
  .paciente-pagination,
  .anf-pagination
) {
  background: #0f1c31 !important;
  border-color: #2b4467 !important;
}

[data-theme="dark"] :is(
  .usuario-modal-section,
  .paciente-modal-section,
  .usuario-modal-title,
  .paciente-modal-title,
  .exam-section-title
) {
  background: #152a45 !important;
  border-color: #3b5f8f !important;
  color: #dbeafe !important;
}

/* ===== Dark theme hardening (all modules) ===== */
[data-theme="dark"] .app-shell .main-panel,
[data-theme="dark"] .app-shell .main-panel > .card,
[data-theme="dark"] .app-shell .main-panel .card {
  color: #e5efff;
}

[data-theme="dark"] .app-shell .card.mb-12.col-sm-12,
[data-theme="dark"] .app-shell .main-panel .card > .card {
  background: #0f1d33 !important;
  border-color: #294465 !important;
}

[data-theme="dark"] .app-shell h1,
[data-theme="dark"] .app-shell h2,
[data-theme="dark"] .app-shell h3,
[data-theme="dark"] .app-shell h4,
[data-theme="dark"] .app-shell h5,
[data-theme="dark"] .app-shell h6,
[data-theme="dark"] .app-shell .card-title {
  color: #e8f1ff !important;
}

[data-theme="dark"] .app-shell .text-muted {
  color: #9fb4d5 !important;
}

[data-theme="dark"] .app-shell .table tbody td,
[data-theme="dark"] .app-shell .table tbody th,
[data-theme="dark"] .app-shell .table thead th {
  color: #e2ecff !important;
  opacity: 1 !important;
}

[data-theme="dark"] .app-shell .table tbody tr.table-active td,
[data-theme="dark"] .app-shell .table tbody tr.active td {
  background: #1a2e4d !important;
}

[data-theme="dark"] .app-shell .table a {
  color: #9ed0ff;
}

[data-theme="dark"] .app-shell .table a:hover {
  color: #c4e5ff;
}

[data-theme="dark"] .app-shell .form-control,
[data-theme="dark"] .app-shell input[type="text"],
[data-theme="dark"] .app-shell input[type="number"],
[data-theme="dark"] .app-shell input[type="date"],
[data-theme="dark"] .app-shell input[type="email"],
[data-theme="dark"] .app-shell select,
[data-theme="dark"] .app-shell textarea {
  background: #0b1a2e !important;
  border-color: #315178 !important;
  color: #e5efff !important;
}

[data-theme="dark"] .app-shell .form-control:focus,
[data-theme="dark"] .app-shell input:focus,
[data-theme="dark"] .app-shell select:focus,
[data-theme="dark"] .app-shell textarea:focus {
  border-color: #4f8ce6 !important;
  box-shadow: 0 0 0 .14rem rgba(70, 138, 234, .2) !important;
}

[data-theme="dark"] .app-shell .form-control::placeholder,
[data-theme="dark"] .app-shell input::placeholder,
[data-theme="dark"] .app-shell textarea::placeholder {
  color: #8ea7cb !important;
}

[data-theme="dark"] .app-shell .form-control[disabled],
[data-theme="dark"] .app-shell .form-control[readonly] {
  background: #132640 !important;
  color: #c6d7ef !important;
  opacity: 1;
}

[data-theme="dark"] .app-shell .btn.btn-default {
  background: #213654 !important;
  border-color: #3f5f8c !important;
  color: #e5efff !important;
}

[data-theme="dark"] .app-shell .btn.btn-default:hover {
  background: #2a4369 !important;
}

[data-theme="dark"] .app-shell .badge,
[data-theme="dark"] .app-shell .label {
  opacity: 1;
}

[data-theme="dark"] .app-shell .swal2-popup {
  background: #10213a !important;
  color: #e8f1ff !important;
}

[data-theme="dark"] .app-shell .swal2-title,
[data-theme="dark"] .app-shell .swal2-content,
[data-theme="dark"] .app-shell .swal2-html-container {
  color: #e8f1ff !important;
}

/* ===== Tables + Logs (global theme consistency) ===== */
.app-shell :is(
  .usuario-table-wrap,
  .paciente-table-wrap,
  .catalogo-table-wrap,
  .maestro-table-wrap,
  .anf-table-wrap,
  .mensajero-table-wrap,
  .digi-turn-table-wrap,
  .perm-table-wrap,
  .audit-auth-table-wrap,
  .table-wrap,
  .table-scroll
) {
  border-radius: 12px;
}

[data-theme="dark"] .app-shell :is(
  .usuario-table-wrap,
  .paciente-table-wrap,
  .catalogo-table-wrap,
  .maestro-table-wrap,
  .anf-table-wrap,
  .mensajero-table-wrap,
  .digi-turn-table-wrap,
  .perm-table-wrap,
  .audit-auth-table-wrap,
  .table-wrap,
  .table-scroll
) {
  background: #0e1b31 !important;
  border-color: #2d476b !important;
  box-shadow: inset 0 0 0 1px rgba(99, 145, 210, 0.08);
}

[data-theme="dark"] .app-shell :is(
  #tablaUsuarios,
  #tablaPacientes,
  #tablaCatalogo,
  #tablaMaestro,
  #tableSendmail,
  #tableListDigiturn,
  #tblCargosNoFacturados,
  #permTable,
  #auditTable,
  #auditSamplesTable,
  #dataTable,
  #tableMailbox,
  .dashboard-table
) thead th {
  background: #173153 !important;
  color: #edf5ff !important;
  border-color: #2f4e77 !important;
}

[data-theme="dark"] .app-shell :is(
  #tablaUsuarios,
  #tablaPacientes,
  #tablaCatalogo,
  #tablaMaestro,
  #tableSendmail,
  #tableListDigiturn,
  #tblCargosNoFacturados,
  #permTable,
  #auditTable,
  #auditSamplesTable,
  #dataTable,
  #tableMailbox,
  .dashboard-table
) tbody td {
  color: #e2ecff !important;
  border-color: #233a59 !important;
}

[data-theme="dark"] .app-shell :is(
  #tablaUsuarios,
  #tablaPacientes,
  #tablaCatalogo,
  #tablaMaestro,
  #tableSendmail,
  #tableListDigiturn,
  #tblCargosNoFacturados,
  #permTable,
  #auditTable,
  #auditSamplesTable,
  #dataTable,
  #tableMailbox,
  .dashboard-table
) tbody tr:nth-child(even) td {
  background: #0c182b !important;
}

[data-theme="dark"] .app-shell :is(
  #tablaUsuarios,
  #tablaPacientes,
  #tablaCatalogo,
  #tablaMaestro,
  #tableSendmail,
  #tableListDigiturn,
  #tblCargosNoFacturados,
  #permTable,
  #auditTable,
  #auditSamplesTable,
  #dataTable,
  #tableMailbox,
  .dashboard-table
) tbody tr:hover td {
  background: #173153 !important;
  color: #f4f8ff !important;
}

[data-theme="dark"] .app-shell :is(
  .usuario-pagination,
  .paciente-pagination,
  .catalogo-pagination,
  .maestro-pagination,
  .mensajero-pagination,
  .digi-turn-pagination,
  .anf-pagination,
  .audit-finding-pagination,
  .app-pagination-bar
) {
  background: #0f1d33 !important;
  border-color: #2b4467 !important;
}

.app-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.app-pagination-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-pagination-label {
  color: #637793;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.app-pagination-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e9f1ff;
  color: #1d4e9f;
  border: 1px solid #d4e0f2;
  font-weight: 700;
  margin: 0;
}

.app-pagination-info--page {
  min-width: 84px;
}

.app-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .app-pagination-bar {
    padding: 10px 12px;
  }

  .app-pagination-meta,
  .app-pagination-actions {
    width: 100%;
  }

  .app-pagination-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-pagination-actions .btn,
  .app-pagination-actions .app-pagination-info {
    width: 100%;
  }
}

[data-theme="dark"] .app-pagination-bar {
  background: #0f1c31;
  border-color: #2b4467;
}

[data-theme="dark"] .app-pagination-label {
  color: #9fb7d8;
}

[data-theme="dark"] .app-pagination-info {
  background: #163156;
  color: #d9ebff;
  border-color: #355f96;
}

[data-theme="dark"] .app-shell :is(
  #annSupervisorLogsBox,
  .ann-import-help pre,
  .audit-auth-shell pre,
  .table-scroll pre
) {
  background:
    radial-gradient(800px 220px at 0% -20%, rgba(76, 137, 241, .18), rgba(0,0,0,0) 62%),
    linear-gradient(180deg, #071223 0%, #060f1f 100%) !important;
  border: 1px solid #22466f !important;
  color: #d9e9ff !important;
}

[data-theme="dark"] .app-shell :is(
  .audit-cleanup-status,
  .ann-jobs-status,
  .anf-action-status
) {
  border-color: #355985 !important;
  color: #dceaff !important;
}

[data-theme="dark"] .app-shell :is(
  .audit-cleanup-status.success,
  .ann-jobs-status.success
) {
  background: #153827 !important;
  color: #c7f8dc !important;
  border-color: #2c7a56 !important;
}

[data-theme="dark"] .app-shell :is(
  .audit-cleanup-status.error,
  .ann-jobs-status.error
) {
  background: #3b1f27 !important;
  color: #ffd9df !important;
  border-color: #8e3f50 !important;
}

[data-theme="dark"] .app-shell :is(
  .audit-cleanup-status.running,
  .ann-jobs-status.processing
) {
  background: #1f3149 !important;
  color: #d9ecff !important;
  border-color: #4b78b4 !important;
}

/* ===== Top panel + left panel fix ===== */
.app-shell .sidebar .sidebar-background {
  background-size: cover !important;
  background-position: center center !important;
}

.app-shell .sidebar .sidebar-background:after,
.app-shell .sidebar[data-image]:after,
.app-shell .sidebar.has-image:after {
  opacity: .92 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%) !important;
}

[data-theme="dark"] .app-shell .sidebar .sidebar-background:after,
[data-theme="dark"] .app-shell .sidebar[data-image]:after,
[data-theme="dark"] .app-shell .sidebar.has-image:after {
  opacity: .96 !important;
  background: linear-gradient(180deg, #101c31 0%, #0b172b 100%) !important;
}

.app-shell .sidebar .logo {
  position: sticky;
  top: 0;
  z-index: 6;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .app-shell .sidebar .logo {
  background: rgba(13, 24, 43, .94);
}

.app-shell .sidebar .nav-item .nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid transparent;
}

.app-shell .sidebar .nav i.material-icons {
  color: #5f7393 !important;
}

[data-theme="dark"] .app-shell .sidebar .nav i.material-icons {
  color: #9fb4d5 !important;
}

.app-shell .sidebar .nav-item .nav-link:hover {
  border-color: #cfe0fa;
}

[data-theme="dark"] .app-shell .sidebar .nav-item .nav-link:hover {
  border-color: #36547d;
}

.app-shell .sidebar .nav-item.active > .nav-link,
.app-shell .sidebar .nav-item .nav .nav-item.active > .nav-link {
  border-color: transparent !important;
}

.app-shell .navbar.navbar-transparent.navbar-absolute {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 260px;
  width: calc(100% - 260px) !important;
  background: rgba(255, 255, 255, .88) !important;
  border-bottom: 1px solid #d7e5f6;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(18, 38, 63, 0.08);
  min-height: 64px;
  z-index: 1040;
}

[data-theme="dark"] .app-shell .navbar.navbar-transparent.navbar-absolute {
  background: rgba(11, 24, 44, .9) !important;
  border-bottom: 1px solid #28415f;
  box-shadow: 0 10px 22px rgba(2, 9, 22, 0.42);
}

.app-shell .main-panel {
  position: relative;
  z-index: 2;
  padding-top: 84px;
}

body.sidebar-mini .navbar.navbar-transparent.navbar-absolute {
  left: 80px;
  width: calc(100% - 80px) !important;
}

body.sidebar-mini .main-panel {
  width: calc(100% - 80px) !important;
}

body.sidebar-mini .app-shell .navbar.navbar-transparent.navbar-absolute,
.sidebar-mini .app-shell .navbar.navbar-transparent.navbar-absolute {
  left: 80px !important;
  width: calc(100% - 80px) !important;
}

body.sidebar-mini .app-shell .main-panel,
.sidebar-mini .app-shell .main-panel {
  width: calc(100% - 80px) !important;
}

.app-shell .navbar .navbar-nav .nav-item .nav-link {
  border-radius: 10px;
  padding: 8px 10px !important;
}

.app-shell .navbar .navbar-nav .nav-item .nav-link:hover {
  background: rgba(41, 90, 166, 0.12);
}

[data-theme="dark"] .app-shell .navbar .navbar-nav .nav-item .nav-link:hover {
  background: rgba(120, 167, 231, 0.16);
}

.app-shell #minimizeSidebar.btn.btn-white {
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%) !important;
  border: 1px solid #d4dfef !important;
  color: #2b4d82 !important;
  box-shadow: 0 10px 24px rgba(17, 39, 74, 0.14) !important;
}

.app-shell #minimizeSidebar.btn.btn-white .material-icons {
  color: inherit !important;
}

.app-shell #minimizeSidebar.btn.btn-white:hover,
.app-shell #minimizeSidebar.btn.btn-white:focus {
  background: linear-gradient(180deg, #f8fbff 0%, #e4eefb 100%) !important;
  border-color: #bdd0e8 !important;
  color: #1f457b !important;
}

[data-theme="dark"] .app-shell #minimizeSidebar.btn.btn-white {
  background: linear-gradient(180deg, #163154 0%, #112541 100%) !important;
  border-color: #33557d !important;
  color: #e4efff !important;
  box-shadow: 0 12px 28px rgba(2, 9, 22, 0.44) !important;
}

[data-theme="dark"] .app-shell #minimizeSidebar.btn.btn-white:hover,
[data-theme="dark"] .app-shell #minimizeSidebar.btn.btn-white:focus {
  background: linear-gradient(180deg, #1d3d66 0%, #153152 100%) !important;
  border-color: #4f76a6 !important;
  color: #ffffff !important;
}

.app-shell .main-panel > .card {
  padding-top: 8px;
}

@media (max-width: 991.98px) {
  .app-shell .navbar.navbar-transparent.navbar-absolute {
    position: fixed !important;
    left: 0 !important;
    right: 0;
    width: 100% !important;
    min-height: 58px;
  }

  .app-shell .sidebar .logo {
    position: relative;
    backdrop-filter: none;
  }

  .app-shell .main-panel {
    padding-top: 72px;
  }

  .app-shell .sidebar {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .nav-open .app-shell .sidebar .sidebar-wrapper {
    height: calc(100vh - 92px);
    max-height: calc(100vh - 92px);
    overflow: hidden;
  }

  .nav-open .app-shell .sidebar .sidebar-wrapper .nav {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .nav-open .app-shell .sidebar .sidebar-wrapper.ps,
  .nav-open .app-shell .sidebar .sidebar-wrapper .ps,
  .nav-open .app-shell .sidebar .sidebar-wrapper .ps-container {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 92px);
  }
}
