* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  background: #f3f4f6;
  color: #111827;
}

/* ====== TOPO / NAVBAR ====== */

.topbar {
  background: #111827;
  color: #e5e7eb;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.6);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #f9fafb;
  font-size: 0.9rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.75rem;
  color: #9ca3af;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-link {
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease,
    box-shadow 0.08s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.nav-link.active {
  background: #f9fafb;
  color: #111827;
  border-color: #2563eb;
}

.input-pesquisa-servico.filtro-ativo {
  border-color: #f59e0b;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

body.dark-theme .input-pesquisa-servico.filtro-ativo {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
}


/* ====== MAIN E CONTAINERS ====== */

.main {
  padding: 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .container.servicos-full {
    max-width: 97%;
    min-height: calc(100dvh - var(--topbar-height, 72px) - 40px);
  }

  .container.servicos-full .servicos-card {
    width: min(2000%, calc(var(--servicos-pc-w, 92) * 1vw));
    max-width: 2400px;
    min-height: calc((var(--servicos-pc-h, 100) * 1dvh) - var(--topbar-height, 72px) - 40px);
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .container.servicos-full {
    max-width: 100%;
    min-height: calc(100dvh - var(--topbar-height, 72px) - 40px);
  }

  .container.servicos-full .servicos-card {
    width: min(100%, calc(var(--servicos-tab-w, 96) * 1vw));
    max-width: 980px;
    min-height: calc((var(--servicos-tab-h, 100) * 1dvh) - var(--topbar-height, 72px) - 40px);
    margin: 0 auto;
  }
}

.page-header {
  margin-bottom: 36px;
}

.page-header h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
  color: #111827;
}

.page-header p {
  font-size: 0.9rem;
  color: #6b7280;
}

.orcamento-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.orcamento-header h2 {
  margin: 0;
}
.orcamento-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.orcamentos-topo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.orcamentos-topo-header h2 {
  margin: 0;
  white-space: nowrap;
}

#orcamentosTelaNovo .orcamentos-search-wrap {
  flex: 1 1 360px;
  max-width: none;
}

#orcamentosTelaNovo .orcamento-header-actions {
  margin-top: 8px;
  justify-content: flex-end;
}

.orcamento-toolbar-action {
  min-height: 34px;
  padding: 6px 12px;
}

.orcamento-toolbar-action.danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.orcamento-toolbar-action.danger:hover {
  background: #fecaca;
}

@media (max-width: 700px) {
  .orcamento-header-actions {
    width: 100%;
  }

  .orcamento-toolbar-action {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

.orcamentos-dual-screen {
  grid-template-columns: 1fr;
}

.orcamentos-screen {
  display: none;
}

.orcamentos-screen.is-active {
  display: block;
  animation: orcamentos-screen-in 0.22s ease;
}

.orcamentos-lista-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.orcamentos-lista-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.orcamentos-lista-topo h2 {
  margin: 0;
}

.orcamentos-lista-header-acoes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.orcamentos-lista-search-wrap {
  width: 100%;
  max-width: none;
}

.orcamentos-lista-search-wrap .input-pesquisa-orcamento-proposta {
  width: 100%;
  max-width: none;
}

@keyframes orcamentos-screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-pesquisa-orcamento-hoje {
  flex: 1 1 240px;
  max-width: 420px;
}

.orcamentos-search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 420px;
}

.orcamentos-search-wrap .input-pesquisa-orcamento-hoje {
  width: 100%;
}

.orcamentos-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d6dde8;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  padding: 6px 0;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.orcamentos-search-dropdown.is-open {
  display: block;
}

.orcamentos-search-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.orcamentos-search-item:hover,
.orcamentos-search-item:focus {
  background: #f3f6fb;
  outline: none;
}

.orcamentos-search-item small {
  color: #667085;
}

body.dark-theme .orcamentos-search-dropdown {
  background: #1a2235;
  border-color: #2d3952;
  color: #e6ecf7;
}

body.dark-theme .orcamentos-search-item:hover,
body.dark-theme .orcamentos-search-item:focus {
  background: #233049;
}

body.dark-theme .orcamentos-search-item small {
  color: #a6b3c7;
}

.page {
  display: none;
}

.page.active {
  display: block;
}
\n
/* ====== LAYOUT ORÇAMENTOS ====== */

.layout {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====== CARDS E FORMULÁRIOS ====== */

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: #111827;
}

.row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.row > div {
  flex: 1;
}

.orcamento-campo-curto {
  flex: 0 1 220px !important;
  max-width: 220px;
}

@media (max-width: 720px) {
  .orcamento-campo-curto {
    flex: 1 1 100% !important;
    max-width: none;
  }
}

/* ===== Serviços (layout centralizado + modal) ===== */
.servicos-layout {
  grid-template-columns: 1fr;
  justify-items: center;
}

.servicos-card {
  width: min(980px, 100%);
}

.servicos-card .row {
  align-items: flex-start;
}

.servicos-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.servicos-toolbar-search-wrap {
  position: relative;
  flex: 1 1 260px;
  max-width: 520px;
  min-width: 220px;
}

.servicos-toolbar-search {
  width: 100%;
  padding-right: 38px;
}

.servicos-search-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.servicos-search-toggle:hover {
  background: #e5e7eb;
}

.servicos-toolbar-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  display: none;
  z-index: 50;
}

.servicos-toolbar-dropdown.is-open {
  display: block;
}

.servicos-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
}

.servicos-dropdown-item:hover,
.servicos-dropdown-item:focus-visible {
  background: #f3f4f6;
}

.servicos-toolbar-action {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.servicos-toolbar-action.is-hidden {
  display: none;
}

.servicos-toolbar-action:hover {
  background: #e5e7eb;
}

.servicos-toolbar-action.danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.servicos-toolbar-action.danger:hover {
  background: #fecaca;
}

.servicos-print-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.servicos-print-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.servicos-print-card {
  width: min(210mm, 100%);
  margin: 0 auto 20px;
}

.servicos-print-card #containerImpressaoServico {
  height: min(297mm, 90vh);
}

.servicos-print-card .estoque-frame {
  height: 100%;
}

.orcamentos-print-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.orcamentos-print-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orcamentos-print-card {
  width: min(210mm, 100%);
  margin: 0 auto 20px;
}

.orcamentos-print-card #containerImpressaoOrcamento {
  height: min(297mm, 90vh);
}

.orcamentos-print-card .estoque-frame {
  height: 100%;
}

body.servico-print-open .topbar,
body.servico-print-open .nav,
body.servico-print-open .nav-toggle {
  pointer-events: none;
}

body.servico-print-open #page-servicos > :not(.servicos-layout):not(.layout) {
  display: none;
}

body.servico-print-open #page-servicos .servicos-layout > :not(.servicos-print-card),
body.servico-print-open #page-servicos .layout > :not(.servicos-print-card) {
  display: none;
}

body.servico-print-open #page-servicos .servicos-layout,
body.servico-print-open #page-servicos .layout {
  display: flex;
  justify-content: center;
}

body.orcamento-print-open .topbar,
body.orcamento-print-open .nav,
body.orcamento-print-open .nav-toggle {
  pointer-events: none;
}

body.orcamento-print-open #page-orcamentos > :not(.orcamentos-layout):not(.orcamentos-print-card) {
  display: none;
}

body.orcamento-print-open #page-orcamentos .orcamentos-layout > :not(.orcamentos-print-card) {
  display: none;
}

body.orcamento-print-open #page-orcamentos .orcamentos-layout {
  display: flex;
  justify-content: center;
}

body.orcamento-print-open .orcamentos-print-card {
  pointer-events: auto;
  opacity: 1;
  filter: none;
}

/* Força centralização do bloco "Novo produto" */
.layout.produtos-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

body.servicos-modal-open #page-servicos {
  display: none;
}

body.clientes-modal-open #page-clientes {
  display: none;
}

body.orcamentos-modal-open #page-orcamentos {
  display: none;
}

body.produtos-modal-open #page-produtos {
  display: none;
}

body.servico-print-open .servicos-print-card {
  pointer-events: auto;
  opacity: 1;
  filter: none;
}


.servicos-codigo-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.servicos-codigo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.servicos-codigo-header label {
  margin-bottom: 0;
}

.servicos-gear-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.servicos-gear-btn:hover {
  filter: brightness(1.1);
}

.produtos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.produtos-header h2 {
  margin-bottom: 0;
}

.produtos-lista-inline {
  margin-top: 16px;
}

.produtos-lista-inline.is-hidden {
  display: none;
}

.produtos-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.produtos-card {
  width: min(980px, 100%);
  margin: 0 auto;
}

.produtos-search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 380px;
}

.produtos-search-wrap .input-pesquisa-produto {
  width: 100%;
}

#page-produtos .layout {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
}

#page-produtos .produtos-lista-card {
  order: 1;
  align-self: start;
}

#page-produtos .produtos-form-card {
  order: 2;
  align-self: start;
}

#page-produtos .produtos-search-wrap {
  flex: 1 1 520px;
  max-width: none;
}

#page-produtos .produtos-search-wrap .input-pesquisa-produto {
  max-width: none;
}

.layout.clientes-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.clientes-card {
  width: min(980px, 100%);
  margin: 0 auto;
}

.clientes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.clientes-header h2 {
  margin-bottom: 0;
}

.clientes-search {
  flex: 1 1 240px;
  max-width: 420px;
}

.layout.orcamentos-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.orcamentos-card {
  width: min(980px, 100%);
  margin: 0 auto;
}

.clientes-search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 420px;
}

.clientes-search-wrap .clientes-search {
  width: 100%;
}

#page-clientes .layout {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
}

#page-clientes .clientes-lista-card {
  order: 1;
  align-self: start;
}

#page-clientes .clientes-form-card {
  order: 2;
  align-self: start;
}

#page-clientes .clientes-search-wrap {
  flex: 1 1 520px;
  max-width: none;
}

#page-clientes .clientes-search {
  max-width: none;
}

.clientes-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d6dde8;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  padding: 6px 0;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.clientes-search-dropdown.is-open {
  display: block;
}

.clientes-search-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.clientes-search-item:hover,
.clientes-search-item:focus {
  background: #f3f6fb;
  outline: none;
}

.clientes-search-item small {
  color: #667085;
}

body.dark-theme .clientes-search-dropdown {
  background: #1a2235;
  border-color: #2d3952;
  color: #e6ecf7;
}

body.dark-theme .clientes-search-item:hover,
body.dark-theme .clientes-search-item:focus {
  background: #233049;
}

body.dark-theme .clientes-search-item small {
  color: #a6b3c7;
}

.produtos-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d6dde8;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  padding: 6px 0;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.produtos-search-dropdown.is-open {
  display: block;
}

.produtos-search-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.produtos-search-item:hover,
.produtos-search-item:focus {
  background: #f3f6fb;
  outline: none;
}

.produtos-search-item small {
  color: #667085;
}

body.dark-theme .produtos-search-dropdown {
  background: #1a2235;
  border-color: #2d3952;
  color: #e6ecf7;
}

body.dark-theme .produtos-search-item:hover,
body.dark-theme .produtos-search-item:focus {
  background: #233049;
}

body.dark-theme .produtos-search-item small {
  color: #a6b3c7;
}

.servicos-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 3000;
}

.servicos-modal.is-open {
  display: flex;
}

.servicos-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.servicos-modal-card {
  position: relative;
  width: min(1100px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  z-index: 1;
}

.orcamentos-modal .servicos-modal-card {
  margin: 0 auto;
}

.servicos-modal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}


#servicosModal tbody tr.is-selected {
  background: rgba(37, 99, 235, 0.08);
}

#servicosModal .servico-cadastro-card.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.servicos-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 3px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #f9fafb;
}

input[readonly],
textarea[readonly] {
  background: #eef2f7;
  color: #6b7280;
  cursor: not-allowed;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.small-info {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 2px;
}

/* ====== ORCAMENTOS / PRODUTOS ====== */
.orcamento-produtos {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.orcamento-produtos-busca {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.orcamento-produtos-busca input {
  flex: 1 1 240px;
}

.orcamento-produtos-resultados {
  display: none;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.orcamento-produtos-resultados.active {
  display: block;
}

.orcamento-produto-opcao {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f9fafb;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}

.orcamento-produto-opcao:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.orcamento-produto-nome {
  flex: 1;
}

.orcamento-produto-meta {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
}

.orcamento-produtos-selecionados {
  margin-top: 4px;
}

.orcamento-produtos-titulo {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 4px;
}

.orcamento-produtos-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
  margin-top: 6px;
}

.orcamento-produto-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.85rem;
}

.orcamento-produto-detalhes {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.orcamento-produto-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.orcamento-produto-rotulo {
  font-size: 0.75rem;
  color: #6b7280;
}

.orcamento-produto-quantidade {
  width: 72px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 0.8rem;
}

.orcamento-produto-total {
  font-weight: 600;
  font-size: 0.8rem;
  color: #111827;
  white-space: nowrap;
}

.orcamento-produto-prazo-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 132px;
}

.orcamento-produto-prazo {
  width: 100%;
  max-width: 132px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 0.8rem;
}

.orcamento-produto-remover {
  background: #e11d48;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
}

.orcamento-produto-vazio {
  padding: 6px 8px;
  font-size: 0.8rem;
  color: #6b7280;
}

.orcamento-produtos-totais {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 6px 8px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #4b5563;
}

body.dark-theme .orcamento-produto-quantidade {
  background: #0b1120;
  border-color: #1f2937;
  color: #e5e7eb;
}

body.dark-theme .orcamento-produto-prazo {
  background: #0b1120;
  border-color: #1f2937;
  color: #e5e7eb;
}

body.dark-theme .orcamento-produto-total {
  color: #e5e7eb;
}

body.dark-theme .orcamento-produto-rotulo {
  color: #9ca3af;
}

body.dark-theme .orcamento-produtos-totais {
  border-top-color: #1f2937;
  color: #9ca3af;
}

body.dark-theme .orcamento-produtos-resultados {
  background: #0b1120;
  border-color: #1f2937;
}

body.dark-theme .orcamento-produto-opcao {
  background: #0f172a;
  color: #e5e7eb;
}

body.dark-theme .orcamento-produto-opcao:hover {
  background: #1f2937;
  border-color: #334155;
}

body.dark-theme .orcamento-produto-meta,
body.dark-theme .orcamento-produto-vazio,
body.dark-theme .orcamento-produtos-titulo {
  color: #9ca3af;
}

body.dark-theme .orcamento-produto-item {
  background: #0f172a;
  border-color: #1f2937;
}


/* ====== BOTÕES ====== */

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  gap: 10px;
}

button {
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button.primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

button.primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.4);
}

button.secondary {
  background: #e5e7eb;
  color: #374151;
}

button.secondary:hover {
  background: #d1d5db;
  transform: translateY(-1px);
}

/* ====== STATUS / TAGS ====== */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge-btn {
  border: none;
  cursor: pointer;
  background: inherit;
}

.status-badge-btn:hover {
  filter: brightness(0.95);
}

.status-pendente {
  background: #fef3c7;
  color: #92400e;
}

.status-aprovado {
  background: #dcfce7;
  color: #166534;
}

.status-comprado {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-cancelado {
  background: #fee2e2;
  color: #991b1b;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  margin-left: 6px;
}

/* ====== TABELAS ====== */

.summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #6b7280;
}
\n
.summary-bar strong {
  color: #111827;
}

.summary-bar select {
  max-width: 160px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 4px;
}

thead {
  background: #f9fafb;
}

th,
td {
  padding: 8px 6px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  text-align: left;
}

th {
  font-weight: 600;
  color: #4b5563;
  font-size: 0.75rem;
}

tbody tr:hover {
  background: #f3f4f6;
}

.orcamento-acoes {
  width: 48px;
  padding: 0;
  background: #ef4444;
}

.servico-acoes {
  width: 8px; /* faixa de ~2mm */
  padding: 0;
  position: relative;
  overflow: visible;
}

.servico-acoes::after {
  content: "";
  position: absolute;
  top: 0;
  right: -90px; /* area extra para manter hover */
  width: 90px;
  height: 100%;
}

.btn-excluir-servico {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 8px; /* ~2mm */
  border: none;
  padding: 0;
  background: #e53935;
  color: #fff;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.35s ease;
}

.btn-excluir-texto {
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: #e53935;
  border-radius: 0 4px 4px 0;
  opacity: 0;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}

tbody tr:hover .btn-excluir-servico,
.btn-excluir-servico:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

tbody tr:hover .btn-excluir-texto,
.btn-excluir-servico:focus-visible .btn-excluir-texto {
  opacity: 1;
  transform: translateX(0);
}

@media (hover: none) {
  .btn-excluir-texto {
    opacity: 1;
    transform: translateX(0);
  }
}

.btn-excluir-orcamento {
  width: 100%;
  height: 100%;
  min-height: 32px;
  border: none;
  border-left: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

tbody tr:hover .orcamento-acoes {
  background: #dc2626;
}

.btn-excluir-orcamento:hover {
  background: rgba(0, 0, 0, 0.08);
}

@media (hover: none) {
  .btn-excluir-orcamento {
    opacity: 1;
    pointer-events: auto;
  }
}

.text-right {
  text-align: right;
}

.muted {
  color: #9ca3af;
  font-size: 0.75rem;
}

/* ====== FEEDBACK / EMPTY ====== */

.feedback {
  margin-top: 6px;
  font-size: 0.8rem;
}

.feedback.ok {
  color: #15803d;
}

.feedback.error {
  color: #b91c1c;
}

.empty-state {
  text-align: center;
  padding: 18px 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  border-radius: 6px; /* opcional: deixa as bordas levemente arredondadas */
  object-fit: contain;
}

/* Área de configuração do logo na home */
.logo-config {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #f6f7f8;
}

/* ===== Importação/Lucro embutido ===== */
.importacao-frame,
.estoque-frame {
  width: 100%;
  height: 80vh;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.logo-config-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.logo-config label {
  font-size: 0.85rem;
  color: #290e0e;
}

.logo-config input[type="file"] {
  font-size: 0.8rem;
}

.upload-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.upload-btn {
  background: #2563eb;
  color: #f8f6f6;
  padding: 6px 12px;
  border-radius: 81px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.upload-btn:hover {
  background: #1e40af;
}


#logoPreview {
  display: block;
  max-height: 100px;
  margin-top: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.home-divider {
  border: none;
  border-top: 7px solid rgba(241, 7, 7, 0.719);
  margin: 24px 0;
}
.titulo-resumo {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #111827;
}

/* ====== RESUMO GERAL ====== */

.resumo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.resumo-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.resumo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

/* Cores de borda/acento por tipo */
.resumo-card-orcamentos {
  border-left: 4px solid #2563eb;
}

.resumo-card-clientes {
  border-left: 4px solid #22c55e;
}

.resumo-card-produtos {
  border-left: 4px solid #f59e0b;
}

.resumo-card-servicos {
  border-left: 4px solid #ec4899;
}

.resumo-icone {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.resumo-titulo {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resumo-numero {
  font-size: 1.9rem;
  font-weight: 800;
  color: #111827;
}

/* ====== LOGIN ====== */

.app-wrapper {
  display: block; /* app sempre visível */
}

.login-screen {
  position: fixed;
  inset: 0;
  display: none;              /* começa escondido */
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75); /* fundo escuro transparente */
  z-index: 100;
}


.login-card {
  background: #ffffff;
  padding: 24px 22px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  width: 100%;
  max-width: 340px;
}

.login-card h1 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: #111827;
}

.login-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 14px;
}

.login-field {
  margin-bottom: 10px;
}

.login-field label { /* se já tiver, pode manter o que você tinha */
  font-size: 0.8rem;
  color: #4b5563;
  font-weight: 600;
  margin-bottom: 3px;
  display: block;
}

.login-field input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
}

.login-btn {
  width: 100%;
  justify-content: center;
}

/* ====== NAV ACTIONS (TEMA / SAIR) ====== */

.nav-action {
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease,
    box-shadow 0.08s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-action:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* ====== ALERTA VISUAL NO BOTÃO LOGIN (QUANDO NÃO ESTIVER LOGADO) ====== */

#btnForcarLogin.btn-login-alert {
  animation: blink-login 0.6s linear 4;
}

@keyframes blink-login {
  0%, 100% {
    background: rgba(31, 41, 55, 0.9); /* cor original da nav-action */
    color: #e5e7eb;
  }
  50% {
    background: #ef4444; /* vermelho */
    color: #ffffff;
  }
}


/* ====== TEMA ESCURO ====== */

body.dark-theme {
  background: #020617;
  color: #e5e7eb;
}

/* Topo */
body.dark-theme .topbar {
  background: #020617;
  box-shadow: 0 4px 10px rgba(15,23,42,0.9);
}

body.dark-theme .brand-text strong,
body.dark-theme .brand-text span {
  color: #e5e7eb;
}

/* Navegação */
body.dark-theme .nav-link {
  color: #e5e7eb;
}

body.dark-theme .nav-link.active {
  background: #e5e7eb;
  color: #020617;
}

body.dark-theme .nav-action {
  background: #111827;
  color: #e5e7eb;
}

/* Cartões e textos internos */
body.dark-theme .card {
  background: #0b1120;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px rgba(15,23,42,0.8);
  color: #e5e7eb;
}

body.dark-theme .page-header h1,
body.dark-theme .page-header p,
body.dark-theme h2,
body.dark-theme label,
body.dark-theme .small-info {
  color: #e5e7eb;
}

/* Inputs / selects / textarea */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
  background: #020617;
  border-color: #1f2937;
  color: #e5e7eb;
}

body.dark-theme input[readonly],
body.dark-theme textarea[readonly] {
  background: #0f172a;
  color: #9ca3af;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: #6b7280;
}

/* Campo de login com erro */
.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

/* Tabelas */
body.dark-theme table {
  color: #e5e7eb;
}

body.dark-theme table thead {
  background: #020617;
}

body.dark-theme table tbody tr:hover {
  background: #020617;
}

/* Resumo geral (cards) */
body.dark-theme .resumo-card {
  background: #020617;
  border-color: #1e293b;
}
body.dark-theme .main,
body.dark-theme .container,
body.dark-theme .layout {
  background: transparent;
  color: #e5e7eb;
}

body.dark-theme table tbody tr {
  background: #0b1120;
  border-color: #1e293b;
  color: #e5e7eb;
}

body.dark-theme table tbody td {
  border-color: #1e293b;
  color: #e5e7eb;
}

body.dark-theme table tbody td::before {
  color: #93a4b8;
}

.lista-usuarios {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.lista-usuarios li {
  padding: 4px 0;
}

.coluna-linhas-servico {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coluna-linhas-servico input {
  width: 100%;
}

.linha-deslocamento {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.linha-deslocamento input {
  max-width: 140px;
}

.tag-desloc {
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  white-space: nowrap;
}

body.dark-theme .tag-desloc {
  background: #111827;
  color: #e5e7eb;
}

.linha-deslocamento {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campo-com-sufixo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.campo-com-sufixo input {
  max-width: 130px; /* ajuste se quiser maior/menor */
}

.sufixo-campo {
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
}

/* Garantir que o conteúdo interno pode ter elemento absoluto */
.login-card {
  position: relative;
}

/* Botão X para fechar o login (lado esquerdo) */
.login-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;          /* ⬅️ canto ESQUERDO */
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}

.login-close-btn:hover {
  color: #ef4444;
  transform: scale(1.15);
}

#tbodyProdutos td:nth-child(3) {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 250px; /* limite de largura da coluna */
}

/* =========================================
   AJUSTE EXCLUSIVO - BOTÃO ESTOQUE
   Não altera os outros cards
   ========================================= */
#cardCustoEstoque{
  border-left: 10px solid #9c0000;     /* destaque diferente */
  background: #ffffff;                /* fundo exclusivo */
  min-height: 10px;                  /* altura exclusiva (opcional) */
}

#cardCustoEstoque .resumo-titulo{
  font-size: 0.95rem;                 /* título levemente maior */
  letter-spacing: 0.02em;
}

#cardCustoEstoque .resumo-numero{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
}

#cardCustoEstoque .resumo-custo-linha{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

#cardCustoEstoque .resumo-custo-rotulo{
  flex: 0 0 auto;
  color: #4b5563;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

#cardCustoEstoque .resumo-custo-valor{
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 0.80rem;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* hover exclusivo */
#cardCustoEstoque{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15,23,42,0.18);
}

#cardCustoEstoque {
  width: 260px;     /* ajuste como quiser */
  height: 140px;    /* ajuste como quiser */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#cardCustoEstoque .btn-importacao{
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  background: #111827;
  color: #fff;
}

#cardCustoEstoque .btn-importacao:hover{
  filter: brightness(1.08);
}

#cardCustoEstoque{
  position: fixed;
  z-index: 9999;

  /* ===== AJUSTES DE POSIÇÃO ===== */
  bottom: 530px;   /* eixo vertical */
  right: 1050px;    /* eixo horizontal */

  /* opcional */
  cursor: pointer;
}

/* ==========FINAL======*/

/* =========================================
   AJUSTE EXCLUSIVO - BOTÃO IMPORTAÇÃO E LUCRO
   Não altera os outros cards
   ========================================= */
#cardCalculoImportacao{
  border-left: 10px solid #9c0000;     /* destaque diferente */
  background: #ffffff;                /* fundo exclusivo */
  min-height: 10px;                  /* altura exclusiva (opcional) */
}

#cardCalculoImportacao .resumo-titulo{
  font-size: 0.95rem;                 /* título levemente maior */
  letter-spacing: 0.02em;
}

#cardCalculoImportacao .resumo-numero{
  font-size: 1.7rem;
  font-weight: 800;
}

/* hover exclusivo */
#cardCalculoImportacao{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15,23,42,0.18);
}

#cardCalculoImportacao {
  width: 260px;     /* ajuste como quiser */
  height: 140px;    /* ajuste como quiser */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#cardCalculoImportacao .btn-importacao{
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  background: #111827;
  color: #fff;
}

#cardCalculoImportacao .btn-importacao:hover{
  filter: brightness(1.08);
}

#cardCalculoImportacao{
  position: fixed;
  z-index: 9999;

  /* ===== AJUSTES DE POSIÇÃO ===== */
  bottom: 530px;   /* eixo vertical */
  right: 600px;    /* eixo horizontal */

  /* opcional */
  cursor: pointer;
}

/* ==========FINAL======*/

.acoes-sticky {
  position: sticky;
  bottom: 10px;              /* gruda no rodapé visível */
  background: #fff;
  padding: 10px 0;
  z-index: 10;       /* evita texto passando por trás */
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
}

.btn-fechar {
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.btn-fechar:hover {
  background: #000;
}

.acoes-sticky{
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px 0;
  z-index: 9999;
  border-bottom: 1px solid #ddd;
}

.campo-senha {
  position: relative;
  display: flex;
  align-items: center;
}


.toggle-senha {
  position: absolute;
  right: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  opacity: 0.6;
}

.toggle-senha:hover {
  opacity: 1;
}

/* ==============================
   CAMPO SENHA (OLHO)
   ============================== */

.campo-senha {
  position: relative;
  display: flex;
  align-items: center;
}

.campo-senha input {
  width: 100%;
  padding-right: 42px; /* espaço para o olho */
}

.toggle-senha {
  position: absolute;
  right: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

/* Quando a senha estiver VISÍVEL: coloca um "risco" no olho */
.toggle-senha.visible {
  position: absolute; /* garante o ::after na posição certa */
}

.toggle-senha.visible::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  background: #e53935;
  transform: rotate(-20deg);
}

/* ==========================
   USUÁRIOS – OCULTOS + EXCLUIR
   ========================== */

.usuario-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.usuario-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.usuario-nome {
  font-weight: bold;
  letter-spacing: 1px;
}

/* botão oculto por padrão */
.btn-excluir-usuario {
  display: none;
  background: #e53935;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

/* aparece só no hover */
.usuario-item:hover .btn-excluir-usuario {
  display: inline-block;
}

.btn-excluir-usuario:hover {
  background: #b71c1c;
}

/* Botão de tema no topo (somente ícone) */
.nav-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 59px;
  height: 36px;

  margin-left: 15px; /* afastado do SAIR */
  border-radius: 10px;

  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;

  cursor: pointer;
  line-height: 1;
  font-size: 18px;
}

/* Hover simples */
.nav-theme:hover {
  background: rgba(0,0,0,0.06);
}

/* No tema escuro, melhora contraste */
.dark-theme .nav-theme {
  border-color: rgba(255,255,255,0.18);
}

.dark-theme .nav-theme:hover {
  background: rgba(255,255,255,0.10);
}

/* Cabeçalho da lista de serviços + pesquisa */
.servicos-lista-topo{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

#page-servicos .layout{
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
}

#page-servicos .servicos-lista-card{
  order: 1;
  align-self: start;
}

#page-servicos .servicos-form-card{
  order: 2;
  align-self: start;
}

#page-servicos .servicos-lista-topo{
  align-items: center;
}

#page-servicos .input-pesquisa-servico{
  width: min(760px, 100%);
  max-width: none;
}

.servicos-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.orcamentos-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.orcamentos-cards.modo-lista{
  grid-template-columns: 1fr;
}

.orcamentos-cards.modo-colmeia{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1200px){
  .orcamentos-cards.modo-colmeia{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  .orcamentos-cards.modo-colmeia{
    grid-template-columns: 1fr;
  }
}

.orcamento-cadastro-card{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.orcamento-cadastro-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.orcamento-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.orcamento-card-id{
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
}

.orcamento-card-data{
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
}

.orcamento-card-acoes{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.orcamento-card-delete{
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.orcamento-card-delete:hover{
  filter: brightness(0.92);
}

.orcamento-card-delete:active{
  transform: translateY(1px);
}

.orcamento-card-titulo{
  margin: 0 0 8px;
  font-size: 1rem;
  color: #111827;
}

.orcamento-card-linha{
  font-size: 0.82rem;
  color: #374151;
  margin-bottom: 4px;
  word-break: break-word;
}

.link-proposta-orcamento{
  background: none;
  border: none;
  padding: 0;
  color: #1976d2;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.servico-cadastro-card{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.servico-cadastro-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.servico-cadastro-card.is-selected{
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.servico-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.servico-card-acoes{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.servico-card-status-btn{
  border: none;
  cursor: pointer;
}

.servico-card-delete{
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.servico-card-delete:hover{
  filter: brightness(0.92);
}

.servico-card-delete:active{
  transform: translateY(1px);
}

.produtos-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.clientes-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.cliente-cadastro-card{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cliente-cadastro-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.cliente-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cliente-card-id{
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
}

.cliente-card-titulo{
  margin: 0 0 8px;
  font-size: 1rem;
  color: #111827;
}

.cliente-card-linha{
  font-size: 0.82rem;
  color: #374151;
  margin-bottom: 4px;
  word-break: break-word;
}

.btn-excluir-cliente{
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-excluir-cliente:hover{
  filter: brightness(0.92);
}

.produto-cadastro-card{
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.produto-cadastro-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.produto-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.produto-card-id{
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
}

.produto-card-titulo{
  margin: 0 0 8px;
  font-size: 1rem;
  color: #111827;
}

.produto-card-linha{
  font-size: 0.82rem;
  color: #374151;
  margin-bottom: 4px;
  word-break: break-word;
}

.btn-excluir-produto{
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-excluir-produto:hover{
  filter: brightness(0.92);
}

body.dark-theme .produto-cadastro-card{
  background: #111827;
  border-color: #273245;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

body.dark-theme .cliente-cadastro-card{
  background: #111827;
  border-color: #273245;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

body.dark-theme .cliente-card-id{
  color: #9ca3af;
}

body.dark-theme .cliente-card-titulo{
  color: #f3f4f6;
}

body.dark-theme .cliente-card-linha{
  color: #cbd5e1;
}

body.dark-theme .produto-card-id{
  color: #9ca3af;
}

body.dark-theme .produto-card-titulo{
  color: #f3f4f6;
}

body.dark-theme .produto-card-linha{
  color: #cbd5e1;
}

.link-codigo-servico{
  background: none;
  border: none;
  padding: 0;
  color: #1976d2;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.servico-card-data{
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
}

.servico-card-titulo{
  margin: 0 0 8px;
  font-size: 1rem;
  color: #111827;
}

.servico-card-linha{
  font-size: 0.82rem;
  color: #374151;
  margin-bottom: 4px;
  word-break: break-word;
}

body.dark-theme .servico-cadastro-card{
  background: #111827;
  border-color: #273245;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

body.dark-theme .orcamento-cadastro-card{
  background: #111827;
  border-color: #273245;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

body.dark-theme .orcamento-card-id{
  color: #9ca3af;
}

body.dark-theme .orcamento-card-data{
  color: #9ca3af;
}

body.dark-theme .orcamento-card-titulo{
  color: #f3f4f6;
}

body.dark-theme .orcamento-card-linha{
  color: #cbd5e1;
}

body.dark-theme .servico-card-titulo{
  color: #f3f4f6;
}

body.dark-theme .servico-card-linha{
  color: #cbd5e1;
}

body.dark-theme .servico-card-data{
  color: #9ca3af;
}

body.dark-theme .servico-cadastro-card.is-selected{
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22);
}

.input-pesquisa-servico{
  width: 260px;
  max-width: 60%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  outline: none;
}

.dark-theme .input-pesquisa-servico{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: inherit;
}


.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* hover */
.nav-theme:hover {
  filter: brightness(1.1);
}

.servicos-lista-topo{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.input-pesquisa-servico{
  width: 320px;
  max-width: 50%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  outline: none;
}

#servCategoriaServico {
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVO PROFISSIONAL (DESKTOP -> TABLET -> MOBILE)
   Cole no FINAL do style.css
   ========================================================= */

/* ---------- Base universal (melhora touch e legibilidade) ---------- */
:root{
  --gap: 14px;
  --radius: 14px;
  --pad: 16px;

  --fs-base: 16px;
  --fs-h1: 26px;
  --fs-h2: 18px;

  --input-h: 44px;        /* mínimo recomendado para toque */
  --btn-h: 44px;

  --container-max: 1200px;
}

/* Evita zoom do iPhone ao focar inputs (muito importante) */
input, select, textarea { font-size: 16px; }

/* Melhor “feel” em mobile */
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { font-size: var(--fs-base); }

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px;
}

/* ---------- Topbar / Header ---------- */
.topbar .topbar-inner{
  gap: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img{
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link, .nav-action, .nav-theme{
  min-height: var(--btn-h);
  padding: 8px 12px;
  border-radius: 999px;
}

/* ---------- Cards / Layout ---------- */
.layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.card{
  border-radius: var(--radius);
  padding: var(--pad);
}

/* ---------- Home resumo ---------- */
.resumo-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.resumo-card{
  border-radius: var(--radius);
  padding: 16px;
}

/* ---------- Form ---------- */
.row{
  display: flex;
  gap: 12px;
}

.row > div{
  flex: 1;
  min-width: 0;
}

label{
  font-size: 14px;
}

input, select, textarea{
  width: 100%;
  min-height: var(--input-h);
  padding: 10px 12px;
  border-radius: 10px;
}

textarea{
  min-height: 90px;
}

.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions button{
  min-height: var(--btn-h);
  padding: 10px 14px;
}

/* ---------- Tabelas (desktop) ---------- */
table{
  width: 100%;
  border-collapse: collapse;
}

th, td{
  padding: 10px 8px;
}

/* ---------- Rodapé padrão (se você tiver) ---------- */
footer, .footer{
  padding: 18px;
}

/* =========================================================
   TABLET (<= 1024px)
   ========================================================= */
@media (max-width: 1024px){
  :root{
    --fs-h1: 24px;
    --container-max: 980px;
  }

  .resumo-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .layout{
    grid-template-columns: 1fr; /* 1 coluna em tablet reduzido */
  }
}

/* =========================================================
   MOBILE (<= 768px)
   ========================================================= */
@media (max-width: 768px){
  :root{
    --fs-h1: 22px;
    --fs-h2: 18px;
    --pad: 14px;
  }

  /* Container mais “app-like” */
  .container{
    padding: 12px;
  }

  /* Header vira coluna e menu vira linha rolável (melhor UX que espremido) */
  .topbar .topbar-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .nav{
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .nav-link, .nav-action, .nav-theme{
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Home */
  .resumo-grid{
    grid-template-columns: 1fr;
  }

  /* Layout sempre 1 coluna */
  .layout{
    grid-template-columns: 1fr;
  }

  /* Form em coluna */
  .row{
    flex-direction: column;
  }

  /* Botões em coluna */
  .actions{
    flex-direction: column;
  }

  .actions button{
    width: 100%;
  }

  /* ---------- Tabelas viram “cards” no mobile ---------- */
  table thead{
    display: none;
  }

  table tbody tr{
    display: block;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 10px;
  }

  table tbody td{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border: none;
  }

  /* IMPORTANTE:
     Para mostrar o "label" no mobile, cada <td> precisa ter data-label="Nome da coluna"
     Eu te mostro abaixo como ajustar no JS. */
  table tbody td::before{
    content: attr(data-label);
    font-weight: 700;
    opacity: .75;
  }
}

/* =========================================================
   MOBILE PEQUENO (<= 420px) – iPhone SE, etc.
   ========================================================= */
@media (max-width: 420px){
  .brand-logo-img{
    width: 38px;
    height: 38px;
  }

  .nav-toggle{
    width: 38px;
    height: 38px;
  }

  .nav-link, .nav-action{
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* =========================================================
   TABLET ONLY – DOCUMENTOS (vertical e horizontal)
   Centraliza os botões abaixo de "Custo do estoque"
   ========================================================= */
@media (min-width: 769px) and (max-width: 1366px){
  #page-documentos #documentosResumoGrid{
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
  }

  #page-documentos #cardCustoEstoque,
  #page-documentos #cardCalculoImportacao{
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    width: 260px;
    margin: 0;
  }
}


/* =========================================================
   RESPONSIVE ADJUSTMENTS + MOBILE MENU
   ========================================================= */
.layout{
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
}

.resumo-grid{
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.nav-toggle{
  display: none;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
  padding: 0;
  width: 46px;
  height: 46px;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-toggle-icon{
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before{ top: -6px; }
.nav-toggle-icon::after{ top: 6px; }

body.nav-open .nav-toggle-icon{
  background: transparent;
}

body.nav-open .nav-toggle-icon::before{
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-icon::after{
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 980px){
  .layout{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .topbar-inner{
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle{
    display: inline-flex;
    margin-left: auto;
  }

  .nav{
    width: 100%;
    order: 3;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    padding-top: 10px;
  }

  body.nav-open .nav{
    display: grid;
  }

  .nav-link,
  .nav-action,
  .nav-theme{
    width: 100%;
    justify-content: center;
  }

  .summary-bar{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .orcamentos-lista-header{
    align-items: stretch;
  }

  .orcamentos-lista-topo{
    flex-direction: column;
    align-items: stretch;
  }

  .orcamentos-lista-header-acoes{
    align-items: stretch;
    width: 100%;
  }

  .orcamentos-lista-header-acoes .orcamento-toolbar-action{
    width: 100%;
  }

  .servicos-lista-topo{
    flex-direction: column;
    align-items: flex-start;
  }

  .input-pesquisa-servico{
    width: 100%;
    max-width: 100%;
  }

  .servicos-toolbar{
    flex-direction: column;
    align-items: stretch;
  }

  .servicos-toolbar-search{
    max-width: 100%;
  }

  .servicos-toolbar-search-wrap{
    max-width: 100%;
  }

  .servicos-toolbar-action{
    width: 100%;
  }

  #cardCustoEstoque,
  #cardCalculoImportacao{
    position: static;
    width: 100%;
    height: auto;
  }
}

@media (min-width: 1100px){
  .brand-logo-img{
    width: auto;
    height: clamp(48px, 4vw, 72px);
  }
}

/* ====== STATUS CLICK ====== */
.status-toggle {
  cursor: pointer;
  user-select: none;
}

/* ====== ICONES RESUMO (corrige caracteres) ====== */
.resumo-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.resumo-card-orcamentos .resumo-icone::before {
  content: "\1F4C4";
  font-size: 1.6rem;
  line-height: 1;
  color: #111827;
}

.resumo-card-clientes .resumo-icone::before {
  content: "\1F465";
  font-size: 1.6rem;
  line-height: 1;
  color: #111827;
}

.resumo-card-produtos .resumo-icone::before {
  content: "\1F6E0\FE0F";
  font-size: 1.6rem;
  line-height: 1;
  color: #111827;
}

.resumo-card-servicos .resumo-icone::before {
  content: "\1F9FE";
  font-size: 1.6rem;
  line-height: 1;
  color: #111827;
}

/* ====== MOBILE EXCLUSIVO (<= 400px) ====== */
@media (max-width: 400px) {
  body {
    font-size: 15px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .topbar-inner {
    padding-right: 4px;
  }

  .nav {
    gap: 6px;
    padding-bottom: 6px;
  }

  .card {
    padding: 14px;
  }

  .layout {
    gap: 12px;
  }

  .resumo-grid {
    gap: 10px;
  }

  .resumo-card {
    padding: 10px 12px;
  }

  #cardCustoEstoque,
  #cardCalculoImportacao {
    position: static;
    width: 100%;
    height: auto;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  }

  #cardCustoEstoque .resumo-numero {
    font-size: 0.72rem;
    gap: 3px;
  }

  #cardCalculoImportacao .resumo-numero {
    font-size: 1.4rem;
  }

  #cardCustoEstoque .resumo-custo-rotulo {
    font-size: 0.60rem;
  }

  #cardCustoEstoque .resumo-custo-valor {
    font-size: 0.76rem;
  }

  .actions {
    padding: 4px 0;
  }

  .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

/* ====== DOCUMENTOS: GRID UNIFICADA DOS BOTOES ====== */
#page-documentos #documentosResumoGrid{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
}

#page-documentos #documentosResumoGrid.dm-doc-grid-hidden{
  display: none !important;
}

#page-documentos #documentosResumoGrid .resumo-card{
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  width: 100% !important;
  min-height: 140px;
  height: 140px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#page-documentos #documentosResumoGrid .resumo-numero{
  font-size: 1.5rem;
  font-weight: 800;
}

#page-documentos #documentosResumoGrid #cardCustoEstoque .resumo-numero{
  font-size: 0.74rem;
}

@media (max-width: 768px){
  #page-documentos #documentosResumoGrid{
    grid-template-columns: 1fr;
  }
}

#page-documentos:not(.active) #documentosResumoGrid,
#page-documentos:not(.active) #boxCustoEstoque,
#page-documentos:not(.active) #boxCalculoImportacao,
#page-documentos:not(.active) #boxDocumentoAtalho{
  display: none !important;
}

/* ====== DOCUMENTOS: PAGINA RESUMO ====== */
#page-documentos #containerDocumentoAtalho .dm-doc-resumo-wrap{
  display: flex;
  justify-content: center;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-page{
  width: min(100%, 560px);
  background: #f4f6fa;
  border: 1px solid #dde4ee;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-hero{
  padding: 16px 20px 20px;
  color: #fff;
  background: linear-gradient(135deg, #2b5f96 0%, #3ca9b3 100%);
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-topline{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-voltar,
#page-documentos #containerDocumentoAtalho .dm-doc-resumo-limpar{
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-voltar:hover,
#page-documentos #containerDocumentoAtalho .dm-doc-resumo-limpar:hover{
  background: rgba(255, 255, 255, 0.12);
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-title{
  margin: 18px 0 16px;
  text-align: center;
  font-size: 2.05rem;
  font-weight: 800;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-kpis{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-kpi{
  text-align: center;
  position: relative;
  padding: 0 8px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-kpi:not(:last-child)::after{
  content: "";
  position: absolute;
  right: -4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-kpi strong{
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-kpi span{
  display: block;
  font-size: 0.92rem;
  opacity: 0.95;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-mes-nav{
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  background: #e8ebf1;
  color: #2b3340;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-mes-nav button{
  border: 0;
  background: transparent;
  height: 52px;
  cursor: pointer;
  font-size: 1.9rem;
  color: #677183;
  font-weight: 500;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-mes-nav strong{
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-total{
  padding: 24px 20px 16px;
  text-align: center;
  color: #293241;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-total-valor{
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-total p{
  margin: 8px 0 0;
  color: #707887;
  font-size: 1.1rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-lista{
  list-style: none;
  margin: 2px 20px 0;
  padding: 0;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-lista li{
  display: grid;
  grid-template-columns: 1fr 28px 126px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e5e9f0;
  padding: 14px 0;
  color: #333b49;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-item-nome{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-dot{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dm-dot, #9aa0ad);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.3);
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-lista [data-slot="count"]{
  text-align: right;
  color: #667085;
  font-weight: 700;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-lista [data-slot="total"]{
  text-align: right;
  font-weight: 800;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-lista li[data-status="cancelado"] [data-slot="count"],
#page-documentos #containerDocumentoAtalho .dm-doc-resumo-lista li[data-status="cancelado"] [data-slot="total"]{
  text-decoration: line-through;
  color: #9aa2af;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-pagamentos{
  padding: 22px 20px 28px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-pagamentos h4{
  margin: 0;
  text-align: center;
  color: #495364;
  font-size: 1.9rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-pagamentos-vazio{
  margin-top: 20px;
  border-top: 1px solid #e3e8ef;
  padding-top: 24px;
  text-align: center;
  color: #8a93a2;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-icone-grafico{
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 12px solid #e8ebf0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-icone-grafico span{
  display: block;
  width: 16px;
  border-radius: 6px 6px 0 0;
  background: #cfd6e2;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-icone-grafico span:nth-child(1){
  height: 40px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-icone-grafico span:nth-child(2){
  height: 62px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-icone-grafico span:nth-child(3){
  height: 28px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-resumo-pagamentos-vazio p{
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 640px){
  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-page{
    border-radius: 14px;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-title{
    font-size: 1.65rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-kpi strong{
    font-size: 1.25rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-kpi span{
    font-size: 0.8rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-mes-nav strong{
    font-size: 1.12rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-total-valor{
    font-size: 2.25rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-total p{
    font-size: 0.9rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-lista li{
    grid-template-columns: 1fr 24px 104px;
    gap: 8px;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-item-nome{
    font-size: 0.95rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-dot{
    width: 14px;
    height: 14px;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-pagamentos h4{
    font-size: 1.45rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-resumo-icone-grafico{
    width: 110px;
    height: 110px;
    border-width: 10px;
  }
}

/* ====== DOCUMENTOS: PAGINA PEDIDOS ====== */
#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-wrap{
  display: flex;
  justify-content: center;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-page{
  width: min(100%, 740px);
  background: #f5f7fb;
  border: 1px solid #dde4ee;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #2b5f96 0%, #3ca9b3 100%);
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-hero h3{
  margin: 0;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-search-row{
  padding: 14px 16px;
  border-bottom: 1px solid #e4e9f0;
  background: #f8fafd;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-search{
  width: 100%;
  height: 46px;
  border: 1px solid #d3dbe7;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 0.98rem;
  outline: none;
  background: #fff;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-search:focus{
  border-color: #44a0b8;
  box-shadow: 0 0 0 3px rgba(68, 160, 184, 0.16);
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-list{
  padding: 0 14px 14px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-item{
  border-bottom: 1px solid #e4e8ef;
  padding: 13px 4px 12px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-item-main{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-codigo{
  display: block;
  color: #283243;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-cliente{
  margin-top: 4px;
  color: #2f3948;
  font-size: 1.04rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-tag{
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border: 1px solid #d3dae5;
  border-radius: 999px;
  color: #788294;
  font-size: 0.78rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-tag-btn{
  cursor: pointer;
  background: #fff;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-tag-btn:hover{
  border-color: #8ecde0;
  color: #2d7f96;
  background: #f3fbff;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-item-right{
  text-align: right;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-status{
  display: block;
  color: #7d8795;
  font-size: 0.98rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-data{
  display: block;
  margin-top: 6px;
  color: #8b94a2;
  font-size: 0.94rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-valor{
  display: block;
  margin-top: 6px;
  color: #202a39;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-actions{
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-del{
  border: 1px solid #f4b4b4;
  border-radius: 8px;
  background: #fff5f5;
  color: #a01f1f;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-del:hover{
  background: #ffe7e7;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pedidos-empty{
  text-align: center;
  color: #8e97a5;
  padding: 34px 10px;
  font-size: 1rem;
}

@media (max-width: 640px){
  #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-page{
    border-radius: 12px;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-hero h3{
    font-size: 1.45rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-codigo{
    font-size: 1.08rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-cliente{
    font-size: 0.96rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-status{
    font-size: 0.9rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-data{
    font-size: 0.84rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-valor{
    font-size: 1.35rem;
  }
}

/* ====== DOCUMENTOS: TELA DEFINIR DATA DE PAGAMENTO ====== */
#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-wrap{
  display: flex;
  justify-content: center;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-page{
  width: min(100%, 620px);
  background: #f5f7fb;
  border: 1px solid #dde4ee;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #2b5f96 0%, #3ca9b3 100%);
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-hero h3{
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-body{
  padding: 16px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-meta{
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  color: #2f3948;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-meta strong{
  font-size: 1.15rem;
  color: #1f2937;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-condicao{
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #d8e1ec;
  border-radius: 10px;
  background: #f9fcff;
  color: #2f3948;
  font-size: 0.9rem;
  display: grid;
  gap: 4px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-condicao strong{
  color: #334155;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-label{
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 700;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-input{
  width: 100%;
  height: 44px;
  border: 1px solid #d3dbe7;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 0.96rem;
  background: #fff;
  outline: none;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-input:focus{
  border-color: #44a0b8;
  box-shadow: 0 0 0 3px rgba(68, 160, 184, 0.16);
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-help{
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.78rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-actions{
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-save{
  border: 1px solid #2f8ea5;
  border-radius: 10px;
  background: #2f8ea5;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
}

#page-documentos #containerDocumentoAtalho .dm-doc-pagamento-save:hover{
  background: #2a7f93;
  border-color: #2a7f93;
}

@media (max-width: 640px){
  #page-documentos #containerDocumentoAtalho .dm-doc-pagamento-page{
    border-radius: 12px;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-pagamento-hero h3{
    font-size: 1.2rem;
  }
}

/* ====== DOCUMENTOS: AGENDA ====== */
#page-documentos #containerDocumentoAtalho .dm-doc-agenda-wrap{
  display: flex;
  justify-content: center;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-page{
  width: min(100%, 760px);
  background: #f5f7fb;
  border: 1px solid #dde4ee;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-hero{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #2b5f96 0%, #3ca9b3 100%);
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-hero h3{
  margin: 0;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-total{
  text-align: center;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-mes-nav{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-mes-nav button{
  width: 38px;
  height: 38px;
  border: 1px solid #d0d8e4;
  border-radius: 10px;
  background: #fff;
  color: #253246;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-mes-nav strong{
  text-align: center;
  color: #263447;
  font-size: 1.05rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-semana{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 0 16px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-semana span{
  text-align: center;
  color: #6b7484;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 0 3px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 0 16px 16px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula{
  min-height: 66px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula-vazia{
  min-height: 66px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.is-today{
  border-color: #5ca8c6;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.is-selected{
  box-shadow: 0 0 0 2px rgba(68, 160, 184, 0.2);
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.status-vence-hoje{
  background: #111827;
  border-color: #111827;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.status-vence-hoje .dm-doc-agenda-dia-num{
  color: #fff;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.status-atrasado{
  background: #facc15;
  border-color: #eab308;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.status-atrasado .dm-doc-agenda-dia-num{
  color: #111827;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.status-pago{
  background: #4ade80;
  border-color: #22c55e;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.status-pago .dm-doc-agenda-dia-num{
  color: #111827;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-dia-num{
  color: #2b3647;
  font-size: 0.9rem;
  font-weight: 700;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-dots{
  display: flex;
  align-items: center;
  gap: 4px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d62828;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-dots small{
  color: #9aa3b2;
  font-size: 0.66rem;
  font-weight: 700;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-lista-wrap{
  border-top: 1px solid #e1e7f0;
  padding: 12px 16px 16px;
  background: #fbfdff;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-lista-wrap h4{
  margin: 0 0 10px;
  color: #2a3647;
  font-size: 1rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-lista{
  display: grid;
  gap: 8px;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item{
  border: 1px solid #d9e0eb;
  border-radius: 10px;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  background: #fff;
  color: #334155;
  font-size: 0.88rem;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item.is-paid{
  background: #ecfdf5;
  border-color: #86efac;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item-status{
  color: #64748b;
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item-status-btn{
  justify-self: start;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item-status-btn:hover{
  border-color: #94a3b8;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item-status-btn.is-pago{
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item-status-btn.is-a-pagar{
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item-status-btn.is-vence-hoje{
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1d4ed8;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item-status-btn.is-atrasado{
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-item strong{
  color: #1f2937;
}

#page-documentos #containerDocumentoAtalho .dm-doc-agenda-empty{
  color: #7b8797;
  font-size: 0.9rem;
  padding: 6px 2px;
}
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-page,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-page,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pagamento-page,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-page {
  background: #0b1120;
  border-color: #1e293b;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  color: #e5e7eb;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-mes-nav,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-search-row,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-lista-wrap {
  background: #111827;
  border-color: #1e293b;
  color: #e5e7eb;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-mes-nav strong,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-total,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-pagamentos h4,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-codigo,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pagamento-meta,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pagamento-meta strong,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pagamento-label,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-mes-nav strong,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-dia-num,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-lista-wrap h4,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-item strong {
  color: #e5e7eb;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-total p,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-lista [data-slot="count"],
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-pagamentos-vazio,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-cliente,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pagamento-help,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-semana span,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-empty,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-dots small,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-item-status {
  color: #94a3b8;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-lista li,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-item,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pagamento-condicao,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-item {
  background: #0f172a;
  border-color: #1e293b;
  color: #e5e7eb;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pedidos-search,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-pagamento-input,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-mes-nav button {
  background: #020617;
  border-color: #334155;
  color: #e5e7eb;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-icone-grafico {
  border-color: #1e293b;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-resumo-icone-grafico span {
  background: #475569;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula {
  background: #0f172a;
  border-color: #334155;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.status-vence-hoje {
  background: #020617;
  border-color: #64748b;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.status-atrasado,
body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula.status-pago {
  color: #111827;
}

body.dark-theme #page-documentos #containerDocumentoAtalho .dm-doc-agenda-item-status-btn {
  background: #020617;
  border-color: #334155;
  color: #cbd5e1;
}

@media (max-width: 640px){
  #page-documentos #containerDocumentoAtalho .dm-doc-agenda-page{
    border-radius: 12px;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-agenda-hero h3{
    font-size: 1.4rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-agenda-total{
    font-size: 0.78rem;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-agenda-celula{
    min-height: 58px;
    padding: 6px 5px;
  }

  #page-documentos #containerDocumentoAtalho .dm-doc-agenda-semana span{
    font-size: 0.72rem;
  }
}





