html {
  font-size: 14px;
}

:root {
  --app-bg: #f3f6fb;
  --app-surface: #ffffff;
  --app-border: #d9e2ec;
  --app-text: #1f2937;
  --app-muted: #6b7280;
  --app-primary: #1b6ec2;
  --app-primary-soft: #eaf3ff;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

.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;
}

.card,
.table,
.alert,
.modal-content,
.dropdown-menu {
  border-color: var(--app-border);
}

.card {
  border-radius: 0.85rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.table {
  background: var(--app-surface);
}

.table thead th {
  background: #f7fafc;
  color: #374151;
  font-weight: 600;
  border-bottom-width: 1px;
}

.table td,
.table th {
  vertical-align: middle;
}

.form-control,
.form-select {
  border-radius: 0.7rem;
  border-color: var(--app-border);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 0.2rem rgba(27, 110, 194, 0.15);
}

.btn {
  border-radius: 0.7rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #1b6ec2, #1559a0);
  border-color: #1559a0;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1559a0, #114882);
  border-color: #114882;
}

.app-pageHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.app-pageTitle {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
}

.app-pageSubtitle {
  margin: 0.25rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.app-cardSurface {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.9rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  max-width: 100%;
}

.app-stockTransferScroll {
  max-height: min(72vh, 820px);
  overflow-y: auto;
  overflow-x: auto;
}

.app-stockTransferScroll .table thead th {
  box-shadow: 0 1px 0 var(--app-border);
  background: #f7fafc;
}

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

.app-authSurface {
  width: 100%;
  max-width: 920px;
}

.app-authBody .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

.app-authBody h1,
.app-authBody h2,
.app-authBody h3 {
  text-align: center;
}

.app-authBody p {
  margin-bottom: 0.55rem;
}

.app-authBody #forgot-password,
.app-authBody #resend-confirmation,
.app-authBody a[href^="/Identity/Account/Register"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid #dbe4ee;
  background: #ffffff;
  color: #1f3f75;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.app-authBody #forgot-password:hover,
.app-authBody #resend-confirmation:hover,
.app-authBody a[href^="/Identity/Account/Register"]:hover {
  background: #f4f8ff;
  border-color: #bcd3f1;
  color: #123f7a;
  box-shadow: 0 4px 14px rgba(27, 110, 194, 0.10);
}

.app-authBody #forgot-password:focus-visible,
.app-authBody #resend-confirmation:focus-visible,
.app-authBody a[href^="/Identity/Account/Register"]:focus-visible {
  outline: 2px solid #1b6ec2;
  outline-offset: 2px;
}

.app-tableDense {
  margin: 0;
}

.app-tableDense thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.app-tableDense td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  font-size: 0.93rem;
}

.app-tableDense td,
.app-tableDense th {
  border-color: #e6edf5;
}

.app-emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 0.8rem;
  color: #64748b;
}

.app-emptyStateTitle {
  font-weight: 700;
  color: #334155;
}

.app-emptyStateText {
  font-size: 0.92rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 700;
  padding: 0.38rem 0.58rem;
}

.app-badgeSuccess {
  color: #14532d;
  background: #dcfce7;
}

.app-badgeNeutral {
  color: #334155;
  background: #e2e8f0;
}

.app-badgeInfo {
  color: #1e3a8a;
  background: #dbeafe;
}

.app-badgeWarning {
  color: #92400e;
  background: #fef3c7;
}

.app-badgeDanger {
  color: #991b1b;
  background: #fee2e2;
}

.app-sidebar a,
.app-sidebar a:visited,
.app-sidebar a:hover,
.app-sidebar a:active {
  text-decoration: none !important;
}

.app-sidebar .app-sidebar-link {
  color: #1f2937 !important;
}

.app-sidebar .app-sidebar-link.active {
  color: #ffffff !important;
}

.app-sidebar .app-sidebar-linkText,
.app-sidebar .app-sidebarQuickBtn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  overflow-wrap: normal;
}

.app-sidebar .app-sidebarQuick {
  grid-template-columns: 1fr;
}

.app-sidebar .app-sidebarQuickBtn {
  justify-content: flex-start;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.app-formSurface {
  padding: 1rem;
}

.app-formActions {
  margin-top: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e6edf5;
}

.app-responsiveActions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-filterSurface {
  padding: 0.9rem;
}

.app-btnFluid {
  width: auto;
}

.app-mobileHeader {
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-mobileNavLinks {
  max-height: 75vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.5rem;
}

.app-mobileNavSection {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 0.6rem 0.5rem 0.2rem;
  margin-top: 0.15rem;
}

.app-mobileNavLink {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-mobileNavLink i {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.app-mobileNavLink:hover {
  background: #f0f6ff;
  border-color: #d4e4ff;
  color: #0f2f66;
  text-decoration: none;
}

.app-mobileNavLink.active {
  background: linear-gradient(135deg, #1b6ec2, #1559a0);
  color: #fff;
  border-color: #1559a0;
  font-weight: 600;
}

.app-mobileNavLink.active i {
  color: #fff;
}

.app-mobileNavAccount {
  border-top: 1px solid #e5edf6;
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}

.app-module-geral {
  --app-module-primary: #1d4ed8;
  --app-module-primary-dark: #1e40af;
  --app-module-soft: #dbeafe;
  --app-module-text: #1e3a8a;
}

.app-module-cadastros {
  --app-module-primary: #0f766e;
  --app-module-primary-dark: #115e59;
  --app-module-soft: #ccfbf1;
  --app-module-text: #134e4a;
}

.app-module-operacao {
  --app-module-primary: #c2410c;
  --app-module-primary-dark: #9a3412;
  --app-module-soft: #ffedd5;
  --app-module-text: #7c2d12;
}

.app-module-relatorios {
  --app-module-primary: #7e22ce;
  --app-module-primary-dark: #6b21a8;
  --app-module-soft: #f3e8ff;
  --app-module-text: #581c87;
}

.app-module-financeiro {
  --app-module-primary: #0369a1;
  --app-module-primary-dark: #075985;
  --app-module-soft: #e0f2fe;
  --app-module-text: #0c4a6e;
}

.app-module-administracao {
  --app-module-primary: #374151;
  --app-module-primary-dark: #1f2937;
  --app-module-soft: #f3f4f6;
  --app-module-text: #111827;
}

.app-moduleContext {
  margin: 0.85rem 0 0.6rem;
}

.app-moduleContextBadge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--app-module-text);
  background: var(--app-module-soft);
  border: 1px solid color-mix(in srgb, var(--app-module-primary) 25%, #ffffff);
}

.app-page .btn-primary {
  background: linear-gradient(135deg, var(--app-module-primary), var(--app-module-primary-dark));
  border-color: var(--app-module-primary-dark);
}

.app-page .btn-primary:hover {
  background: linear-gradient(135deg, var(--app-module-primary-dark), var(--app-module-primary-dark));
  border-color: var(--app-module-primary-dark);
}

.app-page .btn-outline-primary {
  color: var(--app-module-primary);
  border-color: color-mix(in srgb, var(--app-module-primary) 55%, #ffffff);
  background: #ffffff;
}

.app-page .btn-outline-primary:hover {
  color: #ffffff;
  border-color: var(--app-module-primary-dark);
  background: linear-gradient(135deg, var(--app-module-primary), var(--app-module-primary-dark));
}

.app-page .btn-outline-secondary {
  color: var(--app-module-text);
  border-color: color-mix(in srgb, var(--app-module-primary) 25%, #cbd5e1);
  background: color-mix(in srgb, var(--app-module-soft) 35%, #ffffff);
}

.app-page .btn-outline-secondary:hover {
  color: var(--app-module-text);
  border-color: color-mix(in srgb, var(--app-module-primary) 45%, #94a3b8);
  background: color-mix(in srgb, var(--app-module-soft) 65%, #ffffff);
}

.app-page .app-cardSurface {
  border-top: 3px solid color-mix(in srgb, var(--app-module-primary) 65%, #ffffff);
}

.app-page .app-badgeInfo {
  color: var(--app-module-text);
  background: var(--app-module-soft);
}

.app-page .alert-success,
.app-page .alert-warning,
.app-page .alert-danger {
  border-width: 1px;
  border-style: solid;
}

.app-page .alert-success {
  color: var(--app-module-text);
  background: color-mix(in srgb, var(--app-module-soft) 72%, #ffffff);
  border-color: color-mix(in srgb, var(--app-module-primary) 35%, #d1fae5);
}

.app-page .alert-warning {
  color: #7c2d12;
  background: color-mix(in srgb, var(--app-module-soft) 52%, #fff7ed);
  border-color: color-mix(in srgb, var(--app-module-primary) 25%, #fdba74);
}

.app-page .alert-danger {
  color: #7f1d1d;
  background: color-mix(in srgb, var(--app-module-soft) 42%, #fef2f2);
  border-color: color-mix(in srgb, var(--app-module-primary) 18%, #fca5a5);
}

@media (max-width: 991.98px) {
  .app-pageHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .app-pageHeader > div:last-child {
    width: 100%;
  }

  .app-pageHeader .btn {
    width: 100%;
  }

  .app-pageTitle {
    font-size: 1.15rem;
  }

  .app-pageSubtitle {
    font-size: 0.85rem;
  }

  .app-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .app-mobileNavLinks {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.2rem;
  }

  .app-mobileNavLinks .nav-link {
    border-radius: 0.55rem;
    margin-bottom: 0.15rem;
    padding: 0.55rem 0.75rem;
    background: #f8fbff;
    border: 1px solid #e1e8f2;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .app-responsiveActions > * {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .row.g-3 > [class*="col-md"],
  .row.g-3 > [class*="col-lg"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .app-tableDense th,
  .app-tableDense td {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 0.5rem 0.6rem;
  }

  .app-moduleContext {
    margin: 0.5rem 0 0.3rem;
  }

  .footer {
    line-height: 40px;
    font-size: 0.82rem;
  }

  .col-md-2.d-grid {
    margin-top: 0;
  }

  .col-md-2.d-grid .form-label {
    display: none;
  }

  .d-flex.gap-2 {
    flex-wrap: wrap;
  }

  .btn-sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.55rem;
  }
}

@media (max-width: 767.98px) {
  .app-authSurface {
    max-width: 100%;
  }

  .app-cardSurface {
    border-radius: 0.6rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  }

  .app-formSurface,
  .app-filterSurface {
    padding: 0.65rem;
  }

  .app-tableDense th,
  .app-tableDense td {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }

  .app-responsiveActions > * {
    flex: 1 1 100%;
  }

  .app-btnFluid {
    width: 100%;
  }

  .app-emptyState {
    padding: 1rem 0.5rem;
  }

  .app-emptyStateTitle {
    font-size: 0.92rem;
  }

  .app-emptyStateText {
    font-size: 0.82rem;
  }

  .app-badge {
    font-size: 0.68rem;
    padding: 0.28rem 0.44rem;
  }

  .app-formActions {
    flex-direction: column;
  }

  .app-formActions .btn {
    width: 100%;
  }

  .form-label {
    font-size: 0.88rem;
  }
}

@media (max-width: 575.98px) {
  html {
    font-size: 13px;
  }

  .app-pageTitle {
    font-size: 1.05rem;
  }

  .navbar-brand {
    font-size: 1.05rem;
  }

  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .app-cardSurface {
    border-radius: 0.5rem;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
  }

  .app-tableDense th:nth-child(n+5),
  .app-tableDense td:nth-child(n+5) {
    min-width: 70px;
  }
}/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: relative;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  background: #fff;
}

.app-layout {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.app-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.app-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.app-sidebar {
  width: 290px;
  min-height: 100vh;
  height: 100vh;
  border-right: 1px solid #d9e2ec;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  flex-direction: column;
  position: sticky;
  top: 0;
  overflow-y: hidden;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: width 0.25s ease;
}

.app-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  border-bottom: 1px solid #d9e2ec;
  padding: 0.5rem 1.7rem 0.5rem 0.75rem;
}

.app-sidebarMeta {
  padding: 0.8rem 0.9rem 0.4rem;
}

.app-sidebarMetaTitle {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1f4c84;
}

.app-sidebarMetaSub {
  margin: 0.28rem 0 0;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.35;
}

.app-sidebarQuick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem 0.7rem;
}

.app-sidebarQuickBtn {
  border-radius: 0.62rem;
  border: 1px solid #cbdcf8;
  background: #edf4ff;
  color: #12478a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.app-sidebarQuickBtn:hover {
  background: #dfeeff;
  color: #0d3a72;
}

.app-sidebarQuickBtnSecondary {
  border-color: #d9e2ec;
  background: #f8fafc;
  color: #334155;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  color: #1f2937;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  min-width: 0;
}

.app-sidebar-brandIcon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #1b6ec2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.app-sidebar-brandIcon i {
  line-height: 1;
}

.app-sidebar-brandText {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-sidebar-toggle {
  border: 1px solid color-mix(in srgb, var(--app-module-primary) 45%, #ffffff);
  background: color-mix(in srgb, var(--app-module-soft) 30%, #ffffff);
  color: var(--app-module-primary-dark);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, right 0.25s ease;
}

.app-sidebar-toggle:hover {
  background: color-mix(in srgb, var(--app-module-soft) 52%, #ffffff);
  border-color: color-mix(in srgb, var(--app-module-primary) 65%, #ffffff);
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 10px 18px color-mix(in srgb, var(--app-module-primary) 22%, rgba(15, 23, 42, 0.22));
}

.app-sidebar-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--app-module-primary) 70%, #ffffff);
  outline-offset: 2px;
}

.app-sidebar-toggleOpen,
.app-sidebar-toggleClose {
  font-size: 0.84rem;
  line-height: 1;
}

.app-sidebar-toggleAnimating {
  animation: appSidebarToggleSpin 220ms ease;
}

@keyframes appSidebarToggleSpin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(180deg);
  }
}

.app-sidebar-toggleClose {
  display: none;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 0.75rem 1rem 0.75rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid #e5edf6;
}

.app-sidebar-section {
  margin: 0.75rem 0.5rem 0.25rem 0.5rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.app-sidebar-section.active {
  color: #1f4c84;
}

.app-sidebar-sectionToggle {
  width: calc(100% - 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.app-sidebar-sectionChevron {
  font-size: 0.7rem;
  transition: transform 0.16s ease;
}

.app-sidebar-sectionToggle[aria-expanded="false"] .app-sidebar-sectionChevron {
  transform: rotate(-90deg);
}

.app-sidebar-linkHidden {
  display: none;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  text-decoration: none;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-sidebar-linkIcon {
  min-width: 22px;
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.app-sidebar-linkText {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-sidebar-link:hover {
  background: #eef5ff;
  border-color: #d4e4ff;
  color: #0f2f66;
  transform: translateX(2px);
}

.app-sidebar-link:hover .app-sidebar-linkIcon {
  transform: scale(1.08);
}

.app-sidebar-link.active {
  background: linear-gradient(135deg, #1b6ec2, #1559a0);
  color: #fff;
  border-color: #1559a0;
  box-shadow: 0 8px 18px rgba(21, 89, 160, 0.25);
}

.app-sidebar-link[data-section="Geral"] .app-sidebar-linkIcon {
  color: #0f4ea5;
}

.app-sidebar-link[data-section="Cadastros"] .app-sidebar-linkIcon {
  color: #0f766e;
}

.app-sidebar-link[data-section="Operacao"] .app-sidebar-linkIcon {
  color: #7c2d12;
}

.app-sidebar-link[data-section="Relatorios"] .app-sidebar-linkIcon {
  color: #7e22ce;
}

.app-sidebar-link.active .app-sidebar-linkIcon {
  color: #ffffff;
}

.app-sidebar-link.active[data-section="Geral"] {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}

.app-sidebar-link.active[data-section="Cadastros"] {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  border-color: #0f766e;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.app-sidebar-link.active[data-section="Operacao"] {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border-color: #c2410c;
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.28);
}

.app-sidebar-link.active[data-section="Relatorios"] {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  border-color: #7e22ce;
  box-shadow: 0 8px 18px rgba(126, 34, 206, 0.28);
}

.app-sidebar-link:focus-visible {
  outline: 2px solid #1b6ec2;
  outline-offset: 2px;
}

.app-sidebar-account {
  border-top: 1px solid #d9e2ec;
  padding: 0.85rem 0.75rem;
  background: #f7fbff;
}

@media (min-width: 992px) {
  .app-layout {
    display: flex;
    gap: 0.85rem;
  }

  .app-layout.app-sidebar-collapsed .app-sidebar {
    width: 84px;
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-toggle {
    right: 1px;
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-account,
  .app-layout.app-sidebar-collapsed .app-sidebarMeta,
  .app-layout.app-sidebar-collapsed .app-sidebarQuick,
  .app-layout.app-sidebar-collapsed .app-sidebar-brandText,
  .app-layout.app-sidebar-collapsed .app-sidebar-linkText,
  .app-layout.app-sidebar-collapsed .app-sidebar-toggleOpen {
    display: none;
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-brand {
    justify-content: center;
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-toggleClose {
    display: inline-flex;
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-link {
    justify-content: center;
    padding: 0.6rem 0.4rem;
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-section {
    margin: 0.5rem 0.3rem 0.35rem;
    height: 2px;
    border-radius: 999px;
    text-indent: -9999px;
    overflow: hidden;
    color: transparent;
    background: #dbe5f0;
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-section[data-section="Geral"] {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-section[data-section="Cadastros"] {
    background: linear-gradient(90deg, #0d9488, #0f766e);
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-section[data-section="Operacao"] {
    background: linear-gradient(90deg, #ea580c, #c2410c);
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-section[data-section="Relatorios"] {
    background: linear-gradient(90deg, #9333ea, #7e22ce);
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-section.active {
    height: 3px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.18);
  }

  .app-layout.app-sidebar-collapsed .app-sidebar-link:hover::after {
    content: attr(data-app-label);
    position: absolute;
    left: calc(100% + 0.55rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    white-space: nowrap;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid #d9e2ec;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.76rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    pointer-events: none;
  }
}

.app-tenantOption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--app-border);
  border-radius: 0.8rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}

.app-tenantOption:hover {
  border-color: var(--app-primary);
  background: #f0f7ff;
  box-shadow: 0 4px 14px rgba(27, 110, 194, 0.10);
}

.app-tenantOption--selected {
  border-color: var(--app-primary);
  background: #eaf3ff;
  box-shadow: 0 4px 18px rgba(27, 110, 194, 0.14);
}

.app-tenantOptionRadio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.app-tenantOptionIcon {
  width: 42px;
  height: 42px;
  border-radius: 0.65rem;
  background: var(--app-primary-soft);
  color: var(--app-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.app-tenantOption--selected .app-tenantOptionIcon {
  background: var(--app-primary);
  color: #fff;
}

.app-tenantOptionBody {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.app-tenantOptionName {
  font-size: 0.97rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-tenantOptionSlug {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.1rem;
  font-family: ui-monospace, "Fira Code", monospace;
}

.app-tenantOptionCheck {
  font-size: 1.1rem;
  color: var(--app-primary);
  opacity: 0;
  transition: opacity 0.18s ease;
  flex-shrink: 0;
}

.app-tenantOption--selected .app-tenantOptionCheck {
  opacity: 1;
}
