body.mh-vendor .content{max-width:1180px;margin:0 auto;width:100%}
body.mh-vendor .vendor-page{display:grid;gap:16px}
body.mh-vendor .vendor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.mh-vendor .vendor-head h1{margin:0}
body.mh-vendor .vendor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.mh-vendor .vendor-card{background:var(--card,#fff);border:1px solid var(--border,#e5e7eb);border-radius:16px;padding:16px;box-shadow:0 5px 18px rgba(15,23,42,.04)}
body.mh-vendor .vendor-card h3{margin:0 0 8px}
body.mh-vendor .vendor-metric{font-size:1.65rem;font-weight:800;line-height:1.1}
body.mh-vendor .vendor-muted{color:var(--muted,#6b7280);font-size:.9rem}
body.mh-vendor .vendor-list{display:grid;gap:10px}
body.mh-vendor .vendor-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--border,#e5e7eb);border-radius:14px;background:var(--card,#fff)}
body.mh-vendor .vendor-row-main{min-width:0}
body.mh-vendor .vendor-row-title{font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mh-vendor .vendor-actions{display:flex;gap:8px;flex-wrap:wrap}
body.mh-vendor .vendor-tabs{display:flex;gap:8px;flex-wrap:wrap}
body.mh-vendor .vendor-tabs button.active{background:var(--accent,#2563eb);color:#fff}

body.mh-vendor[data-vendor-theme="blue"]{--primary:#111827;--accent:#3563e9}
body.mh-vendor[data-vendor-theme="green"]{--primary:#12301f;--accent:#16a34a}
body.mh-vendor[data-vendor-theme="orange"]{--primary:#24180e;--accent:#ea580c}
body.mh-vendor[data-vendor-theme="red"]{--primary:#2a1419;--accent:#a9485d}
body.mh-vendor[data-vendor-theme="gold"]{--primary:#262015;--accent:#b08a35}
body.mh-vendor[data-vendor-theme="graphite"]{--primary:#181a1d;--accent:#69707a}

body.mh-vendor dialog.vendor-dialog{border:0;padding:0;border-radius:18px;width:min(620px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90vh;overflow-y:auto;overflow-x:hidden;box-shadow:0 24px 80px #0005}
body.mh-vendor dialog.vendor-dialog::backdrop{background:#11182788}
body.mh-vendor .vendor-dialog-box{padding:18px;display:grid;gap:14px;min-width:0;overflow-x:hidden}
body.mh-vendor .vendor-dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
body.mh-vendor .vendor-dialog-head h2{margin:0}
body.mh-vendor .vendor-close{border:0;background:transparent;font-size:1.7rem;line-height:1;cursor:pointer}
body.mh-vendor .vendor-form{display:grid;gap:12px;min-width:0}
body.mh-vendor .vendor-form label{display:grid;gap:6px;font-weight:650;min-width:0}
body.mh-vendor .vendor-form input,body.mh-vendor .vendor-form textarea,body.mh-vendor .vendor-form select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
body.mh-vendor .vendor-suggest{display:grid;gap:4px;margin-top:-6px}
body.mh-vendor .vendor-suggest button{text-align:left;border:1px solid var(--border,#e5e7eb);background:var(--card,#fff);padding:9px 10px;border-radius:10px;cursor:pointer}
body.mh-vendor .vendor-inline{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}
body.mh-vendor .vendor-installments{display:grid;gap:8px;min-width:0;max-width:100%}
body.mh-vendor .vendor-installment{display:grid;grid-template-columns:38px minmax(82px,.55fr) minmax(0,1.45fr);gap:8px;align-items:center;min-width:0;max-width:100%}
body.mh-vendor .vendor-installment strong{white-space:nowrap}
body.mh-vendor .vendor-installment input{margin:0;min-width:0;max-width:100%}
body.mh-vendor .vendor-installment input[type="date"]{width:100%;min-width:0;max-width:100%;inline-size:100%;min-inline-size:0}
body.mh-vendor .vendor-empty{text-align:center;padding:28px;color:var(--muted,#6b7280)}
body.mh-vendor .vendor-status{font-size:.78rem;font-weight:800;padding:5px 8px;border-radius:999px;background:#eef2ff}
body.mh-vendor .vendor-status.overdue{background:#fee2e2;color:#991b1b}
body.mh-vendor .vendor-status.paid{background:#dcfce7;color:#166534}
body.mh-vendor .vendor-status.cancelled{background:#f3f4f6;color:#6b7280}

body.mh-vendor .vendor-search{display:flex;gap:8px;align-items:center}
body.mh-vendor .vendor-search input{margin:0;max-width:520px}

body.mh-vendor .vendor-agenda-nav{display:grid;grid-template-columns:44px minmax(150px,1fr) auto 44px;gap:8px;align-items:center;max-width:620px}
body.mh-vendor .vendor-date-picker{position:relative;margin:0;min-width:0}
body.mh-vendor .vendor-date-picker span{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid var(--border);border-radius:10px;background:#fff;font-weight:750;padding:0 12px}
body.mh-vendor .vendor-date-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}

body.mh-vendor .vendor-theme-group{display:grid;gap:10px}
body.mh-vendor .vendor-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.mh-vendor .vendor-theme-option{margin:0!important;border:1px solid var(--border);border-radius:12px;padding:9px;background:#fff;display:grid!important;gap:6px!important;cursor:pointer}
body.mh-vendor .vendor-theme-option.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
body.mh-vendor .vendor-theme-option input{position:absolute;opacity:0;pointer-events:none}
body.mh-vendor .vendor-theme-option small{text-align:center;color:var(--muted)}
body.mh-vendor .vendor-theme-swatch{display:block;height:48px;border-radius:9px}
body.mh-vendor .vendor-theme-swatch.blue{background:linear-gradient(135deg,#111827 50%,#3563e9 50%)}
body.mh-vendor .vendor-theme-swatch.green{background:linear-gradient(135deg,#12301f 50%,#16a34a 50%)}
body.mh-vendor .vendor-theme-swatch.orange{background:linear-gradient(135deg,#24180e 50%,#ea580c 50%)}
body.mh-vendor .vendor-theme-swatch.red{background:linear-gradient(135deg,#2a1419 50%,#a9485d 50%)}
body.mh-vendor .vendor-theme-swatch.gold{background:linear-gradient(135deg,#262015 50%,#b08a35 50%)}
body.mh-vendor .vendor-theme-swatch.graphite{background:linear-gradient(135deg,#181a1d 50%,#69707a 50%)}

/* Marcador visual temporário para confirmar que o CSS atual do Vendedor chegou ao navegador. */
body.mh-vendor::after{content:"TESTE V2";position:fixed;top:10px;right:10px;z-index:2147483647;padding:6px 10px;border-radius:999px;background:#111827;color:#fff;font:700 11px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.04em;box-shadow:0 4px 14px #0003;pointer-events:none}

@media(max-width:900px){body.mh-vendor .vendor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  body.mh-vendor .vendor-grid{grid-template-columns:1fr}
  body.mh-vendor .vendor-inline{grid-template-columns:1fr}
  body.mh-vendor .vendor-installment{grid-template-columns:34px minmax(76px,.6fr) minmax(0,1.4fr);gap:6px}
  body.mh-vendor .vendor-row{align-items:flex-start;flex-direction:column}
  body.mh-vendor .vendor-actions{width:100%}
  body.mh-vendor .vendor-actions button{flex:1}
  body.mh-vendor .vendor-agenda-nav{grid-template-columns:42px minmax(0,1fr) auto 42px;gap:6px}
  body.mh-vendor .vendor-agenda-nav .secondary{padding-left:10px;padding-right:10px}
  body.mh-vendor .vendor-date-picker span{padding:0 8px;font-size:.9rem}
  body.mh-vendor .vendor-themes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
