:root {
  --pm-orange: #f7931e;
  --pm-orange-2: #ffab36;
  --pm-orange-dark: #c96608;
  --pm-ink: #0b0e11;
  --pm-graphite: #24282d;
  --pm-bg: #f3f5f7;
  --pm-card: #ffffff;
  --pm-text: #16191d;
  --pm-muted: #707680;
  --pm-border: #e3e6ea;
  --pm-success: #16824b;
  --pm-warning: #c87900;
  --pm-danger: #c23d38;
  --pm-info: #2469a8;
  --pm-shadow-sm: 0 3px 12px rgba(18,22,27,.055);
  --pm-shadow: 0 12px 32px rgba(18,22,27,.085);
  --pm-radius: 18px;
  --pm-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--pm-bg); color: var(--pm-text); }
body { margin: 0; min-height: 100vh; background: var(--pm-bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
img { max-width: 100%; }

.pm-shell { min-height: 100vh; padding-bottom: calc(82px + var(--pm-safe-bottom)); }
.pm-topbar { position: sticky; top: 0; z-index: 40; background: linear-gradient(135deg,#080a0c 0%,#14181c 100%); border-bottom: 1px solid rgba(255,255,255,.06); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.pm-topbar-inner { max-width: 760px; margin: 0 auto; min-height: 82px; padding: 9px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.pm-brand { display:flex; align-items:center; min-width:0; padding:2px 0; }
.pm-logo-small { height: 62px; width: 154px; object-fit: contain; object-position:left center; display:block; filter:brightness(1.32) contrast(1.06); transform:translateZ(0); }
.pm-topbar-side { display:flex; align-items:center; gap:9px; flex:0 0 auto; }
.pm-topbar-title { color:#fff; font-size:13px; font-weight:800; letter-spacing:.01em; background:rgba(255,255,255,.075); border:1px solid rgba(255,255,255,.10); padding:8px 11px; border-radius:999px; }
.pm-topbar-dot { width:8px; height:8px; border-radius:50%; background:var(--pm-orange); box-shadow:0 0 0 4px rgba(247,147,30,.12); }

.pm-page { max-width: 760px; margin: 0 auto; padding: 20px 16px 26px; }
.pm-page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.pm-title { margin: 0; font-size: 25px; line-height:1.12; font-weight: 850; letter-spacing: -.025em; }
.pm-subtitle { margin: 5px 0 0; color: var(--pm-muted); font-size: 13px; line-height:1.45; }
.pm-eyebrow { color:var(--pm-orange-dark); font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; margin-bottom:6px; }
.pm-section { margin-top: 20px; }
.pm-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.pm-section-title { margin: 0; font-size: 15px; font-weight: 850; letter-spacing:-.01em; }
.pm-section-link { border:0; background:transparent; color:var(--pm-orange-dark); font-size:12px; font-weight:800; padding:6px 0; }

.pm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pm-card { background: var(--pm-card); border:1px solid var(--pm-border); border-radius: var(--pm-radius); box-shadow: var(--pm-shadow-sm); padding: 15px; }
.pm-card.compact { box-shadow:none; }
.pm-kpi { min-height:116px; position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; }
.pm-kpi::after { content:""; position:absolute; width:68px; height:68px; border-radius:50%; right:-26px; top:-28px; background:rgba(20,24,29,.035); }
.pm-kpi-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.pm-kpi small { color:var(--pm-muted); font-size:11.5px; line-height:1.3; font-weight:650; }
.pm-kpi strong { display:block; font-size:30px; line-height:1; letter-spacing:-.04em; margin-top:12px; }
.pm-kpi-note { font-size:10.5px; color:#92979e; margin-top:5px; }
.pm-kpi.orange strong { color: var(--pm-orange-dark); }
.pm-kpi.green strong { color: var(--pm-success); }
.pm-kpi.red strong { color: var(--pm-danger); }
.pm-kpi-icon { width:32px; height:32px; border-radius:10px; display:grid; place-items:center; background:#f6f7f8; color:#4f555c; flex:0 0 auto; }
.pm-kpi.orange .pm-kpi-icon { background:#fff2e1; color:var(--pm-orange-dark); }
.pm-kpi.green .pm-kpi-icon { background:#e8f5ed; color:var(--pm-success); }

.pm-list { display:flex; flex-direction:column; gap:9px; }
.pm-list-item { display:flex; align-items:center; gap:12px; padding:13px 14px; background:#fff; border:1px solid var(--pm-border); border-radius:16px; box-shadow:0 1px 0 rgba(10,15,20,.01); }
button.pm-list-item { appearance:none; }
.pm-list-item .grow { flex:1; min-width:0; }
.pm-list-item h3 { margin:0; font-size:14px; line-height:1.25; }
.pm-list-item p { margin:4px 0 0; font-size:12px; color:var(--pm-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pm-chevron { color:#9b9fa5; font-weight:900; }
.pm-avatar { width:44px; height:44px; border-radius:13px; display:grid; place-items:center; background:#fff3e2; color:#9d5000; font-weight:900; flex:0 0 auto; }
.pm-avatar.round { border-radius:50%; }

.pm-bottom-nav { position: fixed; bottom:0; left:0; right:0; z-index:50; background:rgba(255,255,255,.97); backdrop-filter:blur(14px); border-top:1px solid var(--pm-border); padding-bottom:var(--pm-safe-bottom); box-shadow:0 -8px 24px rgba(20,24,29,.045); }
.pm-bottom-nav-inner { max-width:760px; margin:0 auto; display:grid; grid-template-columns:repeat(5,1fr); }
.pm-nav-link { min-height:72px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; color:#686e75; font-size:10.5px; font-weight:650; position:relative; }
.pm-nav-icon { width:22px; height:22px; display:grid; place-items:center; }
.pm-nav-icon svg { width:21px; height:21px; display:block; }
.pm-nav-link.active { color:var(--pm-orange-dark); font-weight:850; }
.pm-nav-link.active::before { content:""; position:absolute; top:0; width:25px; height:3px; background:var(--pm-orange); border-radius:0 0 6px 6px; }

.pm-btn { border:0; border-radius:14px; min-height:48px; padding:0 17px; font-weight:850; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:transform .12s ease, box-shadow .12s ease; }
.pm-btn:active { transform:scale(.985); }
.pm-btn.primary { color:#fff; background:linear-gradient(135deg,var(--pm-orange),#eb7600); box-shadow:0 8px 18px rgba(239,123,0,.18); }
.pm-btn.secondary { color:var(--pm-text); background:#fff; border:1px solid var(--pm-border); }
.pm-btn.success { color:#fff; background:var(--pm-success); }
.pm-btn.full { width:100%; }
.pm-btn.sm { min-height:38px; padding:0 12px; font-size:12px; }
.pm-btn.icon { width:48px; padding:0; }

.pm-search { position:relative; }
.pm-search input, .pm-field input, .pm-field textarea, .pm-field select { width:100%; border:1px solid #dce0e4; background:#fff; border-radius:13px; padding:13px 14px; outline:none; color:var(--pm-text); transition:border .15s ease, box-shadow .15s ease; }
.pm-field textarea { resize:vertical; min-height:100px; }
.pm-search input:focus, .pm-field input:focus, .pm-field textarea:focus, .pm-field select:focus { border-color:var(--pm-orange); box-shadow:0 0 0 3px rgba(247,147,30,.12); }
.pm-field { margin-bottom:14px; }
.pm-field label { display:block; font-size:12.5px; font-weight:850; margin-bottom:7px; }
.pm-help { font-size:11.5px; color:var(--pm-muted); margin-top:6px; line-height:1.45; }

.pm-pill-row { display:flex; gap:8px; overflow:auto; padding-bottom:4px; scrollbar-width:none; }
.pm-pill-row::-webkit-scrollbar { display:none; }
.pm-pill { white-space:nowrap; border:1px solid var(--pm-border); border-radius:999px; background:#fff; padding:8px 12px; font-size:11.5px; font-weight:750; }
.pm-pill.active { background:#fff2e1; border-color:#ffc980; color:#9b4e00; }
.pm-status { display:inline-flex; align-items:center; padding:5px 8px; border-radius:999px; font-size:10.5px; font-weight:850; }
.pm-status.success { background:#e5f5eb; color:#126e3e; }
.pm-status.warning { background:#fff1d4; color:#965700; }
.pm-status.danger { background:#fde8e7; color:#9b2925; }
.pm-status.neutral { background:#edf0f3; color:#565b61; }

.pm-alert { display:flex; gap:11px; align-items:center; padding:12px 13px; border-radius:15px; background:#fff; border:1px solid var(--pm-border); min-height:67px; position:relative; overflow:hidden; }
.pm-alert + .pm-alert { margin-top:8px; }
.pm-alert::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:#e2e5e8; }
.pm-alert.warning::before { background:#efa02f; }
.pm-alert.danger::before { background:#db5b55; }
.pm-alert.success::before { background:#36a064; }
.pm-alert-icon { width:34px; height:34px; border-radius:11px; display:grid; place-items:center; background:#fff3df; color:var(--pm-orange-dark); flex:0 0 auto; }
.pm-alert-icon svg { width:18px; height:18px; }
.pm-alert .grow { flex:1; min-width:0; }
.pm-alert strong { font-size:12.5px; display:block; line-height:1.3; }
.pm-alert p { margin:3px 0 0; font-size:11.5px; color:var(--pm-muted); line-height:1.35; }
.pm-alert-arrow { color:#a2a6ab; font-weight:900; }

.pm-action-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.pm-action { border:1px solid var(--pm-border); border-radius:16px; background:#fff; min-height:94px; padding:10px 7px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; font-size:11px; line-height:1.25; font-weight:850; box-shadow:var(--pm-shadow-sm); }
.pm-action .icon { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:#fff1df; color:#b15b00; font-size:18px; }
.pm-action .icon svg { width:20px; height:20px; }

.pm-workflow { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.pm-workflow-item { background:#fff; border:1px solid var(--pm-border); border-radius:15px; padding:12px 8px; text-align:center; box-shadow:var(--pm-shadow-sm); }
.pm-workflow-number { font-size:24px; line-height:1; font-weight:900; letter-spacing:-.04em; }
.pm-workflow-label { font-size:10.5px; color:var(--pm-muted); margin-top:5px; line-height:1.25; }
.pm-workflow-item.orange .pm-workflow-number { color:var(--pm-orange-dark); }
.pm-workflow-item.blue .pm-workflow-number { color:var(--pm-info); }
.pm-workflow-item.green .pm-workflow-number { color:var(--pm-success); }

.pm-next-card { display:flex; align-items:center; gap:12px; background:linear-gradient(135deg,#15191d,#0c0f12); color:#fff; border-radius:18px; padding:15px; box-shadow:var(--pm-shadow); }
.pm-next-time { width:58px; min-height:58px; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:rgba(247,147,30,.13); border:1px solid rgba(247,147,30,.22); flex:0 0 auto; }
.pm-next-time strong { color:var(--pm-orange-2); font-size:18px; }
.pm-next-time span { font-size:9px; color:#bdc2c8; text-transform:uppercase; letter-spacing:.07em; }
.pm-next-card .grow { flex:1; min-width:0; }
.pm-next-card h3 { margin:0; font-size:13px; }
.pm-next-card p { margin:4px 0 0; font-size:11.5px; color:#b8bec5; }
.pm-next-card .pm-chevron { color:#fff; }

.pm-toolbar { display:flex; gap:10px; align-items:center; margin:14px 0; }
.pm-toolbar .pm-search { flex:1; }
.pm-fab { position:fixed; right:20px; bottom:calc(94px + var(--pm-safe-bottom)); width:56px; height:56px; border-radius:18px; border:0; background:linear-gradient(135deg,var(--pm-orange),#ef7b00); color:#fff; font-size:28px; box-shadow:0 14px 30px rgba(239,123,0,.30); z-index:25; }

.pm-tabs { display:flex; gap:4px; background:#e9ecef; padding:4px; border-radius:14px; overflow:auto; scrollbar-width:none; }
.pm-tabs::-webkit-scrollbar { display:none; }
.pm-tab { flex:1; min-width:max-content; border:0; background:transparent; border-radius:11px; padding:9px 10px; font-size:11.5px; font-weight:850; color:#656970; }
.pm-tab.active { background:#fff; color:var(--pm-text); box-shadow:0 2px 8px rgba(0,0,0,.05); }
.pm-tab-panel { display:none; margin-top:14px; }
.pm-tab-panel.active { display:block; }

.pm-machine-hero { background:#fff; border:1px solid var(--pm-border); border-radius:19px; overflow:hidden; box-shadow:var(--pm-shadow-sm); }
.pm-machine-hero img { width:100%; aspect-ratio:16/9; object-fit:contain; background:#f0f2f4; display:block; }
.pm-machine-hero-body { padding:15px; }
.pm-machine-hero h2 { margin:0; }
.pm-meta { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:start; font-size:12.5px; padding:10px 0; border-bottom:1px solid #eff1f3; }
.pm-meta:last-child { border-bottom:0; }
.pm-meta span { color:var(--pm-muted); }
.pm-meta strong { text-align:right; }

.pm-login { min-height:100vh; background:radial-gradient(circle at 50% -10%,#272c31 0%,#111519 39%,#07090b 80%); color:#fff; display:flex; align-items:center; justify-content:center; padding:28px 18px calc(28px + var(--pm-safe-bottom)); }
.pm-login-card { width:min(410px,100%); }
.pm-login-brand { text-align:center; margin-bottom:30px; }
.pm-login-logo { width:min(350px,96%); display:block; margin:0 auto; }
.pm-login-badge { display:inline-flex; align-items:center; gap:7px; margin-top:10px; padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.05); color:#d2d6db; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.pm-login-badge::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--pm-orange); }
.pm-login-form { background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.08); border-radius:22px; padding:18px; box-shadow:0 18px 55px rgba(0,0,0,.20); }
.pm-login-card h1 { font-size:21px; margin:0 0 5px; }
.pm-login-card p { color:#9fa6ad; margin:0 0 20px; font-size:12.5px; }
.pm-login .pm-field input { background:#15191d; color:#fff; border-color:#343a40; }
.pm-login .pm-field label { color:#e4e7ea; }
.pm-login-links { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#aeb4ba; font-size:11.5px; margin:8px 0 18px; }
.pm-login-divider { display:flex; align-items:center; gap:10px; color:#707780; font-size:11px; margin:15px 0; }
.pm-login-divider::before,.pm-login-divider::after { content:""; height:1px; flex:1; background:#30353a; }
.pm-login .pm-btn.secondary { background:transparent; color:#fff; border-color:#353a40; }
.pm-login-version { text-align:center; color:#686f77; font-size:10.5px; margin-top:16px; }

.pm-stepper { display:flex; align-items:center; justify-content:space-between; gap:5px; margin:18px 0 22px; }
.pm-step { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:#e9ecef; color:#7b8086; font-size:10.5px; font-weight:900; }
.pm-step.active { background:var(--pm-orange); color:#fff; box-shadow:0 5px 12px rgba(247,147,30,.22); }
.pm-step.done { background:#dff3e6; color:#167242; }
.pm-step-line { height:2px; flex:1; background:#e4e7ea; }
.pm-os-panel { display:none; }
.pm-os-panel.active { display:block; }
.pm-os-footer { display:grid; grid-template-columns:1fr 1.5fr; gap:10px; margin-top:22px; }

.pm-choice-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.pm-choice { border:1px solid var(--pm-border); border-radius:16px; background:#fff; padding:16px; text-align:center; min-height:94px; font-weight:850; }
.pm-choice.active { border:2px solid var(--pm-orange); background:#fff7ee; color:#965000; }
.pm-machine-option { border:1px solid var(--pm-border); border-radius:16px; display:flex; gap:12px; align-items:center; background:#fff; padding:11px; }
.pm-machine-option.selected { border:2px solid var(--pm-orange); background:#fff9f2; }
.pm-machine-option img { width:70px; height:54px; object-fit:contain; background:#f3f4f6; border-radius:10px; }

.pm-photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.pm-photo-grid img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:12px; border:1px solid var(--pm-border); }
.pm-photo-add { aspect-ratio:1/1; border:1.5px dashed #c7cbd0; border-radius:12px; display:grid; place-items:center; background:#fff; font-weight:850; color:#61666d; }
.pm-check-list { display:flex; flex-direction:column; gap:9px; }
.pm-check { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--pm-border); border-radius:12px; background:#fff; }
.pm-check input { width:18px; height:18px; accent-color:var(--pm-orange); }

.pm-terms { background:#fff8ec; border:1px solid #ffd69c; padding:14px; border-radius:14px; font-size:11.5px; line-height:1.55; }
.pm-signature-wrap { margin-top:14px; }
#signatureCanvas { width:100%; height:180px; border:1px solid #cfd4da; border-radius:13px; background:#fff; touch-action:none; display:block; }
.pm-signature-actions { display:flex; justify-content:flex-end; margin-top:7px; }
.pm-link-btn { border:0; background:none; color:var(--pm-orange-dark); font-weight:850; padding:5px; }

.pm-toast { position:fixed; left:50%; bottom:calc(92px + var(--pm-safe-bottom)); transform:translateX(-50%) translateY(20px); opacity:0; pointer-events:none; background:#111519; color:#fff; padding:12px 16px; border-radius:13px; font-size:12.5px; transition:.2s ease; z-index:100; box-shadow:0 10px 25px rgba(0,0,0,.25); max-width:calc(100vw - 32px); text-align:center; }
.pm-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

@media (min-width:680px) {
  .pm-grid { grid-template-columns:repeat(4,1fr); }
  .pm-page { padding:24px; }
  .pm-action-grid { grid-template-columns:repeat(6,1fr); }
  .pm-workflow { grid-template-columns:repeat(6,1fr); }
  .pm-logo-small { height:66px; width:166px; }
}

/* V3 - backend real */
.pm-flash{padding:12px 14px;border-radius:13px;margin-bottom:12px;font-size:12.5px;font-weight:750}.pm-flash.success{background:#e6f5ec;color:#126e3e;border:1px solid #bce4cb}.pm-flash.danger{background:#fde9e8;color:#922d29;border:1px solid #f3c5c2}.pm-flash.warning{background:#fff2d8;color:#8b5800;border:1px solid #f4d69a}.pm-install-card{width:min(520px,100%)}.pm-install-form{max-height:none}.pm-separator{border:0;border-top:1px solid rgba(255,255,255,.10);margin:18px 0}.pm-grid-form{display:grid;grid-template-columns:1fr;gap:0 10px}.pm-form-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:16px}.pm-select-list{display:flex;flex-direction:column;gap:9px;margin-top:12px}.pm-select-card.selected{border:2px solid var(--pm-orange);background:#fff9f2}.pm-machine-thumb{width:70px;height:54px;display:grid;place-items:center;background:#f1f3f5;border-radius:10px;font-size:22px}.pm-photo-preview{display:flex;flex-direction:column;gap:7px}.pm-photo-name{background:#fff;border:1px solid var(--pm-border);border-radius:11px;padding:10px 12px;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm-machine-placeholder{height:190px;display:grid;place-items:center;background:#eef1f3;font-size:54px;color:#767b81}.pm-chip-row{display:flex;flex-wrap:wrap;gap:7px}.pm-chip{display:inline-flex;padding:7px 10px;border-radius:999px;background:#fff2e1;color:#8e4a00;border:1px solid #ffd39f;font-size:11px;font-weight:800}.pm-signature-image{width:100%;max-height:190px;object-fit:contain;background:#fff;border:1px solid var(--pm-border);border-radius:13px;margin-top:12px}.pm-good{color:var(--pm-success)}.pm-os-summary{margin-bottom:12px}
@media(min-width:600px){.pm-grid-form{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-grid-form .pm-field:last-child:nth-child(3){grid-column:auto}.pm-install-card{padding:20px 0}}

/* V4 - comprovante de serviço */
.pm-service-mode-banner{display:flex;gap:11px;align-items:center;background:linear-gradient(135deg,#fff3e3,#fff9f1);border:1px solid #ffd5a2;border-radius:15px;padding:12px 14px;margin:12px 0;color:#7a4300}.pm-service-mode-banner>div{display:flex;flex-direction:column;gap:2px}.pm-service-mode-banner strong{font-size:12.5px}.pm-service-mode-banner span{font-size:10.8px;color:#8f6331}.pm-signature-canvas{width:100%;height:180px;border:1px solid #cfd4da;border-radius:13px;background:#fff;touch-action:none;display:block}.pm-completion-signed{border:1px solid #bee3cb;background:#eff9f3;border-radius:14px;padding:11px}.pm-completion-signed>span{font-weight:850;font-size:12px;color:#176b40}.pm-complete-btn{margin-top:14px}.pm-receipt-ready{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#15191d,#0d1013);color:#fff;border-radius:17px;padding:14px 15px;box-shadow:var(--pm-shadow);text-decoration:none}.pm-receipt-ready>span{font-size:24px}.pm-receipt-ready>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.pm-receipt-ready strong{font-size:12.5px}.pm-receipt-ready small{font-size:10.5px;color:#bac0c7}.pm-receipt-ready>b{font-size:22px;color:var(--pm-orange)}
.pm-receipt-body{margin:0;background:#eef1f4;color:#16191d;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:18px 12px 36px}.pm-receipt-actions{width:min(820px,100%);margin:0 auto 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pm-receipt-sheet{width:min(820px,100%);margin:0 auto;background:#fff;border-radius:18px;box-shadow:0 12px 38px rgba(0,0,0,.10);overflow:hidden;padding:28px 30px;box-sizing:border-box}.pm-receipt-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:18px;border-bottom:3px solid #f7931e}.pm-receipt-head img{width:205px;max-width:46%;height:auto;filter:brightness(1.18) contrast(1.04)}.pm-receipt-company{display:flex;flex-direction:column;text-align:right;gap:3px;font-size:10.5px;color:#60656b}.pm-receipt-company strong{font-size:12px;color:#14171a}.pm-receipt-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;padding:20px 0 8px}.pm-receipt-title h1{font-size:20px;margin:0;letter-spacing:.02em}.pm-receipt-title p{margin:4px 0 0;color:#6b7077;font-size:11px}.pm-receipt-title>strong{font-size:12px}.pm-receipt-section{padding:16px 0;border-top:1px solid #e6e9ec}.pm-receipt-section h2{font-size:11px;text-transform:uppercase;letter-spacing:.10em;color:#ef7b00;margin:0 0 11px}.pm-receipt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.pm-receipt-grid>div,.pm-receipt-values>div{display:flex;flex-direction:column;gap:3px}.pm-receipt-grid .wide{grid-column:1/-1}.pm-receipt-grid span,.pm-receipt-values span,.pm-receipt-block span,.pm-receipt-signature>span{font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;color:#777d84;font-weight:800}.pm-receipt-grid strong,.pm-receipt-values strong{font-size:12px}.pm-receipt-block{margin-bottom:10px}.pm-receipt-block:last-child{margin-bottom:0}.pm-receipt-block p{font-size:11.5px;line-height:1.48;margin:4px 0 0}.pm-receipt-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pm-receipt-values .total{background:#fff4e6;border:1px solid #ffd4a0;border-radius:10px;padding:9px}.pm-receipt-values .total strong{font-size:15px;color:#8c4a00}.pm-receipt-signature{padding:18px 0;border-top:1px solid #e6e9ec;text-align:center}.pm-receipt-signature img{display:block;max-width:310px;width:68%;height:105px;object-fit:contain;margin:8px auto 4px;border-bottom:1px solid #8b9096}.pm-receipt-signature-line{width:70%;height:80px;border-bottom:1px solid #8b9096;margin:6px auto}.pm-receipt-signature small{font-size:9.5px;color:#777d84}.pm-receipt-footer{border-top:2px solid #171a1e;padding-top:12px;display:flex;flex-direction:column;gap:3px;text-align:center;font-size:9.5px;color:#6e747a}.pm-receipt-footer strong{font-size:10.5px;color:#171a1e}.pm-receipt-footer .pm-non-fiscal{font-weight:850;color:#8a4c00;margin-top:3px}.pm-receipt-share-help{width:min(820px,100%);margin:12px auto 0;background:#fff7e9;border:1px solid #ffd8a6;border-radius:13px;padding:11px 13px;box-sizing:border-box;font-size:11px;color:#735022}.pm-receipt-public-top{width:min(820px,100%);margin:0 auto 12px;background:#111519;color:#fff;border-radius:14px;padding:10px 13px;display:flex;align-items:center;gap:12px;box-sizing:border-box}.pm-receipt-public-top img{width:118px;filter:brightness(1.28) contrast(1.05)}.pm-receipt-public-top>div{display:flex;flex-direction:column;gap:2px}.pm-receipt-public-top strong{font-size:12px}.pm-receipt-public-top span{font-size:10px;color:#b9bec4}
@media(max-width:620px){.pm-receipt-body{padding:10px 8px 28px}.pm-receipt-actions{grid-template-columns:1fr}.pm-receipt-sheet{padding:20px 16px;border-radius:13px}.pm-receipt-head{align-items:center}.pm-receipt-head img{width:150px;max-width:48%}.pm-receipt-company{font-size:8.7px}.pm-receipt-company strong{font-size:10px}.pm-receipt-title h1{font-size:16px}.pm-receipt-values{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.no-print,.pm-bottom-nav,.pm-topbar{display:none!important}.pm-receipt-body{background:#fff;padding:0}.pm-receipt-sheet{box-shadow:none;border-radius:0;width:100%;max-width:none;padding:12mm 13mm}.pm-receipt-head{break-inside:avoid}.pm-receipt-section,.pm-receipt-signature{break-inside:avoid} @page{size:A4;margin:0}}

/* V4.1 - legibilidade da marca sem alterar a logo original */
@media(max-width:390px){.pm-topbar-inner{padding-left:12px;padding-right:12px}.pm-logo-small{width:146px;height:59px}.pm-topbar-title{font-size:12px;padding:7px 10px}}

/* V4.3 — marca original sobre faixa clara para dar leitura a “Máquinas de Costura”.
   A cor laranja/cinza da identidade não é alterada por filtro. */
.pm-topbar {
  background: linear-gradient(180deg,#f7f4ef 0%,#f1ede6 100%);
  border-bottom: 1px solid #ddd5ca;
  box-shadow: 0 6px 20px rgba(25,28,32,.10);
}
.pm-topbar-inner { min-height: 88px; padding-top: 8px; padding-bottom: 8px; }
.pm-brand {
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}
.pm-logo-small {
  width: 188px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
  filter: none !important;
}
.pm-topbar-title {
  color: #fff;
  background: #24282d;
  border: 1px solid #3a3f45;
  box-shadow: 0 3px 10px rgba(20,24,29,.12);
}
.pm-topbar-dot { background: var(--pm-orange); }
.pm-receipt-head img,
.pm-receipt-public-top img { filter: none !important; }
.pm-receipt-public-top { background:#f4f1ec; color:#17191d; border:1px solid #ddd5ca; }
.pm-receipt-public-top span { color:#6b7077; }
@media(max-width:390px){
  .pm-logo-small{width:174px;height:66px}
  .pm-topbar-inner{padding-left:12px;padding-right:12px}
}

/* V4.4 — comprovante premium, mantendo as cores originais da marca */
.pm-receipt-v44{--r-orange:#f7931e;--r-orange-dark:#c96800;--r-ink:#17191d;--r-muted:#6e7480;--r-line:#e8e9ec;--r-soft:#fff7ee;--r-bg:#f6f7f9}
.pm-receipt-v44 svg{width:1em;height:1em;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pm-receipt-v44.pm-receipt-sheet{width:min(860px,100%);padding:30px 34px 28px;border-radius:24px;box-shadow:0 16px 48px rgba(22,25,29,.11);border:1px solid #ececef;background:#fff;overflow:hidden}
.pm-receipt-v44 .pm-receipt-head{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(250px,.88fr);align-items:center;gap:28px;padding:0 0 20px;border:0}
.pm-receipt-v44 .pm-receipt-brand-wrap{display:flex;align-items:center;min-width:0}
.pm-receipt-v44 .pm-receipt-head img{display:block;width:min(360px,100%);max-width:100%;height:auto;filter:none!important;mix-blend-mode:normal}
.pm-receipt-v44 .pm-receipt-company{text-align:left;gap:8px;color:var(--r-muted);font-size:11.5px;line-height:1.35}
.pm-receipt-v44 .pm-receipt-company>strong{font-size:15.5px;color:var(--r-ink);margin-bottom:2px}
.pm-receipt-v44 .pm-company-line{display:grid;grid-template-columns:19px 1fr;align-items:start;gap:8px}
.pm-receipt-v44 .pm-company-line svg{font-size:18px;color:#707782;margin-top:1px}
.pm-receipt-v44 .pm-company-line b{font-weight:500;color:#5f6671}
.pm-receipt-v44 .pm-company-wa svg{color:var(--r-orange)}
.pm-receipt-v44 .pm-receipt-accent{height:4px;border-radius:99px;background:linear-gradient(90deg,#f7931e 0%,#ffad42 52%,#f7931e 100%);margin:0 0 20px}
.pm-receipt-v44 .pm-receipt-title{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:0 0 18px;border:0}
.pm-receipt-v44 .pm-receipt-title-main{display:flex;align-items:center;gap:14px;min-width:0}
.pm-receipt-v44 .pm-title-icon{display:grid;place-items:center;flex:0 0 50px;width:50px;height:50px;border-radius:50%;background:linear-gradient(145deg,#ff9d25,#ef7200);color:#fff;box-shadow:0 8px 18px rgba(247,147,30,.22)}
.pm-receipt-v44 .pm-title-icon svg{font-size:27px}
.pm-receipt-v44 .pm-receipt-title h1{font-size:22px;line-height:1.1;letter-spacing:.005em;margin:0;color:var(--r-ink)}
.pm-receipt-v44 .pm-receipt-title p{font-size:12px;margin:5px 0 0;color:var(--r-muted)}
.pm-receipt-v44 .pm-receipt-date{display:flex;align-items:center;gap:9px;padding:12px 14px;border-left:1px solid var(--r-line);white-space:nowrap}
.pm-receipt-v44 .pm-receipt-date span{color:var(--r-orange);font-size:24px}
.pm-receipt-v44 .pm-receipt-date strong{font-size:15px;color:var(--r-ink)}
.pm-receipt-v44 .pm-receipt-section{padding:18px 0 4px;border:0}
.pm-receipt-v44 .pm-receipt-section h2{display:flex;align-items:center;gap:8px;font-size:12.5px;letter-spacing:.025em;text-transform:uppercase;color:#ee7800;margin:0 0 11px;font-weight:900}
.pm-receipt-v44 .pm-receipt-section h2>span{font-size:20px;color:#f17d00}
.pm-receipt-v44 .pm-receipt-card{border:1px solid #e4e6e9;border-radius:16px;background:linear-gradient(180deg,#fff,#fdfdfd);overflow:hidden;box-shadow:0 2px 8px rgba(22,25,29,.025)}
.pm-receipt-v44 .pm-client-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px}
.pm-receipt-v44 .pm-info-item{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:12px;min-height:88px;padding:12px 12px;border-bottom:1px solid var(--r-line)}
.pm-receipt-v44 .pm-info-item:nth-child(odd):not(.wide){border-right:1px solid var(--r-line)}
.pm-receipt-v44 .pm-info-item.wide{grid-column:1/-1;border-bottom:0}
.pm-receipt-v44 .pm-info-item i,.pm-receipt-v44 .pm-warranty-item i{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff4e8;color:#ef7c00;font-style:normal;border:1px solid #ffe0bd}
.pm-receipt-v44 .pm-info-item i svg,.pm-receipt-v44 .pm-warranty-item i svg{font-size:21px}
.pm-receipt-v44 .pm-info-item>div,.pm-receipt-v44 .pm-warranty-item>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.pm-receipt-v44 .pm-info-item span,.pm-receipt-v44 .pm-service-cell span,.pm-receipt-v44 .pm-values-top span,.pm-receipt-v44 .pm-total-box span,.pm-receipt-v44 .pm-pay-details span,.pm-receipt-v44 .pm-warranty-item span,.pm-receipt-v44 .pm-signature-label{font-size:9.7px;text-transform:uppercase;letter-spacing:.07em;color:#777e89;font-weight:850}
.pm-receipt-v44 .pm-info-item strong{font-size:13px;color:var(--r-ink);overflow-wrap:anywhere}
.pm-receipt-v44 .pm-service-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px}
.pm-receipt-v44 .pm-service-cell{padding:18px 12px;min-height:72px;border-bottom:1px solid var(--r-line)}
.pm-receipt-v44 .pm-service-cell:nth-child(odd):not(.wide){border-right:1px solid var(--r-line)}
.pm-receipt-v44 .pm-service-cell.wide{grid-column:1/-1}
.pm-receipt-v44 .pm-service-cell:last-child{border-bottom:0}
.pm-receipt-v44 .pm-service-cell p{font-size:12.3px;line-height:1.5;margin:7px 0 0;color:#2b2f34}
.pm-receipt-v44 .pm-values-card{padding:0 14px}
.pm-receipt-v44 .pm-values-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--r-line)}
.pm-receipt-v44 .pm-values-top>div{padding:16px 14px;display:flex;flex-direction:column;gap:5px;text-align:left}
.pm-receipt-v44 .pm-values-top>div+div{border-left:1px solid var(--r-line)}
.pm-receipt-v44 .pm-values-top strong{font-size:13px;color:#2d3136}
.pm-receipt-v44 .pm-values-bottom{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);gap:18px;padding:16px 0}
.pm-receipt-v44 .pm-total-box{display:flex;flex-direction:column;justify-content:center;gap:6px;background:linear-gradient(145deg,#fff8ef,#fff2df);border:1px solid #ffd7aa;border-radius:14px;padding:15px 18px}
.pm-receipt-v44 .pm-total-box span{color:#d46c00}
.pm-receipt-v44 .pm-total-box strong{font-size:27px;color:#d36900;letter-spacing:-.02em}
.pm-receipt-v44 .pm-pay-details{display:grid;grid-template-rows:1fr 1fr}
.pm-receipt-v44 .pm-pay-details>div{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:10px;padding:4px 8px}
.pm-receipt-v44 .pm-pay-details>div+div{border-top:1px solid var(--r-line)}
.pm-receipt-v44 .pm-pay-details i{display:grid;place-items:center;color:#ef7b00;font-style:normal;font-size:23px}
.pm-receipt-v44 .pm-pay-details>div>div{display:flex;flex-direction:column;gap:3px}
.pm-receipt-v44 .pm-pay-details strong{font-size:12.5px;color:var(--r-ink)}
.pm-receipt-v44 .pm-warranty-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 12px}
.pm-receipt-v44 .pm-warranty-item{display:grid;grid-template-columns:43px minmax(0,1fr);align-items:center;gap:10px;padding:8px 12px;min-height:62px}
.pm-receipt-v44 .pm-warranty-item+.pm-warranty-item{border-left:1px solid var(--r-line)}
.pm-receipt-v44 .pm-warranty-item strong{font-size:12.5px;color:var(--r-ink)}
.pm-receipt-v44 .pm-receipt-signature{margin:20px 0 0;padding:16px 18px;border:1px solid #e4e6e9;border-radius:16px;text-align:center;background:#fff}
.pm-receipt-v44 .pm-receipt-signature img{display:block;max-width:330px;width:70%;height:92px;object-fit:contain;margin:8px auto 3px;border-bottom:1px solid #a6abb1}
.pm-receipt-v44 .pm-receipt-signature-line{width:70%;height:70px;border-bottom:1px solid #a6abb1;margin:4px auto}
.pm-receipt-v44 .pm-receipt-signature small{font-size:9.5px;color:#858b92}
.pm-receipt-v44 .pm-receipt-footer{margin:22px -34px -28px;padding:20px 34px 22px;border:0;background:#fafafa;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px;color:#747a83;font-size:9.5px}
.pm-receipt-v44 .pm-thanks{display:flex;align-items:center;gap:7px;font-size:12px;color:#69707b;margin-bottom:2px}
.pm-receipt-v44 .pm-thanks svg{font-size:17px;color:#f17c00}
.pm-receipt-v44 .pm-receipt-footer>strong{font-size:12px;color:#5d6470}
.pm-receipt-v44 .pm-receipt-footer .pm-non-fiscal{margin-top:5px;font-size:9px;font-weight:750;color:#9a650f}

@media(max-width:620px){
  .pm-receipt-v44.pm-receipt-sheet{padding:20px 15px 20px;border-radius:16px}
  .pm-receipt-v44 .pm-receipt-head{grid-template-columns:1fr;gap:13px;padding-bottom:13px}
  .pm-receipt-v44 .pm-receipt-head img{width:260px;max-width:82%;margin:0 auto}
  .pm-receipt-v44 .pm-receipt-company{text-align:center;align-items:center;font-size:9.5px;gap:5px}
  .pm-receipt-v44 .pm-receipt-company>strong{font-size:12px}
  .pm-receipt-v44 .pm-company-line{grid-template-columns:15px auto;text-align:left}
  .pm-receipt-v44 .pm-company-line svg{font-size:15px}
  .pm-receipt-v44 .pm-receipt-accent{margin-bottom:15px}
  .pm-receipt-v44 .pm-receipt-title{align-items:center;gap:8px;padding-bottom:10px}
  .pm-receipt-v44 .pm-title-icon{width:40px;height:40px;flex-basis:40px}
  .pm-receipt-v44 .pm-title-icon svg{font-size:22px}
  .pm-receipt-v44 .pm-receipt-title h1{font-size:15.5px}
  .pm-receipt-v44 .pm-receipt-title p{font-size:9.5px}
  .pm-receipt-v44 .pm-receipt-date{padding:8px 0 8px 9px;gap:5px}
  .pm-receipt-v44 .pm-receipt-date span{font-size:18px}
  .pm-receipt-v44 .pm-receipt-date strong{font-size:11px}
  .pm-receipt-v44 .pm-receipt-section{padding-top:14px}
  .pm-receipt-v44 .pm-receipt-section h2{font-size:10.5px}
  .pm-receipt-v44 .pm-receipt-section h2>span{font-size:17px}
  .pm-receipt-v44 .pm-client-card,.pm-receipt-v44 .pm-service-card{grid-template-columns:1fr;padding:0 10px}
  .pm-receipt-v44 .pm-info-item{grid-template-columns:38px 1fr;min-height:66px;padding:9px 8px;border-right:0!important}
  .pm-receipt-v44 .pm-info-item.wide{grid-column:auto}
  .pm-receipt-v44 .pm-info-item i{width:32px;height:32px}
  .pm-receipt-v44 .pm-info-item i svg{font-size:18px}
  .pm-receipt-v44 .pm-info-item span,.pm-receipt-v44 .pm-service-cell span,.pm-receipt-v44 .pm-values-top span,.pm-receipt-v44 .pm-total-box span,.pm-receipt-v44 .pm-pay-details span,.pm-receipt-v44 .pm-warranty-item span{font-size:8.5px}
  .pm-receipt-v44 .pm-info-item strong{font-size:11.5px}
  .pm-receipt-v44 .pm-service-cell{min-height:0;padding:13px 8px;border-right:0!important}
  .pm-receipt-v44 .pm-service-cell.wide{grid-column:auto}
  .pm-receipt-v44 .pm-service-cell p{font-size:11px;margin-top:5px}
  .pm-receipt-v44 .pm-values-card{padding:0 10px}
  .pm-receipt-v44 .pm-values-top{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pm-receipt-v44 .pm-values-top>div{padding:12px 7px}
  .pm-receipt-v44 .pm-values-top strong{font-size:10.5px}
  .pm-receipt-v44 .pm-values-bottom{grid-template-columns:1fr;gap:10px;padding:12px 0}
  .pm-receipt-v44 .pm-total-box{padding:12px 14px}
  .pm-receipt-v44 .pm-total-box strong{font-size:23px}
  .pm-receipt-v44 .pm-pay-details>div{min-height:50px}
  .pm-receipt-v44 .pm-warranty-card{grid-template-columns:1fr;padding:4px 10px}
  .pm-receipt-v44 .pm-warranty-item{grid-template-columns:36px 1fr;min-height:55px;padding:8px 6px}
  .pm-receipt-v44 .pm-warranty-item+.pm-warranty-item{border-left:0;border-top:1px solid var(--r-line)}
  .pm-receipt-v44 .pm-warranty-item i{width:32px;height:32px}
  .pm-receipt-v44 .pm-warranty-item i svg{font-size:17px}
  .pm-receipt-v44 .pm-receipt-footer{margin:18px -15px -20px;padding:17px 15px 19px}
}

@media print{
  .pm-receipt-v44.pm-receipt-sheet{width:100%;max-width:none;padding:10mm 11mm 8mm;border:0;border-radius:0;box-shadow:none}
  .pm-receipt-v44 .pm-receipt-head{grid-template-columns:1.05fr .95fr;gap:12mm}
  .pm-receipt-v44 .pm-receipt-head img{width:72mm}
  .pm-receipt-v44 .pm-receipt-footer{margin:7mm -11mm -8mm;padding:6mm 11mm}
  .pm-receipt-v44 .pm-receipt-card,.pm-receipt-v44 .pm-receipt-title,.pm-receipt-v44 .pm-receipt-section{break-inside:avoid}
}

/* V4.6 — pós-venda: garantias, revisões e alertas */
.pm-aftercare-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pm-aftercare-summary>div{background:#fff;border:1px solid var(--pm-border);border-radius:16px;padding:14px 12px;box-shadow:var(--pm-shadow);display:flex;flex-direction:column;gap:5px;min-width:0}
.pm-aftercare-summary small{font-size:10.5px;color:#747a80;font-weight:800;line-height:1.25}
.pm-aftercare-summary strong{font-size:24px;line-height:1;color:#17191d}
.pm-aftercare-list{display:flex;flex-direction:column;gap:11px}
.pm-aftercare-card{background:#fff;border:1px solid var(--pm-border);border-radius:18px;padding:15px;box-shadow:var(--pm-shadow)}
.pm-aftercare-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.pm-aftercare-card-head>div{min-width:0;flex:1}
.pm-aftercare-card-head h3{font-size:13px;line-height:1.3;margin:0;color:#17191d}
.pm-aftercare-card-head p{font-size:10.5px;color:#777d84;margin:4px 0 0;line-height:1.35}
.pm-aftercare-card-head .pm-status{flex:0 0 auto;max-width:42%;text-align:center}
.pm-aftercare-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:13px;border:1px solid #edf0f2;border-radius:13px;overflow:hidden;background:#fafbfc}
.pm-aftercare-meta>div{display:flex;flex-direction:column;gap:3px;padding:10px 9px;min-width:0}
.pm-aftercare-meta>div+div{border-left:1px solid #e8eaed}
.pm-aftercare-meta span{font-size:8.5px;text-transform:uppercase;letter-spacing:.04em;color:#858b91;font-weight:850}
.pm-aftercare-meta strong{font-size:10.8px;color:#25292e;overflow-wrap:anywhere}
.pm-aftercare-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.pm-aftercare-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid #e2e5e8;border-radius:10px;background:#fff;color:#4b5158;text-decoration:none;font-size:10.5px;font-weight:850}
.pm-aftercare-actions a:nth-child(2){border-color:#ffd3a1;color:#a05400;background:#fff8ef}
.pm-aftercare-note{margin-top:11px;padding:9px 10px;border-radius:11px;background:#f6f7f8;color:#666d74;font-size:10.3px;line-height:1.4}
.pm-aftercare-note strong{color:#34393e}
.pm-aftercare-tools{margin-top:11px;border-top:1px solid #eceef0;padding-top:9px}
.pm-aftercare-tools summary{cursor:pointer;font-size:10.8px;font-weight:850;color:#8a4c00;list-style:none;padding:3px 0}
.pm-aftercare-tools summary::-webkit-details-marker{display:none}
.pm-aftercare-tools-body{display:grid;gap:10px;padding-top:10px}
.pm-mini-form{display:flex;flex-direction:column;gap:6px;padding-top:8px;border-top:1px solid #f0f1f2}
.pm-mini-form label{font-size:10px;font-weight:800;color:#686e75}
.pm-mini-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.pm-mini-form input,.pm-mini-form select{min-width:0;width:100%;height:40px;border:1px solid #dfe2e5;border-radius:10px;background:#fff;padding:0 10px;font:inherit;font-size:11px}
.pm-aftercare-form textarea{min-height:90px}
.pm-module-disabled{opacity:.72}
.pm-revision-interval{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:10px}
.pm-revision-interval input{width:100%}
.pm-revision-interval span{font-size:11px;color:#777d84}
@media(max-width:390px){
 .pm-aftercare-summary{gap:7px}
 .pm-aftercare-summary>div{padding:12px 9px}
 .pm-aftercare-summary strong{font-size:21px}
 .pm-aftercare-summary small{font-size:9.5px}
 .pm-aftercare-card{padding:13px}
 .pm-aftercare-card-head{flex-direction:column}
 .pm-aftercare-card-head .pm-status{max-width:100%}
 .pm-aftercare-meta{grid-template-columns:1fr}
 .pm-aftercare-meta>div+div{border-left:0;border-top:1px solid #e8eaed}
}

/* === PWA install / app shortcut === */
.pm-install-card{
  display:flex;
  flex-direction:column;
  gap:14px;
  background:linear-gradient(180deg,#fff 0%,#fffaf2 100%);
  border:1px solid rgba(212,130,31,.14);
}
.pm-install-head{
  display:flex;
  gap:14px;
  align-items:center;
}
.pm-install-icon{
  width:68px;
  height:68px;
  border-radius:18px;
  box-shadow:0 10px 24px rgba(13,17,22,.16);
  flex:0 0 auto;
}
.pm-install-copy h3{
  margin:0 0 4px;
  font-size:18px;
  color:#14181d;
}
.pm-install-copy p{
  margin:0;
  color:#6b7280;
  line-height:1.5;
}
.pm-install-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pm-install-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pm-install-note{
  font-size:13px;
  line-height:1.5;
  color:#7a6270;
  background:#fff;
  border:1px dashed rgba(212,130,31,.35);
  border-radius:14px;
  padding:12px 14px;
}
.pm-install-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:#166534;
  background:#eefbf3;
  border:1px solid #caecd8;
  border-radius:999px;
  padding:8px 12px;
  width:max-content;
}
.pm-install-status.is-hidden,
.pm-install-note.is-hidden,
.pm-install-button.is-hidden{
  display:none;
}

/* === Agenda real V4.9 === */
.pm-agenda-page{padding-bottom:116px}
.pm-agenda-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pm-agenda-head .pm-btn{min-height:44px;white-space:nowrap}
.pm-agenda-tabs .pm-tab{text-decoration:none;text-align:center}
.pm-agenda-datebar{display:flex;align-items:center;gap:9px;margin:12px 0 8px;background:#fff;border:1px solid var(--pm-border);border-radius:14px;padding:8px 10px}
.pm-agenda-datebar label{font-size:11.5px;font-weight:850;color:var(--pm-muted)}
.pm-agenda-datebar input{flex:1;min-width:0;border:0;background:transparent;font-weight:800;color:var(--pm-text);outline:none}
.pm-agenda-filter-row{margin-top:9px;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}
.pm-agenda-filter-row .pm-chip{white-space:nowrap;text-decoration:none;background:#f2f4f6;color:#656970;border-color:transparent}
.pm-agenda-filter-row .pm-chip.active{background:#fff1df;color:#a65300;border-color:#ffd39f}
.pm-agenda-list{display:flex;flex-direction:column;gap:10px}
.pm-agenda-day{font-size:13px;font-weight:900;color:#4c5158;margin:9px 3px 1px;position:sticky;top:80px;z-index:3;background:rgba(243,245,247,.94);backdrop-filter:blur(8px);padding:7px 0}
.pm-agenda-card{padding:14px;position:relative;overflow:hidden}
.pm-agenda-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#adb3ba}
.pm-agenda-card.status-confirmado:before{background:#22a261}
.pm-agenda-card.status-em_andamento:before{background:#f08a00}
.pm-agenda-card.status-concluido:before{background:#22a261}
.pm-agenda-card.status-cancelado:before{background:#c94b45}
.pm-agenda-card-top{display:flex;gap:12px;align-items:flex-start}
.pm-agenda-time{width:58px;flex:0 0 58px;text-align:center;background:#f5f6f7;border-radius:13px;padding:8px 5px}
.pm-agenda-time strong{display:block;font-size:17px;line-height:1.1;color:#16191d}
.pm-agenda-time span{display:block;font-size:9.5px;color:var(--pm-muted);margin-top:4px;font-weight:750}
.pm-agenda-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.pm-agenda-title-row h3{margin:1px 0 4px;font-size:15px;line-height:1.2}
.pm-agenda-card-top p{margin:0;color:var(--pm-muted);font-size:12px}
.pm-agenda-address{margin:11px 0 0 70px;font-size:11.5px;line-height:1.45;color:#52575d;background:#f7f8f9;border-radius:10px;padding:8px 10px}
.pm-agenda-meta{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0 0 70px;font-size:10.5px;color:#777c82}
.pm-agenda-meta a{color:#9d5500;font-weight:800}
.pm-agenda-note{margin:10px 0 0 70px;font-size:11.5px;line-height:1.5;border-left:2px solid #f1b56e;padding-left:9px;color:#555b61}
.pm-agenda-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px;padding-top:11px;border-top:1px solid #edf0f2}
.pm-mini-action{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border-radius:10px;background:#f2f4f6;color:#3d4247;font-size:10.5px;font-weight:850;text-decoration:none}
.pm-mini-action.whatsapp{background:#e7f7ed;color:#167440}
.pm-agenda-status-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.pm-agenda-status-actions form{margin:0}
.pm-agenda-status-actions .pm-btn{min-height:35px}
.pm-agenda-empty{text-align:center;padding:28px 18px}
.pm-agenda-empty-icon{font-size:34px;margin-bottom:8px}
.pm-agenda-empty h2{font-size:16px;margin:0 0 5px}
.pm-agenda-empty p{font-size:12px;color:var(--pm-muted);margin:0}
.pm-agenda-form-card{padding:16px}
.pm-agenda-dashboard{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.pm-agenda-dash-count{text-decoration:none;display:flex;flex-direction:column;gap:3px}
.pm-agenda-dash-count span{font-size:11px;color:var(--pm-muted);font-weight:850}
.pm-agenda-dash-count strong{font-size:29px;line-height:1;color:#d66f00}
.pm-agenda-dash-count small{font-size:10.5px;color:#888d92}
.pm-agenda-next{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none}
.pm-agenda-next div{display:flex;min-width:0;flex-direction:column;gap:4px}
.pm-agenda-next strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-agenda-next small{font-size:10.5px;color:var(--pm-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:600px){.pm-agenda-dashboard{grid-template-columns:120px 120px 1fr}.pm-agenda-next{grid-column:auto}.pm-agenda-card{padding:16px}.pm-agenda-address,.pm-agenda-meta,.pm-agenda-note{margin-left:70px}}

/* === Agenda V5.0: cliente rápido + cadastro opcional === */
.pm-client-quick-field{margin-bottom:8px}
.pm-field-help{font-size:13px;color:#7b8088;line-height:1.45;margin-top:8px}
.pm-quick-client{
  margin:4px 0 18px;
  padding:14px;
  border:1px solid rgba(240,139,30,.22);
  border-radius:18px;
  background:linear-gradient(180deg,#fffaf2 0%,#fff 100%);
}
.pm-quick-client.is-hidden{display:none}
.pm-client-match{
  display:inline-flex;
  margin-top:9px;
  align-items:center;
  gap:6px;
  padding:7px 11px;
  border-radius:999px;
  background:#edf9f1;
  color:#17703b;
  border:1px solid #caead5;
  font-size:13px;
  font-weight:800;
}
.pm-client-match.is-hidden{display:none}
.pm-save-client{
  margin-top:8px;
  padding:12px 13px;
  border-radius:14px;
  background:#fff;
  border:1px solid #ece5db;
  align-items:flex-start;
}
.pm-save-client span{display:flex;flex-direction:column;gap:3px}
.pm-save-client strong{font-size:14px;color:#202329}
.pm-save-client small{font-size:12px;line-height:1.4;color:#747980;font-weight:500}
.pm-field select:disabled{opacity:.55;background:#f5f5f5}

/* V5.3 — Agenda: excluir e edição */
.pm-mini-action.pm-mini-danger,
button.pm-mini-action.pm-mini-danger{
  color:#b42318;
  border-color:#f4c7c3;
  background:#fff7f6;
  cursor:pointer;
  font:inherit;
}
.pm-delete-appointment{color:#b42318!important;border-color:#efc5c1!important;background:#fff7f6!important}
.pm-delete-edit-form{margin-top:14px;padding-top:14px;border-top:1px solid #eceff2}
.pm-btn.danger{background:#b42318;color:#fff;border-color:#b42318}
.pm-btn.danger:hover{background:#8f1c13}
