/* Menu lateral, topo da página, tela de login, situação da nuvem e identidade da empresa.
   Bloco 59 passo 9: parte do antigo style.css. A ordem de carregamento está no index.html (base primeiro). */
.brand {
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 7px;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 750;
  color: #174a36;
}
.brand > div:last-child > span {
  display: block;
  font-size: 9px;
  letter-spacing: 2.2px;
  font-weight: 600;
  margin-top: 3px;
  color: #75897c;
}
.nav-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: #9aa49c;
  padding-left: 14px;
  margin-bottom: 12px;
}
.nav {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 13px;
  border-radius: 9px;
  text-align: left;
  color: #738178;
  font-size: 12px;
  font-weight: 550;
}
.nav-count {
  margin-left: auto;
  background: #d7e8d4;
  border-radius: 4px;
  font-size: 9px;
  padding: 3px 5px;
  white-space: nowrap;
}
.sidebar-note {
  margin-top: auto;
  margin-bottom: 28px;
  border-radius: 12px;
  background: #f4f6ec;
  padding: 20px 16px;
  line-height: 1.6;
}
.breadcrumb {
  font-size: 11px;
  color: #8d988f;
  display: flex;
  gap: 13px;
  align-items: center;
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.sidebar {
  background: linear-gradient(180deg, #fff, #f0fdf9);
  border-color: #dcebe7;
}
.brand {
  color: #065f46;
}
.brand > div:last-child > span {
  color: #58766b;
}
.nav-label {
  color: #68798b;
}
.nav {
  color: #5d6e81;
}
.nav:hover {
  background: #f1f5f9;
}
.nav[data-page='caixa'] > span:first-child {
  color: #059669;
}
.nav[data-page='abc'] > span:first-child {
  color: #2563eb;
}
.nav[data-page='simulador'] > span:first-child {
  color: #7c3aed;
}
.nav[data-page='caixa'].active {
  background: #d1fae5;
  color: #065f46;
}
.nav[data-page='abc'].active {
  background: #dbeafe;
  color: #1e40af;
}
.nav[data-page='simulador'].active {
  background: #ede9fe;
  color: #5b21b6;
}
.nav-count {
  background: #bfdbfe;
  color: #1e40af;
}
.sidebar-note {
  background: linear-gradient(135deg, #047857, #0e7490);
  color: #fff;
  box-shadow: 0 8px 20px #04785717;
}
.sidebar-bottom {
  color: #326553;
  border-color: #cce7da;
}
.topbar {
  position: relative;
  background: #ffffffd9;
  border-color: #e0e7f0;
}
.topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0% 28%, #3b82f6 28% 54%, #f59e0b 54% 76%, #8b5cf6 76%);
}
.breadcrumb {
  color: #65768a;
}
@media (max-width: 1200px) {
  .sidebar {
    width: 218px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .topbar {
    padding: 0 25px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 190px;
    padding: 25px 10px 15px;
  }
  .brand {
    font-size: 21px;
    gap: 9px;
  }
  .nav {
    font-size: 10px;
    padding: 12px 9px;
    gap: 8px;
  }
  .nav-count {
    display: none;
  }
  .sidebar-note {
    font-size: 11px;
    padding: 14px 11px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 17px 18px 0;
    border-right: 0;
    border-bottom: 1px solid #e1e6d9;
  }
  .brand {
    font-size: 21px;
  }
  .brand > div:last-child > span {
    font-size: 8px;
  }
  .nav {
    border-radius: 7px 7px 0 0;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    padding: 11px 4px;
    font-size: 9px;
  }
  .topbar {
    height: 47px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 9px;
    gap: 8px;
  }
  .topbar-right {
    gap: 10px;
  }
}
/* Menu principal e seletores do Livro Diário */
.sidebar {
  transition: width 0.18s ease;
}
.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 24px;
}
.sidebar-brand-row .brand {
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.2;
  min-width: 0;
}
.sidebar-brand-row .brand .sidebar-text {
  max-width: 135px;
}
.sidebar-brand-row #sidebar-toggle {
  border: 0;
  background: #edf5f1;
  border-radius: 7px;
  color: #174a36;
  padding: 8px;
  cursor: pointer;
}
.sidebar .nav {
  white-space: nowrap;
}
.sidebar .nav svg {
  flex-shrink: 0;
}
.sidebar-collapsed .sidebar {
  width: 70px;
  padding: 20px 9px;
}
.sidebar-collapsed .main-shell {
  margin-left: 70px;
}
.sidebar-collapsed .sidebar-text,
.sidebar-collapsed .sidebar-note,
.sidebar-collapsed .sidebar-bottom,
.sidebar-collapsed .quick-entry-button[data-new-entry='out'] {
  display: none;
}
.sidebar-collapsed .sidebar-brand-row {
  flex-direction: column;
}
.sidebar-collapsed .sidebar-brand-row .brand {
  padding: 0;
}
.sidebar-collapsed .nav {
  justify-content: center;
  padding: 14px 8px;
}
.sidebar-collapsed .quick-entry {
  justify-content: center;
}
.sidebar-collapsed .quick-entry-button {
  width: 46px;
  flex: 0 0 46px;
}
@media (max-width: 800px) {
  .sidebar-collapsed .sidebar {
    width: 60px;
  }
  .sidebar-collapsed .main-shell {
    margin-left: 60px;
  }
}
.sidebar-collapsed .quick-entry .quick-entry-button {
  justify-content: center;
  padding-left: 6px;
}
.sidebar nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  align-content: start;
  padding-bottom: 10px;
}
.sidebar-customize {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 13px;
  border-radius: 9px;
  text-align: left;
  color: #245b46;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-customize:hover {
  background: #eaf2e9;
}
.sidebar-customize svg {
  flex-shrink: 0;
}
.sidebar-collapsed .sidebar-customize {
  justify-content: center;
  padding: 14px 8px;
}
.sidebar-collapsed .sidebar-customize .sidebar-text {
  display: none;
}
@media (max-width: 700px) {
  .sidebar nav {
    flex: initial;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .sidebar-customize {
    width: auto;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 11px 7px;
    font-size: 9px;
  }
  .sidebar-collapsed .sidebar-customize {
    padding: 11px 7px;
  }
}
/* 04/11 (chat do visual): o quadro "Mais giro" só aparece em tela alta; em notebook (768 px) ele empurrava
   Painel de Compras, Painel de Estoque e Fechamento para fora do menu (só rolando). Antes: 700 px. */
@media (max-height: 950px) and (min-width: 701px) {
  .sidebar-note {
    display: none;
  }
  .sidebar-bottom {
    margin-top: auto;
  }
}
.sidebar-layout-controls {
  flex-shrink: 0;
  border-top: 1px solid #dcebe7;
  padding-top: 9px;
}
.sidebar-layout-controls .sidebar-customize {
  width: 100%;
}
.sidebar-layout-controls [hidden] {
  display: none !important;
}
.sidebar-layout-editing .sidebar-note,
.sidebar-layout-editing .sidebar-bottom {
  display: none;
}
.sidebar-layout-editing .sidebar nav .nav {
  cursor: grab;
  border: 1px dashed transparent;
}
.sidebar-layout-editing .sidebar nav .nav:active {
  cursor: grabbing;
}
.sidebar-layout-editing .sidebar nav .sidebar-selected {
  border-color: #047857;
  background: #d1fae5;
  color: #065f46;
}
.sidebar-layout-caption {
  font-size: 12px;
  line-height: 1.35;
  color: #49675e;
  margin: 6px 0 10px;
}
.sidebar-layout-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.sidebar-layout-buttons .sidebar-layout-done {
  background: #12664c;
  color: white;
  grid-column: span 2;
}
.sidebar-layout-controls [role='status']:not(:empty) {
  display: block;
  color: #b42318;
  margin-top: 6px;
  font-size: 12px;
}
.sidebar-collapsed .sidebar-layout-caption,
.sidebar-collapsed .sidebar-layout-buttons button:not(.sidebar-layout-done) {
  font-size: 0;
}
.sidebar-collapsed .sidebar-layout-buttons button:nth-child(1)::after {
  content: '↑';
  font-size: 15px;
}
.sidebar-collapsed .sidebar-layout-buttons button:nth-child(2)::after {
  content: '↓';
  font-size: 15px;
}
.sidebar-collapsed .sidebar-layout-buttons button:nth-child(3)::after {
  content: '↶';
  font-size: 15px;
}
.sidebar-collapsed .sidebar-layout-buttons button:nth-child(4)::after {
  content: '↷';
  font-size: 15px;
}
.sidebar-collapsed .sidebar-layout-buttons button:nth-child(5)::after {
  content: '↺';
  font-size: 15px;
}
@media (max-width: 700px) {
  .sidebar-layout-controls {
    margin: 8px 0;
  }
  .sidebar-layout-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sidebar-layout-buttons .sidebar-layout-done {
    grid-column: span 3;
  }
}
/* Dark, continuous sidebar across every page. */
.sidebar {
  background: #10324f;
  border-color: #10324f;
  color: #eaf5fc;
}
.sidebar-brand-row {
  justify-content: flex-start;
}
.sidebar-brand-row #sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f3f9ff;
  text-align: left;
  font-weight: 750;
}
.sidebar-brand-row #sidebar-toggle:hover {
  background: #1b4668;
}
.sidebar-brand-row .brand .sidebar-text {
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar .mark {
  display: block;
  background: #20769c;
  box-shadow: none;
}
.sidebar .nav {
  color: #d9eaf5;
  font-size: 13px;
}
.sidebar .nav:hover,
.sidebar .sidebar-customize:hover {
  background: #1c486a;
  color: #fff;
}
.sidebar .nav.active {
  background: #205477;
  color: #fff;
}
.sidebar .nav[data-page].active {
  background: #205477;
  color: #fff;
}
.sidebar .nav[data-page] svg,
.sidebar .sidebar-customize svg {
  color: #b5e4fb;
}
.sidebar .quick-entry-button {
  background: #09263e;
  color: #e8f8ff;
}
.sidebar .quick-entry-button:hover {
  background: #205477;
}
.sidebar .sidebar-layout-controls,
.sidebar .sidebar-bottom {
  border-color: #37607b;
}
.sidebar .sidebar-customize,
.sidebar .sidebar-bottom {
  color: #d9eaf5;
}
.sidebar .sidebar-bottom small {
  color: #afc9d8;
}
.sidebar .sidebar-note {
  background: #194662;
  color: #edf8ff;
  box-shadow: none;
}
.sidebar .sidebar-layout-caption {
  color: #cfdfed;
}
.sidebar .sidebar-layout-buttons .sidebar-layout-done {
  background: #0f766e;
}
.sidebar-layout-editing .sidebar nav .sidebar-selected {
  background: #205477;
  color: #fff;
  border-color: #72d7ff;
}
.sidebar-collapsed .sidebar-brand-row {
  flex-direction: row;
  justify-content: center;
}
.sidebar-collapsed .sidebar-brand-row #sidebar-toggle {
  justify-content: center;
  width: 100%;
  padding: 0;
}
.sidebar-collapsed .sidebar-brand-row .mark {
  margin: 0;
}
@media (max-width: 700px) {
  .sidebar {
    border-bottom-color: #37607b;
  }
  .sidebar-collapsed .sidebar {
    background: #10324f;
  }
}
.sidebar .mark {
  position: relative;
  overflow: hidden;
  padding: 0;
  line-height: 42px;
  text-align: center;
}
.sidebar .brand-fallback {
  display: block;
  position: static;
  font-size: 32px;
  font-weight: 750;
  line-height: 42px;
}
.sidebar .brand-fallback[hidden],
.sidebar #brand-logo[hidden],
.sidebar #brand-tagline[hidden] {
  display: none !important;
}
.sidebar #brand-logo {
  display: block;
  position: absolute;
  max-width: none;
}
.sidebar #brand-logo:not(.reference) {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sidebar #brand-logo.reference {
  width: 155px;
  height: auto;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  mix-blend-mode: screen;
}
.sidebar .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1.2;
}
.sidebar .brand-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.sidebar .brand-copy small {
  font-size: 10px;
  font-weight: 450;
  color: #b9d1df;
  white-space: normal;
}
.sidebar-collapsed .brand-copy {
  display: none;
}
.sidebar #branding-open {
  width: 100%;
}
.sidebar-collapsed #branding-open {
  justify-content: center;
  padding: 14px 8px;
}
.sidebar-collapsed #branding-open .sidebar-text {
  display: none;
}
.sidebar [data-icon='abcBoxes'] svg text {
  stroke: none;
  fill: currentColor;
  font-size: 6px;
  font-weight: 800;
  font-family: Arial, sans-serif;
}
#identity-dialog .drawer-body {
  padding: 20px;
  max-height: 75vh;
  overflow: auto;
}
#identity-form input:not([type='checkbox']),
#identity-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #bed6e2;
  border-radius: 8px;
}
#identity-form #identity-custom-wrap[hidden] {
  display: none;
}
.identity-preview {
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10324f;
  border-radius: 9px;
  overflow: hidden;
  color: white;
  font-size: 13px;
}
.identity-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.identity-preview img.reference {
  position: absolute;
  height: 350px;
  width: auto;
  max-width: none;
  max-height: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.identity-preview [hidden] {
  display: none !important;
}
.sidebar .brand-copy[hidden] {
  display: none !important;
}
body:not(.sidebar-collapsed) .sidebar.brand-logo-only .mark {
  width: 100%;
  height: 64px;
  flex: 1;
  background: transparent;
}
body:not(.sidebar-collapsed) .sidebar.brand-logo-only #brand-logo.reference {
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
body:not(.sidebar-collapsed) .sidebar.brand-logo-only #brand-logo:not(.reference) {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sidebar-collapsed .sidebar.brand-logo-only .mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.sidebar-collapsed .sidebar.brand-logo-only #brand-logo.reference {
  width: 155px;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
}
#identity-form .identity-switch {
  margin: 0;
  font-weight: 600;
}
.sidebar-collapsed .ledger-selection-bar {
  left: 50%;
}
/* Módulos escondidos (modules.js) */
.nav[hidden] {
  display: none !important;
}
/* Aceite dos Termos de Uso (termos-aceite.js, 07/11) */
#login-gate.termos-gate .login-logo-img {
  width: 200px;
  height: auto;
  margin: 0 auto 4px;
}
#login-gate .termos-marca {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.35;
  padding: 10px 0;
  cursor: pointer;
}
#login-gate .termos-marca input {
  width: 22px;
  height: 22px;
  padding: 0;
  flex: none;
  margin-top: 1px;
  accent-color: #13835f;
}
#login-gate.termos-gate a {
  color: #13835f;
  font-weight: 700;
}
#login-gate #termos-sair {
  background: none;
  color: #5b6b7a;
  font-size: 13px;
  font-weight: 600;
  padding: 6px;
  margin: 0;
  text-decoration: underline;
}
#login-gate #termos-aceitar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Tela de login (inicio.js) */
body.aguardando-login > *:not(#login-gate):not(script) {
  visibility: hidden;
}
#login-gate .login-card {
  width: min(380px, 100%);
  background: #fff;
  color: #12263a;
  border-radius: 16px;
  padding: 28px 24px;
  display: grid;
  gap: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
#login-gate .login-marca {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
#login-gate .login-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #13835f;
  color: #fff;
  font-weight: 800;
}
#login-gate h1 {
  font-size: 22px;
  margin: 4px 0 8px;
}
#login-gate label {
  font-size: 13px;
  font-weight: 600;
}
#login-gate input {
  font-size: 16px;
  padding: 12px;
  border: 1px solid #c9d3dc;
  border-radius: 10px;
}
#login-gate input:focus {
  outline: 2px solid #13835f;
  outline-offset: 1px;
}
#login-gate button {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: #13835f;
  color: #fff;
  cursor: pointer;
}
#login-gate button:disabled {
  opacity: 0.6;
  cursor: wait;
}
#login-gate .login-erro {
  min-height: 1.2em;
  margin: 0;
  color: #b42318;
  font-size: 14px;
}
#login-gate .login-ajuda {
  margin: 4px 0 0;
  color: #5b6b7a;
  font-size: 12px;
  text-align: center;
}
/* Nuvem: situação do salvamento e botão Sair */
#login-gate .aviso-acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#login-gate .aviso-acoes button {
  flex: 1;
  margin-top: 8px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #13835f;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
#login-gate .aviso-acoes button + button {
  background: #e8eef3;
  color: #12263a;
}
#nuvem-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa7b3;
}
#nuvem-status[data-estado='ok']::before {
  background: #13835f;
}
#nuvem-status[data-estado='enviando']::before {
  background: #e0a100;
}
#nuvem-status[data-estado='erro'] {
  color: #b3261e;
  font-weight: 600;
}
#nuvem-status[data-estado='erro']::before {
  background: #b3261e;
}
#nuvem-barra #sair {
  font-size: 12px;
  font-weight: 600;
  color: #12263a;
  background: #eef3f6;
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}
/* Bloco 8: menu lateral recolhido */
.sidebar-recolher {
  position: absolute;
  top: 34px;
  right: -13px;
  z-index: 30;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #2f5877;
  background: #fff;
  color: #10324f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px #0b233a40;
  transition: transform 0.18s ease;
}
.sidebar-recolher:hover {
  background: #e6f3f9;
}
.sidebar-collapsed .sidebar-recolher svg {
  transform: rotate(180deg);
}
.sidebar-collapsed .sidebar nav {
  scrollbar-width: none;
}
.sidebar-collapsed .sidebar nav::-webkit-scrollbar {
  display: none;
}
.sidebar nav {
  scrollbar-color: #ffffff40 transparent;
}
.sidebar-collapsed .sidebar .nav,
.sidebar-collapsed .sidebar-customize,
.sidebar-collapsed #branding-open {
  justify-content: center;
}
.sidebar-collapsed .sidebar.brand-logo-only .mark:has(#brand-logo.reference) {
  background: url(/leve-mais-logo-icone.png) center/contain no-repeat;
}
.sidebar-collapsed .sidebar.brand-logo-only #brand-logo.reference {
  visibility: hidden;
}
@media (max-width: 700px) {
  .sidebar-recolher {
    display: none;
  }
}
/* Bloco 57 (11/10): Sair e "Salvo na nuvem" no rodapé do menu lateral; a pílula flutuante só aparece quando há problema. */
.sidebar-bottom.com-sair {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px 12px 4px;
}
.sidebar-bottom .sb-quem {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sidebar-bottom .sb-quem b {
  font-size: 13px;
  color: #173c50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-bottom .sb-quem small {
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-bottom #nuvem-barra {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.sidebar-bottom #nuvem-status {
  font-size: 11px;
}
.sidebar-bottom #sair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #173c50;
  background: #fff;
  border: 1px solid #cfdcd5;
  border-radius: 9px;
  padding: 6px 12px;
  cursor: pointer;
}
.sidebar-bottom #sair:hover {
  border-color: #b3261e;
  color: #b3261e;
}
.sair-ico {
  font-size: 14px;
  line-height: 1;
}
.sidebar .sidebar-bottom .sb-quem b {
  color: inherit;
}
.sidebar-collapsed .sidebar-bottom.com-sair {
  display: flex;
  padding: 12px 0 4px;
  align-items: center;
}
.sidebar-collapsed .sidebar-bottom .sb-quem,
.sidebar-collapsed .sidebar-bottom #nuvem-status,
.sidebar-collapsed .sidebar-bottom .sair-txt {
  display: none;
}
.sidebar-collapsed .sidebar-bottom #nuvem-barra {
  justify-content: center;
}
.sidebar-collapsed .sidebar-bottom #sair {
  padding: 8px 10px;
}
.sidebar-layout-editing .sidebar-bottom.com-sair {
  display: none;
}
@media (max-width: 700px) {
  .sidebar-bottom.com-sair {
    display: block;
    border: 0;
    padding: 0;
  }
  .sidebar-bottom.com-sair .sb-quem {
    display: none;
  }
  .sidebar-bottom #nuvem-barra {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    background: #fff;
    border: 1px solid #d7e3dc;
    border-radius: 999px;
    padding: 4px 4px 4px 10px;
    box-shadow: 0 4px 14px rgba(15, 45, 70, 0.12);
  }
  #nuvem-alerta {
    bottom: 58px;
  }
}
.sidebar #nuvem-status {
  color: inherit;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .sidebar #nuvem-status {
    color: #5b6b7a;
    opacity: 1;
  }
}
/* 22/10: telas ocultas pelo cliente (Organizar menu → Ocultar). Fora da edição somem; na edição ficam apagadinhas. */
body:not(.sidebar-layout-editing) #app-sidebar .nav.nav-oculta {
  display: none;
}
body.sidebar-layout-editing #app-sidebar .nav.nav-oculta {
  opacity: 0.45;
}
body.sidebar-layout-editing #app-sidebar .nav.nav-oculta .sidebar-text {
  text-decoration: line-through;
}
.nav-olho {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  cursor: pointer;
  opacity: 1;
}
.nav-olho:hover {
  background: rgba(255, 255, 255, 0.15);
}
body.sidebar-layout-editing #app-sidebar .nav.nav-oculta .nav-olho {
  background: #fff;
  color: #163a5a;
}
/* nome longo não empurra o botão Ocultar para fora */
body.sidebar-layout-editing #app-sidebar .nav .sidebar-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 24/10: tela fixa no Organizar menu (não pode ser escondida) */
.nav-olho.nav-fixa {
  opacity: 0.75;
  cursor: default;
}

/* 27/10: logo nova do Mais Lucro na tela de login (principal colorida, mín. ~240 px) */
#login-gate .login-marca {
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
#login-gate .login-logo-img {
  width: 260px;
  max-width: 100%;
  height: auto;
}
/* 27/10: assinatura do sistema no rodapé do menu (versão em linha, pequena; o destaque é o nome da loja) */
.sb-sistema {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  margin: 0 0 8px;
  opacity: 0.95;
}
.sidebar-collapsed .sb-sistema {
  display: none;
}
/* 30/10 (Thauand): o menu lateral fica só com os painéis; as telas de dentro abrem pelos botões do painel */
#app-sidebar .nav.nav-interna {
  display: none !important;
}
/* 31/10/2026: "⚙ Configurações" no lugar de Cadastros / Organizar menu / Identidade / Administrador */
.sidebar-layout-controls {
  position: relative;
}
.sidebar-config {
  position: relative;
}
.sidebar-config .sidebar-config-seta {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
}
.sidebar-config.aberto .sidebar-config-seta {
  transform: rotate(180deg);
}
.sidebar .sidebar-config.active,
.sidebar .sidebar-config.aberto {
  background: #205477;
  color: #fff;
}
.sidebar-config-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 50;
  background: #163f60;
  border: 1px solid #2a5a80;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-config-menu[hidden] {
  display: none !important;
}
.sidebar-config-menu .sidebar-customize,
.sidebar-config-menu .nav {
  width: 100%;
  padding: 11px 12px;
}
.sidebar-collapsed .sidebar-config-menu {
  left: calc(100% + 8px);
  right: auto;
  bottom: 0;
  width: 230px;
}
.sidebar-collapsed .sidebar-config-menu .sidebar-text {
  display: inline;
}
/* Linhas dos painéis um pouco mais baixas (cabem sem rolar) */
#app-sidebar nav .nav {
  padding-top: 11px;
  padding-bottom: 11px;
}
/* Menu aberto fica por cima do conteúdo (no recolhido ele sai para o lado) */
.sidebar:has(.sidebar-config.aberto) {
  z-index: 40;
}
@media (max-width: 700px) {
  /* No celular o menu lateral vira faixa no topo: a lista abre para baixo */
  .sidebar-config-menu,
  .sidebar-collapsed .sidebar-config-menu {
    top: calc(100% + 6px);
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
  }
  .sidebar-config-menu .sidebar-customize,
  .sidebar-config-menu .nav {
    flex-direction: row;
    justify-content: flex-start;
    font-size: 13px;
    border-radius: 9px;
  }
  .sidebar .sidebar-config {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    padding: 11px 13px;
    font-size: 13px;
  }
}
/* Recolhido: dentro da lista os itens ficam com nome, alinhados à esquerda */
.sidebar-collapsed .sidebar-config-menu .nav,
.sidebar-collapsed .sidebar-config-menu .sidebar-customize,
.sidebar-collapsed .sidebar-config-menu #branding-open {
  justify-content: flex-start;
  padding: 11px 12px;
}
.sidebar-collapsed .sidebar-config-menu #branding-open .sidebar-text,
.sidebar-collapsed .sidebar-config-menu .sidebar-text {
  display: inline;
}
.sidebar-config-menu .nav,
.sidebar-config-menu .sidebar-customize {
  font-size: 13px;
}
/* 02/11 16h06: olho para ver a senha (login e criar senha) */
#login-gate .login-senha-campo {
  position: relative;
  display: grid;
}
#login-gate .login-senha-campo input {
  padding-right: 48px;
}
#login-gate .login-olho {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  margin: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #5b6b7a;
  border-radius: 8px;
}
#login-gate .login-olho:hover,
#login-gate .login-olho:focus-visible {
  background: #eef3f7;
  color: #13835f;
}
/* 02/11: logos extras da identidade (cupom e barra escura) */
.identity-extras {
  margin: 10px 0 4px;
}
.identity-extras summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 6px;
}
.identity-preview-escuro {
  background: #10324f;
}
.sidebar-collapsed .sidebar #brand-logo.tem-icone {
  content: var(--logo-icone);
  object-fit: cover;
}
.identity-preview-icone img {
  max-width: 64px;
}
