.primary,
.secondary,
.orange {
  padding: 10px 14px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.primary {
  background: linear-gradient(#129348, #00602d);
  color: #fff;
}
.secondary {
  background: #f0faf0;
  color: #08632e;
  border: 1px solid #cde8cd;
}
.orange {
  background: var(--orange);
  color: #fff;
}
.orange .app-icon {
  width: 19px;
  height: 19px;
}
.icon {
  background: transparent;
  color: #07532d;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.card,
.panel,
.record {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px #276d2b0c;
  border: 1px solid #eff5ef;
}
.card {
  padding: 12px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 73px;
}
.card .symbol {
  border-radius: 50%;
  background: #e2f4dc;
  color: #2c863a;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.card .symbol .app-icon {
  width: 24px;
  height: 24px;
}
.card:nth-child(2) .symbol {
  background: #fff0d5;
  color: #ff9900;
}
.card:nth-child(3) .symbol {
  background: #ffe8e8;
  color: #ff626e;
}
.card small {
  font-weight: 700;
  display: block;
  font-size: 9px;
  line-height: 1.3;
  color: #334f43;
  margin-bottom: 3px;
}
.card strong {
  font-size: 21px;
  color: #284d34;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.card > div {
  min-width: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 9px;
}
.panel {
  padding: 10px;
}
.panel h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.panel-heading h3 {
  margin-bottom: 0;
}
.small-add {
  padding: 2px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
}
.small-add .app-icon {
  width: 19px;
  height: 19px;
}
.donut-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 164px;
  padding: 0 10px 3px;
}
.donut {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.donut:after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  background: white;
}
.legend {
  display: grid;
  gap: 14px;
  font-size: 11px;
  color: #334b3d;
}
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 7px;
}
.list-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  background: #f1f8ed;
  border-radius: 6px;
  margin-top: 4px;
  font-size: 11px;
  min-height: 30px;
}
.list-line b {
  font-weight: 500;
  white-space: nowrap;
}
.supplier-panel .list-line {
  background: #fff6e7;
}
.supplier-name,
.stock-name {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.supplier-name i,
.stock-name i {
  background: #ffe7c6;
  color: #ff8918;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.stock-name i {
  background: #e1f2d0;
  color: #579943;
}
.stock-name .app-icon,
.supplier-name .app-icon {
  width: 16px;
  height: 16px;
}
.indicator-help {
  font-size: 10px;
  color: #738778;
  margin-top: 9px;
  line-height: 1.5;
}
.indicator-help summary {
  cursor: pointer;
}
.records {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}
.record {
  padding: 13px 12px;
}
.record-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.record-title strong {
  font-size: 16px;
  flex: 1;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.record-title .number {
  background: #e9f4e5;
  border-radius: 6px;
  padding: 7px;
  font-weight: 800;
  font-size: 16px;
}
.record-title button,
.record-actions button {
  background: #e0efdc;
  color: #09622e;
  border-radius: 6px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  flex: 0 0 auto;
}
.record-title button .app-icon,
.record-actions button .app-icon {
  width: 21px;
  height: 21px;
}
.record-title button.add,
.record-actions button.add {
  background: var(--orange);
  color: white;
}
.record-actions {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  padding-bottom: 1px;
}
.values {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.values > div {
  flex: 1;
  min-width: 65px;
}
.values small {
  display: block;
  color: #5c7c70;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.2;
}
.values b {
  display: block;
  background: #f0f7ef;
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.supply-bottom {
  display: flex;
  gap: 9px;
  align-items: flex-end;
}
.supply-bottom .values {
  flex: 1;
  min-width: 0;
}
.supply-bottom .values > div {
  min-width: 0;
}
.supply-bottom .values b {
  font-size: 17px;
  padding: 6px 10px;
}
.supply-record .record-title {
  margin-bottom: 7px;
}
.unit-hint {
  margin-top: 7px;
  font-size: 10px !important;
}
.person-symbol {
  background: #e0efdd;
  padding: 5px;
  border-radius: 6px;
  display: inline-flex;
}
.person-symbol .app-icon {
  width: 22px;
  height: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border-radius: 6px;
  background: #fff0c9;
  font-size: 10px;
  color: #846019;
  font-weight: 500;
}
.badge .app-icon {
  width: 15px;
  height: 15px;
}
.badge.paid {
  background: #daf1d8;
  color: #087038;
}
.badge.unpaid {
  background: #ffe9e3;
  color: #c4473a;
}
.sale-values .values {
  flex-wrap: nowrap;
  gap: 5px;
}
.sale-values .values > div {
  min-width: 0;
  flex: 1;
}
.sale-values .values > div:first-child {
  flex: 1.25;
}
.sale-values .values > div:last-child {
  flex: 1.25;
}
.sale-values .values small {
  font-size: 9px;
  white-space: nowrap;
}
.sale-values .values b {
  font-size: 10px;
  padding: 7px 3px;
  min-height: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sale-values .values .badge {
  font-size: 8px;
  padding: 0;
  gap: 2px;
  text-align: left;
  background: transparent;
}
.sale-values .values > div:last-child b:has(.paid) {
  background: #daf1d8;
}
.sale-values .values > div:last-child b:has(.partial) {
  background: #fff0c9;
}
.sale-values .values > div:last-child b:has(.unpaid) {
  background: #ffe9e3;
}
.sale-values .values .app-icon {
  width: 12px;
  height: 12px;
}
.empty {
  text-align: center;
  color: #708575;
  padding: 26px 15px;
  font-size: 13px;
  line-height: 1.6;
}
.filter-disclosure {
  margin: 0 0 12px;
  font-size: 11px;
  color: #6c8473;
}
.filter-disclosure summary {
  cursor: pointer;
}
.filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
input,
select {
  border: 1px solid #e1ece2;
  background: #f3f8f2;
  color: #164b30;
  border-radius: 6px;
  padding: 9px;
  min-width: 0;
  max-width: 100%;
  outline-color: #329c4f;
}
input[type="month"] {
  font-size: 11px;
  padding: 5px 6px;
  border-radius: 7px;
  background: #fff;
  font-weight: 600;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(460px, calc(100% - 24px));
  max-height: 94dvh;
  color: #07542b;
  box-shadow: 0 20px 80px #033b2430;
  background: #f4faf4;
}
dialog::backdrop {
  background: #e4f0e3d9;
  backdrop-filter: blur(3px);
}
#form {
  position: relative;
  padding: 0 15px 20px;
}
.modal-brand {
  height: 80px;
  background: linear-gradient(100deg, #d9edda, #d2e9cf);
  margin: 0 -15px 18px;
  padding: 12px 16px 12px 65px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-radius: 0 0 22px 22px;
}
.modal-brand .brand {
  flex: 1;
}
.modal-brand > img {
  border-radius: 10px;
  object-fit: contain;
}
.modal-heading {
  margin-bottom: 14px;
}
.modal-heading h2 {
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
}
#close-modal {
  position: absolute;
  left: 15px;
  top: 26px;
}
#close-modal .app-icon {
  width: 26px;
  height: 26px;
}
#fields {
  display: grid;
  gap: 14px;
  background: #fff;
  padding: 14px 12px;
  border-radius: 11px;
  box-shadow: 0 4px 12px #276d2b0d;
}
.field {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  align-items: start;
}
.field-symbol {
  grid-column: 1;
  grid-row: 1/4;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 7px;
  background: #e2f0de;
  color: #24783e;
}
.field-symbol .app-icon {
  width: 21px;
  height: 21px;
}
.field-label {
  grid-column: 2;
  line-height: 1.3;
}
.field input,
.field select {
  grid-column: 2;
  width: 100%;
  text-transform: none;
  font-weight: 400;
  font-size: 12px;
  padding: 8px;
}
.field small {
  grid-column: 2;
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  color: #7b9183;
  line-height: 1.4;
}
.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.form-actions .primary {
  flex: 1;
  background: #237a39;
}
.form-actions .secondary {
  font-size: 12px;
}
#form-error {
  color: #b32929;
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.4;
}
.calculation {
  padding: 12px;
  border-radius: 8px;
  background: #ecf6e8;
  line-height: 1.6;
  font-size: 12px;
}
.recipe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 28px;
  gap: 6px;
  margin-top: 8px;
}
.recipe-row button {
  background: #ffeded;
  color: #9b3c3c;
  border-radius: 6px;
}
#detail {
  display: grid;
  gap: 11px;
}
.hint {
  font-size: 11px;
  line-height: 1.5;
  color: #648370;
}
.pending {
  padding: 13px;
  background: #fff2d8;
  border-radius: 9px;
  line-height: 1.5;
  font-size: 12px;
}
.search {
  width: 100%;
}
.detail-person {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 13px;
}
.detail-person strong {
  display: block;
  font-size: 16px;
}
.detail-person small {
  font-size: 10px;
  color: #6a8878;
}
.payment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.payment-summary > div {
  padding: 12px 9px;
  background: #eef7eb;
  border-radius: 7px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.payment-summary .app-icon {
  color: #00833f;
  width: 25px;
  height: 25px;
}
.payment-summary > div:last-child .app-icon {
  color: #ff9605;
}
.payment-summary small {
  display: block;
  font-size: 10px;
  margin-bottom: 3px;
}
.payment-summary b {
  font-size: 18px;
}
.detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: #edf6ed;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 8px;
}
.detail-section-title .app-icon {
  width: 22px;
  height: 22px;
}
.finance-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #eef4ed;
  font-size: 11px;
}
.finance-line:last-child {
  border-bottom: 0;
}
.finance-line .app-icon {
  color: #30813d;
  background: #e5f2de;
  border-radius: 5px;
  padding: 3px;
  width: 29px;
  height: 29px;
}
.finance-line > span {
  flex: 1;
}
.finance-line b {
  background: #eff7ec;
  padding: 7px 9px;
  border-radius: 5px;
  min-width: 104px;
  text-align: right;
  font-size: 12px;
}
.technical-details {
  font-size: 10px;
  line-height: 1.6;
  color: #6c8776;
  overflow-wrap: anywhere;
}
.technical-details summary {
  cursor: pointer;
}
/* Proporções dos cartões de cadastro das referências móveis. */
.supply-record {
  padding: 15px 12px;
}
.supply-record .record-title strong {
  font-size: 20px;
}
.supply-record .number {
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.supply-record .record-actions button {
  width: 42px;
  height: 42px;
}
.supply-record .record-actions .app-icon {
  width: 28px;
  height: 28px;
}
.supply-bottom .values b {
  min-height: 34px;
}
.supply-record .record-title {
  margin-bottom: 9px;
}
:is(#shell, #guide-host)[data-page="sales"] .record-title strong {
  font-size: 18px;
}
:is(#shell, #guide-host)[data-page="sales"] .record {
  padding: 13px 10px;
}

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  font-size: 19px;
  font-style: normal;
}
.check-field {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: #315e40;
}
.check-field input {
  margin-top: 3px;
  accent-color: #086b32;
}
.unit-conversion {
  font-size: 12px;
  line-height: 1.5;
}
.unit-conversion .field {
  margin-top: 12px;
}
.unit-conversion .check-field {
  margin-top: 12px;
}
.recipe-hint {
  font-size: 12px;
  font-weight: 700;
}
.cards + .filter-disclosure {
  margin-top: 15px;
}
#guide-modal {
  width: min(480px, 100%);
  max-width: 480px;
  max-height: 100dvh;
  height: 100dvh;
  margin: 0 auto;
  border-radius: 0;
  padding: 0;
  background: #f5faf3;
}
#guide-modal::backdrop {
  background: #e4f0e3dd;
}
#guide-host {
  min-height: 100dvh;
  padding-bottom: 74px;
  background: #f5faf3 url("/static/images/waves.svg") center bottom/100% 92px
    no-repeat;
}
#guide-host .app-header {
  border-radius: 0 0 24px 24px;
}
#guide-host footer {
  padding-bottom: 15px;
}
#calculation > div {
  margin-bottom: 9px;
}
#guide-modal .app-header #home {
  display: flex;
}
#guide-modal .app-header > img {
  display: block;
}
#guide-modal #profile-button {
  display: none;
}

.field input,
.field select,
.recipe-row input,
.recipe-row select {
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}
.field input[readonly] {
  cursor: text;
}
/* Produção com campos completos e rolagem interna em telas menores. */
.production-history {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--panel, #fff);
  border-radius: 14px;
}
.production-history summary {
  cursor: pointer;
  font-weight: 700;
}
.production-history .list-line {
  gap: 16px;
  flex-wrap: wrap;
}
.stock-warning {
  color: #b13319;
  font-size: 0.85rem;
}
#guide-host[data-page="recipe"] .record .hint {
  display: none;
}
.financial-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  min-width: 0;
}
.financial-section > .panel-heading {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.financial-section .cards {
  margin-bottom: 12px;
}
.financial-section .hint {
  line-height: 1.5;
  margin-top: 10px;
}
.financial-section .values {
  gap: 10px;
  flex-wrap: wrap;
}
.financial-section .card small {
  white-space: normal;
  line-height: 1.25;
}
.financial-section .orange {
  font-size: 12px;
  padding: 8px 10px;
}
.fruit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 34px;
  flex: 0 0 32px;
  vertical-align: middle;
  gap: 0;
}
.fruit-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  overflow: visible;
}
.fruit-icon.fruit-mixed {
  width: 42px;
  flex-basis: 42px;
}
.fruit-mixed svg {
  width: 25px;
  min-width: 25px;
}
.fruit-mixed svg + svg {
  margin-left: -8px;
}
.fruit-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-symbol .fruit-icon {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
}
.nav-symbol .fruit-icon svg {
  width: 27px;
  height: 27px;
}
.receipt-channel h4 {
  margin: 14px 0 8px;
  color: var(--green);
  font-size: 13px;
}
.sale-values > .values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sale-values > .values > div {
  min-width: 0;
}
.sale-values .values b {
  overflow-wrap: anywhere;
}
.sale-channel {
  font-weight: 700;
  margin: 8px 0;
}
