:root {
  --red: #df2028;
  --red-dark: #b91a21;
  --ink: #171719;
  --muted: #6e6e73;
  --line: #e6e6e7;
  --paper: #f6f6f5;
  --white: #fff;
  --green: #207143;
  --body: "Inter", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d9dc;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 13px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #df202814;
}
input::placeholder,
textarea::placeholder {
  color: #909097;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
label span {
  font-weight: 400;
  color: var(--muted);
}
textarea {
  resize: vertical;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
}
h1 {
  font-size: 44px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 23px;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.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;
}
.button {
  min-height: 45px;
  border-radius: 5px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s;
}
.button-primary {
  background: var(--red);
  color: #fff;
}
.button-primary:hover {
  background: var(--red-dark);
}
.button-outline {
  border-color: #d9d9dc;
  background: #fff;
}
.button-outline:hover {
  background: #f4f4f4;
}
.button-quiet {
  background: transparent;
  color: #666;
  min-height: 42px;
  padding: 8px 11px;
}
.button-quiet:hover {
  background: #f1f1f1;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: #f3f3f3;
  border: none;
  border-radius: 50%;
}
.icon-button:hover {
  background: #e9e9e9;
}
.boot-state {
  min-height: 100svh;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  color: var(--muted);
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #dedede;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-view {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background:
    linear-gradient(120deg, #171719f2, #171719b5),
    url("../images/hero-bg.jpg") center/cover;
  color: #fff;
  padding: 50px 10%;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.brand-logo {
  width: 145px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-logo img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}
.login-statement {
  margin: auto 0;
  padding: 60px 0;
}
.login-statement .eyebrow {
  color: #d4d4d7;
  margin-bottom: 22px;
}
.login-statement h1 {
  font-size: clamp(50px, 5.5vw, 90px);
  line-height: 0.99;
  letter-spacing: -1px;
}
.login-statement h1 em {
  color: #f13b40;
  font-style: normal;
}
.login-statement p {
  color: #c0c0c5;
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.7;
}
.login-location {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #bbb;
}
.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fafaf9;
  padding: 70px 45px;
}
.login-card {
  width: min(100%, 365px);
}
.login-lock {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1e4e4;
  color: var(--red);
  border-radius: 7px;
  margin-bottom: 30px;
}
.login-card .eyebrow {
  color: var(--red);
  margin-bottom: 14px;
}
.login-card h2 {
  font-size: 40px;
  letter-spacing: -0.3px;
}
.login-card > p {
  color: var(--muted);
  margin-top: 18px;
  font-size: 13px;
}
.login-card form {
  margin-top: 32px;
}
.login-card form .button {
  margin-top: 18px;
  width: 100%;
  justify-content: space-between;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 30px;
}
.back-link:hover {
  color: var(--red);
}
.login-footer {
  position: absolute;
  bottom: 26px;
  text-align: center;
  font-size: 12px;
  color: #686868;
}
.login-card .setup-notice {
  border-left: 3px solid #b77212;
  background: #fff4dc;
  padding: 14px;
  font-size: 12px;
  color: #725110;
}
.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100svh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  background: var(--ink);
  color: #e1e1e3;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
}
.sidebar-logo {
  width: 147px;
  align-self: center;
  margin: 0 0 36px;
}
.sidebar-caption {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #85858c;
  margin: 0 13px 14px;
}
.side-nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #aaaab0;
  text-align: left;
  font-size: 12px;
  min-height: 47px;
}
.nav-item.active {
  color: white;
  background: var(--red);
}
.nav-item:not(.active):hover {
  background: #262629;
  color: #fff;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 13px;
  padding: 24px 12px 0;
}
.sidebar-bottom a,
.sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 0;
  color: #b7b7bd;
  font-size: 12px;
  text-align: left;
  min-height: 34px;
}
.sidebar-bottom a .icon {
  margin-left: auto;
  width: 15px;
}
.sidebar-bottom button .icon {
  width: 17px;
}
.sidebar-bottom > span {
  border-top: 1px solid #353538;
  padding-top: 22px;
  margin-top: 12px;
  color: #d3d3d7;
  letter-spacing: 1.2px;
  font-size: 12px;
}
.sidebar-bottom small {
  color: #898990;
  font-size: 12px;
  letter-spacing: 0;
  display: block;
  margin-top: 6px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 71px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.breadcrumb {
  display: flex;
  gap: 13px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #696970;
}
.breadcrumb strong {
  font-weight: 600;
  color: #525257;
}
.breadcrumb > span {
  color: #c1c1c5;
}
.team-badge {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: #65656c;
}
.team-badge > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  background: #ededee;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #48484b;
}
.dashboard {
  max-width: 1530px;
  margin: auto;
  padding: 36px 40px 20px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.page-heading h1 {
  font-size: 42px;
  letter-spacing: -0.4px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.page-heading > .button {
  flex: none;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e9dfbf;
  background: #fcf8ed;
  padding: 14px 17px;
  margin-bottom: 23px;
  border-radius: 5px;
  font-size: 12px;
  color: #796025;
}
.notice > .icon {
  margin-top: 1px;
  width: 18px;
  height: 18px;
}
.notice strong {
  font-size: 12px;
  font-weight: 600;
}
.notice p {
  margin-top: 2px;
  color: #88733f;
}
.notice.configured {
  border-color: #dbe8db;
  background: #f0f6ee;
  color: #3d6647;
}
.notice.configured p {
  color: #5a765f;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 19px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  min-width: 0;
}
.stat-card:hover {
  border-color: #bdbdc2;
  box-shadow: 0 4px 12px #17171906;
}
.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #55555d;
}
.stat-label .icon {
  width: 18px;
  height: 18px;
  color: #696971;
}
.stat-card > strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 47px;
  line-height: 1.2;
}
.stat-card > span:last-child {
  font-size: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: #67676f;
}
.stat-card > span:last-child > span {
  color: #a4a4aa;
}
.stat-card-ready {
  border-bottom: 3px solid var(--red);
  padding-bottom: 17px;
}
.stat-card-ready > strong {
  color: var(--red);
}
.stat-card-ready .stat-label .icon {
  color: var(--red);
}
.orders-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 25px 25px 20px;
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
}
.panel-heading h2 > span {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  color: #65656c;
  background: #f0f0f1;
  border-radius: 4px;
  min-width: 23px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.panel-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.filter-toolbar {
  padding: 0 25px 17px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.search-field {
  position: relative;
  max-width: 405px;
  flex: 1;
}
.search-field > .icon {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 17px;
  height: 17px;
  color: #909097;
}
.search-field input {
  min-height: 42px;
  padding: 10px 12px 10px 38px;
  font-size: 12px;
  background: #fafafa;
}
.date-field {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  position: relative;
}
.date-field label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.date-field input {
  font-size: 12px;
  min-height: 42px;
  width: 148px;
  padding: 9px 11px;
  background: #fafafa;
}
.date-field button {
  border: 0;
  background: #ededee;
  border-radius: 3px;
  font-size: 20px;
  min-height: 40px;
  min-width: 32px;
  color: #626268;
}
.status-filters {
  display: flex;
  gap: 22px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.filter-chip {
  flex: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 0 14px;
  color: #64646d;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  min-height: 43px;
}
.filter-chip.active {
  border-bottom-color: var(--red);
  color: var(--red);
}
.filter-chip:hover {
  color: var(--red);
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}
.orders-table th {
  font-size: 12px;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: #66666e;
  background: #fafafa;
  padding: 13px 12px;
}
.orders-table td {
  padding: 18px 12px;
  border-bottom: 1px solid #efeff0;
  vertical-align: middle;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.orders-table th:first-child,
.orders-table td:first-child {
  padding-left: 25px;
  width: 26%;
}
.orders-table th:nth-child(2) {
  width: 16%;
}
.orders-table th:nth-child(3) {
  width: 17%;
}
.orders-table th:nth-child(4) {
  width: 17%;
}
.orders-table th:nth-child(5) {
  width: 19%;
}
.orders-table th:last-child {
  width: 5%;
}
.orders-table td:last-child {
  padding: 8px;
}
.orders-table tbody tr:last-child td {
  border-bottom: 0;
}
.orders-table tbody tr:hover {
  background: #fdfdfc;
}
.customer-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.customer-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 5px;
  background: #f1f1f1;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #62626a;
}
.customer-cell strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.cell-secondary {
  display: block;
  color: #65656d;
  font-size: 12px;
  margin-top: 3px;
}
.cell-service {
  color: #53535b;
}
.plate-label {
  font-size: 12px;
  color: #919197;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  background: #f2f2f2;
  color: #666;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: currentColor;
  border-radius: 50%;
}
.status-solicitado {
  color: #916415;
  background: #faf3e4;
}
.status-confirmado {
  color: #526878;
  background: #edf2f5;
}
.status-em_andamento {
  color: #9a5021;
  background: #fcf0e5;
}
.status-pronto {
  color: #25714c;
  background: #e9f5ee;
}
.status-entregue {
  color: #6a6a74;
  background: #eeeeef;
}
.status-cancelado {
  color: #a15156;
  background: #f7edef;
}
.notification-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #85858d;
  font-size: 12px;
}
.notification-status .icon {
  width: 13px;
  height: 13px;
}
.notification-status.sent {
  color: #347a51;
}
.notification-status.failed {
  color: #b14e42;
}
.notification-status.pending {
  color: #956d2c;
}
.row-button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
  border-radius: 4px;
  color: #666;
}
.row-button:hover {
  background: #f0f0f0;
  color: var(--red);
}
.row-button .icon {
  width: 17px;
  height: 17px;
}
.list-state {
  padding: 52px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.list-state h3 {
  font-size: 26px;
  margin-top: 9px;
}
.list-state p {
  font-size: 12px;
  color: #818188;
  max-width: 370px;
}
.list-state > .button {
  margin-top: 10px;
}
.list-state > strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #9c9ca3;
}
.empty-icon .icon {
  width: 24px;
  height: 24px;
}
.panel-footer {
  padding: 14px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #909097;
  font-size: 12px;
  min-height: 44px;
}
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 26px;
  color: #a0a0a6;
  font-size: 12px;
}
.dashboard-footer > span:first-child {
  font-weight: 600;
  letter-spacing: 1.1px;
}
dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  box-shadow: 0 20px 80px #0003;
  background: #fff;
  max-height: calc(100svh - 48px);
  width: min(650px, calc(100% - 32px));
  border-radius: 8px;
}
dialog::backdrop {
  background: #0d0d1266;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(520px, 100%);
  height: 100svh;
  max-height: 100svh;
  border-radius: 0;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
.dialog-heading .eyebrow {
  font-size: 12px;
  color: var(--red);
  margin-bottom: 7px;
}
.dialog-heading h2 {
  font-size: 31px;
}
.dialog-content {
  padding: 26px 28px;
}
.detail-customer {
  display: flex;
  gap: 14px;
  margin: 26px 0;
}
.detail-customer .customer-avatar {
  width: 46px;
  height: 46px;
  font-size: 14px;
}
.detail-customer h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}
.detail-customer a,
.detail-customer p {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-customer a:hover {
  color: var(--red);
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  gap: 22px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-facts > div {
  min-width: 0;
}
.detail-facts dt {
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #68686f;
  margin-bottom: 5px;
}
.detail-facts dd {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-section {
  margin: 22px 0;
}
.detail-section h3 {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.detail-section p {
  font-size: 12px;
  color: #74747c;
  overflow-wrap: anywhere;
}
.preserve-lines {
  white-space: pre-wrap;
}
.notification-detail {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px;
  background: #f7f6f3;
  border: 1px solid #eceae5;
  border-radius: 5px;
  margin: 24px 0;
}
.notification-detail > .icon {
  margin-top: 3px;
  color: #978269;
  width: 18px;
  height: 18px;
}
.notification-detail strong {
  font-size: 12px;
  font-weight: 600;
}
.notification-detail p {
  font-size: 12px;
  color: #66635d;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.text-button {
  border: 0;
  background: none;
  padding: 10px 0 0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  min-height: 35px;
}
.detail-form label,
.dialog-content form > label {
  margin-top: 18px;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 16px;
  line-height: 1.6;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 26px;
}
.form-message {
  font-size: 12px;
  border-radius: 4px;
  padding: 11px 13px;
  margin: 14px 0;
}
.form-message.error {
  color: #a63239;
  background: #fff0f0;
  border: 1px solid #f1d6d8;
}
.list-error {
  margin: 18px 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-full {
  grid-column: 1/-1;
}
.field-full.field-help {
  margin: -5px 0 0;
}
.dialog-content fieldset {
  padding: 0;
  margin: 0 0 28px;
  border: 0;
  min-width: 0;
}
.dialog-content legend {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
}
.dialog-content legend > span {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  color: #af1720;
  background: #fceded;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 3px;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}
.checkbox-field input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--red);
}
.checkbox-field > span {
  color: #595960;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  max-width: calc(100% - 32px);
  width: max-content;
  border-radius: 6px;
  box-shadow: 0 5px 25px #0002;
  background: #222226;
  color: #fff;
  font-size: 12px;
}
.noscript-message {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
  text-align: center;
}
@media (min-width: 1600px) {
  .dashboard {
    padding-top: 48px;
  }
  .page-heading h1 {
    font-size: 48px;
  }
  .orders-table td {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .stats-grid {
    margin-bottom: 35px;
  }
  .stat-card {
    padding: 23px;
  }
  .stat-card-ready {
    padding-bottom: 21px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar {
    padding: 0 26px;
  }
  .dashboard {
    padding: 28px 26px 20px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-card-ready {
    padding-bottom: 13px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-label .icon {
    width: 16px;
  }
  .stat-card > span:last-child {
    font-size: 12px;
  }
  .status-filters {
    gap: 18px;
  }
  .orders-table th:nth-child(2) {
    width: 15%;
  }
  .orders-table th:nth-child(3) {
    width: 16%;
  }
  .orders-table th:nth-child(4) {
    width: 18%;
  }
  .orders-table th:nth-child(5) {
    width: 19%;
  }
  .orders-table th:first-child {
    width: 27%;
  }
  .orders-table td {
    padding-left: 8px;
    padding-right: 8px;
  }
  .customer-avatar {
    display: none;
  }
  .detail-customer .customer-avatar {
    display: flex;
  }
  .notification-status {
    font-size: 12px;
  }
  .page-heading h1 {
    font-size: 38px;
  }
}
@media (max-width: 1000px) {
  .orders-table thead {
    display: none;
  }
  .orders-table,
  .orders-table tbody {
    display: block;
  }
  .orders-table tbody {
    padding: 0 20px;
  }
  .orders-table tr {
    display: grid;
    grid-template-columns: 1.15fr 1fr 42px;
    gap: 13px 12px;
    position: relative;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
  }
  .orders-table tbody tr:last-child {
    border: 0;
  }
  .orders-table td,
  .orders-table td:first-child,
  .orders-table td:last-child {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .orders-table td:first-child {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .orders-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .orders-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .orders-table td:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }
  .orders-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
  }
  .orders-table td:last-child {
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
    justify-self: end;
  }
  .orders-table td:nth-child(2)::before,
  .orders-table td:nth-child(3)::before {
    display: block;
    color: #666;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    content: attr(data-label);
    text-transform: uppercase;
  }
  .customer-avatar {
    display: flex;
  }
  .customer-cell strong {
    font-size: 12px;
  }
  .row-button {
    height: 52px;
    width: 36px;
    background: #f8f8f8;
  }
  .notification-status {
    font-size: 12px;
  }
  .status-badge {
    font-size: 12px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card {
    padding: 18px;
  }
  .stat-card-ready {
    padding-bottom: 16px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-card > span:last-child {
    font-size: 12px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .page-heading > .button {
    font-size: 12px;
    padding: 11px 13px;
  }
  .login-brand {
    padding-left: 9%;
    padding-right: 9%;
  }
  .login-card h2 {
    font-size: 35px;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 10px 16px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }
  .sidebar-logo {
    width: 105px;
    margin: 0;
    align-self: center;
  }
  .sidebar-caption {
    display: none;
  }
  .side-nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .nav-item {
    padding: 10px 6px;
    justify-content: center;
    font-size: 12px;
    gap: 6px;
    min-height: 43px;
    border-radius: 4px 4px 0 0;
  }
  .nav-item .icon {
    width: 15px;
    height: 15px;
  }
  .sidebar-bottom {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .sidebar-bottom > span,
  .sidebar-bottom > a {
    display: none;
  }
  .sidebar-bottom > button {
    font-size: 12px;
    gap: 6px;
    min-height: 42px;
  }
  .sidebar-bottom > button .icon {
    width: 15px;
  }
  .topbar {
    height: 50px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .team-badge {
    font-size: 12px;
    gap: 6px;
  }
  .team-badge > span {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  .dashboard {
    padding: 24px 17px 18px;
  }
  .page-heading {
    gap: 15px;
    flex-direction: column;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 37px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .eyebrow {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .page-heading > .button {
    font-size: 12px;
    min-height: 43px;
  }
  .stats-grid {
    gap: 10px;
    margin-bottom: 22px;
  }
  .stat-card {
    padding: 15px 14px;
    gap: 7px;
  }
  .stat-card-ready {
    padding-bottom: 13px;
  }
  .stat-label {
    font-size: 12px;
    gap: 5px;
  }
  .stat-label .icon {
    width: 15px;
    height: 15px;
  }
  .stat-card > strong {
    font-size: 39px;
  }
  .stat-card > span:last-child {
    font-size: 12px;
    gap: 5px;
  }
  .notice {
    font-size: 12px;
    padding: 13px 14px;
    gap: 9px;
    margin-bottom: 19px;
  }
  .notice strong {
    font-size: 12px;
  }
  .panel-heading {
    padding: 20px 17px 17px;
    gap: 10px;
  }
  .panel-heading h2 {
    font-size: 25px;
  }
  .panel-heading p {
    font-size: 12px;
    max-width: 200px;
  }
  .panel-heading .button-quiet {
    padding: 7px;
  }
  .panel-heading .button-quiet > span {
    display: none;
  }
  .filter-toolbar {
    padding: 0 17px 12px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .search-field {
    max-width: none;
    flex: auto;
  }
  .date-field {
    margin: 0;
    justify-content: flex-start;
  }
  .date-field input {
    width: 160px;
    flex: 1;
  }
  .date-field label {
    font-size: 12px;
    width: 25px;
  }
  .status-filters {
    padding: 0 17px;
    gap: 20px;
  }
  .filter-chip {
    font-size: 12px;
  }
  .orders-table tbody {
    padding: 0 17px;
  }
  .orders-table tr {
    grid-template-columns: 1fr 1fr 29px;
    gap: 11px 8px;
  }
  .row-button {
    width: 27px;
    height: 44px;
  }
  .customer-cell {
    gap: 10px;
  }
  .customer-cell strong {
    font-size: 12px;
  }
  .cell-secondary {
    font-size: 12px;
  }
  .customer-avatar {
    width: 32px;
    height: 32px;
  }
  .cell-service {
    font-size: 12px;
  }
  .orders-table td {
    font-size: 12px;
  }
  .notification-status {
    font-size: 12px;
    gap: 4px;
  }
  .status-badge {
    font-size: 12px;
    padding: 5px 7px;
  }
  .panel-footer {
    padding: 12px 17px;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .dashboard-footer {
    font-size: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  .list-state {
    padding: 35px 20px;
  }
  .list-state h3 {
    font-size: 23px;
  }
  .list-state p {
    font-size: 12px;
  }
  .list-state > .button {
    font-size: 12px;
  }
  .list-error {
    margin: 15px 17px;
  }
  .dialog-heading {
    padding: 22px 20px;
  }
  .dialog-heading h2 {
    font-size: 28px;
  }
  .dialog-heading .eyebrow {
    font-size: 12px;
  }
  .dialog-content {
    padding: 23px 20px;
  }
  .form-grid {
    gap: 14px;
  }
  .dialog-actions {
    gap: 8px;
  }
  .dialog-actions > .button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .login-view {
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: 0;
    padding: 23px 28px 30px;
  }
  .login-brand > .brand-logo {
    width: 120px;
  }
  .login-statement {
    padding: 30px 0 5px;
  }
  .login-statement h1 {
    font-size: 48px;
    line-height: 1;
  }
  .login-statement h1 br:nth-of-type(2) {
    display: none;
  }
  .login-statement h1 em {
    display: block;
    margin-top: 5px;
    font-size: 36px;
  }
  .login-statement h1 em br {
    display: none;
  }
  .login-statement .eyebrow {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .login-statement p,
  .login-location {
    display: none;
  }
  .login-panel {
    padding: 38px 28px 65px;
    align-items: stretch;
  }
  .login-card {
    margin: auto;
    width: 100%;
    max-width: 400px;
  }
  .login-lock {
    display: none;
  }
  .login-card h2 {
    font-size: 32px;
  }
  .login-card > p {
    font-size: 12px;
    margin-top: 12px;
  }
  .login-card form {
    margin-top: 24px;
  }
  .login-footer {
    bottom: 20px;
    left: 0;
    right: 0;
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .dashboard {
    padding-left: 12px;
    padding-right: 12px;
  }
  .page-heading h1 {
    font-size: 33px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-label .icon {
    display: none;
  }
  .stat-card > span:last-child {
    font-size: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field-full {
    grid-column: auto;
  }
  .notification-status {
    font-size: 12px;
  }
  .orders-table tr {
    grid-template-columns: 1fr 1fr 23px;
  }
  .row-button {
    width: 23px;
  }
  .dialog-heading {
    padding: 20px 16px;
  }
  .dialog-content {
    padding: 20px 16px;
  }
  .dialog-heading h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep the operating interface readable at desk and on the workshop floor. */
.nav-item,
.button,
.page-heading p,
.cell-service,
.orders-table td,
.detail-facts dd,
.detail-customer h3 {
  font-size: 14px;
}
.status-badge,
.notification-status {
  font-size: 12px;
  white-space: normal;
}
.cell-secondary,
.filter-chip,
.panel-footer,
.stat-card > span:last-child,
.stat-label {
  font-size: 12px;
}
.orders-table th {
  font-size: 11px;
  color: #62626b;
}
.notice,
.notice strong,
.notice p,
.field-help,
.checkbox-field,
.notification-detail p {
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: #6a6a72;
}
.breadcrumb,
.stat-card > span:last-child,
.filter-chip,
.panel-footer,
.dashboard-footer,
.cell-secondary {
  color: #62626a;
}
@media (max-width: 700px) {
  .nav-item {
    font-size: 12px;
  }
  .sidebar-bottom > button {
    font-size: 11px;
  }
  .page-heading > .button {
    font-size: 14px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 15px 12px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-card > span:last-child {
    font-size: 11px;
  }
  .orders-table tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .orders-table td:first-child {
    padding-right: 42px;
  }
  .orders-table td:last-child {
    position: absolute;
    right: 0;
    top: 17px;
  }
  .row-button {
    width: 40px;
    height: 44px;
  }
  .orders-table td:nth-child(2)::before,
  .orders-table td:nth-child(3)::before {
    font-size: 10px;
    color: #686871;
  }
  .orders-table td {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .status-badge,
  .notification-status {
    font-size: 11px;
    max-width: 100%;
  }
  .notification-status {
    flex-wrap: wrap;
  }
  .cell-secondary {
    font-size: 12px;
  }
  .customer-cell strong {
    font-size: 14px;
  }
  .cell-service {
    font-size: 13px;
  }
  .filter-chip {
    font-size: 12px;
  }
  .panel-footer {
    font-size: 11px;
  }
  .dashboard-footer {
    font-size: 11px;
  }
  .dialog-actions > .button {
    font-size: 13px;
  }
  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  #password {
    font-size: 16px;
  }
  .stat-card > span:last-child > span {
    display: none;
  }
}

/* ══════════════════════════════════════
   WhatsApp Panel
══════════════════════════════════════ */
.whatsapp-panel {
  padding: 0 40px 60px;
  max-width: 860px;
}
.instagram-panel {
  padding: 0 40px 60px;
  max-width: 1040px;
}
.ig-section-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.ig-preferences {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ig-preferences label {
  font-weight: 600;
}
.ig-preferences input {
  width: 72px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.ig-preferences span {
  color: var(--muted);
}
.ig-media-state,
.ig-message {
  margin: 0;
  padding: 28px 24px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
}
.ig-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
  background: var(--white);
}
.ig-media-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: #ecece8;
}
.ig-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ig-media-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ig-media-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid white;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.ig-media-card:has(input:checked) {
  border-color: var(--red);
}
.ig-media-card:has(input:checked) .ig-media-check {
  background: var(--red);
}
.ig-save-actions {
  margin: 0;
  padding: 0 24px 24px;
  background: var(--white);
}
.wp-section {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.wp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.wp-section-head h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.wp-section-desc {
  padding: 0 24px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--white);
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.wp-section-desc code {
  background: #f0f0ee;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.wp-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.wp-badge-gray  { background: #eee; color: #555; }
.wp-badge-green { background: #d4f5e2; color: #1a6b3a; }
.wp-badge-red   { background: #fde8e8; color: #c0392b; }
.wp-badge-yellow{ background: #fef5d4; color: #8a6200; }
.wp-card {
  padding: 24px;
  background: var(--white);
}
.wp-card + .wp-card {
  border-top: 1px solid var(--line);
}
.wp-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.wp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
/* QR Code */
.wp-qr-box { text-align: center; }
.wp-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 16px auto;
}
.wp-qr-wrap img {
  width: 220px;
  height: 220px;
  border: 6px solid var(--line);
  border-radius: 8px;
  image-rendering: pixelated;
}
.wp-qr-status {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
/* Conectado */
.wp-connected-box {}
.wp-connected-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wp-connected-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d4f5e2;
  color: #1a6b3a;
  font-size: 20px;
  flex-shrink: 0;
}
.wp-connected-info strong {
  display: block;
  font-size: 15px;
}
.wp-connected-info p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
/* Mensagens */
.wp-messages-grid {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
}
.wp-msg-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.wp-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.wp-msg-header label {
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wp-msg-stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wp-msg-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
/* Toggle switch */
.wp-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
}
.wp-switch input { opacity: 0; width: 0; height: 0; }
.wp-switch-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.wp-switch-slider::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.wp-switch input:checked + .wp-switch-slider { background: var(--green); }
.wp-switch input:checked + .wp-switch-slider::before { transform: translateX(14px); }
.wp-msg-body {
  padding: 12px 16px;
  background: var(--white);
}
.wp-msg-body textarea {
  width: 100%;
  resize: vertical;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  font-family: var(--body);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
}
.wp-msg-body textarea:focus {
  outline: none;
  border-color: #aaa;
}
.wp-msg-body textarea:disabled {
  opacity: 0.4;
  resize: none;
}
.wp-saved-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
/* Danger outline button */
.button-danger-outline {
  background: transparent;
  border: 1px solid #d9222b;
  color: #d9222b;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.button-danger-outline:hover {
  background: #d9222b;
  color: white;
}
@media (max-width: 640px) {
  .whatsapp-panel { padding: 0 16px 40px; }
  .instagram-panel { padding: 0 16px 40px; }
  .wp-section-head { padding: 16px; }
  .wp-card { padding: 16px; }
  .wp-messages-grid { padding: 16px; }
  .ig-preferences { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .ig-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .ig-save-actions { padding: 0 16px 16px; }
}
