@font-face {
  font-family: AutoSW;
  src: url("/brand/autosw-regular.ttf");
}
@font-face {
  font-family: AutoSW;
  src: url("/brand/autosw-bold.ttf");
  font-weight: 700;
}
:root {
  --ink: #20232b;
  --muted: #6d7380;
  --red: #d62d3a;
  --border: #e3e6ec;
  --bg: #f4f5f7;
  --green: #237653;
  --sidebar: 246px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: AutoSW, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #f2a5ae;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #e8a4ac;
  border-color: var(--red);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #111216;
  color: #c6c8cf;
  display: flex;
  flex-direction: column;
  padding: 31px 17px 20px;
  z-index: 30;
}
.brand {
  display: block;
  margin: 0 17px 35px;
}
.brand img {
  width: 181px;
  height: 47px;
  object-fit: contain;
}
.brand span {
  display: block;
  color: #777b85;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 13px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #656a75;
  padding: 0 15px 13px;
}
nav {
  display: grid;
  gap: 4px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 13px;
  transition: background 0.15s;
}
nav a:hover {
  background: #23252c;
  color: white;
}
nav a.active {
  background: #d62d3a;
  color: white;
  box-shadow: 0 4px 14px #d62d3a18;
}
nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-bottom {
  margin: auto 14px 0;
  padding-top: 25px;
  border-top: 1px solid #2a2d34;
  font-size: 11px;
}
.sidebar-bottom p {
  font-size: 10px;
  color: #757c87;
  line-height: 1.7;
}
.sidebar-bottom a {
  display: block;
  margin: 20px 0 15px;
  color: #b6bbc5;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #57ba89;
  margin-right: 6px;
}
.logout {
  border: 0;
  background: none;
  color: #c9cbd1;
  padding: 0;
  font-size: 11px;
}
.workspace {
  margin-left: var(--sidebar);
}
.topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.breadcrumb {
  font-size: 12px;
  color: #858993;
}
.breadcrumb span {
  margin: 0 14px;
  color: #c5c8cf;
}
.breadcrumb strong {
  font-weight: 400;
  color: #353945;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.today {
  font-size: 11px;
  color: #7b808a;
}
.avatar {
  border-radius: 50%;
  background: #fbecee;
  color: #a5202b;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: bold;
}
.icon-button {
  width: 35px;
  height: 35px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 19px;
}
#menu {
  display: none;
}
main {
  padding: 36px 38px 18px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #9398a2;
  font-weight: bold;
  margin: 0 0 8px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 0 0 9px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.page-heading p:last-child {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  min-height: 40px;
}
.button:hover {
  border-color: #b5bac4;
}
.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 8px #c0202b13;
}
.button.dark {
  background: #191b22;
  border-color: #191b22;
  color: white;
}
.button.small {
  padding: 6px 10px;
  min-height: 31px;
  font-size: 11px;
}
.button.danger {
  color: #a62531;
  background: #fff6f6;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin: 0 0 22px;
}
.metric {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 20px;
}
.metric .label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric .value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 17px 0 8px;
  letter-spacing: -0.8px;
}
.metric small {
  font-size: 10px;
  color: #959aa3;
}
.metric .symbol {
  background: #f5f6f8;
  padding: 5px 9px;
  border-radius: 7px;
  color: #666d79;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eff0f3;
}
.panel-head p {
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0 0;
}
.panel-body {
  padding: 22px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 22px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quick {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 17px;
  display: block;
}
.quick:hover {
  background: #fff8f8;
  border-color: #edb7bc;
}
.quick span {
  display: block;
  font-size: 21px;
  color: var(--red);
  margin-bottom: 15px;
}
.quick strong {
  display: block;
  font-size: 12px;
}
.quick small {
  font-size: 10px;
  color: var(--muted);
}
.info-banner {
  padding: 18px 20px;
  border: 1px solid #eadde0;
  background: #fff7f7;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
  font-size: 12px;
}
.info-banner p {
  margin: 3px 0;
  color: #8e686d;
  font-size: 11px;
}
.info-banner strong {
  color: #982d38;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar input {
  flex: 1;
  min-width: 180px;
  max-width: 360px;
}
.toolbar select {
  width: auto;
  min-width: 160px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
thead {
  background: #fafafb;
}
th {
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #8a909b;
  text-transform: uppercase;
  padding: 13px 21px;
  border-bottom: 1px solid #f0f1f4;
}
td {
  padding: 16px 21px;
  border-bottom: 1px solid #f0f1f4;
}
td .muted {
  font-size: 10px;
  display: block;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfcfd;
}
.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eff1f4;
  font-size: 10px;
  color: #657080;
}
.badge.green {
  background: #edf7f1;
  color: #2d7955;
}
.badge.red {
  background: #fff0f1;
  color: #aa3945;
}
.badge.amber {
  background: #fff6e5;
  color: #976a17;
}
.empty {
  text-align: center;
  padding: 48px 25px;
  color: #9299a5;
}
.empty strong {
  display: block;
  color: #525966;
  font-size: 14px;
  margin-bottom: 7px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  padding: 14px 22px;
  font-size: 11px;
  color: var(--muted);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}
.field-grid .wide {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 11px;
  color: #565d69;
  font-weight: 700;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #dfe2e7;
  border-radius: 6px;
  background: white;
  min-height: 41px;
  padding: 9px 11px;
  color: var(--ink);
  font-size: 13px;
}
input[type="checkbox"] {
  display: inline-block;
  width: 16px;
  min-height: 16px;
  margin: 0 7px 0 0;
  vertical-align: middle;
  accent-color: var(--red);
}
textarea {
  min-height: 92px;
  resize: vertical;
}
label small {
  display: block;
  color: #9399a3;
  font-weight: 400;
  margin-top: 5px;
}
.check-label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
details {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
}
summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}
.sale-item {
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 7px;
  margin-bottom: 12px;
  position: relative;
}
.sale-item .field-grid {
  grid-template-columns: 2fr 1fr 1fr;
}
.sale-item .remove-item {
  position: static;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid #efd0d4;
  border-radius: 7px;
  text-decoration: none;
  background: #fff7f8;
}
.loyalty-card {
  background: linear-gradient(130deg, #181a21, #2b2d35);
  color: white;
  border-radius: 12px;
  padding: 25px;
}
.loyalty-card .card-brand {
  width: 145px;
  margin-bottom: 20px;
}
.stamps {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.stamp {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1px dashed #6b6d75;
  color: #8a8e99;
  font-size: 12px;
}
.stamp.filled {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.stamp.gift {
  background: #f8e5e7;
  color: #a0202b;
  border: 0;
  border-radius: 8px;
  font-size: 17px;
}
.loyalty-code {
  font-size: 10px;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}
.progress-bar {
  height: 5px;
  background: #f0f1f5;
  border-radius: 9px;
  overflow: hidden;
  min-width: 100px;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--red);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.stat-row:last-child {
  border: 0;
}
.main-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  margin-top: 10px;
  font-size: 9px;
  color: #a2a7b0;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: #ba2c39;
  font-size: 12px;
  text-decoration: underline;
}
.notice {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  background: #edf7f1;
  border: 1px solid #cce8d6;
  color: #216341;
}
.notice.error {
  background: #fff0f1;
  border-color: #f1c4cb;
  color: #a52a38;
}
.loading {
  padding: 35px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 760px;
  width: calc(100% - 30px);
  max-height: 90dvh;
  padding: 24px;
  box-shadow: 0 25px 90px #0003;
}
dialog::backdrop {
  background: #11121680;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.scrim {
  position: fixed;
  inset: 0;
  border: 0;
  background: #11121680;
  z-index: 25;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background:
    radial-gradient(ellipse at 20% 20%, #f3e0e3, transparent 55%), #f4f5f7;
}
.login-card {
  width: 100%;
  max-width: 450px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 43px;
  box-shadow: 0 20px 65px #22223308;
}
.login-card > img {
  margin-bottom: 35px;
}
.login-card h1 {
  font-size: 26px;
}
.login-card > p {
  font-size: 12px;
  color: var(--muted);
}
.login-card form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.login-card > a {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 28px;
}
.skip {
  position: absolute;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 5px;
}
#notice:empty {
  display: none;
}
.crop-stage {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid var(--border);
}
.status-line {
  font-size: 11px;
  padding: 9px 0;
  color: var(--muted);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px AutoSW;
  background: #f7f7f9;
  padding: 14px;
  border-radius: 6px;
}
.readonly-code {
  overflow-wrap: anywhere;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
}
.inline-pdf {
  margin-top: 10px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.content-grid .panel {
  margin-bottom: 0;
}
.content-grid .button {
  margin-top: 10px;
}
canvas {
  max-width: 100%;
}
.photo-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.photo-grid img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
  .cards {
    gap: 22px;
  }
  .metric {
    padding: 25px;
  }
}
@media (max-height: 820px) and (min-width: 901px) {
  .sidebar {
    padding-top: 20px;
  }
  .brand {
    margin-bottom: 22px;
  }
  nav a {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
  .sidebar-bottom a {
    margin: 10px 0;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 220px;
  }
  .brand img {
    width: 155px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 250px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  #menu {
    display: block;
  }
  .topbar {
    height: 65px;
    gap: 15px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .today {
    display: none;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
  .brand {
    margin-bottom: 20px;
  }
  nav a {
    padding: 9px 14px;
  }
  .sidebar {
    overflow: auto;
  }
  .sidebar-bottom {
    margin-top: 25px;
  }
  .brand img {
    width: 175px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 25px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading > .button {
    width: 100%;
  }
  .cards {
    gap: 10px;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric .value {
    font-size: 25px;
    margin-top: 13px;
  }
  .metric .label {
    font-size: 10px;
  }
  .metric small {
    font-size: 9px;
  }
  .metric .symbol {
    padding: 3px 6px;
  }
  .panel-head {
    padding: 16px;
    align-items: flex-start;
  }
  .panel-body {
    padding: 17px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-grid .wide {
    grid-column: auto;
  }
  .two-col {
    gap: 0;
  }
  .sale-item .field-grid {
    grid-template-columns: 1fr;
  }
  .sale-item .remove-item {
    position: static;
    margin-top: 10px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar input,
  .toolbar select,
  .toolbar .button {
    max-width: none;
    width: 100%;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .main-footer {
    gap: 15px;
    font-size: 8px;
  }
  .pagination {
    justify-content: space-between;
    padding: 14px;
  }
  .quick {
    padding: 14px;
  }
  .quick span {
    margin-bottom: 10px;
  }
  .login-card {
    padding: 30px 24px;
  }
  .form-footer {
    flex-wrap: wrap;
  }
  .form-footer .button {
    flex: 1;
  }
  td,
  th {
    padding-left: 15px;
    padding-right: 15px;
  }
  dialog {
    padding: 18px;
  }
  .topbar-right {
    gap: 0;
  }
}

[hidden] {
  display: none !important;
}
.symbol svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  vertical-align: middle;
}
.quick span svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.quick span,
.info-banner > span,
.sidebar-bottom a {
  font-family: system-ui, sans-serif;
}

/* Atendimento, cadastro e documentos */
[hidden] {
  display: none !important;
}
.sidebar {
  background: #15171d;
  border-right: 1px solid #282b34;
}
.brand span {
  color: #a0a5af;
  font-size: 9px;
}
.nav-label {
  color: #9298a5;
}
nav a {
  min-height: 44px;
  color: #b8becb;
  border-radius: 9px;
}
nav a.active {
  background: #d62d3a;
  box-shadow: 0 5px 18px #0002;
}
.sidebar-bottom p {
  color: #959ba8;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  height: 70px;
}
.page-heading {
  margin: 6px 0 28px;
}
.page-heading h1 {
  font-size: clamp(26px, 2.5vw, 34px);
  letter-spacing: -1.1px;
}
.eyebrow {
  color: #858b96;
  letter-spacing: 1.5px;
}
.button {
  border-radius: 9px;
  padding: 11px 16px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button.primary:hover {
  background: #bd2430;
  border-color: #bd2430;
  box-shadow: 0 4px 14px #d62d3a25;
}
.button.small {
  min-height: 35px;
  padding: 8px 12px;
  font-size: 11px;
}
.panel {
  border-radius: 14px;
  box-shadow: 0 4px 16px #18223703;
}
.panel-head {
  padding: 21px 24px;
  background: linear-gradient(90deg, #fff, #fdfdfe);
}
.panel-head h2 {
  font-size: 16px;
}
.panel-body {
  padding: 24px;
}
.metric {
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 16px #18223703;
}
.metric .label {
  font-size: 12px;
  color: #555d6a;
}
.metric .value {
  font-size: 30px;
  margin: 15px 0 8px;
}
.metric:first-child {
  border-top: 3px solid var(--red);
}
.metric small {
  color: #7a818d;
}
th {
  color: #707888;
  font-size: 10px;
  font-weight: 700;
  background: #f8f9fb;
  padding: 14px 22px;
}
td {
  padding: 18px 22px;
}
.badge {
  border-radius: 30px;
  padding: 5px 10px;
}
input,
select,
textarea {
  border-radius: 8px;
  min-height: 44px;
  font-size: 13px;
}
label {
  color: #4f5765;
  font-size: 12px;
}
input::placeholder,
textarea::placeholder {
  color: #969ca7;
  font-weight: 400;
}
label:has(input:required)::after {
  content: none;
}
.form-intro {
  display: flex;
  gap: 14px;
  padding: 17px 18px;
  margin-bottom: 24px;
  border: 1px solid #eddde0;
  border-radius: 12px;
  background: #fff8f8;
}
.form-intro-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--red);
  background: #fce8eb;
  font-size: 23px;
}
.form-intro strong {
  font-size: 14px;
}
.form-intro p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #757580;
  line-height: 1.6;
}
.loyalty-toggle {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}
.loyalty-toggle small {
  display: block;
  padding-left: 26px;
  font-size: 11px;
  color: var(--muted);
}
.form-details {
  padding: 0;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.form-details summary {
  padding: 16px 18px;
  font-size: 13px;
}
.form-details summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  margin-left: 8px;
}
.details-body {
  padding: 4px 18px 20px;
}
.form-footer {
  align-items: center;
  justify-content: space-between;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 120px #0b122052;
}
.modal-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: 21px;
}
.client-picker {
  position: relative;
}
.search-control {
  margin-top: 7px;
  display: flex;
  align-items: center;
  border: 1px solid #d7dce4;
  border-radius: 10px;
  background: #fff;
}
.search-control:focus-within {
  box-shadow: 0 0 0 3px #d62d3a12;
  border-color: var(--red);
}
.search-control > span {
  padding-left: 13px;
  font-size: 25px;
  color: #8c93a0;
}
.search-control input {
  margin: 0;
  border: 0;
  box-shadow: none;
  outline: 0;
  min-width: 0;
  padding: 12px;
  background: transparent;
}
.search-control button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  color: #8c93a0;
  font-size: 23px;
  background: transparent;
}
.picker-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  align-items: center;
}
#client-results {
  position: absolute;
  z-index: 24;
  top: 77px;
  left: 0;
  right: 0;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 15px 40px #1a243526;
  max-height: 300px;
  overflow: auto;
}
#client-results button {
  display: flex;
  text-align: left;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
  align-items: center;
  gap: 12px;
  padding: 11px;
}
#client-results button:hover,
#client-results button[aria-selected="true"] {
  background: #fff0f2;
}
#client-results strong {
  display: block;
  font-size: 13px;
}
#client-results small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.client-initial {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: #f1f3f7;
  color: #596273;
  font-weight: 700;
}
.option-arrow {
  margin-left: auto;
  color: #9b6470;
}
.autocomplete-message {
  padding: 15px;
  color: var(--muted);
  font-size: 12px;
}
.sale-item {
  padding: 20px;
  border-radius: 12px;
  border-color: #e2e6ed;
  background: #fcfcfe;
}
.sale-item .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.sale-item .field-grid > label:first-child,
.sale-item .field-grid > label:nth-child(4) {
  grid-column: 1 / -1;
}
.sale-item .remove-item {
  position: static;
}
#sale-form > .two-col {
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 1fr);
  align-items: start;
}
#sale-form > .two-col > div:last-child {
  position: sticky;
  top: 94px;
}
#sale-total {
  font-size: 25px;
  letter-spacing: -0.8px;
  color: #1d2532;
}
#sale-form .form-footer {
  justify-content: flex-end;
}
#sale-form .info-banner {
  display: none;
}
.document-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.document-row:first-child {
  padding-top: 0;
}
.document-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.document-info {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.document-info strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.document-info span {
  font-size: 12px;
  color: #636c7a;
}
.document-info small {
  font-size: 10px;
  color: #8a919d;
}
.document-icon {
  width: 44px;
  height: 52px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid #f1d7dc;
  background: #fff1f3;
  color: #c12b3b;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.document-preview {
  display: flex;
  gap: 17px;
  align-items: center;
  background: #f8f9fb;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
}
.document-preview p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0;
}
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.loyalty-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0, #59283100, #171a2200 60%),
    linear-gradient(115deg, #171a22, #282c37);
  border: 1px solid #3c414e;
  border-radius: 17px;
  padding: 28px;
}
.loyalty-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #ffffff20;
  padding-bottom: 22px;
  margin-bottom: 24px;
}
.loyalty-card-top .card-brand {
  width: 150px;
  margin: 0;
}
.loyalty-card-top > span {
  color: #a8afbc;
  font-size: 8px;
  letter-spacing: 1.2px;
  text-align: right;
}
.card-eyebrow {
  color: #b1b8c6;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin: 0 0 6px;
}
.loyalty-card h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.stamps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(48px, 1.25fr);
  grid-template-rows: repeat(2, 50px);
  gap: 14px 12px;
  margin: 25px 0;
  max-width: 520px;
  align-items: center;
}
.stamp {
  width: 100%;
  max-width: 48px;
  aspect-ratio: 1;
  height: auto;
  justify-self: center;
  border: 1px dashed #727b8d;
  color: #b8c1d0;
  font-size: 14px;
}
.stamp.filled {
  box-shadow: 0 4px 14px #0002;
}
.stamp.gift {
  grid-column: 6;
  grid-row: 1 / 3;
  width: 100%;
  max-width: 62px;
  aspect-ratio: 1;
  height: auto;
  border: 1px solid #f6a3ac;
  border-radius: 13px;
  background: #fff0f2;
  color: #c52f40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.stamp.gift strong {
  font-size: 22px;
  line-height: 1.1;
}
.stamp.gift small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
}
.stamp.gift.available {
  background: #d62d3a;
  color: white;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #ffffff20;
  padding-top: 19px;
}
.card-bottom strong {
  font-size: 14px;
}
.card-bottom p {
  font-size: 11px;
  color: #b4bccb;
  margin: 5px 0 0;
}
.card-bottom > div:last-child {
  text-align: right;
}
.loyalty-code {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}
.overview-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 28px 32px;
  border-radius: 16px;
  background: linear-gradient(115deg, #20232d, #303440);
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.overview-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 40px solid #ffffff04;
  border-radius: 50%;
  right: 90px;
  bottom: -145px;
}
.overview-hero h2 {
  font-size: clamp(19px, 2vw, 25px);
  letter-spacing: -0.7px;
  margin: 6px 0;
}
.overview-hero p {
  font-size: 12px;
  color: #b3bac8;
  margin: 8px 0 0;
}
.hero-label {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #f09aa4;
}
.hero-program {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 1px solid #ffffff26;
  padding-left: 30px;
}
.hero-program strong {
  font-size: 41px;
  letter-spacing: -2px;
  color: #fff;
  white-space: nowrap;
}
.hero-program span {
  max-width: 100px;
  font-size: 11px;
  color: #b8bfcd;
}
@media (max-width: 1100px) {
  #sale-form > .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  #sale-form > .two-col > div:last-child {
    position: static;
  }
}
@media (max-width: 600px) {
  main {
    padding: 24px 17px 20px;
  }
  .panel-head,
  .panel-body {
    padding: 19px;
  }
  .topbar {
    padding: 0 17px;
    height: 64px;
  }
  dialog {
    padding: 20px;
    width: calc(100% - 20px);
  }
  .client-essential {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-footer {
    flex-wrap: wrap;
  }
  .form-details summary small {
    display: block;
    margin: 4px 0 0 18px;
  }
  .picker-footer {
    align-items: flex-start;
  }
  .picker-footer > span {
    max-width: 55%;
  }
  .picker-footer button {
    flex-shrink: 0;
  }
  .sale-item {
    padding: 16px;
  }
  .loyalty-card {
    padding: 20px;
  }
  .loyalty-card-top .card-brand {
    width: 125px;
  }
  .loyalty-card-top > span {
    font-size: 7px;
  }
  .loyalty-card h2 {
    font-size: 20px;
  }
  .stamps {
    gap: 8px 7px;
    grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(40px, 1.2fr);
    grid-template-rows: repeat(2, 38px);
  }
  .stamp {
    font-size: 11px;
    max-width: 38px;
  }
  .stamp.gift strong {
    font-size: 18px;
  }
  .stamp.gift small {
    font-size: 6px;
  }
  .card-bottom {
    flex-wrap: wrap;
  }
  .card-bottom > div:last-child {
    text-align: left;
  }
  .document-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .document-row > .actions {
    margin-left: 56px;
  }
  .document-actions > * {
    flex: 1 1 100%;
  }
  .overview-hero {
    padding: 23px;
  }
  .hero-program {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
