﻿:root {
  --app-sidebar-width: 268px;
  /* Professional Services â€” navy + teal (sin pÃºrpura) */
  --ps-navy: #0b1f33;
  --ps-navy-mid: #14324f;
  --ps-navy-soft: #1c4063;
  --ps-teal: #0f766e;
  --ps-teal-bright: #14b8a6;
  --ps-teal-soft: #e6f7f5;
  --ps-ink: #0f172a;
  --ps-slate: #475569;
  --ps-surface: #f3f6f9;
  --ps-paper: #ffffff;
  --ps-line: #d8e0e8;

  --app-blue: var(--ps-teal);
  --app-blue-soft: var(--ps-teal-soft);
  --app-text: var(--ps-ink);
  --app-muted: var(--ps-slate);
  --app-border: var(--ps-line);
  --app-bg: var(--ps-surface);
  --app-sidebar-bg: var(--ps-navy);
  --action-sync: #64748b;
  --action-projects: #0f766e;
  --action-tracking: #0284c7;
  --action-clients: #b45309;
  --action-members: #14324f;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Manrope", var(--font);
  --shadow-soft: 0 10px 30px rgba(11, 31, 51, 0.08);
  --radius-md: 0.65rem;
}

html {
  font-size: 15px;
  height: 100%;
}

body.app-shell {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--app-text);
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(20, 184, 166, 0.10), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(20, 50, 79, 0.08), transparent 50%),
    var(--app-bg);
  display: flex;
}

/* â€”â€”â€” Sidebar (PS departmental) â€”â€”â€” */
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--app-sidebar-width);
  background:
    linear-gradient(180deg, var(--ps-navy-mid) 0%, var(--ps-navy) 42%, #081826 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform 0.2s ease;
  box-shadow: 4px 0 24px rgba(8, 24, 38, 0.25);
}

.sidebar-brand {
  padding: 1.35rem 1.2rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), transparent 60%);
}

.sidebar-brand a {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  line-height: 1.15;
}

.brand-org {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-sep { display: none; }

.brand-app {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-dept {
  color: var(--ps-teal-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-search {
  margin: 0 0 0.55rem;
  position: relative;
}

.sidebar-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search__field > .bi-search {
  position: absolute;
  left: 0.65rem;
  color: rgba(226, 232, 240, 0.55);
  font-size: 0.85rem;
  pointer-events: none;
}

.sidebar-search__field .form-control {
  padding-left: 2rem;
  padding-right: 1.85rem;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 0.85rem;
}

.sidebar-search__field .form-control::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.sidebar-search__field .form-control:focus {
  border-color: rgba(20, 184, 166, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 0 0.15rem rgba(20, 184, 166, 0.2);
}

.sidebar-search__clear {
  position: absolute;
  right: 0.2rem;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.55);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.7rem;
}

.sidebar-search__clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-search__results {
  margin-top: 0.35rem;
  max-height: min(42vh, 22rem);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: var(--ps-navy-soft);
  box-shadow: var(--shadow-soft);
}

.sidebar-search__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  color: #e2e8f0;
  font-family: inherit;
}

.sidebar-search__item:last-child {
  border-bottom: 0;
}

.sidebar-search__item:hover,
.sidebar-search__item.is-active {
  background: rgba(20, 184, 166, 0.18);
  color: #fff;
}

.sidebar-search__item-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}

.sidebar-search__item-path {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.55);
  line-height: 1.2;
}

.sidebar-search__empty {
  padding: 0.7rem 0.75rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.55);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-link,
.sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.85rem;
  border-radius: 0.55rem;
  color: rgba(226, 232, 240, 0.78);
  text-decoration: none;
  font-weight: 500;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 0.92rem;
}

.sidebar-link:hover,
.sidebar-sublink:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.28), rgba(20, 184, 166, 0.08));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--ps-teal-bright);
}

.sidebar-link-split {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.sidebar-link-split > .sidebar-link {
  width: auto;
}

.sidebar-toggle-only {
  width: auto;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  justify-content: center;
}

.sidebar-link i:first-child {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar-toggle .sidebar-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.7;
}

.sidebar-sublink {
  padding-left: 2.75rem;
  font-size: 0.9rem;
}

.sidebar-sublink.sidebar-toggle {
  justify-content: flex-start;
}

.sidebar-sublink.sidebar-toggle .sidebar-chevron {
  margin-left: auto;
}

.sidebar-sublink-nested {
  padding-left: 3.5rem;
  font-size: 0.88rem;
}

.sidebar-sublink.active {
  color: var(--ps-teal-bright);
  font-weight: 600;
}

.sidebar-link-split.active {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.55rem;
}

.sidebar-footer {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-user {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.55);
  word-break: break-all;
  margin-bottom: 0.55rem;
}

.sidebar-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.88rem;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-logout:hover {
  color: var(--ps-teal-bright);
}

/* â€”â€”â€” Main â€”â€”â€” */
.app-main {
  margin-left: var(--app-sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.75rem;
  border-bottom: 1px solid rgba(216, 224, 232, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  min-height: 58px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  background: var(--ps-teal-soft);
  color: var(--ps-teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-title {
  color: var(--ps-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.help-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  border: 1px solid rgba(15, 118, 110, 0.35);
  background: var(--ps-teal-soft);
  color: var(--ps-teal);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.help-open:hover {
  background: #fff;
  color: var(--ps-ink);
}

.help-panel.offcanvas {
  width: min(36rem, 100vw);
  border-left: 1px solid rgba(216, 224, 232, 0.95);
}

.help-panel__header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(216, 224, 232, 0.95);
  background: #f7fbfb;
}

.help-panel__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-teal);
}

.help-panel .offcanvas-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ps-ink);
}

.help-panel__loading {
  color: var(--ps-muted, #64748b);
}

.help-panel .help-article__group,
.help-panel .help-article__title {
  display: none;
}

.help-article__group {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-teal);
}

.help-article__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
  color: var(--ps-ink);
}

.help-article__lead {
  margin: 0 0 0.9rem;
  color: #334155;
}

.help-article__section {
  margin-top: 1rem;
}

.help-article__section h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.help-article__section p,
.help-article__section li {
  color: #334155;
}

.help-article__section ol {
  margin-bottom: 0;
  padding-left: 1.15rem;
}

.help-shot {
  margin: 0 0 1rem;
  border: 1px solid rgba(216, 224, 232, 0.95);
  border-radius: 0.7rem;
  overflow: hidden;
  background: #fff;
}

.help-shot__img {
  display: block;
  width: 100%;
  height: auto;
}

.help-shot figcaption {
  padding: 0.4rem 0.7rem 0.55rem;
  font-size: 0.75rem;
  color: #64748b;
  background: #f8fafc;
}

.help-index__group {
  margin-bottom: 1.5rem;
}

.help-index__group > h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.7rem;
}

.help-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.help-index__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  border: 1px solid rgba(216, 224, 232, 0.95);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.help-index__card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 8px 20px rgba(11, 31, 51, 0.06);
}

.help-index__card-title {
  font-weight: 700;
  color: var(--ps-ink);
}

.help-index__card-lead {
  font-size: 0.84rem;
  color: #64748b;
}

.help-index .help-article {
  background: #fff;
  border: 1px solid rgba(216, 224, 232, 0.95);
  border-radius: 0.85rem;
  padding: 1.1rem 1.2rem 1.2rem;
  margin-bottom: 0.8rem;
}

.sidebar-open-btn {
  margin-right: auto;
  border: 1px solid var(--app-border);
  background: #fff;
  border-radius: 0.4rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--app-text);
}

.app-content {
  flex: 1;
  padding: 1.25rem 1.5rem 2rem;
  max-width: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden; /* tablas anchas hacen scroll dentro de DataTables, no fuera del panel */
}

/* overflow-x distinto de visible fuerza overflow-y=auto y recorta dropdowns Tom Select. */
.app-content:has(.ps-tabs--form),
.app-content:has(.report-filters),
.app-content:has(.filter-multi-select),
.app-content:has(.pq-sheet--compact),
.app-content:has(.ps-filter-card) {
  overflow: visible;
}

.app-content > .card,
.app-content > .row {
  max-width: 100%;
  min-width: 0;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.35);
  z-index: 1035;
}

.sidebar-backdrop.show {
  display: block;
}

/* â€”â€”â€” Portal Home â€”â€”â€” */
.portal-home {
  max-width: none;
  width: 100%;
  margin: 0;
}

.portal-hero {
  text-align: left;
  padding: 1.75rem 1.6rem 1.4rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(216, 224, 232, 0.95);
  background:
    linear-gradient(135deg, rgba(11, 31, 51, 0.96) 0%, rgba(20, 50, 79, 0.92) 48%, rgba(15, 118, 110, 0.88) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.portal-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(204, 251, 241, 0.9);
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 1;
}

.portal-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.portal-title span {
  color: #99f6e4;
  font-weight: 700;
}

.portal-lead {
  color: rgba(226, 232, 240, 0.88);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: none;
  margin: 0 0 1.5rem;
  position: relative;
  z-index: 1;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.portal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.portal-action:hover {
  color: #fff;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 18px rgba(8, 24, 38, 0.22);
}

.portal-action-sync { background: rgba(100, 116, 139, 0.55); }
.portal-action-projects { background: rgba(15, 118, 110, 0.85); border-color: transparent; }
.portal-action-tracking { background: rgba(2, 132, 199, 0.8); border-color: transparent; }
.portal-action-clients { background: rgba(180, 83, 9, 0.85); border-color: transparent; }
.portal-action-clients:hover { color: #fff; }
.portal-action-members {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ps-navy);
  border-color: transparent;
}
.portal-action-members:hover { color: var(--ps-navy); }

.portal-about {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--app-border);
  border-radius: 0.85rem;
  padding: 1rem 1.35rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04);
}

.portal-about > summary.portal-about-title {
  list-style: none;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.portal-about > summary.portal-about-title::-webkit-details-marker {
  display: none;
}

.portal-about[open] > summary.portal-about-title {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--app-border);
}

.portal-about-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--app-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.portal-about-title i {
  color: var(--ps-teal);
}

.portal-about-body {
  color: var(--app-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.portal-about-body p {
  margin-bottom: 0.85rem;
}

.portal-modules-title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  color: var(--app-text);
}

.portal-modules-title {
  font-family: var(--font-display);
}

.portal-modules-title i {
  color: var(--ps-teal);
}

.portal-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.portal-module {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--app-border);
  border-radius: 0.75rem;
  padding: 1.15rem 1rem 1.25rem;
  border-top: 3px solid var(--app-border);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.portal-module:hover {
  color: inherit;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.portal-module-projects { border-top-color: var(--action-projects); }
.portal-module-tracking { border-top-color: var(--action-tracking); }
.portal-module-clients { border-top-color: var(--action-clients); }
.portal-module-members { border-top-color: var(--action-members); }

.portal-module-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.portal-module-projects .portal-module-icon { background: #e6f4ea; color: var(--action-projects); }
.portal-module-tracking .portal-module-icon { background: #e4f7fa; color: var(--action-tracking); }
.portal-module-clients .portal-module-icon { background: #fef7e0; color: #b06000; }
.portal-module-members .portal-module-icon { background: var(--app-blue-soft); color: var(--action-members); }

.portal-module h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.portal-module p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--app-muted);
  line-height: 1.4;
}

/* Forms / focus */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(15, 118, 110, 0.28);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.btn-primary {
  --bs-btn-bg: var(--ps-teal);
  --bs-btn-border-color: var(--ps-teal);
  --bs-btn-hover-bg: #0d5f58;
  --bs-btn-hover-border-color: #0d5f58;
  --bs-btn-active-bg: #0b534e;
  --bs-btn-active-border-color: #0b534e;
  --bs-btn-disabled-bg: var(--ps-teal);
  --bs-btn-disabled-border-color: var(--ps-teal);
}

.btn-outline-primary {
  --bs-btn-color: var(--ps-teal);
  --bs-btn-border-color: var(--ps-teal);
  --bs-btn-hover-bg: var(--ps-teal);
  --bs-btn-hover-border-color: var(--ps-teal);
  --bs-btn-active-bg: #0d5f58;
  --bs-btn-active-border-color: #0d5f58;
}

.app-content > .card,
.app-content .card.shadow-sm {
  border-color: var(--app-border);
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04) !important;
  background: rgba(255, 255, 255, 0.94);
}

.app-content h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Auth / welcome */
.welcome-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.welcome-card {
  max-width: 480px;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--app-border, #d8e0e8);
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 31, 51, 0.12);
}

.welcome-header {
  background: linear-gradient(135deg, #0b1f33 0%, #14324f 55%, #0f766e 100%);
  color: white;
  padding: 2.5rem 2rem 2rem;
  text-align: left;
}

.welcome-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #99f6e4;
  margin-bottom: 0.5rem;
}

.welcome-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #99f6e4;
}

.access-denied-card {
  max-width: 480px;
  width: 100%;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(11, 31, 51, 0.12);
  overflow: hidden;
}

.access-denied-header {
  background: linear-gradient(135deg, #0b1f33 0%, #14324f 55%, #b02a37 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  color: white;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .portal-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .app-content {
    padding: 1.25rem 1rem 2rem;
  }

  .portal-module-grid {
    grid-template-columns: 1fr;
  }

  .portal-action {
    width: 100%;
    justify-content: center;
  }
}

.portal-module-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991.98px) {
  .portal-module-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .portal-module-grid--3 {
    grid-template-columns: 1fr;
  }
}
