body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #e3f0ff 0%, #f9f9f9 100%);
  margin: 0;
  padding: 0;
}
.container {
  max-width: 950px;
  margin: 40px auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  padding: 36px 36px 24px 36px;
}
h1 {
  text-align: center;
  color: #1976d2;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-top: 10px;
  background: #f7fbff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px #0001;
}
th,
td {
  padding: 14px 10px;
  text-align: center;
}
th {
  background: #1976d2;
  color: #fff;
  font-weight: 600;
  border: none;
}
tr {
  border-bottom: 1px solid #e0e0e0;
}
tr:last-child {
  border-bottom: none;
}
tr:nth-child(even) {
  background: #f1f7fd;
}
tr:hover {
  background: #e3f2fd;
  transition: background 0.2s;
}
input[type="text"],
input[type="number"],
select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #b0c4de;
  background: #f9f9f9;
  outline: none;
  transition: border 0.2s;
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border: 1.5px solid #1976d2;
  background: #fff;
}
button {
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #1976d233;
  transition: background 0.2s, box-shadow 0.2s;
}
button:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  box-shadow: 0 4px 16px #1976d244;
}
.center {
  text-align: center;
}
.checkbox-form {
  display: inline;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #1976d2;
  border-radius: 6px;
  box-shadow: 0 1px 3px #1976d233;
  cursor: pointer;
}
a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  padding: 6px 14px;
  background: #e3f2fd;
  transition: background 0.2s, color 0.2s;
  margin: 0 2px;
  box-shadow: 0 1px 3px #1976d222;
}
a:hover {
  background: #1976d2;
  color: #fff;
}
.add-row td {
  background: #e3f2fd;
  border-bottom: 2px solid #1976d2;
}
.novo-movimento-card {
  background: #e3f2fd;
  border-radius: 18px;
  box-shadow: 0 4px 18px #1976d222;
  padding: 18px 18px 10px 18px;
  margin-bottom: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border: 1.5px solid #1976d2;
}
.novo-movimento-card h2 {
  margin-top: 0;
  color: #1976d2;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.novo-mov-linha {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.novo-mov-linha input[type="text"],
.novo-mov-linha input[type="number"] {
  padding: 8px 10px;
  border-radius: 14px;
  border: 2px solid #1976d2;
  background: #f8fafd;
  outline: none;
  font-size: 17px;
  min-width: 180px;
  max-width: 260px;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  transition: border 0.2s;
}
.novo-mov-linha input[type="text"]:focus,
.novo-mov-linha input[type="number"]:focus {
  border: 2px solid #1565c0;
  background: #fff;
}
.novo-mov-linha button {
  padding: 10px 32px;
  font-size: 18px;
  border-radius: 24px;
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px #1976d233;
  transition: background 0.2s, box-shadow 0.2s;
  height: 48px;
  min-width: 140px;
}
.novo-mov-linha button:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  box-shadow: 0 4px 16px #1976d244;
}
/* Choices.js customizaÃ§Ã£o para campo Categoria menor */
.novo-mov-linha .choices {
  min-width: 120px;
  max-width: 180px;
  width: 100%;
  margin: 0;
  height: 48px;
  display: flex;
  align-items: center;
}
.novo-mov-linha .choices__inner {
  border-radius: 14px !important;
  border: 2px solid #1976d2 !important;
  background: #f8fafd !important;
  min-height: 4px !important;
  height: 45px !important;
  padding: 0 36px 0 10px !important;
  font-size: 17px !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
}
.novo-mov-linha .choices__list--single {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  height: 48px;
}
.novo-mov-linha .choices__placeholder {
  color: #888;
  opacity: 1;
  display: flex;
  align-items: center;
  height: 48px;
}
.novo-mov-linha .choices[data-type*="select-one"]::after {
  content: "";
  border: none;
  background: url("data:image/svg+xml;utf8,<svg fill='gray' height='14' viewBox='0 0 24 24' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat center center/14px 14px;
  width: 14px;
  height: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  pointer-events: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}
.novo-mov-linha .choices[data-type*="select-one"]::after {
  content: "";
  border: none;
  background: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat center center/20px 20px;
  width: 20px;
  height: 20px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  pointer-events: none;
  margin: 0;
  padding: 0;
  z-index: 2;
  transition: background 0.2s;
}
.novo-mov-linha .choices.is-open[data-type*="select-one"]::after {
  background: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 15l5-5 5 5z'/></svg>")
    no-repeat center center/20px 20px;
}
.choices {
  width: 100%;
  margin: 0;
  min-width: 140px;
  max-width: 220px;
}
.choices__inner {
  border-radius: 14px !important;
  border: 2px solid #1976d2 !important;
  background: #f8fafd !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 8px 36px 8px 10px !important;
  font-size: 17px !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
}
.choices__inner:focus,
.choices__inner.is-focused {
  border: 2px solid #1565c0 !important;
  background: #fff !important;
}
.choices__list--dropdown,
.choices__list[aria-expanded] {
  border-radius: 10px;
  box-shadow: 0 4px 18px #1976d222;
  border: 1px solid #b0c4de;
  background: #fff;
}
.choices__item {
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.choices__item:hover {
  background: #f1f7fd;
}
.choices__item--selectable.is-highlighted {
  background-color: #e3f2fd;
  color: #1976d2;
}
.choices__item--selectable {
  border-radius: 6px;
  padding: 8px 12px;
}
.choices__list--dropdown .choices__item {
  font-size: 15px;
}
.choices__placeholder {
  color: #888;
  opacity: 1;
}
.choices[data-type*="select-one"] .choices__inner {
  padding-right: 36px !important;
}
.choices[data-type*="select-one"]::after {
  border: none;
  content: "";
  background: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat center right 12px/18px 18px;
  width: 18px;
  height: 18px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  pointer-events: none;
}
.paginacao {
  margin: 24px 0 0 0;
  text-align: center;
  font-size: 16px;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.paginacao a,
.paginacao span {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 1px;
  border-radius: 7px;
  background: #e3f2fd;
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  min-width: 28px;
  text-align: center;
  box-shadow: 0 1px 3px #1976d222;
  cursor: pointer;
  font-size: 15px;
}
.paginacao a:hover {
  background: #1976d2;
  color: #fff;
}
.paginacao .pagina-atual {
  background: #1976d2;
  color: #fff;
  font-weight: bold;
  cursor: default;
}
.paginacao .disabled {
  background: #f1f7fd;
  color: #b0c4de;
  cursor: not-allowed;
}
.btn-dashboard {
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  margin-left: 10px;
  box-shadow: 0 2px 8px #1976d233;
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-dashboard:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  box-shadow: 0 4px 16px #1976d244;
}
.btn-logout {
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  margin-left: 10px;
  box-shadow: 0 2px 8px #1976d233;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-logout:hover {
  background: #1976d2;
  color: #fff;
}
.top-bar-movimentos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}
.top-bar-movimentos .left,
.top-bar-movimentos .center,
.top-bar-movimentos .right {
  flex: 1;
  display: flex;
  align-items: center;
}
.top-bar-movimentos .center {
  justify-content: center;
}
.top-bar-movimentos .left {
  justify-content: flex-start;
}
.top-bar-movimentos .right {
  justify-content: flex-end;
}
.top-bar-movimentos h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #1976d2;
  font-weight: bold;
}

/* Filtro de perÃ­odo */
.filtro-compras-fornecedor {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  background: #f8fafd;
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px #1976d211;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  margin-top: 32px; /* ou o valor que preferir */
}
.filtro-linha {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 220px;
}
.filtro-compras-fornecedor label {
  font-weight: 500;
  color: #1976d2;
  margin-right: 4px;
}
.filtro-compras-fornecedor input[type="date"] {
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid #1976d2;
  background: #fff;
  font-size: 1rem;
}
.btn-filtrar {
  padding: 10px 28px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  height: 44px;
  margin-left: 8px;
}

/* Tabela de compras por fornecedor */
.compras-fornecedor-box {
  max-width: 700px;
  margin: 0 auto 40px auto;
  background: #e3f2fd;
  border-radius: 18px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 2px 12px #1976d211;
}
.compras-fornecedor-box h3 {
  color: #1976d2;
  margin-bottom: 18px;
  font-size: 1.3rem;
  text-align: center;
}
.compras-fornecedor-tabela {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px #1976d111;
}
.compras-fornecedor-tabela th,
.compras-fornecedor-tabela td {
  padding: 12px 16px;
  text-align: left;
}
.compras-fornecedor-tabela th {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 600;
  border-bottom: 2px solid #1976d2;
}
.compras-fornecedor-tabela tr:nth-child(even) {
  background: #f8fafd;
}
.compras-fornecedor-tabela tr:hover {
  background: #bbdefb;
}
.compras-fornecedor-tabela td {
  font-size: 1.08rem;
  padding: 4px 6px;
.compras-fornecedor-tabela td:last-child {
  text-align: right;
}
.nenhum-registro {
  text-align: center;
  color: #888;
.tabela-arredondada th:nth-child(8),
.tabela-arredondada td:nth-child(8) {
  width: 140px;
  min-width: 120px;
  max-width: 180px;
  white-space: nowrap;
}
  font-style: italic;
}
/* Choices.js para filtro da dashboard */
.choices-dashboard .choices {
  min-width: 160px;
  max-width: 220px;
  width: 100%;
  margin: 0;
  height: 48px;
  display: flex;
  align-items: center;
}
.choices-dashboard .choices__inner {
  border-radius: 14px !important;
  border: 2px solid #1976d2 !important;
  background: #f8fafd !important;
  min-height: 4px !important;
  height: 45px !important;
  padding: 0 36px 0 10px !important;
  font-size: 17px !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
}
.choices-dashboard .choices__list--single {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  height: 48px;
}
.choices-dashboard .choices__placeholder {
  color: #888;
  opacity: 1;
  display: flex;
  align-items: center;
  height: 48px;
}
.choices-dashboard .choices[data-type*="select-one"]::after {
  content: "";
  border: none;
  background: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat center right 12px/18px 18px;
  width: 18px;
  height: 18px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  pointer-events: none;
}
.choices-dashboard .choices.is-open[data-type*="select-one"]::after {
  background: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 15l5-5 5 5z'/></svg>")
    no-repeat center right 12px/18px 18px;
}

/* Melhora visual dos cards da dashboard */
.dashboard-cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 60px 0 30px 0;
}
.dashboard-card {
  min-width: 220px;
  max-width: 320px;
  background: #e3f2fd;
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  border: 2px solid #1976d2;
  padding: 32px 24px;
  text-align: center;
  flex: 1 1 220px;
  margin-bottom: 18px;
  transition: box-shadow 0.2s, border 0.2s;
}
.dashboard-card:hover {
  box-shadow: 0 12px 36px 0 rgba(31, 38, 135, 0.18);
  border-color: #1565c0;
}
.dashboard-card h2 {
  color: #1976d2;
  margin-bottom: 18px;
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.dashboard-card .saldo {
  font-size: 2.1rem;
  font-weight: bold;
  color: #388e3c;
  margin-bottom: 10px;
}
.dashboard-card .saldo-cartao {
  color: #1976d2;
}
.dashboard-card .saldo-ixpressum {
  color: #ff9800;
}
.dashboard-card .saldo-sem-ixpressum {
  color: #d32f2f;
}

/* Responsividade dos cards */
@media (max-width: 900px) {
  .dashboard-cards {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .dashboard-card {
    min-width: 180px;
    max-width: 98vw;
    padding: 18px 8vw;
  }
}
@media (max-width: 700px) {
  .paginacao {
    font-size: 20px;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
    width: 100%;
  }
  .paginacao a,
  .paginacao span {
    padding: 12px 0;
    min-width: 44px;
    font-size: 19px;
    border-radius: 12px;
    margin: 0 2px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 10px;
  }
  table,
  th,
  td {
    font-size: 13px;
  }
}
@media (max-width: 700px) {
  .novo-mov-linha {
    flex-direction: column;
    gap: 10px;
  }
  .novo-movimento-card {
    padding: 12px 4px;
  }
}
@media (max-width: 700px) {
  .filtro-compras-fornecedor,
  .compras-fornecedor-box {
    padding: 12px 4vw;
  }
  .compras-fornecedor-tabela th,
  .compras-fornecedor-tabela td {
    padding: 8px 6px;
  }
  .dashboard-cards {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 60px 0 30px 0;
  }
  .dashboard-card {
    min-width: 220px;
    max-width: 320px;
    background: #e3f2fd;
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 2px solid #1976d2;
    padding: 32px 24px;
    text-align: center;
    flex: 1 1 220px;
  }
  .dashboard-card h2 {
    color: #1976d2;
    margin-bottom: 18px;
  }
  .dashboard-card .saldo {
    font-size: 2.1rem;
    font-weight: bold;
    color: #388e3c;
    margin-bottom: 10px;
  }
  .dashboard-card .saldo-cartao {
    color: #1976d2;
  }
  .dashboard-card .saldo-ixpressum {
    color: #ff9800;
  }
  .dashboard-card .saldo-sem-ixpressum {
    color: #d32f2f;
  }
  @media (max-width: 900px) {
    .dashboard-cards {
      flex-direction: column;
      align-items: center;
      gap: 18px;
    }
  }
}

.dashboard-area-max {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.filtro-compras-fornecedor,
.compras-fornecedor-box {
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.movimentos-retangulo {
  background: #e3f2fd;
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
  border: 2px solid #1976d2;
  padding: 32px 36px 24px 36px; /* igual ao .container */
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.titulo-retangulo {
  text-align: left;
  color: #1976d2;
  font-size: 1.5rem;
  margin-bottom: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

.tabela-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tabela-arredondada th,
.tabela-arredondada td {
  font-size: 0.78rem;
  padding: 4px 2px;
  white-space: nowrap;
  min-width: 40px;
  max-width: 160px;
}

.tabela-arredondada th {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tabela-arredondada td {
  font-weight: 400;
}

.tabela-arredondada {
  font-size: 0.78rem;
  table-layout: fixed;
  width: 100%;
}
