:root {
  color-scheme: light;
  --ink: #1b2733;
  --muted: #647182;
  --line: #d8e1ea;
  --soft: #f3f7fa;
  --brand: #05349b;
  --brand-dark: #04256f;
  --accent: #ffbc0a;
  --green: #21845b;
  --yellow: #9b6b00;
  --blue: #2367a8;
  --danger: #a84040;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #edf3f6;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--brand-dark);
}

.app-shell {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

body.auth-loading .login-panel,
body.auth-loading .system-panel {
  display: none !important;
}

.module-locked {
  display: none !important;
}

.permission-hidden {
  display: none !important;
}

.login-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  letter-spacing: 1px;
}

.n1-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #31c6ff, #1679e8);
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.18), 0 12px 28px rgba(0, 128, 255, 0.28);
  font-weight: 900;
  letter-spacing: 0;
}

.n1-mark.small {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.n1-mark.large {
  width: 78px;
  height: 78px;
  font-size: 32px;
}

.login-bg,
.login-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.login-bg {
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: opacity 1200ms ease;
}

.login-bg.active {
  opacity: 1;
}

.login-bg[data-bg="0"] {
  background-image: url("assets/hero-slide-1.png");
}

.login-bg[data-bg="1"] {
  background-image: url("assets/hero-slide-3.png");
}

.login-bg[data-bg="2"] {
  background-image: url("assets/hero-slide-4.png");
}

.login-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 12, 48, 0.92) 0%, rgba(4, 30, 86, 0.72) 44%, rgba(235, 246, 250, 0.16) 100%),
    linear-gradient(180deg, rgba(2, 12, 48, 0.68) 0%, rgba(255, 255, 255, 0.02) 18%, rgba(4, 19, 51, 0.52) 100%);
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 12px 32px;
  background: rgba(2, 12, 28, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.site-brand strong {
  font-size: 17px;
  white-space: nowrap;
}

.site-brand span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(4, 20, 58, 0.3);
  backdrop-filter: blur(14px);
}

.site-nav a,
.site-nav button {
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav .nav-cta {
  color: #09243a;
  background: #fff;
}

.site-nav .nav-cta:hover {
  color: #09243a;
  background: var(--accent);
}

.login-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(360px, 430px);
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.login-copy {
  max-width: 680px;
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 8px 12px;
  color: #e8f8ff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-client-logo {
  width: min(520px, 100%);
  margin-bottom: 24px;
  padding: 16px 20px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 22px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.hero-logo-top {
  color: var(--accent);
  font-size: 40px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 2px;
  text-shadow:
    0 1px 0 #ffe08a,
    0 3px 0 rgba(131, 84, 0, 0.45),
    0 12px 24px rgba(0, 0, 0, 0.3);
}

.hero-logo-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 12px;
  text-shadow:
    0 1px 0 #6f91ff,
    0 4px 0 rgba(0, 18, 84, 0.65),
    0 16px 28px rgba(0, 0, 0, 0.36);
}

.hero-logo-bottom span:first-child {
  padding-left: 4px;
}

.hero-eye-mark {
  position: relative;
  display: inline-block;
  width: 74px;
  height: 38px;
  margin-left: -8px;
  border: 6px solid #fff;
  border-radius: 50% 8px 50% 8px;
  box-shadow:
    0 3px 0 rgba(0, 18, 84, 0.62),
    0 14px 24px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
}

.hero-eye-mark::before {
  content: "";
  position: absolute;
  inset: 7px 26px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: rgba(5, 52, 155, 0.22);
}

.hero-eye-mark::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 39px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.hero-logo-vision {
  margin-top: 8px;
  padding-right: 22px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 16px;
  text-align: right;
  text-shadow:
    0 2px 0 rgba(0, 18, 84, 0.7),
    0 12px 22px rgba(0, 0, 0, 0.32);
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.login-copy h1 {
  max-width: 620px;
  margin: 18px 0 16px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.login-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.6;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
}

.login-panel form,
.order-form {
  display: grid;
  gap: 14px;
}

.login-card {
  position: relative;
  padding: 30px 34px 32px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 253, 0.9));
  box-shadow:
    0 34px 90px rgba(2, 14, 48, 0.42),
    0 10px 26px rgba(5, 52, 155, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  animation: loginFloatIn 700ms ease both;
  transform: translateY(-6px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(255, 188, 10, 0.65), rgba(5, 52, 155, 0.18), rgba(255, 255, 255, 0.7));
  filter: blur(12px);
  opacity: 0.48;
}

.login-card::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.login-card:hover {
  box-shadow:
    0 38px 100px rgba(2, 14, 48, 0.46),
    0 12px 32px rgba(5, 52, 155, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@keyframes loginFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(-6px) scale(1);
  }
}

.client-logo {
  display: grid;
  justify-items: center;
  gap: 0;
  margin: 0 auto 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e1e8f0;
  line-height: 1;
}

.client-logo-main {
  color: var(--accent);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo-o {
  display: inline-block;
  margin-right: 2px;
  color: var(--accent);
}

.client-logo-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  color: var(--brand);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 10px;
}

.client-logo-bottom span:first-child {
  padding-left: 9px;
}

.eye-mark {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
  margin-left: -6px;
  border: 5px solid var(--brand);
  border-radius: 50% 8px 50% 8px;
  transform: rotate(-2deg);
}

.eye-mark::before {
  content: "";
  position: absolute;
  inset: 6px 20px;
  border: 5px solid var(--brand);
  border-radius: 50%;
  background: #fff;
}

.eye-mark::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 29px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.client-logo-vision {
  justify-self: end;
  margin-top: 7px;
  color: var(--brand);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 10px;
}

.login-card h2 {
  margin: 12px 0 8px;
  font-size: 30px;
}

.login-section-title {
  position: relative;
  display: inline-flex;
  width: max-content;
  padding-bottom: 12px;
}

.login-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  right: -72px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 68%, var(--accent) 68%, var(--accent) 100%);
  box-shadow: 0 8px 18px rgba(5, 52, 155, 0.22);
}

.login-section-title::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 188, 10, 0.16);
}

.login-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.login-card small {
  color: var(--muted);
  text-align: center;
}

.login-instagram {
  display: block;
  margin-top: 4px;
}

.login-instagram a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.login-instagram a:hover {
  text-decoration: underline;
}

.visit-card {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.visit-card strong {
  font-size: 20px;
}

.visit-card span {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.quick-actions a {
  border-radius: 8px;
  padding: 10px 13px;
  color: #083447;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.quick-actions button {
  border-radius: 8px;
  padding: 10px 13px;
  cursor: pointer;
}

.quick-actions button:last-child {
  color: #fff;
  background: var(--brand);
}

.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 12, 34, 0.68);
  backdrop-filter: blur(10px);
}

.schedule-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 90px rgba(2, 14, 48, 0.42);
}

.schedule-card h2 {
  margin: 8px 0;
}

.schedule-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #e8f1f7;
  font-size: 24px;
}

.schedule-form {
  display: grid;
  gap: 13px;
}

.schedule-success {
  margin-top: 14px;
  border: 1px solid #a8e2c2;
  border-radius: 8px;
  padding: 12px;
  color: #14633f;
  background: #dff8eb;
  font-weight: 800;
  line-height: 1.4;
}

.system-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 20px 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 188, 10, 0.16), transparent 28%),
    linear-gradient(180deg, #071833 0%, #0b2445 58%, #071426 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  box-shadow: 18px 0 40px rgba(5, 20, 42, 0.18);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.logo-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: grid;
  gap: 7px;
}

.client-system-brand {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 188, 10, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 34px rgba(0, 0, 0, 0.2);
}

.client-mini-logo {
  display: grid;
  line-height: 1;
}

.client-mini-logo .client-mini-top {
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.client-mini-logo strong {
  margin-top: 4px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.client-mini-logo span:last-child {
  justify-self: end;
  margin-top: 4px;
  color: #cfe3ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.n1-powered {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #31c6ff, #1679e8);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 128, 255, 0.24);
}

.unit-card {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.unit-card span {
  color: #ffcf45;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.unit-card select {
  border-color: rgba(255, 255, 255, 0.18);
  padding: 10px;
  color: #fff;
  background: rgba(7, 24, 51, 0.92);
  font-weight: 800;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.18);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.sidebar-profile div {
  min-width: 0;
  flex: 1;
}

.sidebar-profile strong,
.sidebar-profile span {
  display: block;
}

.sidebar-profile strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.profile-logout {
  display: grid;
  place-items: center;
  width: auto;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: #ffccd2;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.profile-logout:hover {
  color: #8a2730;
  background: #f8e4e7;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  border: 1px solid transparent;
  padding: 10px;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.16);
}

.nav-group-label {
  margin: 10px 10px 2px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #bfe5ff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-button.active .nav-icon,
.nav-button:hover .nav-icon {
  background: linear-gradient(180deg, #31c6ff, #1679e8);
  box-shadow: 0 10px 20px rgba(0, 128, 255, 0.22);
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.icon-dashboard::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 8px 0 0 -2px currentColor, 0 8px 0 -2px currentColor;
}

.icon-clientes::before {
  top: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-clientes::after {
  bottom: 6px;
  width: 16px;
  height: 8px;
  border: 2px solid currentColor;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 0;
}

.icon-ordens::before {
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-ordens::after {
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.icon-estoque::before {
  width: 16px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: translateY(3px);
}

.icon-estoque::after {
  top: 8px;
  width: 12px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.icon-caixa::before {
  width: 17px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-caixa::after {
  right: 6px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-whatsapp::before {
  width: 17px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 10px;
}

.icon-whatsapp::after {
  bottom: 6px;
  left: 9px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-18deg);
}

.workspace {
  min-width: 0;
  padding: 24px 28px 40px;
  background:
    radial-gradient(circle at top right, rgba(255, 188, 10, 0.08), transparent 28%),
    #edf3f6;
}

.topbar,
.section-head,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 15, 56, 0.9), rgba(5, 52, 155, 0.64), rgba(255, 255, 255, 0.1)),
    url("assets/hero-slide-3.png") center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(5, 32, 76, 0.14);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 188, 10, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.topbar-copy,
.topbar-actions {
  position: relative;
  z-index: 1;
}

.topbar .eyebrow {
  color: #ffcf45;
}

.topbar h2 {
  margin-top: 5px;
  color: #fff;
  font-size: 38px;
}

.topbar p {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.5;
}

.sinc-license {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 999px;
  background: rgba(2, 17, 34, 0.28);
  color: #dff6ff;
  font-size: 12px;
  font-weight: 800;
}

.sinc-license em {
  color: #9edff8;
  font-style: normal;
}

.sinc-license.error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.24);
}

.sinc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.sinc-license.error .sinc-dot {
  background: #f87171;
  box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.14);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h2,
h3 {
  margin: 0;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

.secondary {
  color: var(--brand-dark);
  background: #dcecf2;
}

.secondary:hover {
  background: #c8e0e9;
}

.logout-button {
  color: #8a2730;
  background: #f8e4e7;
}

.logout-button:hover {
  background: #efcbd1;
}

.link-button {
  padding: 0;
  color: var(--brand);
  background: transparent;
}

.link-button:hover {
  color: var(--brand-dark);
  background: transparent;
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric,
.panel,
.inventory-grid article,
.automation-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 164px;
  padding: 18px 18px 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(10, 38, 69, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.metric::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(5, 52, 155, 0.08);
}

.metric:hover,
.metric:focus {
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(10, 38, 69, 0.12);
}

.metric-sales {
  border-color: rgba(255, 188, 10, 0.55);
  background:
    linear-gradient(135deg, rgba(255, 188, 10, 0.14), transparent 52%),
    #fff;
}

.metric-production {
  border-color: rgba(38, 132, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(38, 132, 255, 0.12), transparent 52%),
    #fff;
}

.metric-exams {
  border-color: rgba(33, 132, 91, 0.24);
  background:
    linear-gradient(135deg, rgba(33, 132, 91, 0.12), transparent 52%),
    #fff;
}

.metric-stock {
  border-color: rgba(168, 64, 64, 0.24);
  background:
    linear-gradient(135deg, rgba(168, 64, 64, 0.1), transparent 52%),
    #fff;
}

.metric-ag-pendente {
  border-color: rgba(155, 107, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(155, 107, 0, 0.12), transparent 52%),
    #fff;
}

.metric-ag-confirmado {
  border-color: rgba(35, 103, 168, 0.26);
  background:
    linear-gradient(135deg, rgba(35, 103, 168, 0.12), transparent 52%),
    #fff;
}

.metric-ag-atendido {
  border-color: rgba(33, 132, 91, 0.24);
  background:
    linear-gradient(135deg, rgba(33, 132, 91, 0.12), transparent 52%),
    #fff;
}

.metric-ag-cancelado {
  border-color: rgba(168, 64, 64, 0.24);
  background:
    linear-gradient(135deg, rgba(168, 64, 64, 0.1), transparent 52%),
    #fff;
}

.metric-ag-pendente .metric-icon { background: var(--yellow); }
.metric-ag-confirmado .metric-icon { background: var(--blue); }
.metric-ag-atendido .metric-icon { background: var(--green); }
.metric-ag-cancelado .metric-icon { background: var(--danger); }

.metric-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.metric span,
.metric small,
.metric em,
.message-list span,
.timeline span,
.inventory-grid span,
.inventory-grid small,
.automation-list span,
.cash-summary span {
  color: var(--muted);
}

.metric strong {
  font-size: 26px;
}

.metric em {
  align-self: end;
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand);
  background: rgba(5, 52, 155, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.service-grid article {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 122px;
  padding: 16px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f8fbfd);
  box-shadow: 0 12px 28px rgba(10, 38, 69, 0.05);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-grid article::after {
  content: "Abrir";
  position: absolute;
  right: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--brand);
  background: #eaf4fb;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.service-grid article:hover,
.service-grid article:focus {
  outline: 0;
  border-color: rgba(5, 52, 155, 0.3);
  box-shadow: 0 18px 40px rgba(10, 38, 69, 0.12);
  transform: translateY(-2px);
}

.service-grid article:hover::after,
.service-grid article:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.service-grid span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.service-grid strong {
  font-size: 18px;
}

.service-grid small {
  color: var(--muted);
  line-height: 1.4;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 20px;
  box-shadow: 0 12px 30px rgba(10, 38, 69, 0.05);
}

.timeline,
.message-list,
.automation-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline div,
.message-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.timeline div:last-child,
.message-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 18, 39, 0.62);
}

.dashboard-modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 25, 54, 0.28);
}

.dashboard-modal-card.wide {
  width: min(920px, 100%);
}

#userModal .dashboard-modal-card {
  width: min(980px, 100%);
}

.dashboard-form {
  display: grid;
  grid-template-columns: 160px 180px minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.dashboard-form label {
  display: grid;
  gap: 6px;
  color: var(--brand-dark);
  font-weight: 900;
}

.dashboard-form .wide {
  grid-column: 1 / -1;
}

.user-modal-tabs,
.user-tab-panel,
.permission-toolbar,
.permissions-grid {
  grid-column: 1 / -1;
}

.user-modal-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef6fb;
}

.user-modal-tab {
  flex: 1;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #003b70;
  font-weight: 900;
  min-height: 40px;
}

.user-modal-tab.active {
  background: linear-gradient(135deg, #12a8ff, #2458df);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(18, 95, 204, 0.22);
  text-shadow: 0 1px 1px rgba(0, 30, 70, 0.22);
}

.user-modal-tab:not(.active) {
  background: #ffffff;
  border: 1px solid #d3e3ef;
}

.user-tab-panel {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.user-tab-panel.active {
  display: grid;
}

.permission-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.permissions-grid {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.permissions-head,
.permission-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(5, 86px);
  align-items: center;
  gap: 8px;
  min-width: 650px;
  padding: 10px 12px;
}

.permissions-head {
  background: #eaf3fb;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.permission-row {
  border-top: 1px solid var(--line);
}

.permission-check {
  display: flex;
  justify-content: center;
}

.permission-check input {
  position: absolute;
  opacity: 0;
}

.permission-check span {
  width: 34px;
  height: 22px;
  border: 1px solid #c6d8e8;
  border-radius: 999px;
  background: #edf4fa;
  cursor: pointer;
  transition: 160ms ease;
}

.permission-check span::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 2px;
  border-radius: 50%;
  background: #8aa0b5;
  transition: 160ms ease;
}

.permission-check input:checked + span {
  border-color: #15a7f8;
  background: #d8f2ff;
}

.permission-check input:checked + span::after {
  transform: translateX(12px);
  background: #0b91dc;
}

.dashboard-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.dashboard-list-row span {
  display: grid;
  gap: 3px;
}

.dashboard-list-row small,
.modal-helper {
  color: var(--muted);
}

.alert-status {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.table {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-bottom: 14px;
}

.client-table .row {
  grid-template-columns: 1.2fr 0.9fr 0.8fr 1fr;
  align-items: center;
}

.client-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-actions {
  display: flex;
  gap: 6px;
}

.mini-button {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #e8f1f7;
  font-size: 12px;
}

.mini-button.danger {
  color: #8a2730;
  background: #f8e4e7;
}

.client-empty {
  margin-top: 12px;
  border: 1px dashed #bfd0dc;
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.client-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 12, 34, 0.68);
  backdrop-filter: blur(10px);
}

.client-modal-card {
  position: relative;
  width: min(680px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 34px 90px rgba(2, 14, 48, 0.42);
}

.client-modal-card h3 {
  margin: 8px 0 18px;
}

.client-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.client-form .wide,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row.head {
  color: var(--muted);
  background: var(--soft);
  font-weight: 800;
}

.compact .row {
  grid-template-columns: 0.8fr 1.6fr 1fr;
}

.tag {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.green {
  color: var(--green);
  background: #dff4eb;
}

.yellow {
  color: var(--yellow);
  background: #fff0c6;
}

.blue {
  color: var(--blue);
  background: #e1effc;
}

.red {
  color: var(--danger);
  background: #f8e4e7;
}

.section-head {
  margin-bottom: 14px;
}

.os-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

.order-form {
  grid-template-columns: 1fr;
}

.form-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(10, 38, 69, 0.05);
}

.form-block.wide > div:first-child {
  grid-column: 1 / -1;
}

.form-block h4,
.quick-stock h4 {
  margin: 6px 0 0;
  font-size: 20px;
}

.block-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.frame-items {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.frame-item {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.45fr 0.7fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.os-summary {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(5, 52, 155, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 188, 10, 0.14), transparent 48%),
    #fff;
  box-shadow: 0 14px 34px rgba(10, 38, 69, 0.08);
}

.os-summary > strong {
  color: var(--brand);
  font-size: 26px;
}

.os-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.os-summary span {
  color: var(--muted);
}

.os-save-status {
  border: 1px solid #a8e2c2;
  border-radius: 8px;
  padding: 10px;
  color: #14633f;
  background: #dff8eb;
  font-weight: 900;
  line-height: 1.3;
}

.os-history {
  margin-top: 16px;
}

.os-history .panel-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.os-filters {
  display: grid;
  grid-template-columns: 180px 220px;
  gap: 10px;
}

.os-table .row {
  grid-template-columns: 0.7fr 1.2fr 0.8fr 1fr;
  align-items: center;
}

.os-table #osRows .row {
  cursor: pointer;
}

.os-table #osRows .row:hover {
  background: #f6fbff;
}

.os-row-actions {
  display: flex;
  gap: 8px;
}

.os-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 12, 34, 0.68);
  backdrop-filter: blur(10px);
}

.os-modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 34px 90px rgba(2, 14, 48, 0.42);
}

.os-modal-card h3 {
  margin: 8px 0 18px;
  color: var(--brand);
  font-size: 28px;
}

.os-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.os-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.os-detail-grid div span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.os-detail-grid label {
  grid-column: 1 / -1;
}

.os-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.os-print-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.print-os-document {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    width: auto;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  body > *:not(.print-os-document) {
    display: none !important;
  }

  .app-shell {
    display: none !important;
  }

  .print-os-document {
    position: static !important;
    display: block !important;
    width: 100%;
    max-height: 270mm;
    padding: 0;
    color: #111 !important;
    background: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    page-break-after: avoid;
  }

  .print-os-document h1 {
    margin: 0 0 4px;
    color: #05349b;
    font-size: 28px;
  }

  .print-os-document .print-muted {
    color: #606b78;
  }

  .print-os-document table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    page-break-inside: avoid;
  }

  .print-os-document th,
  .print-os-document td {
    border: 1px solid #d0d7de;
    padding: 8px;
    text-align: left;
    font-size: 12px;
  }

  .print-os-document .print-total {
    margin-top: 14px;
    font-size: 20px;
    font-weight: 800;
    text-align: right;
  }

  .print-page {
    position: relative;
    min-height: 255mm;
    padding: 12mm;
    overflow: hidden;
    border: 1px solid #d8e1ec;
    border-radius: 10px;
    background:
      linear-gradient(90deg, #05349b 0 34%, #ffbc0a 34% 38%, #f8fbff 38% 100%),
      #fff;
    background-size: 100% 9px, auto;
    background-repeat: no-repeat;
    box-shadow: none;
  }

  .print-page::before {
    content: "";
    position: absolute;
    right: -35mm;
    top: -38mm;
    width: 90mm;
    height: 90mm;
    border-radius: 50%;
    background: rgba(255, 188, 10, 0.16);
  }

  .print-page::after {
    content: "";
    position: absolute;
    left: -28mm;
    bottom: -44mm;
    width: 105mm;
    height: 105mm;
    border-radius: 50%;
    background: rgba(5, 52, 155, 0.07);
  }

  .print-header,
  .print-title-row,
  .print-section,
  .print-footer {
    position: relative;
    z-index: 1;
  }

  .print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #f4f8ff);
  }

  .print-client-logo {
    min-width: 88mm;
    color: #05349b;
    line-height: 1;
    text-transform: uppercase;
  }

  .print-logo-top {
    color: #ffbc0a;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: 1px;
  }

  .print-logo-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #05349b;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: 8px;
    text-shadow: 0 2px 0 rgba(5, 52, 155, 0.14);
  }

  .print-eye-mark {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    border: 4px solid #05349b;
    border-radius: 70% 42% 70% 42%;
    transform: skewX(-8deg);
  }

  .print-eye-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #05349b;
    transform: translate(-50%, -50%);
  }

  .print-logo-vision {
    margin-left: 56mm;
    color: #05349b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 8px;
  }

  .print-os-chip {
    display: grid;
    gap: 4px;
    min-width: 42mm;
    padding: 12px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #062a76, #05349b);
    text-align: right;
  }

  .print-os-chip span,
  .print-title-row span,
  .print-total span,
  .print-measures span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .print-os-chip strong {
    font-size: 24px;
  }

  .print-title-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 10px;
    margin-top: 12px;
  }

  .print-title-row div,
  .print-measures div {
    display: grid;
    gap: 5px;
    padding: 11px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #fff;
  }

  .print-title-row span,
  .print-measures span {
    color: #5d6a7a;
  }

  .print-title-row strong,
  .print-measures strong {
    color: #0b1726;
    font-size: 14px;
  }

  .print-section {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
  }

  .print-section-title {
    margin-bottom: 9px;
    color: #05349b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.7px;
    text-transform: uppercase;
  }

  .print-products {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #d8e1ec;
    border-radius: 10px;
  }

  .print-products th {
    color: #fff;
    background: #05349b;
    font-size: 11px;
    text-transform: uppercase;
  }

  .print-products th,
  .print-products td {
    border: 0 !important;
    border-bottom: 1px solid #e5edf5 !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
  }

  .print-products tbody tr:last-child td {
    border-bottom: 0 !important;
  }

  .print-products td:nth-child(3),
  .print-products td:nth-child(4) {
    text-align: right;
    font-weight: 800;
  }

  .print-measures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .print-section p {
    margin: 10px 0 0;
    color: #66758a;
    font-size: 11px;
  }

  .print-footer {
    position: absolute;
    left: 12mm;
    right: 12mm;
    bottom: 12mm;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    border-top: 2px solid #eef2f7;
  }

  .print-footer div:first-child {
    display: grid;
    gap: 3px;
    color: #5d6a7a;
    font-size: 11px;
  }

  .print-footer div:first-child span {
    color: #05349b;
    font-weight: 900;
  }

  .print-total {
    display: grid;
    gap: 3px;
    min-width: 46mm;
    margin: 0 !important;
    padding: 12px 14px;
    border-radius: 10px;
    color: #0b1726;
    background: linear-gradient(135deg, #fff6d6, #ffffff);
    text-align: right !important;
  }

  .print-total strong {
    color: #05349b;
    font-size: 22px;
  }

  .print-empty {
    color: #66758a;
    text-align: center;
  }
}

.inventory-grid,
.cash-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-editor {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.stock-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.stock-mode button {
  color: var(--brand-dark);
  background: #dcecf2;
}

.stock-mode button.active {
  color: #fff;
  background: var(--brand);
}

.stock-view {
  display: none;
}

.stock-view.active {
  display: grid;
  gap: 14px;
}

.stock-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stock-dashboard article {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 15px;
  border: 1px solid #dce7f1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(10, 38, 69, 0.06);
}

.stock-dashboard span,
.stock-dashboard small {
  color: var(--muted);
  font-weight: 700;
}

.stock-dashboard strong {
  color: var(--brand);
  font-size: 28px;
  line-height: 1;
}

.stock-warning-card {
  border-color: rgba(255, 126, 20, 0.34) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 188, 10, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.95) !important;
}

.stock-alerts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stock-alerts div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid #ffd5a7;
  border-radius: 8px;
  background: #fff8ed;
}

.stock-alerts strong {
  color: #9b3f00;
}

.stock-alerts span {
  color: #6b5a49;
  font-size: 13px;
}

.stock-list-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px 180px;
  gap: 10px;
}

.stock-products-table .row {
  grid-template-columns: 1.35fr 0.8fr 0.55fr 0.75fr 0.35fr 0.35fr 0.65fr 0.5fr 0.85fr;
}

.stock-products-table .row:not(.head) {
  align-items: center;
}

.stock-products-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.stock-status {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.stock-status.ok {
  color: #08653a;
  background: #dbf8e8;
}

.stock-status.low {
  color: #9b1414;
  background: #ffe2e2;
}

.stock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stock-low-row {
  background: linear-gradient(90deg, rgba(255, 98, 98, 0.12), rgba(255, 255, 255, 0));
}

.stock-empty-row {
  grid-template-columns: 1fr !important;
  color: var(--muted);
  font-weight: 800;
}

.stock-exit-report,
.stock-view.active[data-stock-panel="entrada"],
.stock-view.active[data-stock-panel="saida"] {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(5, 52, 155, 0.2);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 188, 10, 0.16), transparent 24%),
    linear-gradient(135deg, #ffffff, #f2f8ff);
  box-shadow: 0 16px 42px rgba(10, 38, 69, 0.07);
}

.report-head {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(460px, 1.3fr);
  gap: 16px;
  align-items: end;
}

.report-head h4,
.stock-ranking h4 {
  margin: 5px 0 0;
  font-size: 22px;
}

.report-head p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.report-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr)) minmax(170px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.report-filters button {
  height: 43px;
}

.stock-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stock-report-summary article {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #dce7f1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.stock-report-summary span {
  color: var(--muted);
  font-size: 13px;
}

.stock-report-summary strong {
  color: var(--brand);
  font-size: 24px;
  line-height: 1.1;
}

.stock-report-summary small {
  color: #516174;
  font-weight: 700;
}

.stock-exit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
}

.stock-exit-table .row {
  grid-template-columns: 1.4fr 1fr 0.45fr 0.8fr;
}

.stock-exit-table .row:not(.head) span:nth-child(3),
.stock-exit-table .row:not(.head) span:nth-child(4) {
  font-weight: 900;
}

.stock-ranking {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dce7f1;
  border-radius: 10px;
  background: linear-gradient(150deg, #071f49, #0a326c);
  color: #fff;
  box-shadow: 0 14px 30px rgba(5, 31, 78, 0.18);
}

.stock-ranking .eyebrow {
  color: var(--accent);
}

.stock-ranking h4 {
  color: #fff;
}

.stock-ranking div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stock-ranking div + div {
  margin-top: 10px;
}

.stock-ranking span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-ranking strong {
  color: var(--accent);
}

.stock-ranking b {
  white-space: nowrap;
  color: #bfe8ff;
}

.stock-ranking #stockEntryRanking {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.stock-ranking #stockEntryRanking > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.quick-stock {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #cbd9e5;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #eef6fb);
}

.quick-stock h4 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.quick-stock p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.quick-stock-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.supplier-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #cbd9e5;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #eef6fb);
}

.supplier-panel h4 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.supplier-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.supplier-table .row {
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  align-items: center;
}

.photo-uploader {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 220px;
  padding: 18px;
  border: 1px dashed #aebdca;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.photo-uploader input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-preview {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 132px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #7a8796;
  background:
    radial-gradient(circle at 34% 48%, transparent 0 18px, var(--brand) 19px 23px, transparent 24px),
    radial-gradient(circle at 66% 48%, transparent 0 18px, var(--brand) 19px 23px, transparent 24px),
    linear-gradient(90deg, transparent 30%, var(--brand) 31% 69%, transparent 70%),
    #eef4f8;
  background-size: 100% 100%;
  font-size: 13px;
  font-weight: 800;
}

.photo-preview.has-image {
  background-position: center;
  background-size: cover;
  color: transparent;
}

.photo-uploader small {
  margin-top: 5px;
  color: var(--muted);
}

.product-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-form .wide {
  grid-column: 1 / -1;
}

.product-form button {
  justify-self: start;
}

.import-stock-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px minmax(260px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #cbd9e5;
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(23, 162, 184, 0.16), transparent 28%),
    linear-gradient(135deg, #fff, #eef6fb);
}

.import-stock-panel h4 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.import-stock-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.file-import {
  display: grid;
  place-items: center;
  min-height: 70px;
  border: 1px dashed #8fb1ca;
  border-radius: 8px;
  color: var(--brand);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.file-import input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.import-preview {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #dce7f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 700;
}

.import-preview strong {
  color: var(--brand-dark);
}

.inventory-grid article,
.automation-list article {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.product-thumb {
  height: 118px;
  border-radius: 8px;
  border: 1px solid #dde6ee;
  background-color: #f6f9fb;
}

.glasses-blue {
  background:
    radial-gradient(circle at 34% 50%, transparent 0 22px, var(--brand) 23px 28px, transparent 29px),
    radial-gradient(circle at 66% 50%, transparent 0 22px, var(--brand) 23px 28px, transparent 29px),
    linear-gradient(90deg, transparent 30%, var(--brand) 31% 69%, transparent 70%),
    linear-gradient(135deg, #eef5fb, #ffffff);
}

.glasses-gold {
  background:
    radial-gradient(circle at 34% 50%, rgba(255, 188, 10, 0.12) 0 22px, var(--accent) 23px 28px, transparent 29px),
    radial-gradient(circle at 66% 50%, rgba(255, 188, 10, 0.12) 0 22px, var(--accent) 23px 28px, transparent 29px),
    linear-gradient(90deg, transparent 30%, var(--accent) 31% 69%, transparent 70%),
    linear-gradient(135deg, #fff9e8, #ffffff);
}

.lens-pack {
  background:
    radial-gradient(circle at 50% 45%, rgba(5, 52, 155, 0.08) 0 34px, rgba(5, 52, 155, 0.3) 35px 38px, transparent 39px),
    linear-gradient(135deg, #eff7fb, #fff);
}

.case-pack {
  background:
    linear-gradient(160deg, transparent 28%, rgba(5, 52, 155, 0.18) 29% 70%, transparent 71%),
    linear-gradient(135deg, #eef2f7, #ffffff);
}

.danger {
  color: var(--danger) !important;
  font-weight: 800;
}

button.danger,
.mini-button.danger {
  border: 1px solid #ffc4c4 !important;
  background: #ffe7e7 !important;
  color: #9b1414 !important;
  font-weight: 900;
}

button.danger:hover,
.mini-button.danger:hover {
  background: #ffd4d4 !important;
  color: #7d0f0f !important;
}

.cash-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.cash-summary div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cash-summary strong {
  font-size: 24px;
}

.cash-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.cash-breakdown article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #dbe7f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.cash-breakdown span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cash-breakdown strong {
  color: var(--brand);
  font-size: 19px;
}

.cash-table .row {
  grid-template-columns: 0.7fr 1.55fr 0.8fr 0.65fr 0.8fr 0.55fr;
  align-items: center;
}

.cash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cash-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.cash-type {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.cash-type.income {
  color: #08653a;
  background: #dbf8e8;
}

.cash-type.expense {
  color: #9b1414;
  background: #ffe2e2;
}

.cash-type.due {
  color: #9b5a00;
  background: #fff1d8;
}

.cash-type.forecast {
  color: #064f8f;
  background: #dff1ff;
}

.cash-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 12, 34, 0.68);
  backdrop-filter: blur(10px);
}

.cash-modal-card {
  position: relative;
  width: min(760px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 90px rgba(2, 14, 48, 0.42);
}

.cash-modal-card h3 {
  margin: 8px 0 18px;
  color: var(--brand);
  font-size: 28px;
}

.cash-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cash-form .wide {
  grid-column: 1 / -1;
}

.cash-installments-hidden {
  display: none;
}

.cash-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.finance-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 180px)) minmax(170px, 220px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.finance-filters button {
  height: 43px;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.finance-summary article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid #dbe7f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.finance-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.finance-summary strong {
  color: var(--brand);
  font-size: 24px;
}

.finance-table .row {
  grid-template-columns: 0.75fr 1.45fr 0.55fr 0.7fr 0.75fr 0.65fr 0.6fr;
  align-items: center;
}

.audit-table .row {
  grid-template-columns: 0.8fr 1.1fr 0.65fr 0.55fr 0.9fr 1.45fr;
  align-items: center;
}

.finance-empty-row {
  grid-template-columns: 1fr !important;
  color: var(--muted);
  font-weight: 800;
}

.automation-list article {
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
}

@media (max-width: 920px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 8px;
  }

  .login-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0;
  }

  .login-copy h1 {
    font-size: 40px;
  }

  .login-copy p {
    font-size: 16px;
  }

  .hero-logo-top {
    font-size: 34px;
  }

  .hero-logo-bottom {
    font-size: 34px;
    letter-spacing: 7px;
  }

  .hero-eye-mark {
    width: 58px;
    height: 30px;
  }

  .hero-logo-vision {
    font-size: 15px;
    letter-spacing: 10px;
  }

  .client-logo-main {
    font-size: 34px;
  }

  .client-logo-bottom {
    font-size: 28px;
    letter-spacing: 7px;
  }

  .system-panel {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  nav,
  .metrics-grid,
  .service-grid,
  .content-grid,
  .inventory-grid,
  .cash-summary,
  .order-form,
  .os-layout,
  .form-block,
  .frame-item,
  .os-filters,
  .report-head,
  .report-filters,
  .stock-report-summary,
  .stock-dashboard,
  .stock-alerts,
  .stock-list-tools,
  .stock-exit-grid,
  .quick-stock,
  .quick-stock-form,
  .supplier-panel,
  .import-stock-panel,
  .cash-breakdown,
  .cash-form,
  .finance-filters,
  .finance-summary,
  .product-editor,
  .product-form {
    grid-template-columns: 1fr;
  }

  .client-tools,
  .client-form {
    grid-template-columns: 1fr;
  }

  .row,
  .compact .row {
    grid-template-columns: 1fr;
  }

  .automation-list article {
    grid-template-columns: 1fr;
  }

  .topbar {
    min-height: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions button {
    flex: 1;
  }
}

.automation-list article small {
  color: var(--muted);
  line-height: 1.35;
}

.automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.login-message {
  min-height: 20px;
  color: #b42318;
  font-weight: 800;
  font-size: 13px;
}

.login-message.success {
  color: #067647;
}

.password-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(3, 18, 36, 0.72);
  padding: 24px;
}

.password-modal.hidden {
  display: none;
}

.password-card {
  width: min(460px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.password-card h2 {
  margin: 8px 0;
  color: var(--blue-dark);
}

.password-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.password-form {
  display: grid;
  gap: 14px;
}


/* ===================== Agendamentos — toggle e kanban ===================== */
.ag-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ag-view-toggle {
  display: flex;
  gap: 3px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.ag-view-toggle button {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: none;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.ag-view-toggle button.active {
  background: var(--brand);
  color: #fff;
}

.ag-page-subtitle {
  margin: -8px 0 18px;
  color: var(--muted);
}

.ag-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ag-filters .filter-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.ag-filters input,
.ag-filters select {
  width: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.ag-filters input[type="text"] {
  min-width: 220px;
  flex: 1;
}

.ag-table .row {
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr 0.8fr 1fr 1.2fr;
  align-items: center;
}

.ag-row-client strong {
  display: block;
}

.ag-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.ag-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

@media (max-width: 1200px) {
  .ag-kanban-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ag-kanban-board { grid-template-columns: 1fr; }
}

.ag-kanban-col {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(10, 38, 69, 0.06);
}

.ag-kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.ag-kanban-col-head .count {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  padding: 2px 9px;
  font-size: 12px;
}

.ag-kanban-col-head.pendente { color: var(--yellow); background: #fff0c6; }
.ag-kanban-col-head.confirmado { color: var(--blue); background: #e1effc; }
.ag-kanban-col-head.atendido { color: var(--green); background: #dff4eb; }
.ag-kanban-col-head.cancelado { color: var(--danger); background: #f8e4e7; }

.ag-kanban-col-body {
  padding: 10px;
  display: grid;
  gap: 8px;
  min-height: 72px;
}

.ag-kanban-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.ag-kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 38, 69, 0.1);
}

.ag-kanban-card strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 3px;
}

.ag-kanban-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.ag-kanban-card .tag {
  margin-top: 6px;
}

.ag-kanban-empty {
  text-align: center;
  padding: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ===================== WhatsApp - API Meta, conversas ===================== */
.wa-section-spacing {
  margin-top: 28px;
}

.wa-webhook-box {
  display: grid;
  gap: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.wa-webhook-box code {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 12.5px;
  word-break: break-all;
  margin-bottom: 6px;
}

.wa-conversa-row {
  grid-template-columns: 1fr 2fr;
  cursor: pointer;
}

.wa-conversa-row.active {
  background: var(--soft);
}

.wa-conversa-row strong {
  display: block;
}

.wa-conversa-row span small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.wa-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 4px 2px;
  margin-bottom: 12px;
}

.wa-thread-empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
}

.wa-bubble {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.4;
}

.wa-bubble.entrada {
  align-self: flex-start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}

.wa-bubble.saida {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.wa-bubble small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.7;
}

.wa-reply-form {
  display: flex;
  gap: 8px;
}

.wa-reply-form input {
  flex: 1;
}
