.login-box {
  width: min(420px, calc(100vw - 2rem));
}

:root,
[data-bs-theme="dark"] {
  --argus-navy: #07192f;
  --argus-blue: #0d2c52;
  --argus-blue-soft: #123e6f;
  --argus-gold: #c9a646;
  --bs-primary: #123e6f;
  --bs-primary-rgb: 18, 62, 111;
  --bs-warning: #c9a646;
  --bs-warning-rgb: 201, 166, 70;
  --argus-ink: #dbe7f4;
  --argus-muted: #8fa7c3;
  --argus-panel: rgba(8, 24, 45, .88);
  --argus-panel-solid: #0c2039;
  --argus-border: rgba(201, 166, 70, .22);
}

body.argus-app {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #07192f;
  color: var(--argus-ink);
}

.argus-shell {
  min-height: 100vh;
  display: flex;
}

.argus-rail {
  width: 5.25rem;
  min-height: 100vh;
  position: sticky;
  top: 0;
  flex-direction: column;
  align-items: center;
  gap: .95rem;
  padding: .9rem .65rem;
  background: linear-gradient(180deg, #061428 0%, #0a2544 100%);
  border-right: 1px solid var(--argus-border);
  z-index: 20;
}

.argus-brand-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  text-decoration: none;
}

.argus-brand-mark {
  width: 3.15rem;
  height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 166, 70, .45);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .75rem 1.6rem rgba(0, 0, 0, .18);
}

.argus-brand-mark img {
  max-width: 2.55rem;
  max-height: 2.55rem;
  width: auto;
  object-fit: contain;
}

.argus-brand-connector {
  width: 2px;
  height: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 166, 70, .18), rgba(201, 166, 70, .9), rgba(201, 166, 70, .18));
}

.argus-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.argus-nav-link {
  width: 100%;
  min-height: 4.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  color: #b7c7da;
  text-decoration: none;
  font-size: .68rem;
  line-height: 1;
}

.argus-nav-link i {
  font-size: 1.2rem;
}

.argus-nav-link:hover,
.argus-nav-link.active {
  border-color: rgba(201, 166, 70, .36);
  background: rgba(201, 166, 70, .14);
  color: #fff;
}

.argus-workspace {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.argus-topbar {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--argus-border);
  background: rgba(7, 25, 47, .94);
  backdrop-filter: blur(14px);
  z-index: 15;
}

.argus-topbar-title {
  display: flex;
  flex-direction: column;
}

.argus-topbar-title strong {
  max-width: 58vw;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-topbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.argus-kicker {
  display: inline-flex;
  color: var(--argus-gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.argus-main {
  flex: 1;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 16rem),
    #08182d;
}

.argus-page {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.argus-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.argus-page-header h1 {
  margin: .2rem 0 .25rem;
  font-size: 1.55rem;
}

.argus-page-header p {
  margin: 0;
  color: var(--argus-muted);
}

.argus-mobile-nav,
.argus-panel {
  background: #07192f;
  color: var(--argus-ink);
}

.argus-mobile-brand-stack {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.argus-mobile-brand-stack img {
  width: 2.25rem;
  height: 2.25rem;
  padding: .16rem;
  border-radius: .5rem;
  background: #fff;
  object-fit: contain;
}

.argus-mobile-brand-stack span {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--argus-gold);
}

.argus-mobile-links {
  display: grid;
  gap: .5rem;
}

.argus-mobile-links a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: var(--argus-ink);
  text-decoration: none;
}

.argus-mobile-links a.active,
.argus-mobile-links a:hover {
  border-color: rgba(201, 166, 70, .36);
  background: rgba(201, 166, 70, .14);
  color: #fff;
}

.btn-primary,
.text-bg-primary {
  background-color: var(--argus-blue) !important;
  border-color: var(--argus-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--argus-blue-soft) !important;
  border-color: var(--argus-blue-soft) !important;
}

.btn-outline-primary {
  color: var(--argus-blue-soft);
  border-color: var(--argus-blue-soft);
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #9cc4f2;
  border-color: #386fa8;
}

.argus-card {
  border-top: 3px solid var(--argus-gold);
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .08);
}

.argus-stat {
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .6rem;
  background: rgba(255, 255, 255, .045);
}

.argus-stat i {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .55rem;
  background: rgba(201, 166, 70, .16);
  color: var(--argus-gold);
  font-size: 1.15rem;
}

.argus-stat strong {
  display: block;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.argus-stat span {
  color: var(--argus-muted);
  font-size: .8rem;
}

.argus-filter-panel,
.argus-empty-state,
.argus-org-chart {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .65rem;
  background: rgba(255, 255, 255, .04);
}

.argus-filter-panel {
  padding: 1rem;
}

.argus-empty-state {
  min-height: 18rem;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 2rem;
  text-align: center;
}

.argus-empty-state i {
  color: var(--argus-gold);
  font-size: 2.5rem;
}

.argus-empty-state h2 {
  margin: .8rem 0 .35rem;
  font-size: 1.1rem;
}

.argus-empty-state p {
  max-width: 34rem;
  margin: 0;
  color: var(--argus-muted);
}

.municipio-check {
  min-height: 4.1rem;
  padding: .65rem .75rem .6rem 2.15rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .45rem;
  background: rgba(var(--bs-body-color-rgb), .025);
}

.municipio-check .form-check-input {
  margin-left: -1.35rem;
}

.argus-map-main {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 4rem);
  overflow: hidden;
}

.argus-map-screen {
  position: relative;
  width: 100%;
  height: calc(100vh - 4rem);
  overflow: hidden;
  background: #061426;
}

.argus-map-screen:fullscreen {
  width: 100vw;
  height: 100vh;
}

.argus-map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #061426;
}

.argus-map-status {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: min(32rem, calc(100vw - 2rem));
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: .65rem;
  background: rgba(7, 25, 47, .88);
  color: #fff;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .28);
}

.argus-map-status-error {
  border-color: rgba(220, 53, 69, .55);
}

.argus-map-status-ok {
  border-color: rgba(201, 166, 70, .45);
}

.argus-map-head {
  position: absolute;
  top: 4.4rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.argus-map-head > * {
  pointer-events: auto;
}

.argus-map-head h1 {
  margin: .2rem 0 0;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 2rem);
  text-shadow: 0 .25rem 1rem rgba(0, 0, 0, .38);
}

.argus-map-type-control .btn.active {
  background: var(--argus-gold);
  border-color: var(--argus-gold);
  color: #07192f;
}

.argus-map-info {
  min-width: 8rem;
  color: #07192f;
  font-size: .86rem;
}

.argus-municipio-label {
  position: absolute;
  padding: .18rem .42rem;
  border: 1px solid rgba(201, 166, 70, .45);
  border-radius: 999px;
  background: rgba(7, 25, 47, .82);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  transform: translate(-50%, calc(-100% - .75rem));
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .24);
}

.argus-bairro-label {
  position: absolute;
  padding: .15rem .36rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: .35rem;
  background: rgba(7, 25, 47, .74);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .75);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 .3rem .75rem rgba(0, 0, 0, .24);
}

.argus-map-toolbar {
  position: absolute;
  left: 1rem;
  top: 7.2rem;
  display: grid;
  gap: .45rem;
}

.argus-map-toolbar .btn {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, .45);
}

.argus-map-toolbar .btn.active {
  background: var(--argus-gold);
  border-color: var(--argus-gold);
  color: #07192f;
}

.argus-context-panel {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--argus-border);
  border-radius: .8rem;
  background: var(--argus-panel);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .32);
  backdrop-filter: blur(14px);
}

.argus-context-panel h2 {
  margin: .25rem 0 .45rem;
  font-size: 1.08rem;
}

.argus-context-panel p {
  color: var(--argus-muted);
  font-size: .9rem;
}

.argus-org-chart {
  padding: 1.5rem;
  text-align: center;
}

.argus-org-node {
  min-width: 12rem;
  display: inline-flex;
  flex-direction: column;
  gap: .2rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .6rem;
  background: rgba(255, 255, 255, .05);
}

.argus-org-node.primary {
  border-color: rgba(201, 166, 70, .5);
  background: rgba(201, 166, 70, .12);
}

.argus-org-node span {
  color: var(--argus-muted);
  font-size: .75rem;
  text-transform: uppercase;
}

.argus-org-node strong {
  color: #fff;
}

.argus-org-line {
  width: 1px;
  height: 2rem;
  margin: 0 auto;
  background: rgba(201, 166, 70, .42);
}

.argus-org-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .argus-topbar {
    position: sticky;
    top: 0;
  }

  .argus-main {
    padding: .75rem;
  }

  .argus-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .argus-map-toolbar {
    top: auto;
    left: 1rem;
    bottom: 1rem;
    grid-auto-flow: column;
    grid-template-columns: repeat(auto-fit, 2.65rem);
  }

  .argus-context-panel {
    right: .75rem;
    bottom: 4.4rem;
  }

  .argus-map-head {
    top: 4.2rem;
    left: .75rem;
    right: .75rem;
    align-items: start;
    flex-direction: column;
  }
}

.argus-login-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 50%, rgba(212, 175, 55, .08) 0, transparent 34%),
    radial-gradient(circle at 86% 46%, rgba(212, 175, 55, .07) 0, transparent 32%),
    linear-gradient(135deg, #07192f 0%, #0d2c52 48%, #102f57 100%);
}

.argus-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, .025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, .018) 25%, transparent 25%);
  background-size: 34px 34px;
  opacity: .35;
}

.argus-login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.argus-login-card {
  width: min(100%, 450px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .32);
}

.argus-login-header {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.75rem;
  text-align: center;
  background: linear-gradient(135deg, #07192f 0%, #0d2c52 100%);
}

.argus-login-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(212, 175, 55, .16), transparent 64%);
}

.argus-login-brand-stack,
.argus-login-header h1,
.argus-login-header p {
  position: relative;
  z-index: 1;
}

.argus-login-brand-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  margin-bottom: 1rem;
}

.argus-login-brand-mark {
  width: 5.35rem;
  height: 5.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #c9a646;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 .55rem 1.5rem rgba(212, 175, 55, .28);
}

.argus-login-brand-mark img {
  max-width: 4.45rem;
  max-height: 4.45rem;
  object-fit: contain;
}

.argus-login-brand-connector {
  width: 3px;
  height: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 166, 70, .2), rgba(201, 166, 70, .95), rgba(201, 166, 70, .2));
  box-shadow: 0 .3rem .9rem rgba(201, 166, 70, .22);
}

.argus-login-header h1 {
  margin: 0 0 .25rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.argus-login-header p {
  margin: 0;
  color: #d4af37;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.argus-login-body {
  padding: 2rem 1.85rem 1.65rem;
}

.argus-login-intro {
  margin-bottom: 1.25rem;
}

.argus-login-kicker {
  display: inline-flex;
  margin-bottom: .35rem;
  color: #d4af37;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.argus-login-intro h2 {
  margin: 0;
  color: #1a3a5c;
  font-size: 1.25rem;
  font-weight: 800;
}

.argus-login-intro p {
  margin: .25rem 0 0;
  color: #667085;
  font-size: .9rem;
}

.argus-login-field {
  margin-bottom: 1.25rem;
}

.argus-login-field .form-label {
  margin-bottom: .45rem;
  color: #1a3a5c;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.argus-login-input {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: .8rem;
  box-shadow: 0 .15rem .7rem rgba(0, 0, 0, .06);
  transition: box-shadow .2s ease, transform .2s ease;
}

.argus-login-input:focus-within {
  box-shadow: 0 0 0 .22rem rgba(26, 58, 92, .12), 0 .35rem 1rem rgba(26, 58, 92, .12);
  transform: translateY(-1px);
}

.argus-login-input-icon,
.argus-password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.15rem;
  border: 2px solid #e0e0e0;
  background: #f8f9fa;
  color: #6c757d;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.argus-login-input-icon {
  border-right: 0;
}

.argus-password-toggle {
  border-left: 0;
  cursor: pointer;
}

.argus-password-toggle:hover {
  background: #eef1f4;
}

.argus-login-input .form-control {
  min-height: 3.15rem;
  border: 2px solid #e0e0e0;
  border-left: 0;
  border-radius: 0;
  background: #f8f9fa;
  color: #1f2937;
  font-size: .98rem;
  transition: border-color .2s ease, background .2s ease;
}

.argus-login-input .form-control:focus {
  border-color: #1a3a5c;
  background: #fff;
  box-shadow: none;
}

.argus-login-input:focus-within .argus-login-input-icon,
.argus-login-input:focus-within .argus-password-toggle {
  border-color: #1a3a5c;
  color: #1a3a5c;
  background: #fff;
}

.argus-login-button {
  position: relative;
  overflow: hidden;
  min-height: 3.2rem;
  margin-top: .25rem;
  border: 0;
  border-radius: .8rem;
  background: linear-gradient(135deg, #1a3a5c 0%, #0f2940 100%);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}

.argus-login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .24), transparent);
  transition: left .5s ease;
}

.argus-login-button:hover,
.argus-login-button:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 .65rem 1.45rem rgba(26, 58, 92, .3);
}

.argus-login-button:hover::before,
.argus-login-button:focus::before {
  left: 100%;
}

.argus-login-footer {
  padding: 0 1.75rem 1.7rem;
  text-align: center;
  color: #6c757d;
  font-size: .84rem;
}

.argus-login-footer i {
  color: #d4af37;
}

.argus-login-footer small {
  display: block;
  margin-top: .25rem;
  color: #9aa3af;
}

@media (max-width: 575.98px) {
  .argus-login-shell {
    align-items: flex-start;
    padding: .75rem;
  }

  .argus-login-card {
    border-radius: 1rem;
  }

  .argus-login-header {
    padding: 1.45rem 1.15rem;
  }

  .argus-login-brand-stack {
    margin-bottom: .8rem;
  }

  .argus-login-brand-mark {
    width: 4.25rem;
    height: 4.25rem;
  }

  .argus-login-brand-mark img {
    max-width: 3.45rem;
    max-height: 3.45rem;
  }

  .argus-login-brand-connector {
    height: 1rem;
  }

  .argus-login-header h1 {
    font-size: 1.22rem;
  }

  .argus-login-header p {
    font-size: .74rem;
  }

  .argus-login-body {
    padding: 1.35rem 1rem 1.2rem;
  }

  .argus-login-intro h2 {
    font-size: 1.1rem;
  }

  .argus-login-input .form-control,
  .argus-login-input-icon,
  .argus-password-toggle {
    min-height: 2.9rem;
  }

  .argus-login-footer {
    padding: 0 1rem 1.25rem;
  }
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection,
[data-bs-theme="dark"] .select2-container--default .select2-selection {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection__rendered,
[data-bs-theme="dark"] .select2-container--default .select2-selection__rendered {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .select2-dropdown {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .select2-search__field {
  color: var(--bs-body-color) !important;
  background-color: var(--bs-tertiary-bg) !important;
  border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .select2-results__option {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted,
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
[data-bs-theme="dark"] .select2-results__option--selected {
  color: #fff;
  background-color: var(--bs-primary);
}

.table td,
.table th {
  white-space: nowrap;
}

.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}

.modal-dialog-scrollable .modal-content > form > .modal-body {
  overflow-y: auto;
  min-height: 0;
}

.modal-fullscreen .modal-content > form {
  height: 100%;
}

.card-title {
  font-size: 1rem;
}
