/* Base de todas as telas: cores (variáveis), letras, botões, campos, janelas, avisos e as regras usadas por mais de uma tela (ficam aqui para não mudar qual regra vale).
   Bloco 59 passo 9: parte do antigo style.css. A ordem de carregamento está no index.html (base primeiro). */
@font-face {
  font-family: Leve;
  src: local('Inter'), local('Aptos'), local('Segoe UI');
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f7f4;
  color: #22352d;
  font:
    14px Leve,
    Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #80b9a5;
  outline-offset: 3px;
}
input:focus,
select:focus {
  outline: 2px solid #84b6a2;
  outline-offset: 1px;
}
svg.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}
.hidden {
  display: none !important;
}
.sidebar {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid #e2e8e1;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 20px;
}
.mark {
  height: 42px;
  width: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: #195840;
  color: white;
  font-size: 39px;
  font-weight: 700;
  line-height: 43px;
  padding-left: 12px;
  position: relative;
}
.mark > span {
  font-size: 20px;
  position: absolute;
  right: 7px;
  top: -6px;
  font-weight: 400;
  color: #c9ed9c;
}
.workspace {
  margin: 35px 0 27px;
  border: 1px solid #e2e8df;
  border-radius: 10px;
  padding: 13px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
}
.workspace-icon {
  font-size: 22px;
  color: #63806d;
}
.workspace small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #8a958e;
  margin-top: 4px;
}
.green-dot {
  background: #79ac68;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  margin-left: auto;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav:hover {
  background: #f5f7f3;
}
.nav.active {
  background: #eaf2e9;
  color: #225b3f;
  font-weight: 650;
}
.note-symbol {
  color: #6f8646;
  background: #e7ecd7;
  border-radius: 8px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.sidebar-note strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.sidebar-note p {
  font-size: 11px;
  color: #839078;
  margin-top: 7px;
}
.sidebar-note > span {
  border-top: 1px solid #e1e7d3;
  display: block;
  font-size: 10px;
  margin-top: 15px;
  padding-top: 12px;
  color: #6a7b58;
}
.sidebar-note b {
  display: block;
  font-size: 20px;
  color: #42672d;
  font-weight: 600;
}
.sidebar-bottom {
  border-top: 1px solid #e8ece5;
  padding: 18px 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #69806f;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: #9aa79d;
  margin-top: 4px;
}
.main-shell {
  margin-left: 246px;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid #e2e7df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fcfdfa;
}
.breadcrumb strong {
  color: #5a6c5e;
  font-weight: 500;
}
.private-badge {
  font-size: 10px;
  color: #82907e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.private-badge svg {
  width: 12px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d9e4d7;
  background: #e9efe5;
  font-size: 10px;
  color: #52734a;
  font-weight: 700;
}
main {
  padding: 34px 42px 18px;
  max-width: 1580px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 9px;
  color: #859578;
  font-weight: 650;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 600;
  color: #223d2d;
}
.page-heading p {
  font-size: 12px;
  color: #8b978c;
  margin-top: 10px;
  line-height: 1.6;
}
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 17px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #1d5941;
  transition: background 0.15s;
}
.button.primary {
  background: #205a41;
  color: #fff;
}
.button.primary:hover {
  background: #17472f;
}
.button.secondary {
  background: #fff;
  border-color: #d9e1d5;
  color: #506748;
}
.button.secondary:hover {
  background: #edf4e9;
}
.button.small {
  padding: 8px 11px;
  font-size: 10px;
}
.button svg {
  width: 15px;
  height: 15px;
}
.text-button {
  border: 0;
  background: none;
  color: #778971;
  font-size: 10px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px;
}
.text-button svg {
  height: 13px;
  width: 13px;
}
.context-bar {
  border: 1px solid #e0e6db;
  border-radius: 8px;
  background: #fcfdf9;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 10px;
  color: #94a18c;
  gap: 10px;
}
.context-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.context-bar strong {
  color: #657c57;
  font-weight: 600;
}
.live-dot {
  height: 6px;
  width: 6px;
  background: #7fa15e;
  border-radius: 50%;
}
.context-actions {
  gap: 18px !important;
}
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 12px;
}
.section-row h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
.period-select {
  font-size: 11px;
  border: 1px solid #dce2d6;
  border-radius: 7px;
  padding: 8px 12px;
  background: white;
  color: #66795e;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.card {
  padding: 18px 19px;
  background: white;
  border: 1px solid #e1e6dc;
  border-radius: 10px;
  min-height: 138px;
}
.card.featured {
  background: #20563e;
  color: white;
  border-color: #20563e;
}
.card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #8b9984;
  gap: 10px;
}
.card-label svg {
  width: 15px;
  height: 15px;
  color: #90a47c;
}
.featured .card-label {
  color: #c4d8bc;
}
.featured .card-label svg {
  color: #c3dcb4;
}
.card-number {
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.9px;
  margin-top: 19px;
  white-space: nowrap;
}
.card-number small {
  font-size: 17px;
}
.card-caption {
  font-size: 9px;
  color: #9aa691;
  line-height: 1.6;
  margin-top: 8px;
}
.featured .card-caption {
  color: #b3cfab;
}
.card-tag {
  font-size: 9px;
  border-radius: 4px;
  padding: 3px 6px;
  background: #f1f5e9;
  color: #8a9f61;
  font-weight: 500;
  margin-left: 8px;
}
.card-tag.warn {
  background: #fbf3df;
  color: #b39747;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.panel-heading h2 {
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
.panel-heading p {
  font-size: 10px;
  color: #93a08b;
  margin-top: 7px;
  line-height: 1.7;
}
.pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid #e4e9db;
  background: #f6f8ef;
  border-radius: 5px;
  padding: 5px 7px;
  white-space: nowrap;
  color: #82976b;
  font-size: 8px;
  font-weight: 600;
}
.chart {
  width: 100%;
  height: 230px;
  display: block;
}
.chart text {
  fill: #a2ad9b;
  font-size: 10px;
}
.chart .y-label {
  font-size: 8px;
}
.legend {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 5px 0 6px;
  font-size: 9px;
  color: #91a184;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.legend .base {
  background: #438461;
}
.legend .reserve {
  background: #d7c890;
}
.legend .adjusted {
  background: #a5b798;
}
.chart-note {
  font-size: 9px;
  color: #a0ad94;
  border-top: 1px solid #eef0e9;
  padding-top: 12px;
  line-height: 1.7;
}
.cash-line span {
  color: #8d9b84;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cash-line b {
  font-weight: 550;
  white-space: nowrap;
}
.cash-line.total b {
  color: #3e7451;
}
.info-note {
  padding: 11px 12px;
  background: #f7f8f1;
  border-radius: 7px;
  display: flex;
  gap: 8px;
  color: #97a482;
  font-size: 9px;
  line-height: 1.8;
}
.info-note svg {
  width: 13px;
  flex-shrink: 0;
  margin-top: 3px;
}
.alert {
  padding: 13px 17px;
  border-radius: 8px;
  border: 1px solid #e8e2cc;
  background: #fcfaf0;
  color: #9d8c58;
  font-size: 10px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
}
.alert svg {
  flex-shrink: 0;
  width: 15px;
  margin-top: 3px;
}
.alert strong {
  color: #8e7b47;
  font-weight: 600;
}
.alert.green {
  background: #eff5e9;
  color: #6b8958;
  border-color: #dce8d1;
}
.alert.green strong {
  color: #456d38;
}
.alert.red {
  background: #fbefea;
  color: #a87762;
  border-color: #eadacf;
}
.alert.red strong {
  color: #925540;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 23px 17px;
}
.table-header h2 {
  font-size: 14px;
  font-weight: 600;
}
.table-header p {
  font-size: 10px;
  color: #99a58f;
  margin-top: 7px;
  line-height: 1.6;
}
.table-controls {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e3e8dc;
  border-radius: 6px;
  background: #fafbf7;
}
.segmented button {
  font-size: 9px;
  color: #9aa78e;
  border: 0;
  background: none;
  padding: 7px 10px;
  border-radius: 4px;
}
.segmented button.selected {
  background: #e7efe0;
  color: #577247;
  font-weight: 600;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 8px;
  letter-spacing: 0.9px;
  color: #94a188;
  font-weight: 500;
  padding: 13px 18px;
  background: #fafbf7;
  border-top: 1px solid #edf0e7;
  border-bottom: 1px solid #e9ede3;
}
td {
  padding: 16px 18px;
  font-size: 11px;
  border-bottom: 1px solid #eff1e9;
  color: #6f7f61;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  color: #416234;
  font-weight: 600;
}
.right {
  text-align: right;
}
.month-cell {
  color: #415c35;
  font-weight: 500;
}
.month-cell small {
  display: block;
  font-size: 8px;
  color: #a1ad94;
  margin-top: 4px;
  font-weight: 400;
}
.table-footnote {
  padding: 13px 23px;
  background: #fcfdf9;
  font-size: 9px;
  color: #99a68b;
  border-top: 1px solid #e9ede1;
  line-height: 1.8;
}
.next-action {
  margin-top: 23px;
  padding: 21px 23px;
  border: 1px solid #dbe5d0;
  border-radius: 10px;
  background: #edf3e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.next-action h3 {
  font-size: 13px;
  font-weight: 600;
  color: #50733c;
}
.next-action p {
  font-size: 10px;
  margin-top: 6px;
  color: #8ea077;
  line-height: 1.6;
}
.next-action svg {
  width: 15px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 8px;
  color: #a1ad95;
  margin-top: 34px;
  padding-top: 15px;
  border-top: 1px solid #e0e7d7;
}
.progress-wrap {
  display: flex;
  gap: 20px;
  align-items: center;
}
.progressbar {
  height: 6px;
  background: #edf1e7;
  border-radius: 5px;
  overflow: hidden;
}
.progressbar i {
  display: block;
  background: #568354;
  height: 100%;
}
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 0 23px 18px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  min-width: 190px;
}
.search input {
  width: 100%;
  padding: 10px 12px 10px 35px;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 10px;
  color: #a1af97;
  width: 15px;
}
input:not([type='range'], [type='checkbox']),
select {
  border: 1px solid #dce3d4;
  border-radius: 7px;
  background: #fff;
  color: #576d48;
  padding: 10px 12px;
  font-size: 11px;
  min-width: 0;
}
label {
  display: block;
  font-size: 10px;
  color: #829474;
  margin-bottom: 7px;
}
label input,
label select {
  display: block;
  margin-top: 7px;
  width: 100%;
}
.search input {
  padding-left: 35px !important;
}
.curve.A {
  background: #e9f0df;
  color: #607d42;
}
.curve.B {
  background: #f6f0dc;
  color: #a89452;
}
.curve.C {
  background: #f1f2ec;
  color: #9b9f86;
}
.product-name small {
  display: block;
  font-size: 8px;
  color: #a3ae96;
  margin-top: 3px;
}
.status {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 8px;
  color: #969f89;
  background: #f0f2eb;
}
.status.ruptura {
  color: #b17a60;
  background: #faf0e8;
}
.status.repor {
  color: #9c9059;
  background: #f9f4e2;
}
.status.adequado {
  color: #69894f;
  background: #edf4e6;
}
.pagination {
  display: flex;
  justify-content: space-between;
  padding: 15px 23px;
  color: #99a88d;
  font-size: 10px;
  align-items: center;
}
.pagination > div {
  display: flex;
  gap: 6px;
}
.empty-state {
  text-align: center;
  padding: 35px;
  color: #99a88d;
  line-height: 1.7;
}
.stat-inline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 23px;
}
.stat-inline > div {
  flex: 1;
}
.stat-inline b {
  display: block;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.6px;
  color: #56753e;
}
.stat-inline span {
  font-size: 10px;
  color: #95a386;
  line-height: 1.8;
}
.stat-inline .progressbar {
  margin-top: 10px;
}
.sim-grid {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(0, 1.6fr);
  gap: 22px;
}
.form-group {
  margin-bottom: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.help {
  font-size: 9px;
  color: #9aaa8e;
  line-height: 1.7;
  margin: 7px 0 0;
}
.divider {
  height: 1px;
  background: #e9eee1;
  margin: 20px 0;
}
.range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  font-size: 10px;
  color: #92a082;
}
.range-row b {
  font-size: 12px;
  color: #688747;
}
input[type='range'] {
  accent-color: #568046;
  width: 100%;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a9b49d;
  margin-top: 2px;
}
.full {
  width: 100%;
}
.sim-summary span {
  font-size: 9px;
  color: #a1ac94;
}
.sim-summary b {
  display: block;
  font-size: 23px;
  color: #4a7138;
  font-weight: 550;
  margin-top: 8px;
}
.mini-table td {
  font-size: 10px;
  padding: 12px 18px;
}
.mini-table th {
  font-size: 8px;
}
.results-status svg {
  width: 18px;
  height: 18px;
}
.saved-row small {
  display: block;
  color: #a0ae8f;
  font-size: 9px;
  margin-top: 4px;
}
dialog {
  border: 1px solid #dbe4d1;
  border-radius: 14px;
  box-shadow: 0 25px 100px #193f3133;
  padding: 0;
  width: min(580px, 92vw);
  max-height: 90vh;
  color: #2b4430;
  background: #fcfdf9;
}
dialog::backdrop {
  background: #20372866;
  backdrop-filter: blur(3px);
}
.drawer-head h2 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.7px;
}
.icon-button {
  border: 1px solid #e1e8d7;
  background: white;
  border-radius: 7px;
  height: 28px;
  width: 28px;
  color: #89a072;
  font-size: 20px;
}
.source-card strong {
  font-size: 11px;
  font-weight: 500;
}
.source-card p {
  font-size: 9px;
  color: #97a58a;
  margin-top: 6px;
  line-height: 1.6;
}
.upload-box svg {
  width: 25px;
  color: #839d64;
}
.upload-box h3 {
  font-size: 13px;
  margin: 11px 0 7px;
  font-weight: 550;
}
.upload-box p {
  font-size: 10px;
  color: #98a78a;
  line-height: 1.7;
}
.mapping select {
  width: 100%;
}
.mapping label {
  font-size: 10px;
}
.mapping-info {
  padding: 12px 0;
  font-size: 10px;
  color: #829772;
  line-height: 1.7;
}
.compact td {
  padding: 10px;
  font-size: 9px;
}
.compact th {
  padding: 10px;
}
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 10px;
  color: #91a081;
  line-height: 1.7;
  margin: 17px 0;
}
.checkbox-line input {
  margin: 3px 0;
}
.inline-link {
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #718c55;
  font-size: 10px;
  padding: 0;
}
.manual-table input {
  width: 105px;
}
.manual-table td {
  padding: 9px;
}
.manual-table th {
  padding: 9px;
}
.manual-table input[type='month'] {
  width: 126px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #254d35;
  color: #eef5e7;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 11px;
  box-shadow: 0 8px 25px #2a482933;
  z-index: 10;
  max-width: 85vw;
}
.negative {
  color: #b77e64 !important;
}
.button-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  flex-wrap: wrap;
}
.title-note {
  font-size: 10px;
  color: #97a788;
  line-height: 1.7;
}
.no-margin {
  margin: 0;
}
.switcher {
  display: flex;
  gap: 7px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.simulator-empty h3 {
  font-size: 16px;
  font-weight: 550;
  color: #657f50;
  margin-bottom: 10px;
}
.simulator-empty p {
  font-size: 11px;
  line-height: 1.8;
}
.simulator-empty > svg {
  height: 42px;
  width: 42px;
  margin: 10px 0 20px;
}
.danger-text {
  color: #a57c66;
}
.subtle {
  color: #a0ad94;
}
.import-options {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  flex-wrap: wrap;
}
.import-options select {
  flex: 1;
}
.form-error {
  font-size: 11px;
  color: #a86d55;
  background: #faf0e9;
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
}
.model-links {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.unsaved-dot {
  height: 5px;
  width: 5px;
  background: #caad63;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.origin-note {
  font-size: 9px;
  color: #97a48b;
  line-height: 1.8;
  margin-bottom: 14px;
}
.export-summary {
  font-size: 10px;
  color: #94a882;
  line-height: 1.7;
  margin-top: 14px;
}
.product-supplier-cell > small {
  display: block;
  white-space: normal;
  font-size: 9px;
  line-height: 1.6;
  color: #687e96;
  margin-top: 7px;
}
.product-supplier-button svg {
  height: 14px;
  width: 14px;
}
.supplier-product-title strong {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #304963;
}
.supplier-product-title small {
  display: block;
  font-size: 9px;
  color: #62768d;
  margin-top: 4px;
}
.supplier-selection-heading strong {
  font-size: 11px;
  color: #6d28d9;
}
.supplier-chip button {
  height: 21px;
  width: 21px;
  flex-shrink: 0;
  border: 0;
  border-radius: 4px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 17px;
  line-height: 1;
}
.supplier-chip button:hover {
  background: #ddd6fe;
}
.supplier-picker-option > input[type='checkbox'] {
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}
.supplier-picker-option strong {
  display: block;
  font-size: 11px;
  color: #304963;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.supplier-picker-option small {
  display: block;
  font-size: 9px;
  color: #687e96;
  line-height: 1.5;
  margin-top: 5px;
}
.supplier-confirmation-note svg {
  height: 14px;
  width: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.item-suppliers-summary {
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0 15px;
}
.item-suppliers-summary > strong {
  font-size: 10px;
  color: #6d28d9;
}
.item-suppliers-summary > p {
  font-size: 10px;
  color: #675486;
  line-height: 1.7;
  margin: 7px 0;
}
.item-suppliers-summary .text-button {
  color: #6d28d9;
}
/* Paleta por finalidade: caixa verde, prazos azuis, compromissos âmbar, cenários violeta. */
:root {
  --emerald: #047857;
  --blue: #1d4ed8;
  --amber: #92400e;
  --violet: #6d28d9;
  --ink: #24364a;
  --muted: #617187;
}
body {
  background:
    radial-gradient(ellipse at 100% 0%, #ede9fe77, transparent 42%),
    radial-gradient(ellipse at 20% 45%, #dbeafe66, transparent 45%), #f7f9fc;
  color: var(--ink);
}
button:focus-visible,
a:focus-visible {
  outline-color: #3b82f6;
}
input:focus,
select:focus {
  outline-color: #60a5fa;
}
.mark {
  background: linear-gradient(145deg, #059669, #0f766e);
  box-shadow: 0 5px 15px #04785726;
}
.mark > span {
  color: #fde047;
}
.workspace {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.workspace-icon {
  color: #059669;
}
.workspace small {
  color: #397460;
}
.green-dot,
.live-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px #10b98116;
}
.note-symbol {
  background: #ffffff24;
  color: #fef08a;
}
.sidebar-note p {
  color: #e0f2fe;
}
.sidebar-note > span {
  border-color: #ffffff30;
  color: #e0f2fe;
}
.sidebar-note b {
  color: #fef08a;
}
.sidebar-bottom small {
  color: #617b6f;
}
.breadcrumb strong {
  color: #374b62;
}
.private-badge {
  color: #047857;
}
.avatar {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}
.eyebrow {
  color: #047857;
}
h1 {
  color: #183c35;
}
.page-heading p {
  color: var(--muted);
}
.button.primary {
  background: linear-gradient(120deg, #047857, #0f766e);
  border-color: #047857;
  box-shadow: 0 3px 8px #04785718;
}
.button.primary:hover {
  background: linear-gradient(120deg, #065f46, #115e59);
}
.button.secondary {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #f8fbff;
}
.button.secondary:hover {
  background: #eff6ff;
}
.text-button,
.inline-link {
  color: #2563eb;
}
.context-bar {
  background: linear-gradient(100deg, #ecfdf5, #eff6ff);
  border-color: #bfdfd6;
  color: #527083;
}
.context-bar strong {
  color: #047857;
}
.context-actions .text-button {
  color: #1d4ed8;
}
.period-select {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.card {
  position: relative;
  border-color: #dfe7f0;
  border-top-width: 3px;
  box-shadow: 0 4px 14px #203b5a05;
}
.card.featured {
  background: linear-gradient(125deg, #047857, #0f766e);
  border-color: #047857;
  color: white;
  box-shadow: 0 6px 18px #04785720;
}
.featured .card-label,
.featured .card-label svg {
  color: #e2fff1;
}
.featured .card-caption {
  color: #dcfce7;
}
.cards > .card:nth-child(2) {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border-color: #bfdbfe;
  border-top-color: #3b82f6;
  color: #1e40af;
}
.cards > .card:nth-child(2) .card-label,
.cards > .card:nth-child(2) .card-label svg,
.cards > .card:nth-child(2) .card-caption {
  color: #2457a2;
}
.cards > .card:nth-child(3) {
  background: linear-gradient(135deg, #fffbeb, #fff0d6);
  border-color: #fde68a;
  border-top-color: #f59e0b;
  color: #92400e;
}
.cards > .card:nth-child(3) .card-label,
.cards > .card:nth-child(3) .card-label svg,
.cards > .card:nth-child(3) .card-caption {
  color: #8a4d0b;
}
.cards > .card:nth-child(4) {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color: #ddd6fe;
  border-top-color: #8b5cf6;
  color: #5b21b6;
}
.cards > .card:nth-child(4) .card-label,
.cards > .card:nth-child(4) .card-label svg,
.cards > .card:nth-child(4) .card-caption {
  color: #6945a1;
}
.card-tag.warn {
  background: #fef3c7;
  color: #854d0e;
  border: 1px solid #fde68a;
}
.panel-heading,
.table-header {
  background: linear-gradient(100deg, #ffffff, #f7faff);
}
.panel-heading h2,
.table-header h2 {
  color: #304963;
}
.panel-heading p,
.table-header p {
  color: #667a91;
}
.pill {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.chart text {
  fill: #64748b;
}
.legend {
  color: #56687e;
}
.legend .base {
  background: #059669;
}
.legend .reserve {
  background: #d97706;
}
.legend .adjusted {
  background: #7c3aed;
}
.chart-note {
  color: #62768d;
  border-color: #e2e8f0;
}
.cash-line span {
  color: #60748b;
}
.cash-line b {
  color: #304963;
}
.cash-line.total b {
  color: #047857;
}
.info-note {
  background: #eff6ff;
  color: #28578a;
  border: 1px solid #dbeafe;
}
.alert {
  background: #fffbeb;
  border-color: #fde68a;
  color: #8a5814;
}
.alert strong {
  color: #78350f;
}
.alert.green {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.alert.green strong {
  color: #065f46;
}
.alert.red,
.form-error {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}
.alert.red strong {
  color: #9f1239;
}
th {
  background: #eff6ff;
  color: #5275a2;
  border-color: #dbeafe;
}
td {
  color: #52647b;
  border-color: #edf1f7;
}
td strong {
  color: #047857;
}
.month-cell {
  color: #244d7b;
}
.month-cell small {
  color: #687f99;
}
.table-footnote {
  background: #f8fafc;
  color: #62758c;
  border-color: #e2e8f0;
}
.segmented {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.segmented button {
  color: #62738a;
}
.segmented button.selected {
  background: #dbeafe;
  color: #1e40af;
}
.next-action {
  background: linear-gradient(110deg, #ecfdf5, #eff6ff);
  border-color: #b9e4d6;
}
.next-action h3 {
  color: #065f46;
}
.next-action p {
  color: #406d75;
}
.progressbar {
  background: #e0e7ff;
}
.progressbar i {
  background: linear-gradient(90deg, #10b981, #3b82f6);
}
.curve.A {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.curve.B {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.curve.C {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.status {
  background: #f1f5f9;
  color: #52647b;
}
.status.ruptura {
  background: #ffe4e6;
  color: #be123c;
}
.status.repor {
  background: #fef3c7;
  color: #92400e;
}
.status.adequado {
  background: #d1fae5;
  color: #065f46;
}
.product-name small,
.pagination,
.empty-state {
  color: #687e96;
}
.stat-inline b {
  color: #047857;
}
.stat-inline > div:nth-child(2) b {
  color: #2563eb;
}
.stat-inline > div:nth-child(3) b {
  color: #7c3aed;
}
.stat-inline span {
  color: #62768d;
}
input:not([type='range'], [type='checkbox']),
select {
  border-color: #cddcec;
  color: #334d68;
}
label {
  color: #56708c;
}
.help,
.title-note,
.origin-note,
.export-summary,
.checkbox-line,
.mapping-info {
  color: #61758d;
}
.subtle {
  color: #7287a0;
}
.negative {
  color: #be123c !important;
}
.danger-text {
  color: #be123c;
}
#page-simulador .button.primary {
  background: linear-gradient(120deg, #6d28d9, #7c3aed);
  border-color: #6d28d9;
  box-shadow: 0 3px 8px #6d28d91a;
}
#page-simulador .button.primary:hover {
  background: #5b21b6;
}
#page-simulador .pill {
  background: #ede9fe;
  border-color: #ddd6fe;
  color: #6d28d9;
}
#page-simulador .range-row b {
  color: #6d28d9;
}
.range-row,
.range-labels {
  color: #687c93;
}
.sim-summary span {
  color: #60758e;
}
.sim-summary b {
  color: #047857;
}
.saved-row small {
  color: #776a90;
}
.simulator-empty h3,
.simulator-empty > svg {
  color: #6d28d9;
}
dialog {
  background: #fbfdff;
  border-color: #d5e1ef;
  color: #304963;
}
dialog::backdrop {
  background: #192e4966;
}
.icon-button {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}
.source-card p {
  color: #62768d;
}
.upload-box svg {
  color: #6d28d9;
}
.upload-box p {
  color: #66758e;
}
.divider {
  background: #e2e8f0;
}
.toast {
  background: linear-gradient(110deg, #065f46, #0e7490);
  color: white;
}
footer {
  color: #6c8097;
  border-color: #dbe5ef;
}
@media (min-width: 1500px) {
  h1 {
    font-size: 36px;
  }
  .card-number {
    font-size: 31px;
  }
  .card {
    min-height: 151px;
  }
}
@media (max-width: 1200px) {
  .main-shell {
    margin-left: 218px;
  }
  main {
    padding: 28px 25px 18px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 16px 14px;
  }
  .card-number {
    font-size: 22px;
  }
  .grid-two {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  }
  .context-bar #context-summary {
    max-width: 270px;
    line-height: 1.5;
  }
}
@media (max-width: 960px) {
  .mark {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 31px;
  }
  .main-shell {
    margin-left: 190px;
  }
  .workspace {
    font-size: 10px;
    padding: 10px 6px;
  }
  .workspace small {
    font-size: 8px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-number {
    font-size: 27px;
  }
  .grid-two,
  .sim-grid {
    grid-template-columns: 1fr;
  }
  .context-bar {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 27px;
  }
  .table-header {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .mark {
    height: 32px;
    width: 32px;
    font-size: 30px;
    line-height: 32px;
    padding-left: 10px;
  }
  .mark > span {
    right: 4px;
    top: -4px;
    font-size: 15px;
  }
  .workspace,
  .nav-label,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 3px;
    margin-top: 18px;
  }
  .nav svg {
    width: 17px;
  }
  .main-shell {
    margin-left: 0;
  }
  .avatar {
    height: 25px;
    width: 25px;
    font-size: 8px;
  }
  .private-badge {
    font-size: 8px;
  }
  .private-badge svg {
    width: 10px;
  }
  main {
    padding: 25px 18px 18px;
  }
  .page-heading {
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .page-heading .button {
    padding: 9px 11px;
    font-size: 10px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 8px;
    letter-spacing: 1.2px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
    margin-top: 9px;
  }
  .context-bar {
    padding: 11px 12px;
    margin-bottom: 20px;
    gap: 10px;
  }
  .context-bar > div {
    flex-wrap: wrap;
    font-size: 9px;
    gap: 7px;
  }
  .context-bar #context-summary {
    max-width: none;
    flex-basis: 100%;
    margin-left: 13px;
    font-size: 8px;
  }
  .context-actions {
    margin-left: 13px;
  }
  .section-row h2 {
    font-size: 14px;
  }
  .card {
    padding: 16px 13px;
    min-height: 132px;
  }
  .card-label {
    font-size: 9px;
  }
  .card-number {
    font-size: 23px;
    margin-top: 18px;
  }
  .card-caption {
    font-size: 8px;
  }
  .card-tag {
    font-size: 7px;
    margin-left: 5px;
  }
  .cards {
    gap: 10px;
    margin-bottom: 18px;
  }
  .grid-two {
    gap: 18px;
    margin-bottom: 18px;
  }
  .chart {
    height: 210px;
  }
  .table-header {
    padding: 19px 17px 15px;
  }
  .table-header h2 {
    font-size: 13px;
  }
  .table-header p {
    font-size: 9px;
  }
  .table-controls .segmented button {
    padding: 6px 7px;
    font-size: 8px;
  }
  .table-footnote {
    padding: 12px 17px;
  }
  .next-action {
    padding: 18px 17px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  .next-action h3 {
    font-size: 12px;
  }
  .next-action p {
    font-size: 9px;
  }
  .next-action .button {
    width: 100%;
  }
  footer {
    font-size: 7px;
    line-height: 1.6;
    flex-direction: column;
    gap: 5px;
    margin-top: 25px;
  }
  .filter-bar {
    padding: 0 17px 15px;
  }
  .search {
    flex-basis: 100%;
  }
  .stat-inline {
    padding: 17px;
    gap: 13px;
  }
  .stat-inline b {
    font-size: 21px;
  }
  .stat-inline span {
    font-size: 8px;
  }
  .alert {
    font-size: 9px;
    padding: 11px 13px;
  }
  .sim-summary b {
    font-size: 19px;
  }
  .sim-summary span {
    font-size: 8px;
  }
  .form-grid {
    gap: 10px;
  }
  .table-controls input {
    width: 85px;
  }
  .pagination {
    padding: 14px 17px;
    font-size: 9px;
  }
}
/* Grupos da Curva ABC e ciclo financeiro da operação. */
.group-report-panel {
  margin: 19px 0 22px;
}
.group-report-table th,
.group-report-table td {
  padding: 11px 12px;
}
.group-report-table tr:hover td {
  background: #f8fbff;
}
.group-report-selected td {
  background: #eff6ff;
}
.group-report-table .group-badge {
  display: inline-flex;
  border-radius: 7px;
  padding: 6px 9px;
  white-space: nowrap;
  font-weight: 650;
  background: #dbeafe;
  color: #1e40af;
}
.group-report-table tr:nth-child(3n + 2) .group-badge {
  background: #d1fae5;
  color: #065f46;
}
.group-report-table tr:nth-child(3n + 3) .group-badge {
  background: #ede9fe;
  color: #6d28d9;
}
.group-report-table .group-badge.group-review {
  background: #fef3c7;
  color: #92400e;
}
.group-report-table .text-button {
  white-space: nowrap;
}
.group-cell {
  min-width: 170px;
}
.group-cell select {
  font-size: 10px;
  max-width: 205px;
  width: 100%;
  padding: 8px 26px 8px 9px;
  border-color: #a5b4fc;
  color: #4338ca;
  background: #f8faff;
}
.group-cell small {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  color: #687e96;
}
.reorder-cost {
  display: block;
  font-size: 9px;
  color: #687e96;
  margin-top: 4px;
}
.cycle-fields label {
  margin: 0;
  min-width: 0;
  color: #405875;
  font-weight: 600;
}
.cycle-fields label small {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 400;
  color: #61758d;
}
.cycle-output span {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.cycle-output strong {
  font-size: 24px;
  line-height: 1.25;
}
.cycle-output small {
  font-size: 9px;
  line-height: 1.5;
}
.cycle-actions p {
  font-size: 10px;
  color: #62758c;
  line-height: 1.5;
  max-width: 620px;
}
@media (max-width: 700px) {
  .group-report-table {
    min-width: 860px;
  }
  .group-cell {
    min-width: 150px;
  }
}
/* Controle de desossa e giro do açougue */
#page-acougue {
  font-size: 1rem;
}
.butcher-cards > div {
  border: 1px solid #dbe5f0;
  background: linear-gradient(130deg, #fff, #eef7fb);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.butcher-cards span {
  font-size: 14px;
  color: #4c6076;
}
.butcher-cards strong {
  font-size: 25px;
  color: #153c59;
}
.butcher-cards small {
  font-size: 13px;
  color: #62768a;
  line-height: 1.4;
}
.butcher-form label {
  font-size: 14px;
  color: #34516b;
}
.butcher-form .button {
  margin-top: 12px;
  font-size: 14px;
}
.butcher-report th {
  font-size: 12px;
}
.butcher-report td {
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 700px) {
  #nav-acougue {
    min-width: 0;
  }
}
.butcher-upload p {
  font-size: 13px;
  line-height: 1.5;
  color: #60768c;
}
.butcher-upload input {
  max-width: 100%;
  font-size: 14px;
}
.butcher-reconcile strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  color: #173f59;
}
/* Livro financeiro */
.financial-toolbar,
.financial-actions,
.financial-tabs,
.financial-filters,
.financial-card-head,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.financial-toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
}
.financial-tabs {
  background: #e9f2f1;
  border-radius: 11px;
  padding: 4px;
}
.financial-tab {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 13px;
  color: #315765;
  cursor: pointer;
  font: inherit;
}
.financial-tab.active {
  background: #fff;
  color: #123f32;
  box-shadow: 0 1px 5px #122e241f;
  font-weight: 700;
}
.financial-actions .button {
  white-space: nowrap;
}
.financial-filters {
  margin: 10px 0 17px;
  align-items: end;
}
.financial-filters label,
.financial-form-grid label,
.financial-dialog form > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #23404b;
}
.financial-filters input,
.financial-filters select,
.financial-dialog input,
.financial-dialog select {
  border: 1px solid #c6d9df;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #142f3d;
  font: inherit;
  min-height: 42px;
}
.financial-filters #f-query {
  min-width: 210px;
}
.financial-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  margin: 15px 0;
}
.financial-three {
  grid-template-columns: repeat(3, 1fr);
}
.financial-card {
  background: #fff;
  border: 1px solid #cde0e5;
  border-radius: 14px;
  padding: 19px;
  margin: 14px 0;
  min-width: 0;
}
.financial-card h3 {
  font-size: 18px;
  margin: 0 0 17px;
  color: #153444;
}
.financial-card-head {
  justify-content: space-between;
}
.financial-card-head h3 {
  margin: 0;
}
.financial-card-head span {
  color: #526c78;
}
.financial-scroll {
  overflow: auto;
  max-width: 100%;
}
.financial-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.financial-table th,
.financial-table td {
  padding: 12px;
  border-bottom: 1px solid #dce9ed;
  text-align: right;
  white-space: nowrap;
}
.financial-table th:first-child,
.financial-table td:nth-child(3) {
  text-align: left;
}
.financial-table thead {
  background: #edf6f8;
  color: #153444;
}
.financial-table tbody tr:hover {
  background: #f4fbfc;
}
.financial-report th:first-child {
  min-width: 300px;
}
.report-group {
  background: #e8f2fa;
  font-weight: 700;
}
.report-total {
  background: #e9f5f2;
  font-weight: 700;
}
.value-link,
.row-actions button {
  border: 0;
  background: none;
  color: #075872;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  padding: 2px;
}
.row-actions {
  flex-wrap: nowrap;
  gap: 8px;
}
.row-actions button {
  white-space: nowrap;
  font-size: 13px;
}
.account-line small,
.financial-muted {
  color: #667d88;
}
.financial-hint {
  font-size: 14px;
  color: #516b77;
  line-height: 1.5;
}
.finance-status {
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #e7f1f6;
}
.finance-status.realizado {
  background: #d9f8e7;
  color: #086649;
}
.finance-status.atrasado {
  background: #ffe3df;
  color: #9e2828;
}
.financial-graph {
  display: flex;
  align-items: end;
  gap: 4px;
  overflow: auto;
  min-height: 155px;
  border-bottom: 1px solid #d4e3e8;
}
.graph-day {
  flex: 1;
  min-width: 17px;
  text-align: center;
}
.graph-bars {
  height: 112px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
}
.graph-bars span {
  width: 42%;
  max-width: 15px;
  display: block;
  border-radius: 3px 3px 0 0;
}
.graph-day small {
  font-size: 11px;
  color: #557;
}
.financial-dialog {
  width: min(620px, 95vw);
  max-height: 90vh;
  border: 1px solid #cce1e6;
  border-radius: 16px;
  padding: 0;
}
.financial-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.financial-wide {
  grid-column: 1/-1;
}
.financial-dialog label:has(input[type='checkbox']) {
  flex-direction: row;
  align-items: center;
}
.financial-dialog .button-row {
  margin-top: 20px;
}
@media (max-width: 900px) {
  .financial-grid,
  .financial-three {
    grid-template-columns: 1fr;
  }
  .financial-tabs {
    overflow: auto;
    max-width: 100%;
  }
  .financial-tab {
    white-space: nowrap;
  }
  .financial-form-grid {
    grid-template-columns: 1fr;
  }
}
/* Formulário financeiro com troca de tipo na parte superior */
.financial-dialog {
  width: min(490px, 96vw);
  border-radius: 13px;
  overflow: hidden;
}
.financial-entry-form {
  padding: 0 18px 16px;
}
.financial-entry-form select,
.financial-entry-form input {
  width: 100%;
}
.entry-checkbox input {
  width: auto !important;
  min-height: 0;
}
.entry-mode button {
  width: 33.33%;
  background: transparent;
  border: 0;
  border-right: 1px solid #c5e1eb;
  padding: 11px 4px;
  color: #15384e;
  cursor: pointer;
}
.entry-mode button:last-child {
  border-right: 0;
}
.entry-mode button.selected {
  background: #d8f4fa;
  font-weight: 700;
}
.entry-ghost-categories h3 {
  text-transform: uppercase;
  font-size: 13px;
  margin: 15px 0;
}
.financial-entry-form [hidden],
.financial-entry-form .ghost-hidden {
  display: none !important;
}
.finance-status.fantasma {
  color: #314d79;
  background: #e8eefd;
}
@media (max-width: 520px) {
  .financial-entry-form .financial-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .financial-entry-form .entry-amount-card input {
    min-width: 0;
  }
}
.entry-multi-toggle input {
  appearance: none;
  width: 37px !important;
  height: 22px;
  min-height: 22px !important;
  border: 0;
  border-radius: 22px;
  background: #c5e6f0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.entry-batch > strong {
  color: #13394f;
}
.entry-draft button {
  border: 0;
  background: transparent;
  color: #b32929;
  font-size: 20px;
  cursor: pointer;
}
.financial-entry-form .entry-pin-row input,
.financial-entry-form .entry-pin-row select {
  flex: 1;
  min-width: 0;
  width: auto;
}
.entry-account-button span {
  color: #167caa;
  background: #e8f8fd;
  padding: 2px 6px;
  border-radius: 5px;
}
.financial-dialog.account-picker-open {
  width: min(940px, 98vw);
}
.account-picker-head button {
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}
.account-picker-search input {
  width: 100%;
  border: 1px solid #b5dbe8;
  border-radius: 9px;
  background: #f0fbff;
  padding: 11px;
  font: inherit;
}
.account-picker-item strong {
  color: #076944;
  font-size: 13px;
  white-space: nowrap;
}
.account-picker #account-picker-create form {
  display: grid;
  gap: 10px;
}
.account-picker #account-picker-create label {
  display: grid;
  gap: 5px;
  font-size: 13px;
}
.entry-account-combo button {
  flex: 0 0 36px;
  min-height: 34px;
  margin-right: 3px;
  border: 0;
  border-radius: 6px;
  background: #e8f8fd;
  color: #167caa;
  cursor: pointer;
  font: inherit;
}
.entry-account-combo button:hover {
  background: #d0f2fc;
}
.entry-account-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #15384e;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.entry-account-options button:hover,
.entry-account-options button:focus-visible,
.entry-account-options button:first-child {
  background: #65d1ed;
  color: #0b3246;
}
.financial-dialog.category-picker-open {
  width: min(940px, 98vw);
}
.category-levels button {
  flex: 1;
  border: 1px solid #cbe3ef;
  border-radius: 20px;
  background: #effaff;
  color: #22465d;
  padding: 7px 3px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.category-levels button.selected {
  background: #d4ebf5;
  border-color: #98cbe0;
  font-weight: 700;
}
.category-tree-row small {
  font-size: 11px;
  white-space: nowrap;
  color: #35647c;
}
.main-shell {
  transition: margin-left 0.18s ease;
}
.financial-dialog.method-picker-open,
.financial-dialog.supplier-picker-open {
  width: min(940px, 98vw);
}
.entry-method-row > .entry-account-combo,
.entry-supplier-row > .entry-account-combo {
  flex: 1;
  min-width: 0;
}
.entry-supplier-row > [data-clear],
.money-clear-row > [data-clear],
.entry-pin-row > [data-clear] {
  border: 0;
  background: #edf8fc;
  color: #245068;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
}
.money-clear-row {
  display: flex;
  gap: 4px;
}
.money-clear-row input {
  min-width: 0;
  flex: 1;
}
.entry-actual-fields label {
  font-size: 13px;
}
.entry-pin-row input {
  min-width: 0;
}
.finance-dashboard {
  align-items: start;
}
.finance-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.finance-card-top h3 {
  margin: 0;
}
.finance-card-top label,
.finance-custom-dates label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #486170;
}
.finance-card-top select,
.finance-card-top input,
.finance-custom-dates input {
  border: 1px solid #c6d9df;
  border-radius: 7px;
  padding: 8px;
  background: #fff;
  color: #142f3d;
  max-width: 160px;
}
.finance-custom-dates {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.finance-balance-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.finance-balance-controls button {
  background: #f1f8fa;
  border: 1px solid #c6d9df;
  border-radius: 8px;
  min-height: 34px;
  cursor: pointer;
}
.finance-balance-controls input {
  width: 140px;
}
@media (max-width: 850px) {
  .finance-card-top {
    flex-wrap: wrap;
  }
  .finance-dashboard {
    grid-template-columns: 1fr;
  }
  .finance-balance-controls input {
    width: 130px;
  }
}
/* Painel financeiro: composição personalizável sem alterar lançamentos */
.finance-dashboard-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 14px;
}
.finance-layout-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.finance-layout-actions button {
  border: 1px solid #c8dce6;
  border-radius: 8px;
  background: #fff;
  color: #163c50;
  padding: 9px 12px;
  cursor: pointer;
}
.finance-layout-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.finance-layout-actions .button.primary {
  background: #086c4e;
  color: #fff;
}
.finance-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 18px;
  align-items: stretch;
}
.finance-dashboard-grid > .finance-panel-card {
  grid-column: span var(--card-width);
  height: var(--card-height);
  min-width: 0;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 22px 24px;
  overflow: hidden;
}
.finance-panel-card[data-card-id='payments'] {
  min-height: 390px;
}
.finance-panel-card[data-card-id='balances'] {
  min-height: 380px;
}
.finance-panel-card[data-card-id='forecast'] {
  min-height: 350px;
}
.finance-card-content {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.finance-card-top {
  flex: 0 0 auto;
}
.finance-card-top h3 {
  font-size: 19px;
}
.finance-payment-filter {
  display: flex;
  justify-content: center;
  margin: 8px 0 14px;
}
.finance-payment-filter select {
  min-width: 130px;
  border: 1px solid #c6d9df;
  border-radius: 8px;
  background: #fff;
  color: #142f3d;
  padding: 8px;
}
.finance-payment-table th,
.finance-payment-table td {
  padding: 11px 7px;
  white-space: nowrap;
}
.finance-payment-table {
  font-size: 13px;
}
.finance-today-summary {
  margin-top: auto;
  padding-top: 21px;
  display: grid;
  gap: 13px;
}
.finance-today-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.finance-today-summary strong {
  white-space: nowrap;
  font-size: 16px;
}
.finance-summary-note {
  margin: 18px 0 0;
}
.finance-account-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.finance-account-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #d9e8ef;
  box-shadow: 0 1px 5px #1d435014;
  border-radius: 11px;
  padding: 17px;
  margin-top: 14px;
  font-weight: 700;
}
.finance-forecast-period {
  color: #527282;
}
.finance-forecast-chart {
  flex: 1;
  min-height: 180px;
  margin-top: 12px;
}
.finance-forecast-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
}
.finance-forecast-legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #234153;
}
.finance-forecast-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.finance-forecast-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: #078363;
}
.finance-forecast-legend .legend-out {
  background: #bf2025;
}
.finance-forecast-legend .legend-balance {
  border-radius: 50%;
  background: #123e5e;
}
.finance-dashboard-grid.is-customizing > .finance-panel-card {
  padding-top: 0;
  border: 2px solid #55ccef;
}
.finance-drag-handle {
  margin: 0 -24px 15px;
  padding: 7px 14px;
  background: #1f4968;
  color: white;
  cursor: grab;
  user-select: none;
  font-size: 12px;
  font-weight: 700;
}
.finance-drag-handle:active {
  cursor: grabbing;
}
.finance-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #e8faff;
  border: 1px solid #52c9ed;
  border-radius: 5px 0 0 0;
  color: #124161;
  font-size: 19px;
  cursor: nwse-resize;
  width: 28px;
  height: 28px;
  touch-action: none;
}
.finance-dashboard-grid.is-customizing .finance-card-content {
  padding-bottom: 20px;
}
@media (max-width: 1100px) {
  .finance-dashboard-grid > .finance-panel-card[data-card-id='payments'] {
    grid-column: span 7;
  }
  .finance-dashboard-grid > .finance-panel-card[data-card-id='balances'] {
    grid-column: span 5;
  }
}
@media (max-width: 850px) {
  .finance-dashboard-grid > .finance-panel-card {
    grid-column: 1 / -1 !important;
    height: auto;
    min-height: var(--card-height);
  }
  .finance-dashboard-grid.is-customizing > .finance-panel-card {
    min-height: 390px;
  }
  .finance-payment-table {
    font-size: 12px;
  }
}
/* Tabela de pagamentos em fundo uniforme e leitura ampliada */
.finance-payment-table {
  table-layout: fixed;
  font-size: 15px;
  color: #17364a;
}
.finance-payment-table thead,
.finance-payment-table tbody tr,
.finance-payment-table tbody tr:hover,
.finance-payment-table th,
.finance-payment-table td {
  background: #fff !important;
}
.finance-payment-table th,
.finance-payment-table td {
  padding: 13px 6px;
  border-bottom: 1px solid #d6e6ec;
  text-align: center !important;
  vertical-align: middle;
}
.finance-payment-table th:first-child {
  width: 22%;
  text-align: center !important;
}
.finance-payment-table th:nth-child(2) {
  width: 26%;
}
.finance-payment-table th:nth-child(3) {
  width: 26%;
}
.finance-payment-table th:nth-child(4) {
  width: 26%;
}
.finance-payment-table thead th {
  font-size: 15px;
  font-weight: 700;
  color: #153444;
}
.finance-payment-table thead small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}
.finance-payment-table tbody th {
  font-size: 15px;
  font-weight: 700;
  color: #17364a;
}
.finance-payment-table tbody tr:last-child th,
.finance-payment-table tbody tr:last-child td {
  font-weight: 700;
}
.finance-payment-table .value-link {
  font-size: 15px;
  font-weight: 600;
  display: inline-block;
  color: #194b61;
}
.finance-period-heading select {
  width: 100%;
  max-width: 160px;
  min-width: 90px;
  border: 1px solid #c6d9df;
  border-radius: 8px;
  background: #fff;
  color: #17364a;
  padding: 9px;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.finance-overdue-heading,
.finance-payment-table thead th:nth-child(3),
.finance-payment-table tbody td:nth-child(3) {
  text-align: center !important;
}
.finance-custom-dates {
  margin: 6px 0 10px;
}
.finance-today-summary {
  font-size: 15px;
}
.finance-summary-note {
  font-size: 13px;
}
.finance-annual-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.finance-annual-table {
  min-width: 2900px;
}
.finance-annual-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  min-width: 270px;
}
.finance-annual-table thead th {
  white-space: nowrap;
}
.finance-annual-table td,
.finance-annual-table th {
  font-size: 12px;
  min-width: 100px;
}
.finance-annual-table .annual-end {
  background: #e5f4f2;
}
.finance-report-controls button {
  border: 1px solid #c6d9df;
  border-radius: 7px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
}
.entry-edit-scope label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.entry-edit-scope small {
  width: 100%;
  color: #576d78;
}
@media (max-width: 750px) {
  .finance-payment-table {
    font-size: 13px;
  }
  .finance-payment-table tbody th,
  .finance-payment-table .value-link,
  .finance-payment-table thead th {
    font-size: 13px;
  }
  .finance-payment-table th,
  .finance-payment-table td {
    padding: 10px 3px;
  }
  .finance-period-heading select {
    font-size: 13px;
  }
}
.financial-report .report-section {
  background: #dcebed;
  color: #123f32;
  font-weight: 700;
}
.financial-report .report-section th {
  padding: 13px 12px;
  text-align: left;
}
.financial-report .report-category th {
  font-weight: 500;
  padding-left: 25px;
}
.financial-report .report-group th {
  font-weight: 700;
}
.financial-report .report-total th {
  font-weight: 700;
}
.supplier-pack-name strong {
  font-size: 14px;
  color: #304963;
}
.supplier-pack-name button {
  border: 0;
  background: #edf1f7;
  border-radius: 5px;
  min-width: 30px;
  min-height: 30px;
  cursor: pointer;
  font-size: 20px;
}
.supplier-pack-row label {
  font-size: 14px;
  display: block;
}
.supplier-pack-row input {
  width: 100%;
  margin-top: 5px;
}
.supplier-pack-row small {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 8px;
  color: #52657a;
}
.finance-panel .page-heading {
  justify-content: flex-end;
  margin-bottom: 12px;
}
.finance-panel .page-heading > div:first-child {
  display: none;
}
.finance-panel .page-heading,
.finance-panel .context-bar {
  display: none;
}
.finance-panel .financial-toolbar.no-panel-title {
  justify-content: flex-end;
}
.finance-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.finance-panel-title-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #e2eaf2;
  color: #123653;
  flex: none;
}
.finance-panel-title-icon svg {
  width: 24px;
  height: 24px;
}
.finance-panel-title h1 {
  font-size: 30px;
  color: #123653;
  line-height: 1.15;
}
.finance-panel-title p {
  margin-top: 8px;
  font-size: 14px;
  color: #24445b;
}
.finance-panel .financial-toolbar {
  gap: 16px;
}
@media (max-width: 650px) {
  .finance-panel .financial-toolbar.with-panel-title {
    align-items: flex-start;
  }
  .finance-panel-title h1 {
    font-size: 25px;
  }
}
.finance-panel .financial-toolbar.with-panel-title {
  align-items: center;
  gap: 12px;
}
.finance-panel .with-panel-title .financial-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-left: auto;
}
.finance-panel .with-panel-title .financial-actions > .button,
.finance-panel .finance-customize-button {
  height: 34px;
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 2px 7px #132c3a12;
  white-space: nowrap;
}
.finance-panel .with-panel-title .financial-actions > .button.secondary {
  background: #fff;
  border: 1px solid #c9dce9;
  color: #123e5e;
}
.finance-panel .with-panel-title .finance-customize-button {
  background: #08745a;
  color: #fff;
  border: 1px solid #08745a;
}
.finance-panel .with-panel-title .financial-actions button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
.finance-panel .with-panel-title .financial-actions button:focus-visible {
  outline: 3px solid #6bc1db;
  outline-offset: 2px;
}
.finance-panel .with-panel-title .finance-layout-actions {
  gap: 6px;
  flex-wrap: nowrap;
}
.finance-drill-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 17px;
  margin: 0 0 14px;
  border: 1px solid #c9dfe8;
  border-radius: 12px;
  background: #f5fcff;
  color: #123e5e;
}
.finance-drill-summary strong {
  font-size: 15px;
}
.finance-drill-summary small {
  display: block;
  margin-top: 4px;
  color: #526b79;
}
.finance-drill-summary > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.finance-drill-summary .button {
  font-size: 12px;
  padding: 7px 10px;
}
@media (max-width: 950px) {
  .finance-panel .financial-toolbar.with-panel-title {
    flex-wrap: wrap;
  }
  .finance-panel .with-panel-title .financial-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }
}
/* Keep primary actions visible while the sidebar destinations scroll. */
.sidebar-brand-row,
.quick-entry {
  flex-shrink: 0;
}
.sidebar-layout-buttons button {
  border: 1px solid #b8d9cf;
  border-radius: 7px;
  background: #fff;
  color: #174a36;
  padding: 8px 4px;
  font-size: 12px;
}
.sidebar .mark > span {
  color: #a5e7ff;
}
.sidebar .sidebar-note p,
.sidebar .sidebar-note > span,
.sidebar .sidebar-note b {
  color: #d8edf8;
}
.sidebar .sidebar-layout-buttons button {
  background: #1b4668;
  border-color: #4b718a;
  color: #fff;
}
.sidebar .brand-fallback > span {
  font-size: 16px;
  color: #a5e7ff;
  position: absolute;
  top: -7px;
  right: 6px;
}
#identity-dialog {
  width: min(520px, 94vw);
  border: 1px solid #cfe2e9;
  border-radius: 14px;
  padding: 0;
}
#identity-form {
  display: grid;
  gap: 13px;
}
#identity-form label:not(.checkbox-line) {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.finance-simulator-heading {
  margin: 10px 0 20px;
  color: #10324f;
}
.finance-simulator-heading h1 {
  font-size: 27px;
  margin: 0 0 6px;
}
.finance-simulator-heading p {
  font-size: 14px;
  color: #557087;
}
.forecast-account-filter select {
  padding: 7px 10px;
}
.forecast-metrics span {
  display: block;
  color: #607b88;
  font-size: 10px;
}
.forecast-metrics strong {
  display: block;
  color: #123e5e;
  font-size: 14px;
  margin-top: 4px;
}
.forecast-metrics .danger {
  border-color: #f2b8ba;
  background: #fff5f5;
}
.finance-forecast-chart {
  position: relative;
}
.forecast-hover-zones > button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.forecast-hover-zones > button:hover {
  background: #0c6e9210;
  border-left: 1px solid #62a9c0;
  border-right: 1px solid #62a9c0;
}
.forecast-tooltip > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.forecast-tooltip small {
  border-top: 1px solid #e1edf1;
  padding-top: 7px;
  color: #66818d;
}
@media (max-width: 720px) {
  .forecast-account-filter select {
    flex: 1;
  }
}
.ledger-th-label > button {
  border: 0;
  background: transparent;
  color: #78909b;
  padding: 2px;
  font-size: 13px;
}
.ledger-th-label > button.active {
  color: #0a5175;
  background: #dff2f8;
  border-radius: 50%;
}
.financial-ledger th {
  position: relative;
}
.ledger-column-filter > strong {
  font-size: 13px;
  color: #153444;
}
.ledger-column-filter input:not([type='checkbox']),
.ledger-column-filter select {
  width: 100%;
  font-size: 13px;
}
.ledger-column-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
  color: #294f63;
  font-size: 12px;
}
.ledger-column-filter > div:last-child,
.column-sort {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.ledger-column-filter button {
  border: 1px solid #bfd6df;
  background: #eef8fb;
  color: #153f58;
  border-radius: 7px;
  padding: 8px 11px;
}
.ledger-expanded-title button {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #123f5a;
}
.button.danger {
  background: #c91f24;
  border-color: #c91f24;
  color: #fff;
}
.delete-flow {
  padding: 0 22px;
}
.delete-steps {
  position: absolute;
  right: 58px;
  top: 27px;
  display: flex;
  align-items: center;
}
.delete-steps span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #eef7fa;
  color: #123f5a;
  font-weight: 800;
}
.delete-steps span.active {
  background: #c51f24;
  color: #fff;
}
.delete-steps i {
  width: 22px;
  height: 1px;
  background: #c5dce4;
}
.delete-review-list {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  margin: 18px 0;
}
.delete-review-list label {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #ef4a4f;
  border-left: 4px solid #c51f24;
  border-radius: 8px;
  padding: 11px 13px;
  margin: 0;
  color: #153444;
}
.delete-review-list input {
  accent-color: #c51f24;
}
.delete-review-list span strong,
.delete-review-list span small,
.delete-review-list > b small {
  display: block;
}
.delete-review-list span small {
  margin-top: 4px;
}
.delete-review-list > b {
  text-align: right;
  color: #c51f24;
}
.delete-review-list > b small {
  font-size: 8px;
  color: #153444;
  margin-top: 3px;
}
.delete-warning {
  text-align: center;
  border: 1px solid #c4dce5;
  border-radius: 10px;
  padding: 18px;
  margin: 10px 0 22px;
  line-height: 1.45;
}
.delete-warning p {
  max-width: 440px;
  margin: 6px auto 14px;
}
.delete-warning > b,
.delete-warning > strong {
  display: block;
}
.delete-impact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid #c4dce5;
  border-radius: 8px;
  padding: 11px;
  margin: 7px 0;
}
.delete-impact-row > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.delete-impact-row em {
  font-style: normal;
  border-radius: 6px;
  padding: 6px;
  background: #b8f0d9;
}
.delete-no-impact {
  border: 1px dashed #c4dce5;
  border-radius: 9px;
  padding: 25px;
  text-align: center;
  margin: 20px 0;
}
.positive {
  color: #087b59 !important;
}
@media (max-width: 720px) {
  .delete-impact-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
.ledger-selection-bar strong {
  font-size: 14px;
  padding: 0 12px 0 2px;
  border-right: 1px solid #647181;
}
.ledger-selection-bar button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 7px 9px;
  border-radius: 7px;
  white-space: nowrap;
}
.ledger-selection-bar button:hover,
.ledger-selection-bar button:focus-visible {
  background: #43566c;
}
.ledger-tools summary {
  list-style: none;
  border: 1px solid #d9e1d5;
  border-radius: 8px;
  padding: 8px 11px;
  background: #fff;
  color: #506748;
  font-size: 10px;
  cursor: pointer;
}
.ledger-columns label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  margin: 0;
  font-size: 10px;
}
.financial-ledger tbody tr[data-ledger-row] {
  cursor: pointer;
}
.financial-ledger tbody tr[data-ledger-row]:hover {
  background: #f4f8f5;
}
.financial-ledger .ledger-hover-action button {
  opacity: 0;
  border: 0;
  background: none;
  color: #17694f;
  font-size: 10px;
  font-weight: 650;
}
.financial-ledger tfoot th {
  font-size: 10px;
  color: #405b4f;
  background: #f2f7f4;
}
@keyframes ledger-slide {
  from {
    transform: translateX(35px);
    opacity: 0.7;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.finance-status.hoje {
  background: #fff1bd;
  color: #755100;
}
.finance-status.previsto {
  background: #e7f1f6;
  color: #244e68;
}
.ledger-page-title > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #dcebe6;
  color: #123f32;
  font-size: 21px;
}
.ledger-page-title button {
  border: 1px solid #9db9af;
  border-radius: 50%;
  background: #fff;
  color: #17694f;
  font-weight: 800;
  cursor: help;
  width: 23px;
  height: 23px;
}
.ledger-quick-filters,
.ledger-active-filters,
.account-view-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;
}
.ledger-quick-filters button,
.ledger-active-filters button,
.account-view-filter button {
  border: 1px solid #cadbd5;
  border-radius: 999px;
  background: #fff;
  color: #294f43;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.ledger-quick-filters button.active,
.account-view-filter button.active {
  background: #123f5a;
  color: #fff;
  border-color: #123f5a;
}
.ledger-active-filters strong {
  font-size: 13px;
}
.ledger-active-filters button {
  padding: 5px 9px;
  background: #e6efec;
}
.ledger-advanced > summary {
  cursor: pointer;
  color: #17694f;
  font-weight: 700;
}
.ledger-totals strong {
  color: #153444;
  margin-left: 5px;
}
.financial-ledger th button[data-ledger-sort] {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ledger-columns > button {
  border: 0;
  background: transparent;
  color: #17694f;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
}
.ledger-compact-bar > label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #234c5f;
  font-size: 13px;
  font-weight: 600;
}
.ledger-compact-bar input {
  width: min(340px, 50vw);
  padding: 8px 10px;
  border: 1px solid #bdd6e2;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.ledger-compact-bar summary {
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid #c4dbe3;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: #123f5a;
}
.cost-center-entry select {
  flex: 1;
  min-width: 0;
}
.cost-center-entry button {
  border: 1px solid #c4dbe3;
  border-radius: 8px;
  background: #eff9fb;
  color: #123f5a;
  cursor: pointer;
  padding: 8px 10px;
}
.financial-ledger {
  width: max-content;
  min-width: 100%;
}
.financial-ledger [data-ledger-column='planned'] {
  min-width: 142px;
}
.financial-ledger [data-ledger-column='history'] {
  min-width: 225px;
}
.financial-ledger .ledger-pinned-select,
.financial-ledger [data-ledger-column='planned'],
.financial-ledger [data-ledger-column='history'] {
  position: sticky;
  background: #fff;
  z-index: 2;
}
.financial-ledger [data-ledger-column='planned'] {
  left: 46px;
}
.financial-ledger [data-ledger-column='history'] {
  left: 188px;
  border-right: 2px solid #d7e5ec;
  box-shadow: 5px 0 8px -7px #28485f;
}
.financial-ledger thead .ledger-pinned-select,
.financial-ledger thead [data-ledger-column='planned'],
.financial-ledger thead [data-ledger-column='history'] {
  background: #edf6f8;
  z-index: 4;
}
@media (max-width: 700px) {
  .ledger-compact-bar input {
    width: 180px;
  }
  .financial-ledger [data-ledger-column='history'] {
    min-width: 175px;
  }
}
.financial-ledger [data-ledger-column='planned'] {
  width: 142px;
  max-width: 142px;
  box-sizing: border-box;
}
.financial-ledger [data-ledger-column='history'] {
  width: 225px;
  max-width: 225px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}
.safety-block button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: #123f5a;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.safety-block small {
  display: block;
  margin-top: 14px;
  color: #7d2c2a;
}
.backup-history-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
  max-height: 45vh;
  overflow: auto;
}
.restore-confirm-label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  margin: 20px 0;
}
.restore-confirm-label input {
  max-width: 260px;
  border: 1px solid #abc9d3;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
#login-gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: linear-gradient(160deg, #0f2d46, #13835f);
  z-index: 9999;
}
#login-gate .login-marca small {
  display: block;
  color: #5b6b7a;
  font-size: 12px;
}
#nuvem-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5b6b7a;
  white-space: nowrap;
}
#nuvem-barra {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  background: #fff;
  border: 1px solid #d7e3dc;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 45, 70, 0.12);
}
@media print {
  #nuvem-barra {
    display: none;
  }
}
.seletor-dia input {
  flex: 1;
  min-width: 0;
}
.seletor-dia-grade button {
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f2f6f8;
  color: #12263a;
  font-weight: 600;
  cursor: pointer;
}
.seletor-dia-grade button:hover,
.seletor-dia-grade button:focus-visible {
  background: #dcefe8;
  outline: 2px solid #13835f;
}
.seletor-dia-grade button.ativo {
  background: #13835f;
  color: #fff;
}
.seletor-dia-painel small {
  display: block;
  margin-top: 8px;
  color: #5b6b7a;
  font-size: 11px;
}
.cadastro-cartao h3 {
  margin: 6px 0 0;
  font-size: 20px;
  color: #123f5a;
}
.cadastro-icone svg {
  width: 30px;
  height: 30px;
}
.cadastro-voltar svg {
  width: 22px;
  height: 22px;
}
.pessoa-abas button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4b6573;
  padding: 9px 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.pessoa-abas button.active {
  background: #f4f8fa;
  color: #123f5a;
  box-shadow: 0 1px 5px #123e5e22;
}
.pessoa-aviso > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #5ec8ec;
  color: #073b52;
  font-weight: 800;
  font-family: Georgia, serif;
}
.pessoa-busca-caixa svg {
  width: 18px;
  height: 18px;
  color: #617187;
  flex: none;
}
.pessoa-busca-caixa input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 13px 0;
  font: inherit;
  font-size: 15px;
}
.pessoa-nome strong {
  display: block;
  color: #123f5a;
  font-size: 16px;
}
.pessoa-nome small {
  display: block;
  color: #617187;
}
.icone-acao {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4b6573;
  cursor: pointer;
}
.icone-acao svg {
  width: 18px;
  height: 18px;
}
.icone-acao:hover,
.icone-acao:focus-visible {
  background: #eef3f5;
  border-color: #d6e3de;
  color: #123f5a;
}
.icone-acao.perigo:hover,
.icone-acao.perigo:focus-visible {
  background: #fff5f5;
  border-color: #f2b8ba;
  color: #a5161b;
}
@media (max-width: 760px) {
  .pessoa-abas button {
    flex: 1 1 40%;
    justify-content: center;
    padding: 9px 8px;
  }
}
.condicao-linha select,
.condicao-linha input {
  width: 100%;
  min-width: 0;
}
.pessoa-contato summary {
  cursor: pointer;
  color: #17694f;
  font-weight: 650;
  margin: 4px 0;
}
.forma-tipo span {
  display: block;
  height: 100%;
  border: 1.5px solid #d6e3de;
  border-radius: 11px;
  padding: 10px 12px;
  background: #fff;
}
.forma-tipo strong {
  display: block;
  color: #123f5a;
  font-size: 15px;
}
.forma-tipo small {
  display: block;
  color: #617187;
  line-height: 1.35;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
}
.lista-resumo {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #d6e3de;
  border-radius: 12px;
  background: #fff;
  padding: 12px 16px;
  color: #4b6573;
}
.lista-resumo strong {
  margin-left: 6px;
  color: #123f5a;
}
.lista-subtitulo {
  margin: 18px 0 10px;
  color: #153444;
  font-size: 17px;
}
.conta-saldo strong {
  color: #123f5a;
  font-size: 16px;
}
.pessoa-doc small {
  color: #617187;
}
.aviso-verde {
  border-color: #bfdfd6;
  background: #ecfdf5;
}
.aviso-verde > span {
  background: #34b37f;
  color: #fff;
  font-family: inherit;
}
.aviso-verde .inline-link {
  margin-left: 8px;
}
.lista-sep {
  margin: 0 8px;
  color: #9aa9b3;
}
/* × de limpar DENTRO do campo, como no Yampa (pedido do Thauand, 26/09/2026) */
.campo-com-limpar {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
}
.campo-com-limpar > input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding-right: 34px;
}
.campo-com-limpar.campo-data > input {
  padding-right: 62px;
}
.entry-pin-row .campo-com-limpar > [data-clear],
.money-clear-row .campo-com-limpar > [data-clear],
.campo-com-limpar > [data-clear] {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #617187;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.campo-com-limpar.campo-data > [data-clear] {
  right: 36px;
}
.campo-com-limpar > [data-clear]:hover,
.campo-com-limpar > [data-clear]:focus-visible {
  background: #eef3f5;
  color: #a5161b;
}
.money-clear-row {
  display: flex;
  min-width: 0;
}
/* Importação do Yampa */
.importacao-relatorio h3 {
  margin: 18px 0 6px;
  color: #153444;
  font-size: 16px;
}
.importacao-numeros strong {
  display: block;
  font-size: 22px;
  color: #123f5a;
}
.importacao-saldos small {
  display: block;
  color: #617187;
}
.importacao-relatorio summary {
  cursor: pointer;
  color: #17694f;
  font-weight: 650;
}
.conferencia-ok {
  color: #047857;
}
.conferencia-dif {
  color: #a5161b;
}
/* Cartões: limite e faturas */
.cartao-limite strong {
  display: block;
  color: #123f5a;
  font-size: 16px;
}
.cartao-limite small {
  display: block;
  color: #617187;
  font-size: 12px;
}
.barra-uso {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: #e7eef1;
  margin-top: 5px;
  overflow: hidden;
  max-width: 180px;
}
.barra-uso i {
  display: block;
  height: 100%;
  background: #1baf7a;
}
.barra-medio i {
  background: #e0a100;
}
.barra-alto i {
  background: #d64545;
}
.faturas-cartao {
  margin-top: 18px;
}
.faturas-cartao h3 {
  margin: 0 0 8px;
  color: #153444;
  font-size: 16px;
}
.fatura summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  cursor: pointer;
}
.tag-pessoal {
  font-style: normal;
  font-size: 11px;
  background: #fff1e6;
  color: #9a4b12;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
}
.entry-cartao small {
  display: block;
  font-weight: 400;
  color: #4b6573;
  font-size: 12px;
}
.forma-topo-campo label {
  font-size: 12px;
  color: #617187;
}
/* ===== Livro Diário no estilo Yampa (Bloco 1, 27/09/2026) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.livro-saldo > strong {
  font-size: 20px;
  color: #123e5e;
}
.livro-navegar button {
  border: 0;
  background: #fff;
  color: #123f5a;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 7px 12px;
  cursor: pointer;
}
.livro-navegar button.ativo {
  background: #123f5a;
  color: #fff;
}
.livro-navegar button:disabled {
  color: #aac0c9;
  cursor: default;
}
.livro-chip-texto > strong {
  font-size: 14px;
  color: #153444;
}
.livro-abas button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 8px 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: #476576;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.livro-abas button.ativo {
  background: #fff;
  color: #123f5a;
  box-shadow: 0 1px 3px #123e5e30;
}
.livro-periodo select {
  padding: 8px 10px;
  border: 1px solid #bdd6e2;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.livro-filtros > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #c4dbe3;
  border-radius: 8px;
  background: #fff;
  color: #123f5a;
  font-size: 14px;
  font-weight: 650;
}
.livro-filtros > summary::-webkit-details-marker {
  display: none;
}
.livro-filtros-painel select {
  width: 100%;
}
.livro-busca input {
  flex: 1;
  border: 0 !important;
  outline: 0;
  width: auto !important;
  padding: 9px 0 !important;
  font: inherit;
  font-size: 14px;
  background: transparent;
}
.livro-icones button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #c4dbe3;
  border-radius: 8px;
  background: #fff;
  color: #123f5a;
  cursor: pointer;
}
.livro-icones button:hover {
  background: #eef8fb;
}
.finance-status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.finance-status.realizado {
  background: #dcf5ea;
  color: #0b6b4a;
}
.finance-status.atrasado {
  background: #fde2e2;
  color: #a5161b;
}
.finance-status.hoje {
  background: #fff1bd;
  color: #755100;
}
.finance-status.previsto {
  background: #e4eff8;
  color: #244e68;
}
.finance-status.fantasma {
  background: #eceff1;
  color: #56646b;
}
.livro-fatura-abrir small {
  color: #6b6390;
}
.livro-fatura-rodape small {
  color: #55707a;
  margin-left: 8px;
}
.livro-paginacao button {
  border: 1px solid #c4dbe3;
  background: #fff;
  border-radius: 7px;
  width: 34px;
  height: 32px;
  cursor: pointer;
  color: #123f5a;
  font-size: 15px;
}
.colunas-arrastar {
  color: #8aa3ae;
  font-size: 16px;
  width: 18px;
  text-align: center;
}
.colunas-mover button {
  border: 0;
  background: transparent;
  color: #55707a;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
}
.colunas-mover button:hover {
  background: #e7f1f6;
}
.livro-topo button {
  width: auto;
  height: auto;
  border-radius: 0;
  cursor: pointer;
  font-weight: 650;
}
.livro-abas button {
  padding: 7px 10px;
}
.livro-periodo select {
  padding: 8px 6px;
}
.livro-fatura-abrir strong {
  color: #3b2a7a;
}
.campo-com-botao {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.campo-com-botao > select,
.campo-com-botao > .entry-account-combo {
  flex: 1;
  min-width: 0;
}
.botao-nova-conta {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 13px;
}
.valor-fora {
  color: #7b8a93;
  font-style: italic;
}
.tag-fora {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #6b4fa0;
  background: #efe9fb;
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 4px;
}
/* Bloco 3: faturas dos cartões */
.botao-ver-fatura {
  display: block;
  margin-top: 6px;
  border: 1px solid #c9b8ec;
  background: #f6f3fd;
  color: #3b2a7a;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
.botao-ver-fatura:hover {
  background: #ece5fb;
}
.botao-ver-fatura.atrasada {
  border-color: #f2b8ba;
  background: #fff1f1;
  color: #a5161b;
}
.button.danger-outline {
  background: #fff;
  border: 1px solid #e7a3a6;
  color: #b3191f;
}
.button.danger-outline:hover {
  background: #fff1f1;
}
.fatura-nav strong {
  font-size: 18px;
  color: #153444;
}
.fatura-nav button {
  width: 38px;
  height: 38px;
  border: 1px solid #c4dbe3;
  border-radius: 9px;
  background: #fff;
  color: #123f5a;
  font-size: 18px;
  cursor: pointer;
}
.fatura-resumo strong {
  font-size: 16px;
  color: #153444;
}
.fatura-compras button {
  display: grid;
  grid-template-columns: 48px 1fr auto 22px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: #fff;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  color: #153444;
  text-align: left;
  cursor: pointer;
}
.fc-hist small {
  color: #7b8a93;
  font-size: 12px;
}
/* Bloco 4: fatura no estilo do app do banco */
.fatura-nav strong {
  font-size: 17px;
}
.fd-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fd-valor {
  font-size: 30px;
  letter-spacing: -0.5px;
}
.fd-limite {
  font-size: 13px !important;
}
.fatura-compras button {
  grid-template-columns: 1fr auto auto 20px;
  padding: 12px 14px;
}
.fc-nome strong {
  font-size: 15px;
  font-weight: 650;
  color: #153444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fc-nome small {
  color: #7b8a93;
  font-size: 12px;
}
@media (max-width: 600px) {
  .fd-valor {
    font-size: 25px;
  }
}
/* Bloco 5: Painel — Cartões e Saldos só com contas ativas */
.tag-inativa {
  font-size: 10px;
  font-weight: 700;
  color: #7b8a93;
  background: #eceff1;
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 4px;
}
button.cartoes-linha {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e6eff2;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  padding: 11px 2px;
}
.fluxo-controles {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fluxo-picker-ano strong {
  font-size: 16px;
  color: #153444;
}
.fluxo-picker-ano button {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #123f5a;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.fluxo-picker-meses button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 12px 0;
  font: inherit;
  font-size: 14px;
  color: #153444;
  cursor: pointer;
}
.fluxo-niveis button {
  border: 0;
  background: #fff;
  color: #35566a;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}
.fluxo-nome small {
  color: #8aa3ae;
  font-size: 11px;
}
@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }
  .sidebar,
  .topbar,
  .fluxo-controles,
  .fluxo-dica,
  #nuvem-status,
  .nuvem-selo,
  .financial-toolbar {
    display: none !important;
  }
  .main-shell {
    margin: 0 !important;
  }
  main {
    padding: 0 !important;
    max-width: none !important;
  }
}
.linkish {
  border: 0;
  background: transparent;
  color: #123f5a;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.fech-conta label {
  display: grid;
  gap: 3px;
  margin: 0;
}
.fech-conta input {
  padding: 8px 10px;
  border: 1px solid #bdd6e2;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}
.fech-resumo strong {
  display: block;
  font-size: 22px;
  color: #153444;
  margin: 4px 0;
}
.fech-resumo small {
  color: #607b88;
  font-size: 12px;
}
.fech-dif strong {
  font-size: 15px;
}
.fech-pacote-periodo small {
  color: #607b88;
}
.legend-passado {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, #07836366 50%, #bf202566 50%);
}
.entry-cartao-chaves small {
  display: block;
  font-weight: 400;
  color: #4b6573;
  font-size: 12px;
}
.entry-edit-scope label {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6e7ed;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #153444;
  cursor: pointer;
  margin: 0;
  background: #fff;
}
.fech-abas button {
  border: 0;
  background: transparent;
  padding: 8px 22px;
  border-radius: 8px;
  font-weight: 700;
  color: #4a6472;
  cursor: pointer;
}
.dia-nav button {
  border: 1px solid #c6d9df;
  background: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}
.dia-cmm-arquivo small {
  color: #607b88;
  flex: 1;
  min-width: 200px;
}
.dia-cmm-resumo strong {
  font-size: 15px;
  color: #123e5e;
}
.dia-proposta input,
.dia-proposta select {
  border: 1px solid #c6d9df;
  border-radius: 7px;
  padding: 7px 8px;
  font: inherit;
  min-width: 0;
  width: 100%;
}
.dia-prop-info small {
  display: block;
  font-size: 11px;
  color: #607b88;
  margin-bottom: 3px;
}
.dia-incluir input {
  width: 18px;
  height: 18px;
  accent-color: #12664c;
}
.dia-pend input {
  border: 1px solid #c6d9df;
  border-radius: 7px;
  padding: 6px 8px;
  text-align: right;
  font: inherit;
  min-width: 0;
}
.dia-atrasadas summary {
  cursor: pointer;
  font-weight: 600;
  color: #8a5a00;
  padding: 6px 0;
}
.dia-conta-mov h4 {
  margin: 8px 0 4px;
  font-size: 14px;
  color: #153444;
}
.painel-conferido {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8a5a00;
}
.painel-conferido.ok {
  color: #1f6f56;
}
/* Faixa de dias do Fechamento (cores por situação) */
.dia-faixa button,
.dia-legenda .leg {
  border: 1px solid #dbe7ec;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.1;
  font-size: 12px;
  color: #8aa0aa;
}
.dia-faixa button {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dia-grupo > h4 {
  margin: 4px 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
}
.dia-grupo-in > h4 {
  background: #e6f6ee;
  color: #1f6f56;
}
.dia-grupo-transfer > h4 {
  background: #e8f1f8;
  color: #123f5a;
}
.dia-grupo-out > h4 {
  background: #fdecec;
  color: #b42318;
}
.dia-grupo-conta h5 {
  margin: 6px 0 4px;
  font-size: 14px;
  color: #153444;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.dia-saldo-campo small {
  font-size: 11px;
  color: #607b88;
}
.dia-saldo-campo input {
  text-align: right;
}
.dia-grupo-conta h5,
.dia-conta-mov h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 8px;
  font-size: 15px;
  color: #153444;
}
.dia-sub small {
  font-weight: 600;
  color: #607b88;
}
.dia-adiantados summary {
  cursor: pointer;
  font-weight: 700;
  color: #123f5a;
  padding: 4px 0;
}
.dia-troca input {
  width: 110px;
  padding: 2px 6px;
  font-size: 12px;
  text-align: right;
}
.dia-cmm-titulo small {
  font-weight: 600;
  color: #607b88;
  text-transform: capitalize;
}
.dia-conta-botoes button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--cor);
  color: var(--cor);
  background: #fff;
  border-radius: 9px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  min-height: 38px;
}
.dia-extrato-arquivo small {
  color: #607b88;
}
.extrato-comp {
  --cor: #123f5a;
  border: 1px solid #dbe7ec;
  border-left: 5px solid var(--cor);
  border-radius: 10px;
  padding: 8px 12px 10px;
  margin: 0 0 14px;
  background: #fbfdfe;
}
.extrato-comp h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 8px;
  font-size: 15px;
  color: #153444;
}
.ext-vendas small {
  flex-basis: 100%;
  color: #6b4a00;
}
.data-pagamento-dialog {
  border: 0;
  border-radius: 14px;
  padding: 18px 20px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.data-pagamento-dialog h3 {
  margin: 0 0 6px;
}
.data-pagamento-dialog label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
  font-weight: 600;
}
.conta-taxas summary {
  cursor: pointer;
  font-weight: 700;
  color: #153444;
}
.conta-taxas-tabela input {
  width: 100%;
  min-width: 56px;
  text-align: right;
}
.emp-topo strong {
  font-size: 16px;
  color: #153444;
}
.emp-topo small {
  color: var(--muted);
}
.emp-numeros strong {
  font-size: 15px;
  text-align: left;
}
.emp-resumo strong {
  color: #153444;
}
.dia-arq-lista small {
  color: #607b88;
}
.dia-abas-contas button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe7ec;
  border-radius: 12px;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  min-width: 150px;
}
.dia-abas-contas small {
  color: #607b88;
  font-size: 12px;
}
.dia-abas-contas strong {
  font-size: 13px;
}
.aba-ok {
  color: #1f6f56;
}
.aba-falta {
  color: #9a5b00;
}
.aba-dif {
  color: #c0262c;
}
.dia-ja-ok summary {
  cursor: pointer;
  color: #1f6f56;
  font-weight: 700;
}
.dia-emprestimos summary {
  cursor: pointer;
  font-weight: 700;
  color: #153444;
}
@media (max-width: 560px) {
  .dia-abas-contas button {
    min-width: 0;
    flex: 1 1 45%;
  }
}
/* Bloco 16: boleto sem nº da nota */
.nf-falta {
  background: #fff8e6;
}
.nf-falta small b {
  color: #9a5b00;
}
.nf-falta input {
  width: 130px;
  border: 1px solid #e8b44c;
  border-radius: 7px;
  padding: 6px 8px;
  font: inherit;
}
.nf-titulo {
  color: #9a5b00;
}
.nf-aviso {
  margin-bottom: 10px;
}
@media (max-width: 560px) {
  .nf-falta input {
    width: 100%;
  }
}
.conta-taxa-troca small {
  display: block;
  font-weight: 400;
  color: #607b88;
  font-size: 12px;
}
.dia-espera-arquivos small {
  display: block;
  margin-top: 4px;
  color: #8a6a2a;
}
.dia-faixa-det > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  border: 1px solid #dbe7ec;
  border-radius: 10px;
  background: #fff;
  flex-wrap: wrap;
}
.dia-faixa-det > summary::-webkit-details-marker {
  display: none;
}
.dia-barra i {
  display: block;
  height: 100%;
  background: #1f6f56;
}
.dia-vendas-saldo small {
  color: #607b88;
}
.cx-desc small {
  color: #6b7f8a;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cx-linha strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.cx-edit summary {
  display: grid;
  grid-template-columns: 1fr auto 24px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.cx-edit summary::-webkit-details-marker {
  display: none;
}
.prod-resumo strong {
  font-size: 22px;
  color: #123f5a;
  line-height: 1.2;
}
.prod-resumo small {
  color: #617187;
  font-size: 12px;
}
.prod-curvas button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  color: #4b6573;
}
.prod-nome strong {
  font-weight: 650;
  color: #123f5a;
  overflow-wrap: anywhere;
}
.prod-nome small {
  color: #617187;
  font-size: 12px;
}
.prod-ficha-numeros strong {
  font-size: 17px;
  color: #123f5a;
}
.prod-ficha-numeros small {
  font-size: 12px;
  color: #617187;
}
.prod-bloco h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #123f5a;
}
.prod-forn-linha small {
  color: #617187;
  font-size: 12px;
}
.prod-meses i {
  display: block;
  width: 100%;
  max-width: 26px;
  min-height: 2px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #10b981, #0e7490);
}
.prod-meses small {
  font-size: 10px;
  color: #617187;
}
.prod-meses b {
  font-size: 10px;
  color: #123f5a;
  font-weight: 650;
  white-space: nowrap;
}
.prod-sug small {
  font-weight: 400;
  color: #617187;
  font-size: 12px;
}
.prod-novos small {
  color: #617187;
}
@media (max-width: 700px) {
  .prod-curvas button {
    flex: 1;
  }
  .prod-resumo strong {
    font-size: 18px;
  }
}
.dia-relatorio-maq > small {
  color: #617187;
}
.dia-relatorio-campos small {
  font-weight: 400;
  color: #617187;
}
.fds-titulo {
  color: #46576b;
}
.dia-rendimento small {
  color: #617187;
}
.loja-se-pagou {
  border: 1px solid #a7f3d0;
  background: linear-gradient(110deg, #ecfdf5, #f8fffc);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 14px;
  align-items: center;
}
.lsp-titulo h3 {
  margin: 0;
  font-size: 17px;
  color: #123f5a;
}
.lsp-linhas small {
  color: #617187;
  font-size: 11px;
}
.lsp-linhas strong {
  font-size: 18px;
  color: #123f5a;
}
@media (max-width: 900px) {
  .loja-se-pagou {
    grid-template-columns: 1fr;
  }
}
.fluxo-margem h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #123f5a;
}
.pn-ja-cadastrado strong {
  font-size: 15px;
}
.pn-linha small {
  display: block;
  font-weight: 400;
  color: #617187;
  font-size: 12px;
  margin-top: 3px;
}
.pdv-opcoes button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #cfe1ea;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.pdv-total strong {
  font-size: 40px;
  line-height: 1.1;
}
.pdv-pag-situacao strong {
  font-size: 20px;
}
.pdv-pagar small {
  color: #6e8793;
}
@media (max-width: 820px) {
  .pdv-total strong {
    font-size: 32px;
  }
}
.pdv-caixa-acoes small {
  color: #6e8793;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
}
.aviso-rapido {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 9999;
  background: #123e5e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 8px 22px #0003;
}
/* Bloco 33: PDV em tela cheia (sem a barra lateral) */
body.modo-pdv #app-sidebar,
body.modo-pdv .sidebar-edge-toggle {
  display: none !important;
}
body.modo-pdv .main-shell {
  margin-left: 0 !important;
}
body.modo-pdv main {
  padding: 12px 16px !important;
  max-width: none;
}
body.modo-pdv .topbar,
body.modo-pdv .page-heading,
body.modo-pdv .context-bar {
  display: none !important;
}
.pdv-topo-acoes button {
  background: #ffffff1f;
  color: #fff;
  border: 1px solid #ffffff40;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}
.pdv-destaque {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff7e6;
  border: 2px solid #f4b942;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 22px;
  font-weight: 800;
  color: #6b3f00;
}
.pdv-destaque strong {
  font-size: 22px;
  color: #0d5c3e;
  white-space: nowrap;
}
.pdv-consulta-item small {
  display: block;
  font-size: 12px;
  color: #6e8793;
}
.pdv-consulta-item strong {
  color: #0d5c3e;
  font-size: 24px;
}
@media (max-width: 820px) {
  .pdv-destaque,
  .pdv-destaque strong {
    font-size: 18px;
  }
}
.conta-pdv-desc small {
  font-weight: 400;
  color: #607b88;
  font-size: 12px;
}
.pdv-conferir-troco strong {
  font-size: 28px;
  color: #55707a;
}
.pdv-conferir-troco small {
  color: #55707a;
  font-size: 13px;
}
.pdv-vendas-total small {
  color: #55707a;
}
/* Bloco 38: tela de venda do PDV (cabe em 1366 × 768 sem rolar; campo do leitor embaixo; logo sempre visível) */
body.modo-pdv #nuvem-barra,
body.modo-pdv #nuvem-status {
  display: none !important;
}
.pdv-vazio small {
  font-size: 13px;
}
.pdv-total strong {
  font-size: 38px;
}
.pdv-espera small {
  color: #5d4fa8;
}
.pdv-ultima small {
  color: #2d6e53;
}
@media (max-height: 700px) {
  .pdv-total strong {
    font-size: 32px;
  }
  .pdv-destaque,
  .pdv-destaque strong {
    font-size: 19px;
  }
}
body.modo-pdv #toast {
  top: 16px;
  bottom: auto;
}
body.modo-pdv footer {
  display: none !important;
}
body.modo-pdv {
  overflow: hidden;
}
@media (max-width: 820px) {
  body.modo-pdv {
    overflow: auto;
  }
}
.pdv-sugestoes button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 18px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.pdv-cli-lista button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 17px;
  padding: 8px 12px;
  border: 1px solid #cfe1ea;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.pessoa-limite small {
  font-weight: 400;
  color: #607b88;
  font-size: 12px;
}
.abc-quadro {
  background: #fff;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 14px;
}
.abc-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.abc-topo h3 {
  margin: 0;
  font-size: 15px;
  color: #173c50;
}
.abc-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.abc-cv {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  font: inherit;
  color: #22352d;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid;
  cursor: pointer;
}
.abc-cv.A {
  background: #effaf4;
  border-color: #a8e0c4;
}
.abc-cv.B {
  background: #eef4ff;
  border-color: #bcd0f5;
}
.abc-cv.C {
  background: #fff5ec;
  border-color: #f3cfaa;
}
.abc-cv.sel {
  box-shadow: 0 0 0 3px #1d4ed855;
}
.abc-cv:hover {
  filter: brightness(0.99);
}
.abc-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}
.abc-tag {
  font-weight: 800;
  border-radius: 7px;
  padding: 2px 9px;
}
.A .abc-tag {
  background: #c9f0dc;
  color: #0d5c3e;
}
.B .abc-tag {
  background: #d6e3fb;
  color: #1d4ed8;
}
.C .abc-tag {
  background: #fde0c6;
  color: #9a4a00;
}
.abc-big {
  font-size: 26px;
  color: #173c50;
  line-height: 1.1;
}
.abc-cv > small {
  color: #55707a;
  font-size: 12px;
}
.abc-frase {
  font-size: 14px;
  margin: 4px 0 6px;
}
.abc-frase b {
  font-size: 16px;
}
.abc-bar {
  display: grid;
  grid-template-columns: 84px 1fr 40px;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #55707a;
}
.abc-bar i {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: #e3eaf0;
  position: relative;
  overflow: hidden;
}
.abc-bar i b {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 5px;
}
.abc-bar.it b {
  background: #94a3b8;
}
.A .abc-bar.v b {
  background: #16a34a;
}
.B .abc-bar.v b {
  background: #2563eb;
}
.C .abc-bar.v b {
  background: #ea8a1f;
}
.abc-media {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #cfdbe3;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 13px;
}
.abc-media strong {
  font-size: 16px;
  color: #173c50;
}
.abc-media2 {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #55707a;
}
.abc-ver {
  margin-top: 6px;
  font-size: 12px;
  color: #1d4ed8;
}
.abc-nota {
  margin: 10px 2px 0 !important;
}
@media (max-width: 900px) {
  .abc-cols {
    grid-template-columns: 1fr;
  }
}
.faixa-atrasados {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff4f2;
  border: 1px solid #f3b6ad;
  color: #8a1c12;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 14px;
  font-size: 14px;
}
.finance-panel-card[data-card-id='lojapagou'] {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  min-height: 0 !important;
  height: auto !important;
}
.finance-panel-card[data-card-id='lojapagou'] .finance-card-content {
  padding-bottom: 0;
  overflow: visible;
}
.finance-dashboard-grid.is-customizing .finance-panel-card[data-card-id='lojapagou'] {
  border: 2px dashed #55ccef;
  min-height: var(--card-height) !important;
}
.finance-panel-card[data-card-id='lojapagou'] .loja-se-pagou {
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}
/* Bloco 42 (09/10/2026): Metas e Simulador */
#metas,
#simulador-lucro {
  display: grid;
  gap: 12px;
}
.metas-stepper button {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #bcd3f0;
  background: #fff;
  font-size: 20px;
  color: #1d4ed8;
  cursor: pointer;
  flex: none;
}
.metas-tile b {
  display: block;
  font-size: 11px;
  color: #617187;
  letter-spacing: 0.04em;
}
.metas-q b {
  font-size: 13px;
  color: #173c50;
}
.metas-n b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
  color: #173c50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metas-chave i {
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: #c9d3dd;
  position: relative;
  flex: none;
  transition: background 0.15s;
}
@media (max-width: 560px) {
  .metas-n b {
    font-size: 18px;
  }
}
#metas > *,
#simulador-lucro > * {
  min-width: 0;
}
.metas-k b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
  color: #173c50;
  white-space: nowrap;
}
.metas-barra3 i {
  display: block;
  height: 100%;
}
.metas-lin3 b {
  color: #173c50;
}
@media (max-width: 700px) {
  .metas-k b {
    font-size: 18px;
  }
}
/* Bloco 45 (09/10/2026): Comprador */
#comprador {
  display: grid;
  gap: 12px;
}
.comp-frase b {
  color: #0d5c3e;
}
.comp-f b {
  color: #173c50;
}
.comp-cond b {
  font-size: 14px;
  color: #173c50;
}
/* 10/10: atalho para o Fechamento do dia na faixa de atrasados */
.faixa-atrasados-det {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: #8a4b12;
  font-weight: 400;
}
.faixa-atrasados-bt {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.comp-meta-txt > b {
  font-size: 28px;
  line-height: 1.1;
}
/* 10/10: cards da Curva ABC Inteligente mais limpos */
.abc-frase {
  font-size: 16px;
  color: #173c50;
  margin: 6px 0 2px;
}
.abc-frase b {
  font-size: 19px;
}
.abc-bar {
  grid-template-columns: 1fr;
  margin-top: 6px;
}
.abc-bar i {
  height: 12px;
  border-radius: 7px;
}
.abc-bar-leg {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #617187;
  margin-top: 3px;
}
.abc-media {
  justify-content: flex-start;
  font-size: 14.5px;
}
.abc-sub {
  margin: 2px 2px 10px !important;
}
.abc-como {
  display: inline;
}
.abc-como summary {
  display: inline;
  color: #1d4ed8;
  cursor: pointer;
  list-style: none;
}
.abc-como summary::-webkit-details-marker {
  display: none;
}
.abc-como[open] {
  display: block;
  margin-top: 6px;
}
.comp-sug button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-top: 1px solid #eef3f5;
  background: #fff;
  padding: 9px 14px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
/* 10/10: botões ◀ ▶ para trocar os quadros do Painel de lugar no Editar Tela */
.finance-mover {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
}
.finance-mover button {
  border: 1px solid #9cc3e8;
  background: #fff;
  color: #1d4ed8;
  border-radius: 7px;
  padding: 2px 9px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.finance-drag-handle {
  display: flex;
  align-items: center;
  gap: 6px;
}
#nuvem-alerta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: min(520px, 92vw);
  padding: 9px 14px;
  background: #fff3f1;
  border: 1px solid #f3b7ad;
  color: #8a1c12;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 45, 70, 0.14);
}
body.modo-pdv #nuvem-alerta {
  display: none;
}
@media print {
  #nuvem-alerta,
  .sidebar-bottom {
    display: none !important;
  }
}
/* 14/10: faixa da empresa de demonstração */
#faixa-demo {
  position: sticky;
  top: 0;
  z-index: 70;
  background: #fff7e6;
  border-bottom: 1px solid #f4d38a;
  color: #6b4a00;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
}
body.modo-pdv #faixa-demo {
  display: none;
}
@media print {
  #faixa-demo {
    display: none;
  }
}
/* 26/10: faixa do modo offline (sem internet, usando a cópia do computador). No PDV fica escondida: ele mostra a internet no topo. */
#faixa-offline {
  position: sticky;
  top: 0;
  z-index: 71;
  background: #ffe9a8;
  border-bottom: 1px solid #e0b43c;
  color: #5a3d00;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
}
body.modo-pdv #faixa-offline {
  display: none;
}
@media print {
  #faixa-offline {
    display: none;
  }
}

/* Bloco 18 parte 2 (16/10/2026): aviso do arquivo morto (consulta de meses antigos) */
.arquivo-aviso {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #c9d6e3;
  border-radius: 10px;
  background: #f3f7fb;
  color: #24415f;
  font-size: 0.92rem;
}
.arquivo-aviso.buscando {
  border-color: #e6d3a3;
  background: #fff8e6;
  color: #6b4e00;
}
.arquivo-aviso.erro {
  border-color: #efb8b8;
  background: #fdf0f0;
  color: #8a1f1f;
}
.arquivo-aviso .button {
  margin-left: 8px;
  padding: 4px 10px;
}
.livro-arquivo td {
  color: #4a5a6a;
}

/* 24/10 (Thauand): atalhos entre telas no topo (Metas → Simulador, Painel de Vendas → Curva ABC). */
.atalhos-topo {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.atalhos-topo + .metas-periodo {
  margin-left: 12px;
}
/* 24/10 (Thauand): linha de atalhos para outras telas e cadastros (a tela pode estar escondida do menu). */
.atalhos-linha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.financial-toolbar + .atalhos-linha {
  margin: -4px 0 12px;
}
.atalho {
  border: 1px solid #cfdcd2;
  background: #fff;
  color: #245b46;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.atalho:hover {
  background: #eaf2e9;
  border-color: #9fbfa9;
}
.atalho.cadastro {
  color: #3d4f63;
  border-style: dashed;
}
.atalho.bloqueado {
  color: #8a949e;
  background: #f3f5f6;
  cursor: not-allowed;
}
.atalhos-sep {
  width: 1px;
  height: 18px;
  background: #cfdcd2;
  margin: 0 4px;
}
@media print {
  .atalhos-linha {
    display: none !important;
  }
}
.atalhos-cabeca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.atalhos-cabeca h2 {
  margin: 0;
}
.financial-actions > .atalhos-linha {
  margin-right: 6px;
}
/* 24/10 (Thauand): no Painel, atalhos + Importar/Exportar/Editar ficam na linha do título */
@media (min-width: 900px) {
  .finance-panel .financial-toolbar.with-panel-title {
    flex-wrap: nowrap;
  }
  .finance-panel .with-panel-title .finance-panel-title {
    flex-shrink: 0;
  }
  .finance-panel .with-panel-title .financial-actions {
    min-width: 0;
  }
  .finance-panel .with-panel-title .financial-actions > .atalhos-linha {
    justify-content: flex-end;
    gap: 5px;
  }
  .finance-panel .with-panel-title .financial-actions > .atalhos-linha .atalho {
    font-size: 11.5px;
    padding: 4px 9px;
  }
}
/* 24/10: Importar, Backup e Editar Tela só com o símbolo no Painel (o nome aparece ao passar o mouse) */
.finance-panel .with-panel-title .financial-actions > .so-icone,
.finance-panel .with-panel-title .financial-actions > .finance-customize-button.so-icone {
  width: 36px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
}
/* 24/10: "← Voltar" para a tela de onde o atalho saiu */
.voltar-atalho-linha {
  margin: -6px 0 10px;
}
.voltar-atalho {
  border: 0;
  background: none;
  color: #245b46;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px 4px 2px;
  cursor: pointer;
  border-radius: 6px;
}
.voltar-atalho:hover {
  background: #eaf2e9;
}
.com-voltar .cadastro-voltar {
  display: none;
}
@media print {
  .voltar-atalho-linha {
    display: none !important;
  }
}
/* 30/10 (Thauand): navegação por painéis — os botões das telas do painel NA LINHA DO TÍTULO (nunca numa linha nova),
   todos iguais em todas as telas, a aberta destacada. O que vem depois (período, filtros) desce com a .barra-quebra. */
.barra-painel {
  flex: 1 1 340px;
  min-width: 0;
  justify-content: flex-end;
  gap: 5px;
}
.barra-painel .atalho,
.livro-topo .barra-painel .atalho {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #cfdcd2;
  background: #fff;
  color: #245b46;
  height: auto;
  min-height: 0;
  width: auto;
  line-height: 1.3;
}
.barra-painel .atalho.atual,
.livro-topo .barra-painel .atalho.atual {
  background: #1f6f56;
  border-color: #1f6f56;
  color: #fff;
  cursor: default;
  opacity: 1;
}
.barra-quebra {
  flex-basis: 100%;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}
.cadastro-topo,
.livro-topo {
  flex-wrap: wrap;
}
.cadastro-topo > .atalhos-topo:has(.barra-painel) {
  flex: 1 1 340px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .barra-painel {
    flex-basis: 100%;
    justify-content: flex-start;
  }
}
/* 01/11 21h25/21h27 (Thauand: "alinhe eles à direita, fica melhor"): botões do Fluxo de Caixa (Pacote do contador,
   período, N1/N2/N3, imprimir, baixar, tela cheia) juntos e alinhados à direita, acima da tabela */
.fluxo-topo .fluxo-controles {
  flex-basis: 100%;
  justify-content: flex-end;
}
.fluxo-topo .fluxo-controles .livro-icones {
  margin-left: 0;
}
/* 01/11 21h45 (Thauand): regra do visual das telas (docs/visual-telas.md) — fundo azul clarinho, quadro branco e
   cards com fundo colorido clarinho. A cor tem significado e é a mesma em todas as telas. */
:root {
  --vis-otimo: #1e4fa8;
  --vis-otimo-bg: #eef4ff;
  --vis-meta: #157a46;
  --vis-meta-bg: #ecf8f1;
  --vis-atencao: #b45309;
  --vis-atencao-bg: #fff6e0;
  --vis-fora: #b42318;
  --vis-fora-bg: #fdf0ef;
  --vis-neutro: #3e4c5c;
  --vis-neutro-bg: #f2f5f8;
}
.vis-otimo {
  --vc: var(--vis-otimo);
  --vbg: var(--vis-otimo-bg);
}
.vis-meta {
  --vc: var(--vis-meta);
  --vbg: var(--vis-meta-bg);
}
.vis-atencao {
  --vc: var(--vis-atencao);
  --vbg: var(--vis-atencao-bg);
}
.vis-fora {
  --vc: var(--vis-fora);
  --vbg: var(--vis-fora-bg);
}
.vis-neutro,
.vis-total {
  --vc: var(--vis-neutro);
  --vbg: var(--vis-neutro-bg);
}

/* 04/11 (Thauand, regra da linha do título — docs/visual-telas.md): UMA linha só, fixa no alto ao rolar a tela.
   Ícone + título + frase à esquerda; botões próprios da tela no meio; botões das telas do painel encostados à
   direita, sempre no mesmo lugar e no mesmo tamanho. Peça comum: linhaTitulo() em atalhos.js. */
.linha-titulo {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin: -12px -42px 12px;
  padding: 10px 42px;
  background: transparent;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
/* Ao rolar a tela, a linha ganha fundo (para o conteúdo passar por baixo) — classe posta por atalhos.js. */
.tela-rolou .linha-titulo {
  background: rgba(247, 249, 252, 0.97);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 12px -10px rgba(18, 63, 90, 0.35);
}
/* Telas em grade (o espaço entre os blocos já vem da grade) */
#comprador > .linha-titulo,
#simulador-lucro > .linha-titulo,
#metas > .linha-titulo {
  margin-bottom: 0;
}
.linha-titulo .lt-icone {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}
.linha-titulo .lt-icone svg {
  width: 22px;
  height: 22px;
}
.linha-titulo .lt-texto {
  flex: 1 1 auto;
  min-width: min-content; /* o título nunca é cortado; a frase quebra em linhas */
}
.linha-titulo .lt-texto h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  color: #123f5a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.linha-titulo .lt-texto p {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: #4b6573;
}
.linha-titulo .lt-extras {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.linha-titulo .lt-extras .button,
.linha-titulo .lt-extras label.button {
  min-height: 0;
  height: auto;
  padding: 5px 11px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 9px;
  white-space: nowrap;
}
.linha-titulo .lt-extras .so-icone {
  width: 32px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 15px;
}
.linha-titulo .lt-extras .atalhos-linha {
  flex-wrap: nowrap;
}
.linha-titulo .lt-extras .segmented button {
  padding: 4px 12px;
  font-size: 12px;
  min-height: 0;
}
.linha-titulo .lt-extras .text-button {
  font-size: 12px;
  white-space: nowrap;
}
.linha-titulo > .barra-painel {
  flex: none;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 3px;
}
.linha-titulo > .barra-painel .atalho,
.linha-titulo .lt-extras .atalho {
  font-size: 11px;
  padding: 4px 7px;
}
@media print {
  .linha-titulo {
    position: static;
  }
  .linha-titulo .lt-extras,
  .linha-titulo > .barra-painel {
    display: none !important;
  }
}
/* No celular a linha não fica fixa (ocuparia metade da tela) e quebra em linhas. */
@media (max-width: 760px) {
  .linha-titulo {
    position: static;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 0;
  }
  .linha-titulo .lt-texto {
    flex-basis: calc(100% - 56px);
  }
  .linha-titulo .lt-extras,
  .linha-titulo > .barra-painel,
  .linha-titulo .lt-extras .atalhos-linha {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .linha-titulo > .barra-painel {
    flex-basis: 100%;
  }
  /* 05/11 (verificação): no celular os botões da tela ocupam a linha de baixo inteira e quebram em mais linhas se
     precisar (antes "flex: none" deixava passar da largura: Curva ABC ficava com 505 px numa tela de 390). */
  .linha-titulo .lt-extras {
    flex: 1 1 100%;
    min-width: 0;
    flex-wrap: wrap;
  }
}
@media (max-width: 1200px) and (min-width: 761px) {
  .linha-titulo {
    margin-left: -25px;
    margin-right: -25px;
    padding-left: 25px;
    padding-right: 25px;
  }
}
