:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172b3d;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #10293c;
  --navy-2: #183d50;
  --primary: #0a7f83;
  --primary-dark: #07666b;
  --teal-soft: #e7f6f5;
  --ink: #172b3d;
  --muted: #64768a;
  --line: #e1e8ef;
  --surface: #ffffff;
  --shadow: 0 14px 35px rgba(20, 42, 63, .06);
  --shadow-hover: 0 18px 38px rgba(20, 42, 63, .12);
}

/* Eternize V10 — operação profissional integrada */
.settings-tabs{display:flex;gap:8px;margin:0 0 18px;padding:7px;background:#eaf0f3;border:1px solid #d7e1e7;border-radius:14px;position:sticky;top:12px;z-index:4}.settings-tabs a{flex:1;text-align:center;padding:11px 14px;border-radius:9px;color:#365263;font-weight:800;text-decoration:none}.settings-tabs a:hover{background:#fff;color:#10293c;box-shadow:0 5px 18px rgba(16,41,60,.08)}.eternize-settings-logo{width:100%;max-width:280px;height:auto;display:block;margin:0 0 24px}.module-pill{display:inline-flex;padding:7px 12px;border-radius:999px;background:#fff6dc;color:#7b551f;border:1px solid #ead39f;font-size:.76rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.import-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(360px,1.2fr);gap:20px;margin-bottom:20px}.import-guide ol{display:grid;gap:14px;padding-left:22px}.import-guide li::marker{color:#b68136;font-weight:900}.customer-code,.customer-identity code{display:inline-flex;align-items:center;padding:5px 9px;border-radius:7px;background:#edf3f6;border:1px solid #d5e1e7;color:#10293c;font:800 .78rem/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.04em;white-space:nowrap}.customer-identity{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;padding:14px 16px;border-radius:12px;background:linear-gradient(135deg,#10293c,#1b4056);color:#fff}.customer-identity span{font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.customer-identity code{background:#fff6dc;border-color:#ead39f;color:#684515;font-size:.92rem}.module-funeral .welcome-hero.funeral-hero{background:linear-gradient(135deg,#10293c 0%,#183d51 58%,#725626 140%);border:1px solid rgba(209,171,99,.35)}.module-funeral .panel{border-color:#dde5e8}.module-funeral .professional-shortcuts a:hover{border-color:#d1ab63;box-shadow:0 12px 30px rgba(16,41,60,.1)}
@media(max-width:800px){.settings-tabs{position:static;overflow:auto;justify-content:flex-start}.settings-tabs a{flex:0 0 auto}.import-grid{grid-template-columns:1fr}}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #f5f7fb; font-size: 16px; line-height: 1.5; }
body.menu-is-open { overflow: hidden; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #0b8b8e, #076c72);
  border: 1px solid transparent;
  border-radius: 11px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -.1px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(7, 108, 114, .16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
button:hover, .button:hover { background: linear-gradient(135deg, #087a7e, #055b62); box-shadow: 0 9px 18px rgba(7, 108, 114, .22); text-decoration: none; transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #efb64f; outline-offset: 3px; }
.secondary { color: #294257; background: #fff; border-color: #cedae5; box-shadow: none; }
.secondary:hover { color: var(--primary-dark); background: #f2f7f9; border-color: #9fb9c4; box-shadow: none; }
.small { min-height: 36px; padding: 7px 12px; border-radius: 9px; font-size: 13px; }
h1, h2, h3, p { margin: 0; }
h1 { color: #132b3e; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -1px; font-weight: 800; }
h2 { color: #1a3449; font-size: 20px; line-height: 1.3; margin-bottom: 16px; }
h3 { color: #203b4d; font-size: 17px; margin: 22px 0 10px; }
.muted, .help { color: var(--muted); }
.help { font-size: 14px; line-height: 1.65; margin-top: 18px; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; }
.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; }

/* App shell */
/* O fundo do menu mobile não ocupa uma célula no grid do desktop. */
.sidebar-overlay { display: none; }
.shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100dvh;
  overflow-y: auto;
  padding: 32px 20px 22px;
  background: radial-gradient(circle at 12% 5%, #1b4757 0, transparent 29%), linear-gradient(165deg, #10293c 0%, #0c2435 70%, #09202f 100%);
  color: #fff;
  box-shadow: 12px 0 30px rgba(12, 34, 51, .08);
}
.brand { display: block; width: fit-content; color: #fff; font-size: 29px; font-weight: 850; letter-spacing: -1.8px; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand span { color: #6bd8d1; font-weight: 450; }
.brand i { display: block; margin-top: 11px; color: #b3cad9; font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: 4px; }
.workspace-label { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 13px 0; border-top: 1px solid #ffffff20; border-bottom: 1px solid #ffffff20; color: #c9dae5; font-size: 13px; line-height: 1.35; }
.workspace-dot, .status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #68d8cc; box-shadow: 0 0 0 4px rgba(104, 216, 204, .12); }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; color: #c9d9e5; font-size: 14px; font-weight: 600; transition: background .18s ease, color .18s ease, border .18s ease; }
.sidebar nav a:hover { background: #ffffff0d; border-color: #ffffff12; color: #fff; text-decoration: none; }
.sidebar nav a.active { background: linear-gradient(90deg, #1e5060, #1a4253); border-color: #6dd9d020; color: #fff; box-shadow: inset 3px 0 #6bd8d1, 0 7px 14px #0617222b; }
.nav-icon { display: inline-grid; width: 22px; place-items: center; color: #7ee2db; font-size: 18px; font-weight: 400; line-height: 1; }
.sidebar-bottom { display: grid; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid #ffffff18; }
.profile-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-mini > span:last-child { display: grid; min-width: 0; gap: 2px; }
.profile-mini strong, .profile-mini small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-mini strong { color: #f7fbff; font-size: 14px; }
.profile-mini small { color: #a9c0ce; font-size: 12px; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #74ddd4, #248b93); color: #0e3040; font-size: 15px; font-weight: 850; }
.sidebar-bottom .inline { width: 100%; }
.sidebar-bottom .inline button { width: 100%; justify-content: flex-start; background: #ffffff0d; border-color: #ffffff22; color: #dbe8f0; box-shadow: none; }
.sidebar-bottom .inline button:hover { background: #ffffff18; }
.main { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; padding: 15px 42px; border-bottom: 1px solid #e3eaf0; background: rgba(255,255,255,.88); color: #607287; font-size: 13px; backdrop-filter: blur(16px); }
.topbar-context, .topbar-meta { display: flex; align-items: center; gap: 10px; }
.topbar-context { color: #2c475b; font-weight: 750; }
.topbar-meta { gap: 18px; }
.topbar-user { color: #314c60; font-weight: 650; }
.nav-toggle { display: none; min-width: 42px; min-height: 42px; padding: 9px; border: 1px solid #dce6ed; background: #fff; box-shadow: none; }
.nav-toggle:hover { background: #f3f7f9; box-shadow: none; }
.nav-toggle > span:not(.sr-only) { display: block; width: 19px; height: 2px; margin: 3px auto; border-radius: 3px; background: var(--navy); }
.content { flex: 1 0 auto; width: 100%; max-width: 1580px; min-height: 0; margin: 0 auto; padding: 38px 42px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-title .muted { margin-top: 11px; font-size: 15px; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.panel { margin-bottom: 24px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.panel > p { margin-bottom: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head a { font-size: 14px; font-weight: 750; }

/* Dashboard */
.welcome-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 190px; overflow: hidden; margin-bottom: 26px; padding: 31px 36px; border-radius: 18px; background: radial-gradient(circle at 86% 45%, #236476 0, transparent 28%), linear-gradient(120deg, #112f43 0%, #155163 100%); color: #fff; box-shadow: 0 16px 35px rgba(16, 41, 60, .15); }
.welcome-hero:after { position: absolute; right: -70px; bottom: -98px; width: 280px; height: 280px; border: 1px solid #7ee2d936; border-radius: 50%; box-shadow: 0 0 0 22px #7ee2d212, 0 0 0 44px #7ee2d20c; content: ""; }
.welcome-hero .eyebrow { color: #75ded5; }
.welcome-hero h2 { position: relative; z-index: 1; max-width: 620px; margin-bottom: 10px; color: #fff; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.8px; }
.welcome-hero p:not(.eyebrow) { position: relative; z-index: 1; max-width: 620px; color: #c3dbe3; font-size: 15px; }
.hero-orbit, .cemetery-hero-mark { position: relative; z-index: 1; display: grid; width: 108px; height: 108px; flex: 0 0 auto; place-items: center; border: 1px solid #8ee7df44; border-radius: 50%; background: #ffffff12; box-shadow: 0 0 0 14px #ffffff08, inset 0 0 35px #7ee2d51d; color: #8feae1; font-size: 28px; font-weight: 850; letter-spacing: -2px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { position: relative; display: flex; min-height: 138px; flex-direction: column; gap: 9px; overflow: hidden; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.stat:before { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #9ddad6; content: ""; }
.stat:nth-child(2):before { background: #76bde0; }
.stat:nth-child(3):before { background: #d9b26b; }
.stat:nth-child(4):before { background: #bd9bdc; }
.stat > span { color: #65798d; font-size: 13px; font-weight: 650; }
.stat strong { color: #173149; font-size: clamp(25px, 2.5vw, 32px); letter-spacing: -.9px; line-height: 1.15; font-weight: 800; }
.stat small { margin-top: auto; color: #8291a0; font-size: 12px; }
.admin-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.shortcut-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border .18s ease; }
.shortcut-card:hover { border-color: #9dd4d2; box-shadow: var(--shadow-hover); text-decoration: none; transform: translateY(-2px); }
.shortcut-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--teal-soft); color: var(--primary); font-size: 20px; }
.shortcut-card > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.shortcut-card strong { color: #203c50; font-size: 14px; }
.shortcut-card small { overflow: hidden; color: #788a9b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.shortcut-card b { margin-left: auto; color: var(--primary); font-size: 21px; font-weight: 500; }

/* Product and cemetery modules */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 24px; }
.panel .product-grid { margin-bottom: 0; }
.product-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border .18s ease; }
.product-card:hover { border-color: #b4d8dc; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%; }
.product-card h2 { margin: 2px 0 0; }
.product-card p { min-height: 48px; color: var(--muted); font-size: 14px; }
.product-card small { color: var(--muted); font-size: 12px; }
.product-card .button { width: 100%; margin-top: auto; }
.product-meta { display: flex; align-items: center; gap: 7px; min-height: 20px; }
.product-meta .status-dot { width: 6px; height: 6px; box-shadow: none; }
.live { background: #62c9b6; }
.muted-dot { background: #b8c4cf; box-shadow: none; }
.product-mark { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #cde9e8; border-radius: 14px; background: linear-gradient(135deg, #eaf8f7, #d7eff0); color: #08767b; font-size: 17px; font-weight: 850; }
.badge { display: inline-flex; align-items: center; width: fit-content; min-height: 25px; padding: 4px 9px; border: 1px solid #e1e7ed; border-radius: 999px; background: #f2f5f8; color: #536578; font-size: 11px; font-weight: 750; line-height: 1; white-space: nowrap; }
.badge.ok { border-color: #bde3d5; background: #e4f7ef; color: #167255; }
.badge.warn { border-color: #efd6a0; background: #fff3da; color: #8b5a0c; }
.cemetery-hero { background: radial-gradient(circle at 88% 42%, #25878a 0, transparent 29%), linear-gradient(120deg, #102d41, #0b6c73); }
.cemetery-hero-mark { font-size: 38px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.quick-card { color: #203b4b; transition: transform .18s ease, box-shadow .18s ease, border .18s ease; }
.quick-card:hover { border-color: #9dd4d2; box-shadow: var(--shadow-hover); text-decoration: none; transform: translateY(-2px); }
.quick-card h2 { margin-bottom: 7px; font-size: 17px; }
.quick-card span { color: var(--primary); font-size: 13px; font-weight: 700; }

/* Forms, tables and states */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .wide, .form-actions { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: #30495d; font-size: 13px; font-weight: 750; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #c9d5df; border-radius: 10px; background: #fff; color: #1a2c3c; font-weight: 400; transition: border .18s ease, box-shadow .18s ease; }
input:hover, select:hover, textarea:hover { border-color: #9db5c3; }
input:focus, select:focus, textarea:focus { border-color: #48a9a8; box-shadow: 0 0 0 4px rgba(72, 169, 168, .12); outline: 0; }
textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.inline { display: inline; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e5ebf0; border-radius: 12px; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; text-align: left; font-size: 13px; }
thead { background: #f6f9fb; }
th { padding: 13px 15px; border-bottom: 1px solid var(--line); color: #62768a; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px; border-bottom: 1px solid #edf1f4; color: #2c4659; vertical-align: middle; }
td small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
tbody tr:hover { background: #fbfdfd; }
tr:last-child td { border-bottom: 0; }
.row-actions { white-space: nowrap; }
.row-actions a + a { margin-left: 16px; }
.row-actions form{display:inline;margin-left:12px}.button.danger,.danger{border-color:#e4b6ae!important;background:#fff5f3!important;color:#a34d3d!important}.danger:hover{background:#fde8e4!important;border-color:#c9796c!important}
.notice { display: flex; align-items: center; min-height: 52px; margin-bottom: 24px; padding: 14px 18px; border: 1px solid #acd9c6; border-radius: 12px; background: #eaf8f0; color: #1b6347; font-size: 14px; }
.notice { transition: opacity .3s ease, transform .3s ease; }
.notice-dismissed { opacity: 0; transform: translateY(-6px); }
.key-result { margin-bottom: 24px; padding: 27px; border: 1px solid #8dd0d0; border-radius: 16px; background: linear-gradient(135deg, #eaf9f8, #dff1f3); }
.key-result code { display: block; margin: 18px 0; overflow-wrap: anywhere; padding: 16px 18px; border: 1px solid #c6e2e4; border-radius: 10px; background: #fff; color: #164b59; font-size: 18px; font-weight: 750; }
.key-result p { font-size: 14px; }
.plan-note { display: flex; min-height: 74px; flex-direction: column; justify-content: center; gap: 3px; padding: 0 6px; }
.plan-note strong { color: #173d4d; font-size: 25px; }
.plan-note span { color: var(--muted); font-size: 13px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search { display: flex; flex: 1; gap: 10px; max-width: 520px; }
.search input { min-width: 130px; }
.empty { padding: 38px 15px; color: var(--muted); text-align: center; }
.empty strong { color: #344c60; }
.empty p { margin-top: 8px; font-size: 14px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.details div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.details small { color: var(--muted); font-size: 12px; font-weight: 650; }
.details strong { overflow-wrap: anywhere; color: #294356; font-size: 14px; white-space: pre-line; }
.preserve { white-space: pre-line; }
.record-list { list-style: none; padding: 0; margin: 0; }
.record-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.record-list li:last-child { border-bottom: 0; }
.record-list small { display: block; margin-top: 6px; color: var(--muted); }
footer { flex-shrink: 0; display: flex; justify-content: space-between; gap: 20px; padding: 20px 42px; color: #718294; font-size: 12px; border-top: 1px solid #e3eaf0; background: #fff; }

/* Authentication */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.auth-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 65px 12%; background: radial-gradient(circle at 75% 25%, #245e6c 0, transparent 27%), linear-gradient(145deg, #10293c 0%, #0a2536 100%); color: #fff; }
.auth-brand:after { position: absolute; right: -130px; bottom: -160px; width: 470px; height: 470px; border: 1px solid #72ded54a; border-radius: 50%; box-shadow: 0 0 0 28px #72ded51a, 0 0 0 57px #72ded50d; content: ""; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand h1 { color: #fff; font-size: clamp(36px, 4vw, 55px); letter-spacing: -2px; line-height: 1.08; }
.auth-brand .eyebrow { margin-bottom: 20px; color: #6ed4d2; }
.auth-brand p:not(.eyebrow) { max-width: 390px; margin-top: 25px; color: #bfd4df; font-size: 17px; line-height: 1.75; }
.auth-brand small { color: #9ebbc9; }
.auth-content { display: flex; align-items: center; justify-content: center; padding: 50px 35px; background: #fff; }
.login-panel { width: 100%; max-width: 420px; }
.login-panel h1 { font-size: 34px; }
.login-panel > .muted { margin: 14px 0 30px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack button { width: 100%; margin-top: 7px; }

@media (min-width: 1500px) {
  .content { padding-top: 46px; }
}
@media (max-width: 1160px) {
  .shell { grid-template-columns: 224px minmax(0, 1fr); }
  .sidebar { padding-right: 16px; padding-left: 16px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
  .content { padding-right: 28px; padding-left: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-brand { padding-right: 9%; padding-left: 9%; }
}
@media (max-width: 840px) {
  .admin-shortcuts { grid-template-columns: 1fr; }
  .welcome-hero { align-items: flex-start; min-height: 0; padding: 28px; }
  .hero-orbit, .cemetery-hero-mark { width: 84px; height: 84px; }
  .form-grid { gap: 15px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(292px, 86vw); height: 100dvh; transform: translateX(-103%); transition: transform .22s ease; }
  .shell.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 15; display: none; background: rgba(8, 25, 39, .48); }
  .shell.sidebar-open .sidebar-overlay { display: block; }
  .topbar { min-height: 64px; padding: 11px 16px; }
  .nav-toggle { display: inline-block; }
  .topbar-context { margin-right: auto; }
  .topbar-meta { gap: 0; }
  .topbar-meta > span:last-child { display: none; }
  .topbar-user { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { min-height: calc(100vh - 112px); padding: 27px 16px 34px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .page-actions .button { width: 100%; }
  h1 { font-size: 29px; }
  .panel { padding: 19px; border-radius: 14px; }
  .welcome-hero { gap: 18px; padding: 23px; }
  .welcome-hero h2 { font-size: 25px; }
  .welcome-hero p:not(.eyebrow) { font-size: 14px; }
  .hero-orbit, .cemetery-hero-mark { width: 62px; height: 62px; font-size: 20px; }
  .stats { gap: 12px; }
  .stat { min-height: 124px; padding: 16px; }
  .stat strong { font-size: 25px; }
  .product-grid, .quick-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide, .form-actions { grid-column: auto; }
  .form-actions { justify-content: stretch; }
  .form-actions button { width: 100%; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { max-width: none; }
  .search button { flex: 0 0 auto; }
  .details { grid-template-columns: 1fr 1fr; gap: 18px; }
  footer { padding: 18px 16px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat > span { font-size: 12px; }
  .stat strong { font-size: 22px; }
  .topbar-context { font-size: 12px; }
  .topbar-user { display: none; }
  .welcome-hero { align-items: flex-start; }
  .welcome-hero:after { right: -110px; }
  .hero-orbit, .cemetery-hero-mark { display: none; }
  .details { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .search button { width: 100%; }
  footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .content { padding-right: 12px; padding-left: 12px; }
}
@media print {
  body { background: #fff; color: #000; font-size: 12px; }
  .shell { display: block; }
  .sidebar, .topbar, footer, .page-actions, .notice { display: none; }
  .content { padding: 0; }
  .panel, .stat { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .page-head { margin-bottom: 20px; }
  .details { grid-template-columns: repeat(3, 1fr); }
  .table-wrap { overflow: visible; }
  table { min-width: 0; font-size: 12px; }
}


.nav-group{margin-bottom:18px}.nav-group small{display:block;padding:8px 14px;text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:#8aa0b5;font-weight:700}.nav-group a{display:flex;align-items:center;gap:10px}

/* MaxCemitério: identidade funerária e PDV responsivo */
body.module-cemetery{--primary:#9a6b3a;--primary-dark:#704824;--teal-soft:#f7efe7;background:#f8f6f3}
body.module-cemetery .sidebar{background:radial-gradient(circle at 15% 5%,#6c5142 0,transparent 30%),linear-gradient(165deg,#2c2523,#171515 75%)}
body.module-cemetery .brand span{color:#d6ad7e}
body.module-cemetery .workspace-dot,body.module-cemetery .status-dot{background:#d6ad7e;box-shadow:0 0 0 4px #d6ad7e22}
body.module-cemetery .sidebar nav a.active{background:linear-gradient(90deg,#654b3c,#513b31);box-shadow:inset 3px 0 #d6ad7e,0 7px 14px #120d0b55}
body.module-cemetery .nav-icon{color:#e2bc91}
body.module-cemetery button,body.module-cemetery .button{background:linear-gradient(135deg,#a97845,#80532e);box-shadow:0 7px 16px #80532e2b}
body.module-cemetery button:hover,body.module-cemetery .button:hover{background:linear-gradient(135deg,#8f5e34,#6e4528)}
.pdv-shell{padding:0!important;overflow:hidden;border-color:#eadfd4!important;background:#fffdfb!important}
.pdv-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:28px 30px;background:linear-gradient(120deg,#332724,#6c4a38);color:#fff}
.pdv-header h2{margin:0 0 4px;color:#fff;font-size:28px}.pdv-header .muted{color:#eadfd7}.pdv-header .eyebrow{color:#edc99e}
.pdv-header .badge{margin-top:4px;border-color:#e8c79f;background:#ffffff18;color:#ffe5c6}
.pdv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:22px;background:#fbf9f7}
.pdv-step{margin:0;padding:20px;border-color:#eadfd4;background:#fff;box-shadow:0 7px 18px #6b4b3210}
.pdv-step-head{display:flex;align-items:center;gap:10px;margin-bottom:13px}.pdv-step-head>span{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#f3e7db;color:#8a5c35;font-size:12px;font-weight:850}.pdv-step h3{margin:0;color:#362820;font-size:17px}
.pdv-step p{margin-bottom:12px}.pdv-step input,.pdv-step select{min-height:44px;margin-bottom:10px}.pdv-result{min-height:46px;margin:10px 0;padding:12px;border:1px dashed #d9c8b7;border-radius:10px;background:#fffaf5;color:#6f5b4b;font-size:13px}
.pdv-inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.pdv-inline-fields input,.pdv-inline-fields select{margin:0}
.pdv-list{display:grid;gap:7px;margin:12px 0 0;padding:0;list-style:none}.pdv-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-radius:9px;background:#faf6f1;color:#4c392e;font-size:13px}.pdv-list li button{min-height:28px;padding:3px 8px;font-size:11px;box-shadow:none}
.pdv-service-options{display:grid;gap:8px;margin-bottom:12px}.pdv-service-options button{justify-content:space-between;width:100%;min-height:42px;padding:9px 12px;background:#fff;border:1px solid #e2d5c8;color:#5b4537;box-shadow:none;text-align:left}.pdv-service-options button:hover,.pdv-service-options button.is-selected{border-color:#bb8b5b;background:#fff8f0;color:#7b4d29}.pdv-service-options b{color:#a06d3c;font-size:12px}.pdv-checkout>select{margin-top:10px}.pdv-total{display:flex;align-items:center;justify-content:space-between;margin:15px 0 3px;padding-top:14px;border-top:1px solid #eadfd4;color:#6d594b}.pdv-total strong{color:#80532e;font-size:26px}.pdv-feedback{min-height:22px;margin:10px 0 0!important;color:#2f7b59;font-weight:700}
@media(max-width:840px){.pdv-grid{grid-template-columns:1fr}.pdv-header{padding:24px}.pdv-grid{padding:16px}}
@media(max-width:560px){.pdv-header{display:block}.pdv-header .badge{display:inline-flex;margin-top:14px}.pdv-step{padding:16px}.pdv-total strong{font-size:23px}}

/* Catálogo de serviços */
.service-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.service-catalog-card{display:flex;min-height:180px;flex-direction:column;justify-content:space-between;padding:18px;border:1px solid #eadfd4;border-radius:14px;background:linear-gradient(145deg,#fff,#fcf8f3)}.service-catalog-card h3{margin:8px 0 5px;color:#3e2c21;font-size:17px}.service-catalog-card p{min-height:38px;color:#6d5b4f;font-size:13px}.service-catalog-card>strong{margin-top:14px;color:#80532e;font-size:22px}.service-catalog-card>small,.service-category{color:#977352;font-size:11px;font-weight:750}.service-category{text-transform:uppercase;letter-spacing:.08em}.settings-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.settings-options label{display:flex;flex-direction:row;align-items:center;gap:9px;padding:14px;border:1px solid #eadfd4;border-radius:11px;background:#fffaf5}.settings-options input{width:18px;min-height:18px}.pdv-empty-services{padding:14px;border:1px dashed #d9c8b7;border-radius:10px;background:#fffaf5}.pdv-service-options:has(.pdv-empty-services)+.pdv-list{display:none}
@media(max-width:1000px){.service-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-options{grid-template-columns:1fr}}
@media(max-width:560px){.service-catalog-grid{grid-template-columns:1fr}}

/* Acabamento profissional do shell e cadastros rápidos */
.sidebar{padding-top:24px}.sidebar .brand{font-size:30px}.sidebar .nav-group{display:grid;gap:4px}.sidebar .nav-group>small{padding:0 12px;color:#9ab0bf;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.sidebar nav{gap:20px}.sidebar nav a{min-height:46px}.sidebar nav a.active{transform:translateX(2px)}
.pdv-button-row{display:flex;gap:8px;flex-wrap:wrap}.pdv-button-row>*{flex:1;min-width:120px}.pdv-quick-dialogs dialog{width:min(92vw,440px);padding:0;border:0;border-radius:18px;box-shadow:0 24px 70px #1d120d55}.pdv-quick-dialogs dialog::backdrop{background:#1b120d88;backdrop-filter:blur(3px)}.pdv-quick-dialogs dialog form{display:grid;gap:12px;padding:24px}.pdv-quick-dialogs dialog h3{margin:0 0 4px;color:#3f2d23}.pdv-quick-dialogs dialog input,.pdv-quick-dialogs dialog select{margin:0}.pdv-quick-dialogs dialog label{gap:6px}.document-workspace{border-color:#eadfd4!important}.document-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:-4px -4px 20px;padding:4px;border-bottom:1px solid #eadfd4}.document-tabs button{min-height:38px;padding:8px 13px;background:#fff;border:1px solid #eadfd4;color:#6d594b;box-shadow:none}.document-tabs button.is-active{background:#80532e;color:#fff;border-color:#80532e}.document-builder{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:20px}.document-form{display:grid;gap:12px;align-content:start}.document-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.document-preview{min-height:420px;padding:24px;border:1px solid #e3d5c7;background:#fffdf9;box-shadow:0 8px 20px #6b4b3212}.document-preview-head{display:flex;justify-content:space-between;gap:10px;padding-bottom:14px;border-bottom:2px solid #80532e;color:#80532e}.document-preview-head span{font-size:11px;font-weight:850;letter-spacing:.08em}.document-preview-meta{display:grid;gap:4px;padding:14px 0;color:#705e50;font-size:12px}.document-preview table{min-width:0;font-size:12px}.document-preview th{background:#80532e;color:#fff}.document-preview td,.document-preview th{padding:9px}.document-preview-total{display:flex;justify-content:space-between;margin-top:16px;padding-top:12px;border-top:1px solid #eadfd4;color:#6d594b}.document-preview-total strong{color:#80532e;font-size:22px}.document-preview>p{margin-top:14px;color:#6d594b;font-size:12px}.document-preview footer{margin-top:26px;padding:0;border:0;background:transparent;color:#987d65;text-align:center;font-size:10px}.document-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
@media(max-width:900px){.document-builder{grid-template-columns:1fr}.document-preview{min-height:0}}
@media(max-width:560px){.document-form-row{grid-template-columns:1fr}.document-actions{display:grid;grid-template-columns:1fr}.document-actions>*{width:100%}.pdv-button-row>*{min-width:100%}}

/* PDVC: fluxo de atendimento mais claro e responsivo */
.pdv-header{padding:30px 32px;background:radial-gradient(circle at 90% 0,#9b6d4840,transparent 38%),linear-gradient(120deg,#2b211f,#604334)}
.pdv-header-side{display:flex;align-items:flex-end;flex-direction:column;gap:14px}.pdv-live-total{display:flex;align-items:flex-end;gap:12px;color:#f7dfc4}.pdv-live-total b{font-size:11px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.pdv-live-total strong{font-size:20px;color:#fff}
.pdv-progress{display:flex;align-items:center;gap:10px;padding:16px 32px;border-bottom:1px solid #eadfd4;background:#fffaf6;color:#a38c7a;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.pdv-progress span{display:flex;align-items:center;gap:7px;white-space:nowrap}.pdv-progress span b{display:grid;width:25px;height:25px;place-items:center;border-radius:50%;background:#eadfd4;color:#967961;font-size:10px}.pdv-progress span.is-active,.pdv-progress span.is-complete{color:#80532e}.pdv-progress span.is-active b,.pdv-progress span.is-complete b{background:#80532e;color:#fff}.pdv-progress i{height:1px;width:40px;background:#e2d2c4}
.pdv-grid{grid-template-columns:minmax(0,1.2fr) minmax(350px,.8fr);align-items:start}.pdv-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pdv-checkout{grid-column:2;grid-row:1;position:sticky;top:18px}.pdv-step-head>div{min-width:0}.pdv-step-head>div p{margin:3px 0 0;color:#927b69;font-size:12px}.pdv-step-head>div h3{margin:0}
.pdv-search-label{display:block;margin-bottom:4px;color:#756052;font-size:12px;font-weight:750}.pdv-search-label input{margin-top:7px}.pdv-service-options{grid-template-columns:repeat(2,minmax(0,1fr));max-height:260px;overflow:auto;padding-right:2px}.pdv-service-card{display:flex!important;align-items:center;justify-content:space-between!important;gap:10px;min-height:68px!important;padding:11px 13px!important;border-radius:12px!important}.pdv-service-card span{display:grid;gap:5px;min-width:0}.pdv-service-card strong{overflow:hidden;color:#4b372b;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.pdv-service-card small{overflow:hidden;color:#a08773;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.pdv-service-card>b{flex:none;color:#80532e!important;font-size:13px!important}.pdv-service-card.is-selected{box-shadow:inset 3px 0 #80532e,0 3px 10px #80532e18!important}
.pdv-checkout-bar{display:grid;grid-template-columns:1fr 150px;align-items:end;gap:16px;margin-top:16px;padding-top:14px;border-top:1px solid #eadfd4}.pdv-checkout-bar label{display:grid;gap:6px;color:#756052;font-size:12px;font-weight:750}.pdv-checkout-bar select{margin:0}.pdv-total{margin:0;padding:0;border:0;display:grid;gap:3px}.pdv-total span{font-size:11px}.pdv-total strong{font-size:28px}.pdv-checkout-actions{display:flex;gap:9px;margin-top:16px}.pdv-checkout-actions button:first-child{flex:1}.pdv-checkout-actions .secondary{flex:0 0 auto}.pdv-feedback{min-height:20px}
.pdv-list li{border:1px solid transparent}.pdv-list li:not(.muted){border-color:#eee2d7;background:#fffaf6}.pdv-list li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdv-list li button{flex:none}
@media(max-width:1100px){.pdv-grid{grid-template-columns:1fr}.pdv-checkout{grid-column:auto;grid-row:auto;position:static}.pdv-context-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:840px){.pdv-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pdv-progress{padding:14px 20px}.pdv-progress i{width:20px}}
@media(max-width:620px){.pdv-header{padding:24px}.pdv-header-side{align-items:flex-start;margin-top:18px}.pdv-progress{gap:6px;padding:12px 16px;font-size:9px}.pdv-progress i{flex:1;width:auto}.pdv-progress span{gap:4px}.pdv-context-grid{grid-template-columns:1fr}.pdv-service-options{grid-template-columns:1fr;max-height:none}.pdv-checkout-bar{grid-template-columns:1fr}.pdv-checkout-actions{display:grid;grid-template-columns:1fr 90px}.pdv-total strong{font-size:25px}}

/* Vendas e comprovantes do PDVC */
.pdv-receipt-link{display:inline-flex;margin-left:8px;color:#80532e;font-weight:800;text-decoration:underline}.sales-list .table-wrap{margin-top:4px}.sales-list table td small{display:block;margin-top:3px;color:#9d8979;font-size:11px}.receipt-panel{background:#f7f1eb!important;border-color:#eadfd4!important}.receipt-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.receipt-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.receipt{max-width:880px;margin:auto;padding:34px 38px;background:#fff;border:1px solid #e8ddd3;box-shadow:0 14px 30px #6b4b3214;color:#4d3a2e}.receipt-head{display:flex;justify-content:space-between;gap:24px;padding-bottom:22px;border-bottom:2px solid #8b5d38}.receipt-head h2{margin:4px 0;color:#35251d;font-family:Georgia,serif;font-size:26px}.receipt-head p{margin:5px 0;color:#987c67;font-size:12px}.receipt-head .eyebrow{color:#8b5d38;font-size:10px}.receipt-brand{color:#83522e;font-size:22px;font-weight:900;letter-spacing:-.06em}.receipt-brand span{display:block;margin-top:-3px;color:#b88a62;font-size:9px;letter-spacing:.18em}.receipt-meta{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;padding:22px 0}.receipt-meta div{display:grid;gap:4px}.receipt-meta small{color:#a18b79;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.receipt-meta strong{color:#4d3a2e;font-size:13px}.receipt table{margin-top:4px;border:1px solid #eadfd4}.receipt th{background:#8b5d38;color:#fff}.receipt td,.receipt th{padding:12px}.receipt-total{display:flex;align-items:center;justify-content:flex-end;gap:26px;margin-top:20px;padding-top:15px;border-top:1px solid #eadfd4;color:#856b57}.receipt-total strong{color:#7d4d2a;font-size:28px}.receipt footer{margin-top:34px;padding-top:14px;border-top:1px solid #eee3da;color:#aa9483;text-align:center;font-size:10px}.sales-list{margin-top:18px}
@media(max-width:700px){.receipt{padding:24px 18px}.receipt-head{display:block}.receipt-brand{margin-top:18px}.receipt-meta{grid-template-columns:1fr 1fr}.receipt-meta div:first-child{grid-column:1/-1}.receipt table{font-size:11px}.receipt td,.receipt th{padding:9px}.receipt-total{justify-content:space-between}.receipt-toolbar{align-items:flex-start;flex-direction:column}}
@media print{body *{visibility:hidden!important}.receipt-panel,.receipt-panel *{visibility:visible!important}.receipt-panel{position:absolute;inset:0;padding:0!important;background:#fff!important;border:0!important}.receipt-toolbar{display:none!important}.receipt{max-width:none;border:0;box-shadow:none;padding:10mm}.sales-list{display:none!important}}
/* Carrinho com quantidade, como em um PDV de vendas tradicional. */
.pdv-cart-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:10px}.pdv-cart-line>span:first-child{display:grid;gap:2px;min-width:0}.pdv-cart-line>span:first-child small{color:#a08773;font-size:10px}.pdv-cart-line>strong{color:#80532e;font-size:13px;white-space:nowrap}.pdv-qty{display:flex!important;align-items:center;gap:6px}.pdv-qty b{min-width:18px;text-align:center;color:#4c392e;font-size:12px}.pdv-qty button{min-width:27px!important;min-height:27px!important;padding:0!important}.pdv-cart-line>[data-remove]{min-height:27px!important;padding:3px 8px!important;font-size:10px!important}
@media(max-width:560px){.pdv-cart-line{grid-template-columns:minmax(0,1fr) auto}.pdv-cart-line>strong{justify-self:end}.pdv-cart-line>[data-remove]{grid-column:2;grid-row:2}.pdv-qty{justify-self:end}}

/* PDV v2 — aparência de frente de caixa, sem etapas visuais pesadas. */
.pdv-shell{border:0!important;border-radius:20px!important;background:#eef2f6!important;box-shadow:0 20px 55px rgba(20,32,44,.10)!important}
.pdv-header{min-height:104px;padding:22px 26px!important;background:linear-gradient(135deg,#111c28,#263b50)!important}.pdv-header h2{font-size:24px!important}.pdv-header p.muted{color:#aebdca!important}.pdv-header-side{flex-direction:row!important;align-items:center!important}.pdv-live-total{padding:10px 14px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.08)}
.pdv-progress{display:none!important}.pdv-grid{display:block!important;padding:14px!important}.pdv-context-grid{display:grid!important;grid-template-columns:1.2fr 1fr 1fr!important;gap:10px!important;margin-bottom:12px}.pdv-context-grid .pdv-step{min-height:0!important;padding:14px!important;border:1px solid #dde4ea!important;border-radius:14px!important;box-shadow:none!important}.pdv-context-grid .pdv-step-head{margin-bottom:8px!important}.pdv-context-grid .pdv-step-head>span{width:25px;height:25px;background:#e7edf3;color:#53677a}.pdv-context-grid .pdv-step h3{font-size:14px}.pdv-context-grid .pdv-step>p{display:none}.pdv-context-grid input,.pdv-context-grid select{min-height:40px!important;margin-bottom:7px!important}.pdv-context-grid .pdv-result{min-height:36px;margin:6px 0;padding:8px 10px}.pdv-context-grid .pdv-button-row button{min-height:36px;padding:7px 9px;font-size:11px}.pdv-context-grid .pdv-list{max-height:76px;overflow:auto}
.pdv-checkout{position:static!important;margin:0!important;padding:0!important;overflow:hidden;border:1px solid #dce3e9!important;border-radius:16px!important;background:#fff!important;box-shadow:0 10px 30px rgba(27,42,56,.07)!important}.pdv-checkout>.pdv-step-head{margin:0!important;padding:15px 18px;border-bottom:1px solid #e7ebef;background:#fff}.pdv-checkout>.pdv-step-head>span{background:#e7f0fb;color:#2669a8}.pdv-checkout>.pdv-step-head h3{color:#243546}.pdv-checkout>.pdv-step-head p{color:#81909e}
.pdv-sales-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);min-height:510px}.pdv-catalog-pane{padding:18px;border-right:1px solid #e2e7ec;background:#f8fafc}.pdv-search-label{color:#485b6d!important}.pdv-service-search{height:46px;border-color:#d6dfe7!important;background:#fff!important}.pdv-service-options{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:430px!important;gap:10px!important;margin-top:14px;padding:2px 5px 2px 2px}.pdv-service-card{display:grid!important;grid-template-columns:1fr!important;align-content:space-between!important;min-height:105px!important;padding:14px!important;border:1px solid #dfe6ec!important;border-radius:13px!important;background:#fff!important;text-align:left!important}.pdv-service-card:hover{border-color:#8db9e2!important;background:#f4f9ff!important;box-shadow:0 8px 18px rgba(35,86,133,.09)!important;transform:translateY(-2px)}.pdv-service-card.is-selected{border-color:#6b9fce!important;background:#eef6ff!important;box-shadow:inset 3px 0 #347fbf!important}.pdv-service-card strong{color:#243546!important;font-size:13px!important}.pdv-service-card>b{color:#246aa8!important;font-size:15px!important}
.pdv-cart-pane{display:flex;min-width:0;flex-direction:column;padding:18px;background:#fff}.pdv-cart-title{display:flex;align-items:center;justify-content:space-between;padding-bottom:13px;border-bottom:1px solid #e6ebef}.pdv-cart-title small{display:block;color:#8a98a5;font-size:9px;font-weight:850;letter-spacing:.08em}.pdv-cart-title strong{display:block;margin-top:2px;color:#243546;font-size:18px}.pdv-cart-title>span{padding:5px 8px;border-radius:999px;background:#eef3f7;color:#597084;font-size:10px;font-weight:800}.pdv-cart{flex:1;align-content:start;max-height:265px;overflow:auto;margin:12px 0!important;padding-right:3px!important}.pdv-cart-line{border-color:#e2e8ed!important;background:#fafcfd!important}.pdv-checkout-bar{margin-top:auto!important;padding-top:14px!important;border-top:1px solid #e2e7ec!important}.pdv-total strong{color:#1e6b53!important}.pdv-checkout-actions button:first-child{background:linear-gradient(135deg,#16805f,#0f684d)!important;box-shadow:0 7px 16px rgba(15,104,77,.22)!important}
@media(max-width:1100px){.pdv-context-grid{grid-template-columns:1fr 1fr!important}.pdv-context-grid .pdv-step:first-child{grid-column:1/-1}.pdv-sales-layout{grid-template-columns:1fr!important}.pdv-catalog-pane{border-right:0;border-bottom:1px solid #e2e7ec}.pdv-service-options{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:300px!important}.pdv-cart{max-height:none}.pdv-cart-pane{min-height:390px}}
@media(max-width:720px){.pdv-grid{padding:8px!important}.pdv-context-grid{grid-template-columns:1fr!important}.pdv-context-grid .pdv-step:first-child{grid-column:auto}.pdv-header{padding:18px!important}.pdv-header-side{align-items:flex-start!important;flex-direction:column!important}.pdv-service-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pdv-catalog-pane,.pdv-cart-pane{padding:13px}.pdv-checkout-bar{grid-template-columns:1fr!important}.pdv-checkout-actions{grid-template-columns:1fr!important}.pdv-checkout-actions .secondary{width:100%}}
@media(max-width:460px){.pdv-service-options{grid-template-columns:1fr!important}.pdv-service-card{min-height:82px!important}.pdv-live-total{width:100%;justify-content:space-between}}
.pdv-auto-action{display:none!important}
.quick-bundle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.quick-bundle-grid label{display:grid;gap:6px;color:#4d5d6b;font-size:11px;font-weight:800}.quick-bundle-grid input,.quick-bundle-grid select{min-height:42px;margin:0}
@media(max-width:720px){.quick-bundle-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.quick-bundle-grid{grid-template-columns:1fr}}
.pdv-quick-register{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 14px 12px;padding:13px 16px;border:1px solid #d9e2e9;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(27,42,56,.04)}.pdv-quick-register>div:first-child{display:grid;gap:2px}.pdv-quick-register small{color:#347fbf;font-size:9px;font-weight:900;letter-spacing:.1em}.pdv-quick-register strong{color:#273b4b;font-size:13px}.pdv-quick-register span{color:#84929e;font-size:11px}.pdv-quick-register-actions{display:flex;gap:7px;flex-wrap:wrap}.pdv-quick-register-actions button{min-height:35px;padding:7px 11px;border-color:#d4e0e9;background:#f7fafc;color:#35627f;box-shadow:none;font-size:11px}.pdv-quick-register-actions button:hover{border-color:#8bb6d4;background:#eef6fc;color:#1f6598;transform:none}
@media(max-width:720px){.pdv-quick-register{align-items:stretch;flex-direction:column;margin:0 8px 10px;padding:13px}.pdv-quick-register-actions{display:grid;grid-template-columns:repeat(3,1fr)}.pdv-quick-register-actions button{width:100%;padding:7px 4px;font-size:10px}}
@media(max-width:430px){.pdv-quick-register-actions{grid-template-columns:1fr}.pdv-quick-register-actions button{min-height:38px}}

/* Eternize — navegação e configurações compartilhadas */
.shell{grid-template-columns:286px minmax(0,1fr)}.sidebar{width:286px;gap:0;padding:20px 16px;background:#101b25;box-shadow:8px 0 35px rgba(11,22,31,.12)}
.sidebar-identity{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:12px;padding:2px 4px 14px;border-bottom:1px solid rgba(255,255,255,.1)}
.sidebar-identity>div{min-width:0}.sidebar-identity .brand{display:block;overflow:hidden;color:#fff;font-size:18px;font-weight:850;letter-spacing:-.03em;text-overflow:ellipsis;white-space:nowrap}.sidebar-identity small{display:block;margin-top:3px;color:#8ea4b4;font-size:10px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}
.product-mark,.company-logo{display:grid;width:46px;height:46px;place-items:center;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.09);color:#fff}.product-mark svg{width:24px;height:24px}.company-logo{object-fit:contain;padding:5px;background:#fff}
.product-signature{display:flex;align-items:center;justify-content:space-between;margin:11px 5px 13px;color:#fff}.product-signature strong{font-size:10px;letter-spacing:.16em}.product-signature span{color:#8198a8;font-size:9px;font-weight:700;letter-spacing:.06em}
.sidebar nav{gap:15px;overflow-y:auto;padding-right:2px;scrollbar-width:thin}.sidebar .nav-group{gap:3px}.sidebar .nav-group>small{margin-bottom:3px;padding:0 11px;color:#718898;font-size:9px;letter-spacing:.16em}.sidebar nav a{position:relative;min-height:43px;padding:9px 10px;border-radius:11px;color:#b9c8d3;font-size:12.5px;font-weight:650}.sidebar nav a:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.08)}
.nav-icon{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:9px;background:rgba(255,255,255,.06);color:#a9bfcc;font-size:0}.nav-icon svg{width:18px;height:18px}.sidebar nav a.active .nav-icon{background:rgba(255,255,255,.14);color:#fff}.nav-copy{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-active-dot{position:absolute;right:10px;width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(255,255,255,.07)}
.area-switcher{grid-template-columns:1fr 1fr;margin-bottom:15px;padding:4px;border-radius:13px}.area-switcher button{display:flex;min-height:48px;align-items:center;justify-content:center;gap:6px;border-radius:9px;font-size:10px}.area-switcher button svg{width:16px;height:16px}.area-switcher button span{display:block}.area-switcher button.is-active{transform:none}
.sidebar-bottom{gap:10px;padding-top:13px}.sidebar-bottom .profile-mini{padding:0 5px}.sidebar-logout{display:flex!important;width:100%;min-height:39px!important;align-items:center;justify-content:center!important;gap:8px!important;background:rgba(255,255,255,.06)!important;color:#b8c8d2!important}.sidebar-logout svg{width:16px;height:16px}
.settings-layout{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start;gap:18px}.settings-summary{position:sticky;top:82px;padding:25px;background:linear-gradient(155deg,#172b3b,#10202c);color:#fff}.settings-summary .settings-mark{display:grid;width:48px;height:48px;place-items:center;margin-bottom:22px;border-radius:14px;background:rgba(255,255,255,.1)}.settings-summary .settings-mark svg{width:24px}.settings-summary h2{margin:5px 0 10px;color:#fff}.settings-summary .muted{color:#a9bbc7}.settings-product{display:grid;gap:3px;margin-top:28px;padding-top:17px;border-top:1px solid rgba(255,255,255,.12)}.settings-product strong{font-size:12px;letter-spacing:.16em}.settings-product span{color:#8198a8;font-size:10px}.settings-panel{padding:26px}.settings-form{gap:16px}.settings-section-title{display:flex;align-items:center;gap:12px;margin-top:9px;padding:15px 16px;border:1px solid #e0e7ec;border-radius:13px;background:#f7fafc}.settings-section-title:first-of-type{margin-top:0}.settings-section-title>span{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#e5eef4;color:#32566d;font-size:10px;font-weight:900}.settings-section-title>div{display:grid;gap:2px}.settings-section-title strong{color:#213b4c}.settings-section-title small{color:#7d8d98}.logo-upload{display:flex!important;align-items:center;gap:16px;padding:16px!important;border:1px dashed #cddae3!important;border-radius:13px;background:#fbfdfe}.logo-upload>span:last-child{display:grid;flex:1;gap:4px}.logo-upload small{color:#82929d;font-weight:400}.logo-upload input{min-height:auto;margin-top:7px;padding:8px;background:#fff}.logo-preview{display:grid;flex:0 0 64px;width:64px;height:64px;place-items:center;overflow:hidden;border:1px solid #dbe4ea;border-radius:15px;background:#eef4f7;color:#4d6c7e}.logo-preview img{width:100%;height:100%;object-fit:contain;background:#fff}.logo-preview svg{width:27px}.check-row{display:flex!important;align-items:flex-start;gap:10px;padding:14px!important;border:1px solid #e0e7ec!important;border-radius:12px;background:#fafcfd}.check-row input{width:18px;min-height:18px;margin-top:1px}.check-row span{display:grid;gap:2px}.check-row small{color:#80909b;font-weight:400}
@media(max-width:960px){.shell{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}.settings-summary{position:static}.sidebar{width:min(292px,86vw)}}
.receipt-logo{display:block;max-width:150px;max-height:58px;object-fit:contain}.document-preview-head .receipt-logo{max-width:120px;max-height:48px}
@media(max-width:620px){.settings-panel{padding:18px}.logo-upload{align-items:flex-start;flex-direction:column}.settings-section-title{align-items:flex-start}}

/* Fluxo de caixa: o PDV fica focado somente no recebimento de mensalidades. */
.pdv-context-grid .pdv-step:nth-child(2),.pdv-context-grid .pdv-step:nth-child(3),.pdv-shell .pdv-quick-dialogs,.pdv-shell [data-open-quick]{display:none!important}
.quick-registration-panel{max-width:1080px;margin-inline:auto;border:1px solid #e5ddd5;box-shadow:0 14px 36px rgba(71,48,30,.08)}
.quick-registration-panel>h2{margin:4px 0 22px;color:#3f2d23}.quick-registration-panel .form-grid{gap:16px}.quick-registration-panel .form-section{display:flex;flex-direction:column;gap:4px;margin-top:8px;padding:14px 16px;border:1px solid #eadfd4;border-radius:12px;background:#fffaf5;color:#80532e}.quick-registration-panel .form-section span{font-size:12px;color:#8a7668}.quick-registration-panel .form-actions{margin-top:8px}
.quick-registration-panel .cep-feedback{margin:-8px 0 0;color:#6d594b;font-size:12px}.quick-registration-panel .cep-feedback:empty{display:none}
.pdv-empty-services{padding:26px;text-align:center;border:1px dashed #d9c8b9;border-radius:14px;background:#fffaf6}
.quick-registration-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px;padding:20px;border-radius:16px;background:linear-gradient(135deg,#fffaf5,#f4eee8);border:1px solid #eadfd4}.quick-registration-intro h2{margin:4px 0 6px}.smart-registration{gap:16px}.smart-registration .featured-field{padding:14px;border:1px solid #d9e2e9;border-radius:12px;background:#f8fbfd}.smart-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px;border:1px dashed #d9c8b8;border-radius:14px;background:#fffdfb}.smart-fields.is-hidden{display:none}.smart-registration .form-actions{padding-top:16px;border-top:1px solid #eadfd4}@media(max-width:720px){.quick-registration-intro{flex-direction:column}.smart-fields{grid-template-columns:1fr}}
.completed-records td strong,.completed-records td small{display:block}.completed-records td small{margin-top:4px;color:#7c8a96;font-size:11px}.completed-records tbody tr:hover{background:#fbfaf8}
.relation-box{padding:18px;border:1px solid #cfe1df;border-radius:14px;background:#f5fbfa}.relation-box>strong,.relation-box>span{display:block}.relation-box>strong{color:#226b66}.relation-box>span{margin:4px 0 14px;color:#71817f;font-size:12px}.relation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.relation-grid select{min-height:100px}@media(max-width:760px){.relation-grid{grid-template-columns:1fr}}
.relation-manager{margin-top:20px;border-top:4px solid var(--teal)}.relation-manager select[multiple]{min-height:150px;padding:8px;background:#fbfefd}.relation-manager select[multiple] option{padding:8px;border-radius:7px}.relation-manager select[multiple] option:checked{background:linear-gradient(90deg,#d8f3ef,#eaf8f6);color:#174f4b}

/* Operação integrada: Funerária + Cemitério */
.area-switcher{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:6px;border:1px solid #ffffff1c;border-radius:12px;background:#07192566}.area-switcher form{margin:0}.area-switcher button{width:100%;min-height:36px;padding:7px;border:0;background:transparent;color:#9fb2c1;font-size:11px;box-shadow:none}.area-switcher button.is-active{background:#fff;color:#25384a;box-shadow:0 5px 14px #0003}.module-funeral .sidebar{background:radial-gradient(circle at 10% 0,#214d68 0,transparent 32%),linear-gradient(165deg,#132f43,#0a1c2a 78%)}.module-funeral .sidebar nav a.active{background:linear-gradient(90deg,#275a74,#1c4258);box-shadow:inset 3px 0 #71cbe5,0 7px 14px #06172250}.module-funeral .nav-icon{color:#7bd5ed}.module-funeral .content{background:#f4f7fa}.module-funeral .panel{border-color:#dfe7ed}.funeral-hero{background:radial-gradient(circle at 85% 20%,#5eb5d033,transparent 34%),linear-gradient(135deg,#17384e,#245b76)!important}.funeral-cross{display:grid;width:96px;height:96px;place-items:center;border:1px solid #ffffff2b;border-radius:28px;background:#ffffff12;color:#9ee7f7;font-size:46px;box-shadow:0 16px 34px #071b2844}.professional-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 24px}.professional-shortcuts a{display:grid;grid-template-columns:44px 1fr;gap:2px 12px;padding:18px;border:1px solid #dce5eb;border-radius:16px;background:#fff;box-shadow:0 8px 22px #2340520c}.professional-shortcuts a:hover{border-color:#8fc6da;text-decoration:none;transform:translateY(-2px)}.professional-shortcuts a>span{grid-row:1/3;display:grid;width:44px;height:44px;place-items:center;border-radius:13px;background:#e8f5f8;color:#24708b;font-size:22px}.professional-shortcuts strong{color:#203b4d}.professional-shortcuts small{color:#7b8d98}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.funeral-plan-card{display:flex;min-height:260px;flex-direction:column;justify-content:space-between;padding:21px;border:1px solid #dce7ed;border-radius:16px;background:linear-gradient(150deg,#fff,#f5fafc)}.funeral-plan-card h3{margin:13px 0 7px;color:#203b4d}.funeral-plan-card p{color:#718591;font-size:13px}.funeral-plan-card>strong{margin:20px 0;color:#226987;font-size:28px}.funeral-plan-card>strong small{font-size:12px}.funeral-plan-card footer{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0 0;border-top:1px solid #e1e9ee;background:none;color:#79909d;font-size:10px}.contract-summary{border-left:5px solid #3186a5!important}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.equipment-grid{display:grid;gap:9px}.equipment-grid article{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;align-items:center;gap:13px;padding:13px;border:1px solid #e0e8ed;border-radius:12px;background:#fbfdfe}.equipment-grid article>div{display:grid}.equipment-grid article small{color:#84949e}.equipment-grid article>b{color:#246d88}.equipment-grid article>b small{font-weight:500}.equipment-icon{display:grid;width:40px;height:40px;place-items:center;border-radius:11px;background:#e8f4f8;color:#28758f}.pdv-lookup{margin-bottom:16px;padding:16px 18px!important;border-left:4px solid #397fa2!important}.lookup-form{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;align-items:end;gap:10px}.lookup-form label{display:grid;gap:6px}.lookup-form label span{color:#536879;font-size:12px;font-weight:800}.lookup-form input{min-height:46px}.due-toolbar{display:flex;gap:8px;padding:9px!important}.due-toolbar a{padding:9px 14px;border-radius:9px;color:#677a88;font-weight:750}.due-toolbar a.is-active{background:#203d52;color:#fff;text-decoration:none}.report-period{display:flex;justify-content:space-between;margin-bottom:14px;padding:13px 17px;border:1px solid #dfe7ed;border-radius:12px;background:#fff;color:#71828d}.report-bars{display:grid;gap:20px;margin-top:24px}.report-bars>div{display:grid;grid-template-columns:100px 1fr auto;align-items:center;gap:12px}.report-bars b{height:12px;border-radius:20px;background:linear-gradient(90deg,#2f7f9d var(--value),#e7eef2 var(--value))}.report-bars strong{color:#24465a}.report-breakdown{display:grid;gap:12px;margin-top:19px}.report-breakdown>div{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #e7edf0}.report-breakdown .total{border-radius:10px;background:#edf6f8;color:#1f617a}.operation-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.operation-choice label{display:flex;align-items:flex-start;gap:10px;padding:16px;border:1px solid #dfe6eb;border-radius:13px;background:#fafdfe}.operation-choice input{width:18px;min-height:18px}.operation-choice span{display:grid;gap:4px}.operation-choice b{color:#264658}.operation-choice small{color:#7c8e99;font-weight:400}.record-list li span{color:#7b8b95;font-size:12px}
@media(max-width:1050px){.professional-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column{grid-template-columns:1fr}}
@media(max-width:680px){.professional-shortcuts,.plan-grid,.operation-choice{grid-template-columns:1fr}.lookup-form{grid-template-columns:1fr}.form-grid.compact{grid-template-columns:1fr}.equipment-grid article{grid-template-columns:42px 1fr}.equipment-grid article>b,.equipment-grid article>span:last-child{grid-column:2}.report-bars>div{grid-template-columns:80px 1fr}.report-bars strong{grid-column:2}.funeral-cross{display:none}}
.auth-logo-link{display:block;width:min(300px,82%);padding:12px 16px;border-radius:16px;background:#fff;box-shadow:0 14px 36px rgba(3,18,28,.2)}.auth-logo-link img{display:block;width:100%;height:auto}.eternize-settings-logo{display:block;width:100%;max-width:280px;height:auto}
/* Eternize V10 — operação, segurança, portal e mapa */
.workflow-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px}.workflow-board>div{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid #dce6ec;border-radius:14px;background:#fff;color:#637887}.workflow-board strong{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#e9f5f8;color:#216f8b}
.operations-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.operations-strip a{display:grid;gap:6px;padding:20px;border:1px solid #dce6ec;border-radius:16px;background:linear-gradient(145deg,#fff,#f3f8fa);text-decoration:none}.operations-strip small{color:#6d8290;font-size:9px;font-weight:900;letter-spacing:.1em}.operations-strip strong{color:#1d5870;font-size:30px}.operations-strip span{color:#4c7385;font-size:11px;font-weight:750}
.case-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;border-left:5px solid #3186a5}.case-hero h2{margin:10px 0 4px}.case-status{display:flex;align-items:end;gap:10px}.case-status label{display:grid;gap:5px;color:#687c89;font-size:11px;font-weight:800}.case-status select{min-width:180px}
.details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.details-grid article{margin:0}.details-grid h3{margin:8px 0;color:#213f51}.details-grid p{margin:5px 0;color:#758895}
.task-list{display:grid;gap:8px;margin:15px 0 22px}.task-list article{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid #e0e8ed;border-radius:11px}.task-list article>span{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#eef3f6;color:#78909d}.task-list article>div{display:grid;gap:3px}.task-list small,.timeline-list small{color:#7c8e99}.task-list .is-done{opacity:.68}.task-list .is-done strong{text-decoration:line-through}.task-list .is-done>span{background:#dff3e9;color:#18714f}
.timeline-list{display:grid;gap:0}.timeline-list article{display:grid;grid-template-columns:82px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid #e7edf0}.timeline-list time{color:#25708c;font-size:11px;font-weight:850}.timeline-list article>div{display:grid;gap:3px}
.document-sheet{max-width:920px;margin:0 auto 20px;padding:42px;background:#fff}.document-sheet>header{display:flex;align-items:flex-start;justify-content:space-between;padding-bottom:22px;border-bottom:2px solid #173d52}.document-sheet h1{margin:5px 0}.document-body{min-height:280px;padding:35px 0;color:#243846;line-height:1.75}.document-sheet>footer{display:grid;gap:8px;padding-top:20px;border-top:1px solid #dfe7ec;color:#71828d}.document-sheet>footer code{overflow-wrap:anywhere;font-size:10px}.signature-link{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.signature-link strong,.signature-link small{grid-column:1/-1}.signature-link input{background:#fff}
.signature-public{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.6fr);gap:22px;width:min(1180px,94vw);margin:35px auto}.signature-public .panel{align-self:start;position:sticky;top:20px}
.stock-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stock-grid article{display:grid;gap:5px;padding:17px;border:1px solid #dfe7ec;border-radius:14px;background:#fbfdfe}.stock-grid article>span,.stock-grid small{color:#7d8d98;font-size:10px}.stock-grid strong{color:#246d88;font-size:22px}.stock-grid .is-low{border-color:#e4b98d;background:#fff9f2}
.agenda-board{display:grid;grid-template-columns:repeat(7,minmax(140px,1fr));gap:8px;overflow-x:auto;margin-bottom:18px;padding-bottom:6px}.agenda-board>article{min-height:180px;padding:12px;border:1px solid #dce5eb;border-radius:13px;background:#fff}.agenda-board header{display:flex;align-items:center;justify-content:space-between;padding-bottom:9px;border-bottom:1px solid #e7ecef}.agenda-board header span{color:#718490;font-size:10px;font-weight:850;text-transform:uppercase}.agenda-board>article>div{display:grid;gap:3px;margin-top:9px;padding:8px;border-radius:9px;background:#edf6f8}.agenda-board time{color:#216d87;font-size:10px;font-weight:900}.agenda-board small{color:#738894;font-size:9px}.agenda-board>article>p{color:#a0aeb7;font-size:11px;text-align:center}
.map-toolbar form{display:flex;align-items:end;gap:10px}.map-toolbar label{display:grid;gap:5px;min-width:250px}.cemetery-map{display:block;min-height:260px;overflow:auto;margin-bottom:18px;padding:20px;border:1px solid #d8e2e8;border-radius:16px;background-color:#edf4f0;background-image:linear-gradient(#ffffff66 1px,transparent 1px),linear-gradient(90deg,#ffffff66 1px,transparent 1px);background-size:24px 24px}.map-matrix{width:auto;min-width:max-content;border-collapse:separate;border-spacing:8px;background:transparent}.map-matrix td{width:82px;height:72px;padding:0;border:0;background:transparent}.map-grave{display:grid;width:82px;height:72px;box-sizing:border-box;align-content:center;padding:8px;border:2px solid #75a993;border-radius:10px;background:#e2f3e8;color:#234d3c;text-align:center;text-decoration:none;box-shadow:0 5px 12px #214c3a16}.map-grave small{font-size:8px}.map-grave.status-ocupado{border-color:#ad8068;background:#f6e9e1;color:#70452f}.map-grave.status-reservado{border-color:#c69c45;background:#fff5d8;color:#725617}.map-grave.status-manutencao{border-color:#8d8f98;background:#eceef1;color:#4c4f58}
.pix-charge{display:grid;gap:16px;border-left:5px solid #20a66a}.pix-charge textarea{width:100%;min-height:120px;font-family:monospace;font-size:11px;overflow-wrap:anywhere}.pix-charge .page-actions{justify-content:flex-start}
.security-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.security-grid article{margin:0}.security-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:#e8f3f7;color:#286d87;font-weight:900}.security-grid h3{margin:14px 0 7px}.portal-credential{display:grid;gap:8px}.portal-credential>div{display:flex;gap:10px}.portal-credential code{padding:9px 12px;border-radius:8px;background:#fff;font-size:15px}.backup-checklist li{margin:9px 0;color:#5d707c}
.public-header{display:flex;align-items:center;justify-content:space-between;padding:14px max(3vw,20px);border-bottom:1px solid #dce5eb;background:#fff}.public-header img{display:block;width:170px;height:auto}.public-header span{color:#607784;font-size:11px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.public-shell{min-height:calc(100vh - 76px);padding:1px 0 35px;background:#f4f7fa}.public-notice{width:min(1120px,92vw);margin:18px auto}
.portal-login{max-width:520px}.portal-dashboard{width:min(1180px,94vw);margin:30px auto}.portal-dashboard>header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px;padding:25px;border-radius:18px;background:linear-gradient(135deg,#17384e,#245b76);color:#fff}.portal-dashboard h1{margin:6px 0 12px;color:#fff}.portal-dashboard>footer{padding:20px;text-align:center;color:#70828e}.portal-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.portal-cards article{display:grid;gap:6px;padding:18px;border:1px solid #dce5eb;border-radius:14px;background:#fff}.portal-cards span,.portal-cards small{color:#778994}.portal-cards strong{color:#205c75;font-size:25px}
.import-preview .stats.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.import-confirm-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid #e1e8ed}.button.danger,button.danger{background:#a43b3b;color:#fff}
.access-badges,.admin-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.access-badges .badge:not(.ok){opacity:.55}.admin-row-actions form{margin:0}
@media(max-width:1050px){.workflow-board{grid-template-columns:repeat(3,1fr)}.stock-grid,.portal-cards{grid-template-columns:repeat(2,1fr)}.signature-public{grid-template-columns:1fr}.signature-public .panel{position:static}.security-grid{grid-template-columns:1fr}}
@media(max-width:720px){.workflow-board,.operations-strip,.details-grid,.stock-grid,.portal-cards{grid-template-columns:1fr}.case-hero,.case-status{align-items:stretch;flex-direction:column}.case-status{display:grid}.document-sheet{padding:22px}.signature-link{grid-template-columns:1fr}.map-toolbar form{align-items:stretch;flex-direction:column}.map-toolbar label{min-width:0}}
@media print{.workflow-board,.operations-strip,.case-status,.import-confirm-actions,.signature-public form{display:none!important}.document-sheet{max-width:none;border:0;box-shadow:none}.cemetery-map{overflow:visible}}

/* Eternize V11 — pesquisa global e acabamento premium */
.global-search{display:flex;flex:1 1 520px;max-width:620px;align-items:center;gap:7px;margin:0 auto}.global-search input{min-height:42px;border-color:#d9e3e9;background:#f7fafb}.global-search button{width:42px;min-width:42px;min-height:42px;padding:9px}.global-search button svg{width:19px}.global-search-page{padding:20px}.global-search-page .lookup-form{margin:0}.global-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:18px}.global-results>a{position:relative;display:grid;gap:5px;min-width:0;padding:17px 46px 17px 17px;border:1px solid #dde6eb;border-radius:13px;background:#fbfdfe;transition:.18s ease}.global-results>a:hover{border-color:#8dc9c8;background:#fff;box-shadow:0 12px 28px rgba(16,41,60,.09);text-decoration:none;transform:translateY(-1px)}.global-results>a span{color:#08767b;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.global-results>a strong{overflow:hidden;color:#1c394c;text-overflow:ellipsis;white-space:nowrap}.global-results>a small{overflow:hidden;color:#718491;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.global-results>a b{position:absolute;right:18px;top:50%;color:#15858a;font-size:20px;transform:translateY(-50%)}.search-empty{display:grid;max-width:620px;margin:70px auto;text-align:center;place-items:center}.search-empty>span{display:grid;width:76px;height:76px;place-items:center;margin-bottom:20px;border-radius:24px;background:#e8f6f5;color:#08767b}.search-empty svg{width:32px}.search-empty p{max-width:520px;color:#6d808e}.pdv-quick-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;padding:16px 18px;border:1px solid #cfe4e3;border-radius:14px;background:linear-gradient(120deg,#f0fbfa,#f8fbfd)}.pdv-quick-entry>div{display:grid;gap:3px}.pdv-quick-entry span{color:#69808d;font-size:13px}
@media(max-width:1050px){.topbar{flex-wrap:wrap}.global-search{order:3;flex-basis:100%;max-width:none}.global-results{grid-template-columns:1fr}}
@media(max-width:720px){.topbar-meta{display:none}.global-search{display:none}.pdv-quick-entry{align-items:stretch;flex-direction:column}.pdv-quick-entry .button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
