/* Brasil Cacau · sistema visual unificado. Cards nunca alteram padding por tipo de conteúdo. */
@font-face {
  font-family: Inter;
  src: url("../fonts/Inter.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk.ttf") format("truetype");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
:root {
  --wine: #5b1d2a;
  --wine-dark: #39151e;
  --accent: #f2632a;
  --ink: #34282d;
  --muted: #796970;
  --canvas: #f7f4f2;
  --surface: #fff;
  --soft: #fcf8f5;
  --line: #eae2df;
  --radius: 18px;
  --card-pad: 28px;
  --nav-width: 258px;
  --shadow: 0 2px 0 #fff inset, 0 8px 28px -18px #55203535;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*,
:before,
:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.6 Inter,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.3;
  font-weight: 600;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 8px 0 10px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.35px;
  margin: 0 0 12px;
}
h3 {
  font-size: 14px;
  margin: 20px 0 12px;
}
p {
  margin: 0 0 16px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
a,
input,
select,
summary {
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
:focus-visible {
  outline: 3px solid #ef865660;
  outline-offset: 3px;
}
img,
svg {
  max-width: 100%;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
.subtle,
.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.field-help {
  margin-bottom: 20px;
}
.muted {
  color: #b4a3a6;
  font-weight: 400;
}
.eyebrow {
  font:
    600 10px/1.6 Inter,
    sans-serif;
  letter-spacing: 1.9px;
  color: #b36b53;
}
.positive {
  color: #467050;
}
.negative {
  color: #b83b32;
}
small {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
/* Navegação preservada, com alvo e foco consistentes. */
.layout {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--nav-width);
  height: 100dvh;
  background:
    radial-gradient(ellipse at 20% 0, #6c273b70, transparent 65%),
    linear-gradient(160deg, #4b1a29, #30151e);
  color: #fff;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  z-index: 40;
  border-right: 1px solid #ffffff0c;
  transition:
    width 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 8px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  flex: none;
}
.brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.9px;
  color: #c29fa9;
  margin-top: 2px;
}
.sidebar-collapse {
  border: 1px solid #ffffff12;
  border-radius: 9px;
  background: #ffffff05;
  color: #cdb6bd;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  margin: 0 7px 20px;
  font-size: 11px;
  text-align: left;
  flex-shrink: 0;
}
.sidebar-collapse:hover {
  background: #ffffff10;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  min-height: 44px;
  font-size: 12px;
  color: #c5aeb7;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
}
.sidebar nav a i {
  font-style: normal;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: none;
}
.sidebar nav a svg {
  width: 19px;
  height: 19px;
}
.sidebar nav a:hover {
  background: #ffffff08;
  color: #fff;
  transform: translateX(2px);
}
.sidebar nav a.selected {
  color: #fff;
  background: linear-gradient(100deg, #8c435750, #b0564b18);
  border-color: #c0809040;
  box-shadow: 0 4px 15px #14050c18;
}
.sidebar nav a.selected:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 4px;
  background: #f49b6c;
}
.sidebar nav a.selected i {
  color: #f7b68d;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 6px 0;
  display: flex;
  gap: 11px;
  align-items: center;
  border-top: 1px solid #ffffff12;
  min-height: 82px;
  flex-shrink: 0;
}
.sidebar-bottom > div {
  min-width: 0;
  flex: 1;
}
.sidebar-bottom strong {
  font-size: 11px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: #c8a6b1;
}
.profile-picture,
.profile-link img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex: none;
  background: #f3e6db;
  border: 1px solid #ffffff40;
}
.logout {
  border: 0;
  background: transparent;
  color: #d6bac4;
  font-size: 22px;
  padding: 5px;
}
.main {
  width: calc(100% - var(--nav-width));
  margin-left: var(--nav-width);
  padding: 0 40px 24px;
  max-width: 1800px;
  min-width: 0;
  transition:
    width 0.3s var(--ease),
    margin 0.3s var(--ease);
}
.topline {
  height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #99858b;
  gap: 20px;
}
.topline > div,
.profile-link {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topline .dot {
  color: var(--accent);
  font-size: 7px;
  margin: 0 6px;
}
.profile-link {
  gap: 10px;
  letter-spacing: 0;
  font-size: 12px;
  color: #79636b;
}
.profile-link img {
  width: 33px;
  height: 33px;
  border-radius: 11px;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--wine);
  background: #fff;
  font-size: 17px;
}
.icon-button:hover {
  border-color: #cdaeb9;
  box-shadow: 0 3px 12px #591d2b08;
}
.sidebar-overlay {
  display: none;
}
.menu-collapsed {
  --nav-width: 86px;
}
.menu-collapsed .brand {
  padding: 0 4px;
}
.menu-collapsed .brand span,
.menu-collapsed .sidebar nav a span,
.menu-collapsed .sidebar-collapse span,
.menu-collapsed .sidebar-bottom > div,
.menu-collapsed .sidebar-bottom > form {
  display: none;
}
.menu-collapsed .sidebar nav a {
  justify-content: center;
  padding: 11px 0;
}
.menu-collapsed .sidebar-collapse {
  justify-content: center;
  margin-left: 1px;
  margin-right: 1px;
  padding: 10px 0;
}
.menu-collapsed .sidebar-bottom {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
/* Estrutura comum: títulos e textos sempre dentro de uma margem de segurança. */
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 34px 0 28px;
}
.page-heading > div:first-child {
  min-width: 0;
  max-width: 760px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 650px;
  line-height: 1.7;
}
.page-heading .button-row {
  justify-content: flex-end;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--card-pad);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
  position: relative;
}
.panel > :last-child {
  margin-bottom: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.panel-head h2 {
  margin: 5px 0 0;
}
.panel-head a {
  font-size: 11px;
  font-weight: 600;
  color: #aa543e;
  flex-shrink: 0;
}
.panel-head a:hover {
  color: var(--accent);
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  min-width: 0;
}
.card-heading > div:not(.customer-monogram):not(.product-symbol) {
  flex: 1;
  min-width: 0;
}
.card-heading h2 {
  margin: 0 0 5px;
  font-size: 17px;
}
.card-heading p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.card-heading small {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.25px;
}
.section-title {
  margin: 32px 0 18px;
  font-size: 19px;
}
.product-symbol,
.customer-monogram,
.round-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f7ece7;
  color: #a26252;
  flex: none;
  font-weight: 600;
  font-size: 16px;
}
.round-icon {
  width: 35px;
  height: 35px;
}
.customer-monogram {
  background: linear-gradient(140deg, #f7ece7, #f5e7ea);
  color: #97536a;
}
.hint {
  background: linear-gradient(110deg, #fff7ed, #fffaf5);
  border: 1px solid #f0e1d1;
  border-left: 3px solid #e8a272;
  border-radius: 12px;
  padding: 15px 18px;
  margin: 0 0 24px;
  font-size: 12px;
  color: #8a6475;
  line-height: 1.75;
}
.margin-bottom {
  margin-bottom: 24px;
}
.notice {
  border: 1px solid #dce7da;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
  background: #f3f8f1;
  color: #4a6b47;
  font-size: 12px;
  line-height: 1.7;
}
.notice.error {
  color: #9d4f43;
  border-color: #efd6ce;
  background: #fff5ef;
}
.empty {
  text-align: center;
  color: #8a6475;
  padding: 30px 15px;
  font-size: 12px;
}
.empty.compact {
  padding: 20px 12px;
}
.section-summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #9e5e51;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.section-summary:after {
  content: "＋";
  color: #8a6475;
}
.product-lots details[open] > .section-summary:after {
  content: "−";
}
summary {
  cursor: pointer;
}
summary::marker {
  color: #8a6475;
}
.back-link {
  display: inline-block;
  font-size: 12px;
  margin-top: 22px;
  color: #a05d4e;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8a6475;
  font-size: 10px;
  margin-top: 30px;
  padding: 18px 0;
}
/* Controles compartilhados: tamanhos iguais, rótulos independentes e ações espaçadas. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  flex-shrink: 0;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(115deg, #c64b20, #ad3519);
  box-shadow: 0 4px 12px #e65c241a;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px #d95b2526;
}
.btn.secondary {
  color: #7b4c55;
  background: #fff;
  border-color: #e4d9d8;
}
.btn.secondary:hover {
  border-color: #ccadb5;
  background: #fdf8f6;
}
.btn.danger {
  background: #fff4ef;
  border-color: #efdacf;
  color: #a15e4c;
}
.btn.tiny {
  font-size: 11px;
  min-height: 35px;
  padding: 8px 12px;
  border-radius: 9px;
}
.btn.full {
  width: 100%;
  justify-content: space-between;
}
/* Flex e gap das ações são utilitários Tailwind nos templates. */
.button-row form {
  margin: 0;
}
.link-button {
  border: 0;
  background: none;
  color: #8a6475;
  font-size: 11px;
  font-weight: 600;
  padding: 0;
}
label {
  min-width: 0;
}
input,
select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid #e4dcdb;
  border-radius: 10px;
  color: #57434b;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}
input::placeholder {
  color: #8a6475;
  font-weight: 400;
}
input:hover,
select:hover {
  border-color: #cdb5bd;
}
input:focus,
select:focus {
  border-color: #bb7b89;
  outline: 3px solid #c58a9820;
}
input[readonly] {
  background: #fbf8f6;
}
input:disabled,
select:disabled {
  background: #f5f0ed;
  color: #8a6475;
}
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: var(--accent);
  display: inline-block;
  vertical-align: middle;
}
input[type="file"] {
  background: #fdfbf9;
  border-style: dashed;
  font-size: 12px;
  padding: 10px;
}
input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  margin-right: 12px;
  background: #f7ece4;
  color: #9e6749;
  font-size: 11px;
  font-weight: 600;
}
.form-panel {
  max-width: 1000px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 24px;
}
.form-grid label,
.block-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  color: #80646f;
}
.form-grid .span-2 {
  grid-column: span 2;
}
.block-field {
  margin: 22px 0;
}
.form-panel .subtle {
  margin: 0 0 24px;
}
.filter-bar,
.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  margin: 0 0 24px;
}
.filter-bar {
  padding: 20px;
  border: 1px solid var(--line);
  background: #ffffffb8;
  border-radius: 15px;
}
.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #8a6475;
}
.filter-bar label:first-child {
  flex: 1;
}
.filter-bar select {
  min-width: 140px;
}
.filters select {
  max-width: 210px;
}
.filters .search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  position: relative;
}
.filters .search > span {
  position: absolute;
  left: 14px;
  color: #8a6475;
}
.filters .search input {
  padding-left: 35px;
}
.switch-label {
  flex-direction: row !important;
  align-items: center;
  align-self: center;
  gap: 10px !important;
  min-height: 45px;
}
.switch-label input {
  appearance: none;
  width: 39px;
  min-width: 39px;
  height: 22px;
  min-height: 22px;
  border: 0;
  border-radius: 99px;
  background: #dcd1d3;
  position: relative;
  flex: none;
  cursor: pointer;
}
.switch-label input:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #34202b20;
  transition: transform 0.2s;
}
.switch-label input:checked {
  background: #a56378;
}
.switch-label input:checked:before {
  transform: translateX(17px);
}
.submit-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 24px 0 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.submit-bar > span {
  font-size: 12px;
  color: #8a6475;
}
.remove-item {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #ead9d4;
  background: #fff;
  border-radius: 10px;
  color: #8a6475;
  font-size: 22px;
  line-height: 1;
  align-self: end;
}
.remove-item:hover {
  background: #fff3ed;
  color: #b3492a;
  border-color: #d99983;
}
.pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  padding: 5px 10px;
  max-width: 100%;
  border-radius: 7px;
  background: #f5ecee;
  color: #9c6878;
}
.pill.orange,
.pill.amber {
  background: #fff2e6;
  color: #8a6475;
}
.status-badge {
  border-radius: 99px;
  white-space: nowrap;
  background: #fff5e7;
  color: #8a6475;
  flex: none;
}
.status-badge.live {
  background: #edf4ed;
  color: #8a6475;
}
.status-badge.inactive {
  background: #f3f0ee;
  color: #8a6475;
}
/* Tabelas: o card mantém seu padding; só a tabela pode rolar horizontalmente. */
.table-wrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 18px;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 670px;
  text-align: left;
}
th {
  background: #fbf8f6;
  padding: 15px 16px;
  font-size: 10px;
  letter-spacing: 0.55px;
  font-weight: 500;
  color: #8a6475;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 17px 16px;
  border-bottom: 1px solid #f0e9e6;
  font-size: 12px;
  line-height: 1.7;
  color: #846b71;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fdfaf7;
}
td strong {
  font-size: 12px;
  font-weight: 500;
  color: #5a3a47;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.7;
  color: #8a6475;
}
td a {
  font-size: 11px;
  font-weight: 500;
  color: #8a6475;
}
.actions {
  min-width: 130px;
}
.actions a {
  display: block;
  width: fit-content;
  line-height: 2.3;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 0 28px;
  font-size: 11px;
  color: #8a6475;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.pagination strong {
  font-weight: 500;
}
/* Visão geral: contraste, números e respiro inspirados na composição da referência. */
.metrics {
  gap: 18px;
  margin-bottom: 24px;
}
.metric {
  position: relative;
  min-width: 0;
  padding: 25px 24px 23px;
  min-height: 177px;
  border: 1px solid #e6d9dd;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 100% 0, #f8e8e6, transparent 75%), #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.metric:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e1bec7, transparent);
  opacity: 0.5;
}
.metric:hover {
  border-color: #d9b6c0;
  box-shadow: 0 10px 30px -20px #8c3c5c50;
}
.metric > span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #8a6475;
  padding-right: 36px;
}
.metric strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 37px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: #733348;
  margin: 22px 0 9px;
  font-weight: 600;
}
.metric > small {
  display: block;
  font-size: 11px;
  color: #8a6475;
  line-height: 1.6;
}
.metric-icon {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f5e7ec;
  color: #8a6475;
  font-size: 17px;
}
.metric-icon.orange {
  background: #fbebdf;
  color: #8a6475;
}
.metric-icon.brown {
  background: #f0e6df;
  color: #8a6475;
}
.metric-icon.pale {
  background: #f7eae4;
  color: #8a6475;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.dashboard-grid .panel {
  margin: 0;
}
.count-panel {
  background:
    radial-gradient(ellipse at 100% 0, #f5e0d940, transparent 85%), #fff;
  display: flex;
  flex-direction: column;
}
.count-panel h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.65px;
  max-width: 330px;
  margin: 17px 0 13px;
  color: #754657;
}
.count-panel > p {
  font-size: 13px;
  line-height: 1.85;
  color: #8a6475;
}
.count-state {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: auto;
  margin-bottom: 20px;
}
.count-state strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #926b7b;
}
.count-state small {
  display: block;
  font-size: 10px;
  line-height: 1.75;
  margin-top: 3px;
}
.count-panel > .btn {
  align-self: start;
}
.compact-list {
  max-height: 400px;
  overflow: auto;
  margin-top: 16px;
  padding-right: 5px;
  scrollbar-width: thin;
}
.expiry-card {
  border-top: 1px solid #f0e5e5;
  padding: 14px 0;
}
.expiry-card:last-child {
  padding-bottom: 4px;
}
.expiry-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.expiry-card summary > span:first-child {
  min-width: 0;
}
.expiry-card summary strong {
  font-weight: 500;
  display: block;
  color: #875b6e;
}
.expiry-card summary small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #8a6475;
  line-height: 1.6;
}
.expiry-card p {
  font-size: 11px;
  color: #8a6475;
  margin: 12px 0 0;
}
.expiry-card b {
  font-weight: 500;
  color: #8a6475;
}
/* Cards de clientes, lotes e recebimentos */
.customer-grid {
  gap: 22px;
  margin-bottom: 24px;
}
.customer-grid > .panel {
  margin: 0;
}
.customer-card > .card-heading {
  flex-wrap: wrap;
}
.customer-card h3 {
  font-size: 12px;
  color: #8a6475;
  font-family: Inter, sans-serif;
  font-weight: 500;
  margin: 22px 0 12px;
}
.purchase-list details {
  border: 1px solid #eee1e1;
  border-radius: 11px;
  background: #fdf9f7;
  padding: 13px 15px;
  margin: 10px 0;
}
.purchase-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #8a6475;
}
.purchase-list ul {
  padding-left: 18px;
  margin: 14px 0;
}
.purchase-list li {
  font-size: 11px;
  margin: 7px 0;
  color: #916675;
}
.purchase-list small {
  font-size: 10px;
  color: #8a6475;
}
.edit-disclosure {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 22px;
}
.edit-disclosure > summary {
  font-size: 11px;
  font-weight: 500;
  color: #8a6475;
}
.edit-disclosure .form-grid {
  margin-top: 22px;
}
.stock-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid #eddfde;
  border-radius: 11px;
  background: #fdf8f5;
  padding: 13px 16px;
  font-size: 11px;
  color: #8a6475;
  margin: 20px 0;
}
.stock-strip b {
  font-size: 12px;
  font-weight: 500;
  color: #8d6070;
  margin-left: 6px;
}
.total-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: #945870;
  flex: none;
  min-width: 60px;
  text-align: right;
}
.total-number small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  color: #8a6475;
}
.lot-line,
.receipt-part {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.7fr 0.7fr 44px;
  gap: 14px;
  align-items: end;
  background: #fdf8f5;
  border: 1px solid #efdfdc;
  border-radius: 13px;
  padding: 18px;
  margin: 16px 0;
}
.lot-line label,
.receipt-part label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #8a6475;
}
.lot-lines {
  margin: 16px 0 20px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.comparison-grid section {
  background: #fcf8f6;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.comparison-grid h3 {
  margin-top: 0;
  color: #8a6475;
  font-size: 13px;
}
.comparison-grid p {
  font-size: 11px;
  color: #8a6475;
  line-height: 1.8;
}
.upload-panel {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 25px;
  padding: 32px;
}
.upload-illustration {
  width: 70px;
  height: 70px;
  border: 1px dashed #dcb7ae;
  border-radius: 16px;
  background: #fcf2eb;
  display: grid;
  place-items: center;
  font-size: 27px;
  color: #8a6475;
}
.upload-panel p {
  font-size: 12px;
  color: #8a6475;
  margin: 10px 0 0;
}
.upload-form {
  display: flex;
  gap: 22px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 26px;
}
.file-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  flex: 1;
  font-size: 11px;
  color: #8a6475;
}
.receipt-card {
  display: flex;
  align-items: center;
  gap: 18px;
}
.receipt-card > div {
  flex: 1;
  min-width: 0;
}
.receipt-card strong {
  font-size: 13px;
  font-weight: 500;
}
.receipt-card small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.receipt-card:hover {
  border-color: #d2acb7;
  box-shadow: 0 8px 25px -20px #6f284550;
}
.document-key {
  font-size: 11px;
  color: #8a6475;
  overflow-wrap: anywhere;
  margin: 0 0 24px;
}
.new-product-box {
  background: #fdf5eb;
  border: 1px dashed #e3c5b0;
  border-radius: 13px;
  padding: 22px;
  margin: 24px 0;
}
.new-product-box .form-grid {
  margin-top: 18px;
  margin-bottom: 0;
}
.receipt-part {
  grid-template-columns: 1.1fr 1fr 0.8fr 44px;
}
.parts-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.parts-footer span {
  font-size: 11px;
  font-weight: 500;
  color: #8a6475;
}
.receipt-product > small {
  display: block;
  line-height: 1.8;
  margin-top: 12px;
}
.sale-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 44px;
  gap: 16px;
  background: #fdf9f5;
  border: 1px solid #eee0dc;
  border-radius: 13px;
  padding: 20px;
  margin: 18px 0;
}
.sale-line label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  font-size: 11px;
  color: #8a6475;
}
.sale-line select {
  font-size: 13px;
}
.danger-zone {
  max-width: 1000px;
}
.danger-zone p {
  font-size: 12px;
  color: #8a6475;
}
/* Inventário e feedback do rascunho. */
.count-toolbar {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid #e7d4da;
  border-radius: 14px;
  background: #fffcfaf5;
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 20px -12px #48202d30;
  margin-bottom: 20px;
}
.count-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  max-width: 330px;
  font-size: 11px;
  color: #8a6475;
}
.count-toolbar span {
  flex: 1;
  font-size: 11px;
  line-height: 1.7;
  color: #8a6475;
}
.count-products {
  display: grid;
  gap: 15px;
}
.count-product {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 22px 24px;
}
.count-product-heading {
  min-width: 0;
  flex: 1;
}
.count-product-heading strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #8a6475;
}
.count-product-heading small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
  color: #8a6475;
}
.count-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  flex: 1.4;
  min-width: 0;
}
.count-pair > div {
  min-width: 0;
}
.count-pair label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #8a6475;
}
.count-pair small {
  font-size: 9px;
  color: #8a6475;
  font-weight: 400;
}
.count-pair input[data-quantity] {
  font-size: 17px;
  font-weight: 500;
  min-height: 42px;
  padding: 8px 12px;
}
.count-pair input[data-note] {
  font-size: 10px;
  min-height: 34px;
  padding: 7px 10px;
}
.difference {
  font-size: 9px;
  color: #8a6475;
  padding: 7px 0;
}
.difference b {
  font-weight: 500;
}
.count-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 26px 0 35px;
}
.count-actions form {
  margin: 0;
}
/* Perfil: seis retratos distintos e marca em um grupo próprio. */
.avatar-fieldset {
  border: 1px solid #eadadf;
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0 28px;
  min-width: 0;
}
.avatar-fieldset legend {
  font-size: 12px;
  font-weight: 500;
  color: #8a6475;
  padding: 0 9px;
}
.avatar-group + .avatar-group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #eee0e4;
}
.avatar-group h3 {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 11px;
  margin: 0 0 14px;
  color: #8a6475;
}
.avatar-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 116px));
  gap: 14px;
}
.avatar-picker label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: #fcf7f3;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 10px 10px;
  cursor: pointer;
  transition:
    border 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.avatar-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.avatar-picker img {
  display: block;
  width: 78px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 15px;
}
.avatar-picker label > span {
  font-size: 10px;
  color: #8a6475;
}
.avatar-picker label:has(input:checked) {
  border-color: #b78298;
  background: #fff7f2;
  box-shadow: 0 0 0 3px #ba849318;
}
.avatar-picker label:hover {
  transform: translateY(-2px);
  border-color: #d7b7c3;
}
.avatar-picker label:focus-within {
  outline: 3px solid #e4bba5;
  outline-offset: 2px;
}
.avatar-selected {
  display: none;
  position: absolute;
  top: 5px;
  right: 6px;
  color: #fff;
  background: #ac7c92;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  font-size: 10px;
  text-align: center;
  line-height: 17px;
}
.avatar-picker input:checked ~ .avatar-selected {
  display: block;
}
#temporary-secret {
  font-family: monospace;
  font-size: 17px;
  letter-spacing: 0.8px;
}
/* Login: mantém a composição em duas áreas. */
body.public {
  background: var(--wine-dark);
}
.login-shell {
  display: grid;
  grid-template-columns: 1.07fr 1fr;
  min-height: 100dvh;
}
.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh 8vw;
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 90%, #9d493d44, transparent 65%),
    radial-gradient(ellipse at 0 0, #6c274b55, transparent 70%),
    linear-gradient(145deg, #44192a, #36151e);
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -170px;
  border: 1px solid #dd99a220;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  box-shadow:
    0 0 0 65px #e1a78a06,
    0 0 0 130px #e1a78a04;
  pointer-events: none;
}
.login-story .eyebrow {
  color: #cf9a8b;
  font-size: 10px;
}
.login-story h1 {
  font-size: clamp(42px, 4.6vw, 70px);
  line-height: 1.09;
  letter-spacing: -2.4px;
  margin: 24px 0;
  max-width: 570px;
}
.login-story p {
  max-width: 390px;
  color: #c79ca8;
  font-size: 15px;
  line-height: 1.85;
}
.story-decor {
  margin-top: 9vh;
  font-size: 24px;
  color: #e7a080;
  font-weight: 600;
}
.story-decor span {
  font-size: 10px;
  color: #b17d8b;
  letter-spacing: 2.8px;
  margin-left: 10px;
}
.login-panel {
  background: #faf7f4;
  display: grid;
  place-items: center;
  padding: 52px 36px;
}
.login-card {
  width: min(100%, 390px);
}
.login-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  margin: 0 0 38px;
  box-shadow: 0 5px 25px #7e3a3b12;
}
.login-card h2 {
  font-size: 29px;
  margin: 9px 0 12px;
  color: #794657;
}
.login-card p {
  font-size: 13px;
  color: #8a6475;
  margin-bottom: 30px;
}
.login-card form {
  display: grid;
  gap: 20px;
}
.login-card label {
  font-size: 12px;
  color: #8a6475;
  display: grid;
  gap: 9px;
}
.login-card input {
  min-height: 48px;
}
.login-card > .field-help,
.login-card > small {
  display: block;
  margin-top: 23px;
  font-size: 11px;
}
.public > .notice {
  position: relative;
  z-index: 1;
  margin: 15px auto;
  max-width: 600px;
}
.public-account {
  min-height: 100dvh;
  padding: 30px 20px;
  display: grid;
  place-items: center;
}
.public-account > .panel {
  width: min(100%, 490px);
  padding: 34px;
}
.public-account h1 {
  font-size: 27px;
}
.public-account p {
  font-size: 13px;
  color: #8a6475;
}
@media (min-width: 1700px) {
  .main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .metrics {
    gap: 22px;
  }
  .metric {
    min-height: 190px;
  }
}
@media (max-width: 1250px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .count-product {
    align-items: flex-start;
  }
  .count-product-heading {
    flex: 0.8;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .button-row {
    max-width: 340px;
  }
}
@media (max-width: 900px) {
  :root {
    --nav-width: 0px;
    --card-pad: 22px;
  }
  .main {
    margin: 0;
    width: 100%;
    padding: 0 20px 24px;
  }
  .sidebar,
  .menu-collapsed .sidebar {
    width: 258px;
    padding: 24px 16px;
    transform: translateX(-100%);
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    background: #26111c70;
    backdrop-filter: blur(4px);
    z-index: 35;
  }
  .menu-open .sidebar-overlay {
    display: block;
  }
  .menu-collapsed .brand {
    padding: 0 8px;
  }
  .menu-collapsed .brand span,
  .menu-collapsed .sidebar nav a span,
  .menu-collapsed .sidebar-collapse span,
  .menu-collapsed .sidebar-bottom > div,
  .menu-collapsed .sidebar-bottom > form {
    display: block;
  }
  .menu-collapsed .sidebar nav a {
    justify-content: flex-start;
    padding: 11px 13px;
  }
  .menu-collapsed .sidebar-collapse {
    justify-content: flex-start;
    margin: 0 7px 20px;
    padding: 9px 12px;
  }
  .menu-collapsed .sidebar-bottom {
    justify-content: flex-start;
    padding: 22px 6px 0;
  }
  .topline {
    height: 72px;
    font-size: 8px;
    letter-spacing: 0.6px;
    gap: 10px;
  }
  .topline > div {
    gap: 10px;
  }
  .profile-link {
    gap: 7px;
    font-size: 11px;
  }
  .profile-link span {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .profile-link img {
    width: 30px;
    height: 30px;
  }
  .page-heading {
    flex-direction: column;
    margin: 28px 0 24px;
    gap: 20px;
  }
  .page-heading .button-row {
    max-width: none;
    justify-content: flex-start;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .metrics {
    gap: 13px;
  }
  .metric {
    min-height: 165px;
    padding: 22px 19px;
  }
  .metric > span {
    font-size: 9px;
  }
  .metric strong {
    font-size: 33px;
    margin-top: 21px;
  }
  .metric-icon {
    right: 16px;
    top: 18px;
    width: 28px;
    height: 28px;
  }
  .dashboard-grid {
    gap: 22px;
  }
  .count-panel h2 {
    font-size: 24px;
  }
  .card-heading {
    gap: 12px;
    align-items: flex-start;
  }
  .card-heading h2 {
    font-size: 16px;
  }
  .stock-strip {
    gap: 14px;
  }
  .count-product {
    display: block;
  }
  .count-product-heading {
    margin-bottom: 20px;
  }
  .count-pair {
    gap: 18px;
  }
  .count-toolbar {
    gap: 12px;
    top: 8px;
  }
  .count-toolbar label {
    max-width: none;
    flex-basis: 100%;
  }
  .count-toolbar span {
    font-size: 10px;
  }
  .count-has-dirty #save-count {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 30;
    box-shadow: 0 8px 25px #703d4d30;
  }
  .count-actions {
    margin-bottom: 70px;
  }
  .lot-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }
  .lot-line > .remove-item {
    grid-column: 2;
    justify-self: end;
  }
  .upload-panel {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 20px;
  }
  .upload-illustration {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }
  .upload-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .file-field {
    width: 100%;
  }
  .receipt-part {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }
  .receipt-part > label:first-child {
    grid-column: span 2;
  }
  .receipt-part .remove-item {
    justify-self: end;
  }
  .new-product-box {
    padding: 20px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .customer-card .card-heading > div:nth-child(2) {
    min-width: 140px;
  }
  .avatar-fieldset {
    padding: 20px;
  }
  .avatar-picker {
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .avatar-picker label {
    padding: 10px 7px;
  }
  .avatar-picker img {
    width: 68px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 45px 32px;
    min-height: 280px;
  }
  .login-story h1 {
    font-size: 40px;
    letter-spacing: -1.4px;
    margin: 18px 0;
  }
  .login-story p {
    font-size: 13px;
    margin-bottom: 0;
  }
  .story-decor {
    display: none;
  }
  .login-panel {
    padding: 38px 26px;
  }
  .login-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
  }
  .login-card h2 {
    font-size: 27px;
  }
  .public-account > .panel {
    padding: 28px;
  }
}
@media (max-width: 540px) {
  :root {
    --card-pad: 20px;
  }
  .main {
    padding: 0 15px 22px;
  }
  .topline > div > span {
    font-size: 7px;
  }
  .topline .profile-link span {
    display: none;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .panel {
    margin-bottom: 20px;
  }
  .panel-head {
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .panel-head a {
    font-size: 10px;
  }
  .panel-head h2 {
    font-size: 18px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 20px 16px;
    min-height: 162px;
  }
  .metric > span {
    font-size: 8px;
    letter-spacing: 0.5px;
    padding-right: 24px;
  }
  .metric-icon {
    width: 24px;
    height: 24px;
    right: 13px;
    top: 17px;
    font-size: 13px;
    border-radius: 8px;
  }
  .metric strong {
    font-size: 31px;
  }
  .metric > small {
    font-size: 10px;
  }
  .btn {
    font-size: 11px;
    min-height: 44px;
    padding: 11px 14px;
  }
  .filters,
  .filter-bar {
    flex-wrap: wrap;
    gap: 13px;
  }
  .filters .search,
  .filter-bar label:first-child {
    flex-basis: 100%;
  }
  .filters select {
    flex: 1;
    max-width: none;
    min-width: 0;
  }
  .filter-bar {
    padding: 16px;
  }
  .filter-bar label {
    flex: 1;
  }
  .filter-bar select {
    min-width: 100px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 19px;
    margin-bottom: 22px;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .sale-line {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 15px;
    padding: 17px;
  }
  .sale-line label:first-child {
    grid-column: span 2;
  }
  .sale-line label:nth-child(2) {
    max-width: 160px;
  }
  .sale-line select {
    font-size: 13px;
  }
  .submit-bar {
    align-items: stretch;
    gap: 15px;
  }
  .submit-bar > .btn {
    flex: 1;
  }
  .card-heading h2 {
    font-size: 15px;
    line-height: 1.5;
  }
  .card-heading .status-badge {
    margin-left: auto;
  }
  .card-heading .product-symbol {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 10px;
  }
  .total-number {
    font-size: 23px;
    min-width: 48px;
  }
  .total-number small {
    font-size: 9px;
  }
  .receipt-card {
    gap: 12px;
    flex-wrap: wrap;
  }
  .receipt-card .product-symbol {
    display: none;
  }
  .receipt-card .status-badge {
    font-size: 9px;
  }
  .receipt-card > span:last-child {
    display: none;
  }
  .parts-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .count-pair {
    gap: 14px;
  }
  .count-pair input[data-quantity] {
    min-height: 46px;
    font-size: 18px;
  }
  .count-pair input[data-note] {
    font-size: 10px;
    min-height: 36px;
  }
  .count-toolbar {
    padding: 16px;
  }
  .count-toolbar .btn {
    font-size: 10px;
  }
  .count-toolbar span {
    flex-basis: 60%;
    font-size: 10px;
  }
  .count-product-heading strong {
    font-size: 12px;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .avatar-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .avatar-group:last-child .avatar-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .avatar-picker img {
    width: 70px;
  }
  .avatar-picker label > span {
    font-size: 9px;
  }
  .avatar-fieldset {
    padding: 18px 14px;
  }
  .expiry-card summary {
    align-items: flex-start;
    gap: 10px;
  }
  .expiry-card summary strong {
    font-size: 11px;
  }
  .expiry-card summary small {
    font-size: 9px;
  }
  .expiry-card .pill {
    font-size: 9px;
    padding: 5px 7px;
  }
  .purchase-list summary {
    font-size: 10px;
    align-items: flex-start;
  }
  .purchase-list summary span:last-child {
    text-align: right;
    max-width: 100px;
  }
  .purchase-list li {
    font-size: 10px;
  }
  .public > .notice {
    margin: 12px 16px;
  }
  .hint {
    font-size: 11px;
    padding: 14px 15px;
  }
  .comparison-grid section {
    padding: 17px;
  }
  footer span {
    display: none;
  }
  footer {
    font-size: 9px;
  }
  .button-row {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
.metric-icon svg {
  width: 18px;
  height: 18px;
}
.purchase-list summary:after {
  content: "⌄";
  font-size: 13px;
  color: #ab8490;
  flex: none;
}
.purchase-list details[open] > summary:after {
  transform: rotate(180deg);
}

/* A tipografia de controles evita o zoom automático no iOS; ações têm área de toque de 44 px. */
@media (max-width: 1100px) {
  .lot-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lot-line > .remove-item {
    grid-column: 2;
    justify-self: end;
  }
}
@media (max-width: 900px) {
  input,
  select,
  .sale-line select,
  .count-pair input[data-note] {
    font-size: 16px;
  }
  .count-pair input[data-note] {
    min-height: 44px;
  }
  .btn.tiny,
  .sidebar-collapse {
    min-height: 44px;
  }
}
/* Datas ocupam a linha inteira em telas estreitas para não cortar o seletor nativo. */
@media (max-width: 540px) {
  .lot-line > label:first-child,
  .lot-line > label:nth-child(2),
  .receipt-part > label:nth-child(2) {
    grid-column: span 2;
  }
}

/* Instalação do PWA: orientações públicas e integração com o menu interno. */
.network-status {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff1db;
  color: #6a3a26;
  border-bottom: 1px solid #e7c8a7;
  padding: 12px 22px;
  text-align: center;
  font-size: 12px;
}
.install-public > .panel {
  width: min(100%, 920px);
  padding: 34px;
}
.install-public .page-heading {
  margin-top: 0;
}
.install-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(125deg, #fff, #fcf1e9);
  margin-top: 24px;
}
.install-hero img {
  border-radius: 20px;
  flex: none;
}
.install-hero > div {
  min-width: 0;
}
.install-hero h2 {
  margin: 0 0 8px;
}
.install-hero p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.install-grid {
  gap: 22px;
}
.install-grid > .panel {
  margin: 0 0 22px;
}
.install-grid h2 {
  margin-top: 17px;
}
.install-grid ol {
  padding-left: 22px;
  margin-bottom: 16px;
  font-size: 13px;
}
.install-grid li {
  padding: 0 0 12px 5px;
}
.install-login-link {
  display: block;
  margin-top: 23px;
  color: var(--wine);
  font-size: 12px;
}
@media (max-width: 540px) {
  .install-public > .panel {
    padding: 22px;
  }
  .install-hero {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
  .install-hero img {
    width: 62px;
    height: 62px;
  }
  .install-grid ol {
    font-size: 12px;
  }
  .network-status {
    font-size: 11px;
    padding: 12px 16px;
  }
}
