:root {
  --font-body: Inter, system-ui, sans-serif;
  --brand-navy: #142D50;
  --brand-primary: #2454B8;
  --brand-highlight: #B52C39;
  --brand-page: #F3F5F8;
  --brand-surface: #FFFFFF;
  --brand-text: #263345;
  --page: var(--brand-page);
  --surface: var(--brand-surface);
  --text: var(--brand-text);
  --muted: #4A5A70;
  --line: #DCE3ED;
  --accent: var(--brand-primary);
  --accent-bg: #EAF0FC;
  --backdrop: rgb(10 22 40 / 60%);
  color-scheme: light;
}

[data-dotas-theme="dark"] {
  --page: #0F1929;
  --surface: #18263C;
  --text: #F3F5F8;
  --muted: #BCC9DC;
  --line: #354660;
  --accent: #AFC7FF;
  --accent-bg: #243E69;
  --backdrop: rgb(3 8 17 / 75%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 15px/1.45 var(--font-body);
}
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
:is(a,button):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1:focus { outline: none; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.MuiSvgIcon-root { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.tile > .icon.MuiSvgIcon-root { width: 17px; height: 17px; }

.shell {
  width: min(100%, 940px);
  margin-inline: auto;
  padding: clamp(16px, 4vw, 40px) clamp(12px, 4vw, 30px) max(24px, env(safe-area-inset-bottom));
  display: grid;
  gap: 16px;
}

.intro {
  display: grid;
  gap: 7px;
  padding: clamp(17px, 4vw, 28px);
  background: var(--brand-navy);
  color: var(--brand-surface);
  border-inline-start: 5px solid var(--brand-highlight);
  border-radius: 14px;
}
.intro :is(h1,p) { margin: 0; }
.intro h1 { font-size: clamp(25px, 4vw, 36px); line-height: 1.15; }
.intro .eyebrow { color: #DBE7FF; font-size: 12px; font-weight: 650; }
.note { margin: 0; color: var(--muted); font-size: 13px; }

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

.tile {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  min-width: 0;
  min-height: 105px;
  padding: 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: start;
  cursor: pointer;
}
.tile strong { line-height: 1.25; padding-inline-end: 9px; overflow-wrap: anywhere; }
.tile-detail { font-size: 13px; color: var(--muted); }
.tile > .icon { position: absolute; inset: 12px 10px auto auto; color: var(--accent); width: 17px; }
.tile:hover { border-color: var(--accent); }
.tile-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent);
}

.toolbar { display: flex; justify-content: space-between; gap: 8px; }
.nav-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 6px;
  padding-inline: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent);
  cursor: pointer;
}
.icon-button { width: 44px; padding: 0; }
.empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}

#app-dialog {
  width: min(calc(100% - 24px), 500px);
  max-width: none;
  max-height: min(84vh, 650px);
  max-height: min(84dvh, 650px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  transform: translateY(var(--window-offset, 0px));
  transition: transform 160ms ease-out;
}
#app-dialog::backdrop { background: var(--backdrop); }
#app-dialog.window-full { width: min(calc(100% - 24px), 680px); }
#app-dialog.window-dragging { transition: none; }
.window { display: flex; flex-direction: column; }
.window-header {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 14px 9px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  touch-action: none;
}
.window-grip {
  grid-column: 1/-1;
  justify-self: center;
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.window-header h2 { margin: 0; font-size: 18px; }
.window-body { padding: 14px; }
.window-description { margin: 0 0 12px; color: var(--muted); }
.window-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.window-item {
  display: flex;
  align-items: center;
  text-align: start;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.window-item .tile-icon { flex: none; }
.window-item small { display: block; color: var(--muted); }
button.window-item { cursor: pointer; }
button.window-item:is(:hover,[aria-pressed="true"]) { background: var(--accent-bg); border-color: var(--accent); }

@media (min-width: 690px) {
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  #app-dialog {
    margin-block: auto max(8px, env(safe-area-inset-bottom));
  }
  #app-dialog.window-full { min-height: 60vh; min-height: 60dvh; }
}
@media (max-width: 340px) {
  .tile-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    #app-dialog { transition: none; }
}

.dev-fab{position:fixed;z-index:900;width:48px;height:48px;border:1px solid var(--line);border-radius:50%;background:var(--brand-navy);color:white;font-weight:800;box-shadow:0 4px 14px #0004;touch-action:none;cursor:grab;user-select:none}.dev-fab:active{cursor:grabbing}

.dev-dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.dev-dashboard article{display:grid;gap:8px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.dev-dashboard small{color:var(--muted)}.dev-dashboard strong{font-size:18px;overflow-wrap:anywhere}

.dev-fab-wrap{position:fixed;z-index:900;width:48px;display:grid;justify-items:center;gap:2px}.dev-fab-wrap .dev-fab{position:relative;inset:auto}.dev-fab-version{font-size:9px;font-weight:700;white-space:nowrap;color:var(--text);background:var(--surface);border-radius:4px;padding:1px 3px;line-height:14px;pointer-events:none}

.page-skeleton{display:grid;gap:12px}.skeleton-header,.skeleton-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px;display:grid;gap:12px}.skeleton-header{min-height:128px}.skeleton-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr));gap:10px}.skeleton-card{min-height:104px}.skeleton-form{grid-template-columns:1fr}.skeleton-line,.skeleton-icon{position:relative;overflow:hidden;background:var(--line);border-radius:6px;opacity:.72;height:12px}.skeleton-line.short{width:35%}.skeleton-line.medium{width:65%}.skeleton-line.heading{width:55%;height:24px}.skeleton-icon{width:36px;height:36px;border-radius:10px}.skeleton-line::after,.skeleton-icon::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent,var(--surface),transparent);transform:translateX(-100%);animation:skeleton-shimmer 1.25s ease-in-out infinite}@keyframes skeleton-shimmer{to{transform:translateX(100%)}}.skeleton-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(prefers-reduced-motion:reduce){.skeleton-line::after,.skeleton-icon::after{animation:none}}

.dev-version-fixed{position:fixed;z-index:1000;line-height:13px;font-weight:600;font-variant-numeric:tabular-nums}.dev-version-fixed[hidden]{display:none}

.dev-version-fixed{display:inline-flex;align-items:center;gap:4px;pointer-events:auto;cursor:pointer;opacity:1;padding:3px 7px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font-size:10px;box-shadow:0 2px 6px #0002}.dev-version-fixed span:first-child{font-size:14px;line-height:14px}.dev-version-fixed:hover,.dev-version-fixed:focus-visible{background:var(--accent-bg);border-color:var(--accent)}.dev-version-fixed:active{transform:scale(.96)}

html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{position:relative;height:100dvh;min-height:0}.shell{height:100%;min-height:0;min-width:0;max-width:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;align-content:start;scrollbar-width:none;padding-bottom:max(48px,calc(32px + env(safe-area-inset-bottom)))}.shell::-webkit-scrollbar{display:none}.shell>*{min-width:0}#dev-host{position:fixed;inset:0;pointer-events:none;z-index:900}#dev-host .dev-fab{pointer-events:auto}.dev-version-fixed{bottom:calc(5px + env(safe-area-inset-bottom));right:calc(5px + env(safe-area-inset-right));margin:0;white-space:nowrap;max-width:calc(100% - 10px)}


.dev-fab{display:grid;place-items:center}.dev-fab .icon{width:23px;height:23px}.dev-window{pointer-events:auto;width:min(620px,calc(100% - 20px));max-height:calc(100dvh - 20px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);overflow:hidden;margin:auto;box-shadow:0 16px 50px #0005}.dev-window::backdrop{background:var(--backdrop)}.dev-window-inner{display:flex;flex-direction:column;max-height:calc(100dvh - 22px)}.dev-window-head{display:flex;align-items:center;justify-content:space-between;background:var(--brand-navy);color:white;padding:12px 16px;gap:8px}.dev-window-head strong{font-size:18px}.dev-window-head small{display:block;color:#dbe7ff;font-size:11px}.dev-window-head button{background:transparent;color:white;border:0;font-size:26px;cursor:pointer;min-width:36px}.dev-window-content{padding:10px;overflow:auto;scrollbar-width:none;min-height:0;overscroll-behavior:contain}.dev-window-content::-webkit-scrollbar{display:none}.dev-window-content h3{font-size:11px;text-transform:uppercase;color:var(--muted);margin:6px 0}.dev-route-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.dev-route-grid a{display:flex;align-items:center;gap:7px;padding:7px;border:1px solid var(--line);border-radius:9px;min-width:0;font-size:12px;line-height:1.2;overflow-wrap:anywhere}.dev-route-grid a[aria-current=page]{border-color:var(--accent);background:var(--accent-bg)}.dev-avatar{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:var(--accent-bg);color:var(--accent);font-weight:700}.dev-avatar .icon{width:17px;height:17px}.dev-window-tools{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line)}.dev-window-tools button{flex:1;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:8px;padding:8px;font-size:12px;cursor:pointer}@media(max-width:420px){.dev-route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-height:450px) and (min-width:500px){.dev-window-content{display:grid;grid-template-columns:1fr 1fr 2fr;gap:8px}.dev-route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-window-content section:first-child .dev-route-grid{grid-template-columns:1fr}}

.dev-route-label{display:grid;gap:3px;min-width:0}.dev-route-label small{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;line-height:1.1}

.landing-simple{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;min-height:100%;padding:24px}.landing-simple h1,.landing-simple p{margin:0}.landing-simple p{color:var(--muted)}.landing-enter{display:flex;align-items:center;justify-content:center;gap:12px;background:var(--brand-navy);color:white;border-radius:10px;min-height:48px;padding:10px 32px;font-weight:700;margin-top:12px;width:min(100%,260px)}

.dev-mode-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--accent-bg)}.dev-mode-switch small{display:block;font-size:11px;color:var(--muted)}.dev-mode-switch button,.preview-return{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);padding:9px;font-size:12px;cursor:pointer}

.preview-return{position:fixed;pointer-events:auto;z-index:1100;display:inline-flex;align-items:center;min-height:44px;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));box-shadow:0 3px 12px #0003;opacity:1;font-weight:600}.preview-return:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Fallback para navegadores sem unidades dinâmicas e margens de telas com recortes. */
body{height:100vh;height:100dvh}
.shell{padding-top:max(clamp(16px,4vw,40px),env(safe-area-inset-top,0px));padding-left:max(clamp(12px,4vw,30px),env(safe-area-inset-left,0px));padding-right:max(clamp(12px,4vw,30px),env(safe-area-inset-right,0px));-webkit-overflow-scrolling:touch}
.dev-window{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
.dev-window-inner{max-height:calc(100vh - 22px);max-height:calc(100dvh - 22px)}
.dev-window-content{-webkit-overflow-scrolling:touch}
.dev-route-grid a{min-height:44px}
@media (prefers-reduced-motion:reduce){.MuiSkeleton-root{animation:none}}

/* Superfícies e espaçamentos compartilhados da interface Material. */
.shell{width:min(100%,1100px);gap:20px;padding-top:max(16px,env(safe-area-inset-top,0px))}
.material-appbar.MuiAppBar-root{border-radius:12px;background:var(--brand-navy);color:#fff}
.material-appbar .nav-button,.material-appbar .icon-button{border:0;background:transparent;color:inherit}
.material-appbar .nav-button:hover,.material-appbar .icon-button:hover{background:rgb(255 255 255 / 12%)}
.intro{display:block;background:transparent;color:var(--text);border:0;border-radius:0;padding:clamp(8px,2vw,20px) 2px}
.intro h1{font-size:clamp(1.8rem,4vw,2.4rem);line-height:1.2}
.tile-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:16px}
.material-card.MuiCard-root{background:var(--surface);border-color:var(--line);border-radius:16px;transition:box-shadow .2s,transform .2s}
.material-card.MuiCard-root:hover{box-shadow:0 8px 24px rgb(20 45 80 / 12%);transform:translateY(-2px)}
.material-card .tile.MuiCardActionArea-root{min-height:156px;padding:0;border:0;border-radius:0;background:transparent;color:var(--text)}
.tile-icon{width:46px;height:46px;border-radius:12px}
.tile-icon .icon.MuiSvgIcon-root{width:24px;height:24px}
.empty{padding:24px;border-radius:16px;font-size:1rem}
.window-header{padding:14px 20px;gap:6px 12px;z-index:1}
.window-body{padding:16px}
.window-list{gap:4px}
.window-item.MuiListItemButton-root,.window-item{border:0;background:transparent;padding:10px 12px;min-height:60px;gap:16px}
button.window-item:is(:hover,[aria-pressed="true"]){background:var(--accent-bg)}
.landing-simple{padding:16px}
.landing-paper.MuiPaper-root{width:min(100%,520px);padding:clamp(28px,7vw,56px);border-radius:20px;background:var(--surface);border-color:var(--line)}
.dev-window-head{background:var(--brand-navy)}
.dev-mode-switch button.MuiButton-root,.dev-window-tools button.MuiButton-root{color:var(--accent);border-color:var(--line);background:var(--surface);font-size:.875rem}
.dev-fab.MuiFab-root{background:var(--brand-primary);color:#fff;width:48px;height:48px;min-height:48px}
@media (prefers-reduced-motion:reduce){.material-card.MuiCard-root{transition:none}}

/* Barra superior contínua, nas cores da marca, respeitando os recortes da tela. */
.shell{width:100%;max-width:none;padding-top:0}
.shell > :not(.material-appbar){width:100%;max-width:1040px;justify-self:center}
.material-appbar.MuiAppBar-root{position:sticky;top:0;z-index:100;width:100vw;max-width:none;justify-self:center;margin-inline:0;padding-top:env(safe-area-inset-top,0px);border:0;border-bottom:4px solid var(--brand-highlight);border-radius:0;background:var(--brand-navy);color:#fff}
.material-toolbar.MuiToolbar-root{width:100%;max-width:1100px;min-height:60px;margin-inline:auto;padding-inline:max(4px,env(safe-area-inset-left,0px)) max(4px,env(safe-area-inset-right,0px));gap:8px}
.material-appbar .icon-button{width:48px;height:48px;min-height:48px;border:0;background:transparent;color:inherit}
.shell{grid-template-columns:minmax(0,1fr)}
.material-appbar.MuiAppBar-root{justify-self:start;margin-inline-start:calc(-1 * max(clamp(12px, 4vw, 30px), env(safe-area-inset-left, 0px)))}

/* Seleção de perfil e áreas demonstrativas do aplicativo. */
.profile-selector,.profile-page{width:100%;max-width:780px;margin-inline:auto;display:grid;gap:24px;padding-top:clamp(8px,2vw,20px)}
.profile-selector-heading{padding:4px 2px}
.profile-list.MuiPaper-root,.profile-features.MuiPaper-root{border-radius:16px;border-color:var(--line);background:var(--surface);overflow:hidden}
.profile-list ul{list-style:none;margin:0;padding:0}
.profile-list li+li{border-top:1px solid var(--line)}
.profile-choice.MuiListItemButton-root{min-height:86px;gap:16px;padding:15px 18px;color:var(--text)}
.profile-choice-icon,.profile-welcome-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:var(--accent-bg);color:var(--accent)}
.profile-choice-icon .icon.MuiSvgIcon-root,.profile-welcome-icon .icon.MuiSvgIcon-root{width:25px;height:25px}
.profile-choice-copy{display:grid;gap:3px;min-width:0;flex:1}
.profile-choice-copy strong{font-size:1rem;line-height:1.3}
.profile-choice-copy span{font-size:.875rem;line-height:1.4;color:var(--muted)}
.profile-choice > .icon{color:var(--muted)}
.profile-demo-note{padding-inline:2px}
.profile-welcome{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}
.profile-welcome > div:first-child{flex:1;min-width:180px}
.profile-welcome-icon{width:56px;height:56px}
.profile-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.profile-features ul{list-style:none;padding:0;margin:0}
.profile-features li{display:flex;align-items:center;gap:14px;min-height:62px;padding:12px 18px;font-weight:600}
.profile-features li+li{border-top:1px solid var(--line)}
.profile-feature-number{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:var(--accent-bg);color:var(--accent);font-size:.75rem}
.profile-feature-status{margin-inline-start:auto;color:var(--muted);font-size:.75rem;font-weight:500}
@media(max-width:420px){.profile-choice.MuiListItemButton-root{gap:12px;padding:13px 12px}.profile-choice-copy span{font-size:.8125rem}.profile-feature-status{font-size:.7rem}.profile-welcome > div:first-child{min-width:150px}}

/* Ícones Material incorporados nos controles que funcionam sem React. */
.material-static-icon{width:20px;height:20px;flex:none;fill:currentColor}
.dev-version-fixed .material-static-icon{width:16px;height:16px}
.preview-return{gap:6px}

/* Marca da página inicial, com contraste no fundo da barra. */
.brand-mark{display:inline-grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid #c9d4e5;border-radius:50%;background:#fff;overflow:hidden}
.brand-mark img{display:block;width:28px;height:28px;object-fit:contain}
.brand-mark-large{width:78px;height:78px;border-color:var(--line);box-shadow:0 2px 8px rgb(20 45 80 / 10%)}
.brand-mark-large img{width:56px;height:56px}

/* Login público, com a identidade da homepage e atalhos isolados da tela normal. */
.es-login{--login-blue:#142d50;--login-red:#ad2738;--login-edge:#d8e1eb;--login-muted:#465971;min-width:0;min-height:100%;color:var(--login-blue);background:#f2f5f9;font-family:system-ui,sans-serif}
.es-login-top{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fff;border-bottom:1px solid var(--login-edge);border-top:3px solid var(--login-red);padding:8px clamp(14px,4vw,34px)}
.es-login a{color:inherit}
.es-login-brand,.es-login-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;text-decoration:none;font-weight:750}
.es-login-brand{font-size:1rem}.es-login-back{font-size:.875rem;white-space:nowrap}
.es-login-star{display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--login-edge);border-radius:50%;background:#fff}
.es-login-star img{width:28px;height:28px;object-fit:contain}
.es-login-content{display:grid;place-items:start center;padding:clamp(18px,5vw,46px) 14px}
.es-login-card{width:min(100%,530px);min-width:0;background:#fff;border:1px solid var(--login-edge);border-radius:14px;padding:clamp(16px,4vw,29px);box-shadow:0 8px 25px #142d5014}
.es-login-card-head{display:flex;align-items:center;gap:11px;margin-bottom:18px}
.es-login-symbol{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:9px;background:#ebf1f9;color:var(--login-blue)}
.es-login h1{margin:0;color:var(--login-blue);font-size:clamp(1.32rem,5vw,1.88rem);letter-spacing:-.03em;line-height:1.15}
.es-login p{margin:4px 0 0;color:var(--login-muted);font-size:.88rem;line-height:1.36}
.es-login-form{display:grid;gap:6px}.es-login-form label{font-size:.875rem;font-weight:760}
.es-login-field{display:flex;align-items:center;gap:8px;min-height:47px;padding:0 10px;background:#f6f8fb;border:1px solid #afbdd0;border-radius:8px}
.es-login-field .icon{width:17px;height:17px;flex:none}
.es-login-field input{width:100%;min-width:0;min-height:45px;outline:none;border:0;background:transparent;color:#142d50;font:inherit;font-size:1rem}
.es-login-field:focus-within{outline:2px solid var(--login-blue);outline-offset:2px}
.es-login-field:has([aria-invalid="true"]){border-color:var(--login-red)}
.es-login p.es-login-error{color:#9c1e32;font-weight:650}
.es-login-next{display:flex;justify-content:center;align-items:center;gap:7px;min-height:46px;margin-top:6px;border:0;border-radius:8px;background:var(--login-red);font:inherit;font-weight:760;color:#fff;cursor:pointer}
.es-login-next:hover:not(:disabled){background:#901b2b}.es-login-next:disabled{background:#e8edf4;color:#435978;cursor:default}
.es-login p.es-login-notice{margin-top:4px;background:#eef3f9;padding:9px 10px;border-radius:6px}
.es-login-demo{margin-top:19px;border-top:1px solid var(--login-edge);padding-top:13px}
.es-login-demo h2{font-size:1.02rem;margin:0}
.es-login-demo ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin:10px 0 0;padding:0;gap:6px}
.es-login-demo li{min-width:0}
.es-login-demo a{display:flex;align-items:center;gap:5px;min-height:44px;padding:5px 7px;border:1px solid var(--login-edge);border-radius:7px;text-decoration:none;font-size:.83rem;font-weight:700}
.es-login-demo a:hover{background:#eef3f9}.es-login-demo a .icon{width:15px;height:15px;flex:none}.es-login-demo a .icon:last-child{margin-left:auto}
.es-login a:focus-visible,.es-login button:focus-visible{outline:2px solid var(--login-blue);outline-offset:2px}
@media(max-width:350px){.es-login-demo a .icon:last-child{display:none}}

.es-login-form label:not(:first-child){margin-top:5px}
.es-login-reveal{flex:none;padding:0 7px;min-height:44px;border:0;background:none;border-radius:5px;color:var(--login-blue);font:inherit;font-size:.84rem;font-weight:700;cursor:pointer}
.es-login-reveal:hover:not(:disabled){background:#e8edf5}.es-login-reveal:disabled{opacity:.6;cursor:default}

/* Captura apenas a superfície que muda, sem movimentar o menu de desenvolvimento. */
:root[data-es-route-motion]{view-transition-name:none}
#roleShell{background-color:var(--page)}
:root[data-es-route-motion] #roleShell{view-transition-name:es-page}
::view-transition{overflow:clip;pointer-events:none}
::view-transition-group(es-page){animation-duration:270ms;animation-timing-function:cubic-bezier(.23,.65,.3,1)}
::view-transition-old(es-page),::view-transition-new(es-page){mix-blend-mode:normal;opacity:1;background-color:var(--page);height:100%;animation-duration:270ms;animation-timing-function:cubic-bezier(.23,.65,.3,1);animation-fill-mode:both}
:root[data-es-route-motion="forward"]::view-transition-old(es-page){animation-name:es-page-out-left;z-index:1}
:root[data-es-route-motion="forward"]::view-transition-new(es-page){animation-name:es-page-in-right;z-index:2}
:root[data-es-route-motion="back"]::view-transition-old(es-page){animation-name:es-page-out-right;z-index:2}
:root[data-es-route-motion="back"]::view-transition-new(es-page){animation-name:es-page-in-left;z-index:1}
@keyframes es-page-in-right{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes es-page-out-left{from{transform:translateX(0)}to{transform:translateX(-18%);filter:brightness(.88)}}
@keyframes es-page-in-left{from{transform:translateX(-18%);filter:brightness(.88)}to{transform:translateX(0);filter:brightness(1)}}
@keyframes es-page-out-right{from{transform:translateX(0)}to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){
 ::view-transition-group(es-page),::view-transition-old(es-page),::view-transition-new(es-page){animation-duration:.01ms!important;animation-delay:0ms!important}
}
.es-brand-lockup{display:grid;gap:2px;min-width:0;line-height:1.12}
.es-brand-lockup small{font-size:.68rem;font-weight:650;line-height:1.15;color:#952536;letter-spacing:0}
@media(max-width:350px){
 .es-login-brand{gap:6px;font-size:.9rem}
 .es-login-top .es-brand-lockup small{font-size:.62rem}
 .es-login-back{font-size:.79rem}
}

/* Vendedor: lista completa, grupos por etapa e formulário em folha inferior. */
#roleShell:has(>.es-seller){width:100%;max-width:none;padding-inline:0;row-gap:0;background:#fff}
#roleShell:has(>.es-seller)>.material-appbar.MuiAppBar-root{position:sticky;top:0;align-self:start;width:100%;margin-inline:0;transform:translateY(0);transition:transform .22s cubic-bezier(.2,.75,.3,1)}
#roleShell[data-seller-bar-hidden]>.material-appbar.MuiAppBar-root:not(:has(.es-toolbar-search,.es-toolbar-menu[aria-expanded=true],:focus-visible)){transform:translateY(calc(-100% - 9px));pointer-events:none}
@media(prefers-reduced-motion:reduce){#roleShell:has(>.es-seller)>.material-appbar.MuiAppBar-root{transition:none}}
#roleShell>.es-seller{width:100%;max-width:none;min-width:0;padding:0 0 132px}
.es-order-groups{display:grid;gap:0;color:#263345;--page:#f3f5f8;--text:#263345;--muted:#4a5a70;--accent:#2454b8;--accent-bg:#eaf0fc;--line:#dce3ed;--surface:#fff;--field-fill:#edf2f8}
.es-seller-blank{--muted:#4a5a70}
.es-order-rows{margin:0;padding:0;list-style:none}
.es-order-summary{--order-avatar-size:46px;position:relative;display:grid;grid-template-columns:var(--order-avatar-size) minmax(0,1fr) auto 29px;grid-template-areas:"avatar customer amount amount" "avatar meta meta actions";grid-template-rows:minmax(30px,auto) minmax(19px,auto);align-items:center;column-gap:9px;row-gap:2px;min-height:62px;padding:4px 8px 4px 5px}
.es-order-disclosure:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.es-order-avatar{grid-area:avatar;align-self:stretch;display:grid;place-items:center;width:100%;height:100%;min-height:44px;background:var(--accent-bg);color:var(--accent);border-radius:8px}
.es-order-heading{grid-area:customer;display:flex;align-items:center;min-width:0;gap:5px}
.es-order-name{min-width:0;font-size:1.0625rem;line-height:1.22;font-weight:780;color:#142d50;overflow-wrap:anywhere}
.es-order-amount{grid-area:amount;font-size:1.0625rem;line-height:1.24;font-weight:800;max-width:min(33vw,11rem);text-align:right;color:#142d50;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.es-order-amount-empty{color:var(--muted);font-size:.875rem;font-weight:650}
.es-order-meta{grid-area:meta;display:flex;align-items:center;flex-wrap:wrap;min-width:0;gap:4px 9px;font-size:.875rem;line-height:1.3;color:var(--muted)}
.es-order-code{display:inline-flex;align-items:baseline;gap:5px;max-width:100%;min-width:0;padding:2px 6px;border-radius:4px;background:#eaf0fc;color:#15366d;font-weight:620}
.es-order-code b{min-width:0;overflow-wrap:anywhere;font-size:.9375rem;font-weight:850;font-variant-numeric:tabular-nums}
.es-order-meta time{white-space:nowrap;font-variant-numeric:tabular-nums}
.es-order-date{display:inline-flex;align-items:center;gap:4px;margin-inline-start:auto;font-size:.75rem;font-weight:650}
.es-order-date svg{width:14px;height:14px;flex:none}
.es-order-date.es-order-date-overdue{padding:2px 5px;border-radius:4px;background:#a0162b;color:#fff;font-weight:750;line-height:1.2}
.es-order-date-overdue svg{width:11px;height:11px}
.es-order-quantity{white-space:nowrap;font-weight:700}

.es-orderline-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0;padding:12px 14px;background:var(--page);font-size:.9375rem}
.es-orderline-details dt{margin-bottom:2px;font-size:.875rem;font-weight:750;color:#374962}.es-orderline-details dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.es-orderline-wide{grid-column:1/-1}
.es-seller-fab{position:fixed;right:max(15px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:850;min-height:52px;padding:0 14px;display:flex;align-items:center;gap:8px;border:0;border-radius:9px;background:var(--brand-navy);color:white;font-weight:750;box-shadow:0 6px 16px #0b193b45}
.es-seller-fab>span:first-child{font-size:1.7rem;line-height:1}
body:has(.es-seller) .dev-fab-wrap{left:auto!important;right:max(14px,env(safe-area-inset-right));top:auto!important;bottom:calc(max(14px,env(safe-area-inset-bottom)) + 115px)}
body:has(.es-seller) #dev-version{display:none!important}
body:has(.es-seller-dialog[open]) #roleShell{overflow:hidden}
.es-seller-dialog{position:fixed;inset:auto 0 var(--window-bottom-gap,0px);border:1px solid var(--line);margin:0 auto;width:min(100%,680px);max-width:none;max-height:min(calc(var(--window-visible-height,100dvh) - max(8px,env(safe-area-inset-top))),900px);padding:0;overflow:hidden;border-radius:15px 15px 0 0;background:var(--surface);color:var(--text)}
.es-seller-dialog[open]{animation:es-seller-sheet-up .23s ease-out both}
.es-seller-dialog[data-closing]{animation:es-seller-sheet-down .18s ease-in both}
.es-seller-dialog::backdrop{background:var(--backdrop)}
@keyframes es-seller-sheet-up{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes es-seller-sheet-down{from{transform:translateY(var(--seller-exit-start,0px))}to{transform:translateY(100%)}}
.es-seller-form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:inherit}
.es-seller-form-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:19px 16px 10px;border-bottom:1px solid var(--line)}
.es-seller-form-head h2{margin:0;font-size:1.19rem}
.es-seller-form-head p{margin:2px 0 0;font-size:.83rem;color:var(--muted)}
.es-seller-grip{position:absolute;left:50%;top:6px;transform:translateX(-50%);width:34px;height:4px;border-radius:9px;background:var(--line)}
.es-seller-close{display:grid;place-items:center;min-width:44px;min-height:44px;background:var(--page);color:var(--text);border:1px solid var(--line);border-radius:7px}
.es-seller-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px 16px;overflow:auto;overscroll-behavior:contain}
.es-seller-field{display:grid;min-width:0;align-content:start;gap:4px;font-size:.81rem;font-weight:750}
.es-seller-field-wide{grid-column:1/-1}
.es-seller-field input,.es-seller-field select,.es-seller-field textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:6px;font-size:1rem;line-height:1.3;min-height:44px;padding:8px;color:var(--text);background:var(--page);font-family:inherit}
.es-seller-field input:focus-visible,.es-seller-field select:focus-visible,.es-seller-field textarea:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.es-seller-field textarea{resize:vertical}
.es-seller-error{color:var(--brand-highlight);font-weight:700;font-size:.84rem;margin:0}
.es-seller-form-foot{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:10px 16px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
.es-seller-form-foot button{min-height:44px;border:1px solid var(--line);border-radius:7px;padding:7px 12px;background:var(--surface);color:var(--text);font-weight:700}
.es-seller-form-foot button[type="submit"]{background:var(--brand-navy);border-color:var(--brand-navy);color:white}
@media(max-width:420px){
 .es-seller-fab{min-width:52px;padding:0;justify-content:center}
 .es-seller-fab-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .es-order-summary{column-gap:8px;padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){
 .es-seller-dialog[open],.es-seller-dialog[data-closing]{animation:none}
}

.es-seller-blank{min-height:calc(100vh - 180px);min-height:calc(100dvh - 180px);display:grid;align-content:center;justify-items:center;gap:5px;color:var(--muted);text-align:center}
.es-seller-empty-icon{opacity:.56}
.es-seller-blank p{margin:0;font-size:.9rem}
.es-order-group-head{display:flex;align-items:center;gap:9px;min-height:44px;padding-inline-start:10px;background:#fff;color:#142d50}
.es-order-group-title{display:inline-flex;align-items:center;gap:7px;margin:0;font:inherit;font-size:.9375rem;font-weight:800;color:var(--stage-ink,#142d50)}
.es-order-group-chip{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:2px 6px;border-radius:6px;background:var(--stage-ink,#142d50);color:#fff}
.es-order-group-chip .es-stage-symbol{width:16px;height:16px}
.es-order-group-count{color:inherit;font-size:.8125rem;line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums}
.es-order-group-rule{height:1px;flex:1;background:#e7ecf3}
.es-order-group-toggle{display:grid;place-items:center;min-height:44px;min-width:44px;padding:0;border:0;background:transparent;color:var(--accent);cursor:pointer}
.es-order-group-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.es-order-group-arrow{display:grid;place-items:center;width:27px;height:27px;border-radius:6px;background:#f0f3f7;color:#334761}
.es-order-group-arrow svg{width:16px;height:16px}
.es-order-group-toggle[aria-expanded=true] .es-order-group-arrow svg{transform:rotate(90deg)}
.es-order-rows{background:var(--surface)}
.es-order-rows>li+li{border-block-start:1px solid var(--line)}
.es-order-rows[hidden]{display:none}
@media(hover:hover){.es-order-summary:hover{background:var(--field-fill)}}
.es-seller-form-head[data-window-drag]{touch-action:none;user-select:none;cursor:grab}
.es-seller-dialog{translate:0 var(--window-offset,0px);transition:translate .16s ease-out}
.es-seller-dialog.window-dragging,.es-seller-dialog[data-closing]{transition:none}
@media(prefers-reduced-motion:reduce){.es-seller-dialog{transition:none}}

/* Um fundo de campo coerente nos formulários, em tema claro e escuro. */
:root{--field-fill:#edf2f8;--field-fill-focus:#f4f7fc}
[data-dotas-theme="dark"]{--field-fill:#22334c;--field-fill-focus:#273b55}
.es-landing,.es-login{--field-fill:#edf2f8;--field-fill-focus:#f4f7fc}
#roleShell :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="hidden"],[type="file"]),select,textarea),dialog :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="hidden"],[type="file"]),select,textarea){
 background-color:var(--field-fill);
}
#roleShell :is(input,select,textarea):focus,dialog :is(input,select,textarea):focus{background-color:var(--field-fill-focus)}
#roleShell .es-login-field{background-color:var(--field-fill)}
#roleShell .es-login-field:focus-within{background-color:var(--field-fill-focus)}
#roleShell .es-login-field input,#roleShell .es-login-field input:focus{background-color:transparent}
#roleShell .MuiOutlinedInput-root,dialog .MuiOutlinedInput-root{background-color:var(--field-fill)}
#roleShell .MuiOutlinedInput-root input,dialog .MuiOutlinedInput-root input{background-color:transparent}
.es-store-dialog{translate:0 var(--window-offset,0px);transition:translate .16s ease-out}
.es-store-dialog.window-dragging{transition:none}
.es-seller-fields,.es-store-dialog{overscroll-behavior:contain}
@media(prefers-reduced-motion:reduce){.es-store-dialog{transition:none}}


.es-seller-fab:disabled{opacity:.5;cursor:wait}
.es-seller-retry{font:inherit;border:1px solid var(--line);border-radius:6px;background:var(--field-fill);color:var(--text);min-height:44px;padding:6px 12px}

/* Busca e cadastro de clientes dentro da janela do pedido */
.es-seller-form[hidden]{display:none}
.es-client-panel{max-height:inherit;display:flex;flex-direction:column;isolation:isolate}
.es-client-panel>.es-seller-form-foot,.es-client-registration>.es-seller-form-foot,.es-client-head{flex-shrink:0}
.es-client-head{position:relative;display:flex;align-items:center;gap:12px;padding:17px 16px 10px;border-bottom:1px solid var(--line);touch-action:none}
.es-client-head h2{margin:0;font-size:1.2rem}
.es-client-head p{margin:2px 0 0;color:var(--muted);font-size:.82rem}
.es-client-trigger,.es-client-search{display:flex;align-items:center;gap:9px;min-height:46px;width:100%;border:1px solid var(--line);border-radius:8px;padding:7px 11px;background:var(--field-fill);color:var(--text);font:inherit;text-align:left}
.es-client-trigger{justify-content:space-between;cursor:pointer;font-size:.91rem}
.es-client-trigger span{overflow-wrap:anywhere;min-width:0}
.es-client-trigger span[data-empty=true]{color:var(--muted);font-weight:500}
.es-client-trigger svg,.es-client-search svg,.es-client-rows button>svg{flex-shrink:0;width:19px;height:19px;color:var(--muted)}
.es-client-head-search{gap:8px;padding:13px 12px 8px;touch-action:auto}
.es-client-head-search .es-seller-close{flex-shrink:0}
.es-client-search{min-width:0;width:auto;flex:1;touch-action:auto}
.es-client-search:focus-within,.es-client-trigger:focus{outline:2px solid var(--accent);outline-offset:1px}
.es-client-search input{min-width:0;width:100%;border:0;background:transparent;color:var(--text);outline:0;font:inherit;font-size:1rem;min-height:28px}
.es-client-results,.es-client-registration-fields{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:8px 16px 14px}
.es-client-count{margin:0 0 8px;color:var(--muted);font-size:.82rem;font-weight:650}
.es-client-hint{margin:4px 0;color:var(--muted);font-size:.9rem}
.es-client-rows{list-style:none;padding:0;margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.es-client-rows li+li{border-top:1px solid var(--line)}
.es-client-rows button{display:grid;grid-template-columns:38px minmax(0,1fr) 19px;gap:10px;align-items:center;width:100%;min-height:59px;padding:7px 10px;border:0;background:var(--surface);color:var(--text);text-align:left;cursor:pointer}
.es-client-rows button:hover,.es-client-rows button:focus-visible{background:var(--field-fill)}
.es-client-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--field-fill);color:var(--text);font-size:.77rem;font-weight:800}
.es-client-info{display:grid;gap:2px;overflow-wrap:anywhere}
.es-client-info strong{font-size:.94rem}
.es-client-info small{font-size:.79rem;color:var(--muted)}
.es-client-panel .es-client-add{background:var(--brand-navy);border-color:var(--brand-navy);color:white}
.es-client-registration{display:flex;flex-direction:column;flex:0 1 auto;min-height:0}
.es-client-registration-fields{display:grid;align-content:start;gap:12px;padding-top:14px}
@media(max-width:600px){
 .es-client-panel .es-seller-form-foot .es-client-add{width:100%}
}

/* Identidade das etapas. Os valores são compartilhados com o guia visual em etapas.js. */
.es-stage-symbol{display:block;width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.es-stage-surface{color:var(--stage-ink);background:var(--stage-tint)}
.es-order-group.es-stage-surface{background:#fff;color:#142d50}
.es-order-group .es-order-rows{background:#fff}
.es-order-group .es-order-name,.es-order-group .es-order-code,.es-order-group .es-order-amount:not(.es-order-amount-empty){color:var(--stage-ink)}
.es-order-group .es-order-avatar{background:var(--stage-ink);color:#fff}
.es-order-group .es-orderline-details{background:color-mix(in srgb,var(--stage-tint) 64%,white)}
@media(hover:hover){.es-order-group .es-order-summary:hover{background:color-mix(in srgb,var(--stage-ink) 7%,var(--stage-tint))}}
.es-stage-legend-panel a,.es-stage-profile a,.es-stage-guide-back{text-decoration:underline;text-underline-offset:3px;font-weight:700}
.es-stage-profile{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;border-radius:9px;padding:14px}
.es-stage-profile strong{display:block;font-size:1rem}
.es-stage-profile p{margin:2px 0 0;color:#374962}
.es-stage-profile a{margin-inline-start:auto;font-size:.875rem;color:var(--stage-ink)}
.es-stage-guide{height:100%;overflow:auto;background:#fff;color:#263345;padding:clamp(18px,5vw,64px) clamp(16px,4vw,42px)}
.es-stage-guide-inner{max-width:920px;margin-inline:auto}
.es-stage-guide-intro h1{margin:.13em 0 0;color:#142d50;font-size:clamp(2rem,6vw,3.25rem);letter-spacing:-.045em;line-height:1.1}
.es-stage-guide-intro p{margin:10px 0 0}
.es-stage-guide-intro .es-stage-guide-brand{margin-top:26px;color:#2454b8;font-size:.77rem;font-weight:850;letter-spacing:.09em}
.es-stage-guide-back{display:inline-flex;align-items:center;min-height:44px;color:#16448e}
.es-stage-guide-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0 16px;padding:0;list-style:none}
.es-stage-guide-card{min-width:0;padding:14px;border-radius:10px;background:var(--stage-tint);color:var(--stage-ink);border:1px solid color-mix(in srgb,var(--stage-ink) 16%,var(--stage-tint))}
.es-stage-guide-heading{display:flex;align-items:center;gap:12px}
.es-stage-guide-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:9px;background:#fff}
.es-stage-guide-heading h2{margin:0;font-size:1.18rem;line-height:1.2}
.es-stage-guide-kicker{font-size:.74rem;font-weight:800}
.es-stage-guide-description{margin:10px 0 4px;color:#263345}
.es-stage-guide-caption{margin:0 0 11px;color:var(--stage-ink);font-weight:700;font-size:.88rem}
.es-stage-guide-colors{display:flex;flex-wrap:wrap;gap:6px;font-size:.78rem;font-weight:750;font-variant-numeric:tabular-nums}
.es-stage-guide-colors span{padding:4px 8px;border-radius:5px}
.es-stage-swatch-ink{background:var(--stage-ink);color:#fff}
.es-stage-swatch-tint{border:1px solid var(--stage-ink);color:var(--stage-ink)}
.es-stage-guide-note{padding:0 0 12px;font-size:.88rem;color:#4a5a70}
@media(max-width:650px){.es-stage-guide-list{grid-template-columns:1fr}.es-stage-profile a{margin-inline-start:0}}

/* Legenda compacta do Vendedor, sem ocupar espaço na lista. */
.es-stage-legend{position:fixed;inset:auto auto max(14px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));z-index:820;color:#263345}
.es-stage-legend-toggle{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #dce3ed;border-radius:50%;color:#142d50;background:#fff;box-shadow:0 2px 8px rgb(20 45 80 / 13%);cursor:pointer}
.es-stage-legend-info{display:grid;place-items:center;border:1.5px solid currentColor;border-radius:50%;width:18px;height:18px;line-height:1;font-size:.81rem;font-weight:800}
.es-stage-legend-chip{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--stage-ink);color:#fff}
.es-stage-legend-chip svg{width:15px;height:15px}
.es-stage-legend-panel{position:absolute;inset:auto auto calc(100% + 7px) 0;width:min(216px,calc(100vw - 24px));max-height:min(72dvh,330px);overflow:auto;padding:10px;border:1px solid #dce3ed;border-radius:10px;background:#fff;box-shadow:0 6px 20px rgb(20 45 80 / 18%);font-size:.82rem}
.es-stage-legend-panel[hidden]{display:none}
.es-stage-legend-panel strong{color:#142d50}
.es-stage-legend-panel ul{display:grid;gap:5px;list-style:none;padding:0;margin:8px 0}
.es-stage-legend-panel li{display:flex;align-items:center;gap:8px}
.es-stage-legend-panel a{display:inline-flex;align-items:center;min-height:30px;color:#16448e}

/* Atalhos manuais de contato do pedido. */
.es-order-disclosure{position:absolute;inset:0;z-index:1;width:100%;padding:0;border:0;background:transparent;cursor:pointer}
.es-orderline-details[hidden]{display:none}
.es-contact-symbol{width:20px;height:20px;display:block}
.es-order-contact-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,460px);max-width:none;max-height:min(92dvh,680px);padding:0;border:1px solid #dce3ed;border-radius:14px 14px 0 0;background:#fff;color:#263345;overflow:auto;overscroll-behavior:contain;box-shadow:0 12px 40px rgb(20 45 80 / 20%);translate:0 var(--window-offset,0px);transition:translate .16s ease-out}
.es-order-contact-dialog[open]{animation:es-seller-sheet-up .23s ease-out both}
.es-order-contact-dialog.window-dragging,.es-order-contact-dialog[data-closing]{transition:none}
.es-order-contact-dialog[data-closing]{animation:es-seller-sheet-down .18s ease-in both}
body:has(.es-order-contact-dialog[open]) #roleShell{overflow:hidden}
@media(prefers-reduced-motion:reduce){.es-order-contact-dialog[open],.es-order-contact-dialog[data-closing]{animation:none;transition:none}}
.es-order-contact-dialog::backdrop{background:rgb(10 22 40 / 49%)}
.es-order-contact-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:19px 12px 10px;border-bottom:1px solid #edf1f6;touch-action:none;user-select:none;cursor:grab}
.es-order-contact-head h3{margin:0;color:#142d50;font-size:1.075rem}
.es-order-contact-head p{margin:2px 0 0;color:#4a5a70;font-size:.83rem;overflow-wrap:anywhere}
.es-order-contact-head .es-seller-close{flex:none;background:#f3f5f8;color:#142d50;border-color:#dce3ed}
.es-order-contact-actions{display:grid;gap:2px;margin:0;padding:6px 8px max(9px,env(safe-area-inset-bottom));list-style:none}
.es-order-contact-actions li>a,.es-order-contact-unavailable{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;min-height:48px;padding:5px 6px;border-radius:8px}
.es-order-contact-actions li>a:hover,.es-order-contact-actions li>a:focus-visible{background:#eef7f2}
.es-order-contact-actions strong{display:block;font-size:.91rem;color:#142d50}
.es-order-contact-actions small{display:block;font-size:.78rem;color:#4a5a70}
.es-order-contact-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#e5f7ed;color:#146438}
.es-order-contact-unavailable .es-order-contact-icon{background:#edf1f6;color:#536579}
.es-order-contact-unavailable strong{color:#536579}

/* Busca de pedidos dentro da barra do Vendedor. */
.es-toolbar-search{flex:1;min-width:0;display:flex;align-items:center;gap:3px;padding-inline-start:5px}
.es-toolbar-search-field{position:relative;flex:1;min-width:0;animation:es-search-expand .22s cubic-bezier(.18,.82,.31,1) both}
.es-toolbar-search-glyph{position:absolute;left:10px;top:50%;display:grid;place-items:center;transform:translateY(-50%);color:#415e82;pointer-events:none}
.es-toolbar-search-glyph svg{width:17px;height:17px}
@keyframes es-search-expand{from{clip-path:inset(0 48% round 7px);opacity:.65}to{clip-path:inset(0 0 round 7px);opacity:1}}
@media(prefers-reduced-motion:reduce){.es-toolbar-search-field{animation:none}}
#roleShell .es-toolbar-search input[type="search"]{width:100%;min-width:0;min-height:40px;border-radius:7px;border:1px solid rgb(255 255 255 / 43%);padding:6px 9px 6px 34px;background:#fff;color:#142d50;font:inherit;font-size:1rem;line-height:1.25}
.es-toolbar-search input::-webkit-search-cancel-button{display:none}
#roleShell .es-toolbar-search input[type="search"]:focus{outline:2px solid #b9cff9;outline-offset:-2px;background:#fff}
.es-toolbar-search-btn{flex-shrink:0}
.es-toolbar-search-btn svg{width:20px;height:20px}
.es-order-group-spacer{width:44px;flex:none}
.es-seller-search-empty{display:flex;justify-content:center;align-items:center;gap:7px;padding:22px 10px;color:#4a5a70}
.es-seller-search-empty>svg{width:21px;height:21px;opacity:.76}
.es-seller-search-empty p{margin:0}

.es-order-sale-icon{width:15px;height:16px;flex:none;align-self:center}

/* Realça a diferença entre as etapas sem escurecer a lista. */
.es-order-group.es-stage-surface{position:relative}
.es-stage-profile,.es-stage-guide-card{box-shadow:inset 4px 0 var(--stage-ink)}

/* A etapa e as ações da linha são controles independentes. */
.es-order-stage-button{position:relative;z-index:2;padding:0;border:0;cursor:pointer}
.es-order-stage-button:hover{filter:brightness(.92)}
.es-order-disclosure{touch-action:pan-y pinch-zoom;user-select:none;-webkit-touch-callout:none}
.es-order-more:focus-visible{outline:2px solid var(--stage-ink);outline-offset:1px}
.es-stage-options{display:grid;gap:5px;padding:9px 10px max(12px,env(safe-area-inset-bottom));margin:0;list-style:none}
.es-stage-options button{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;min-height:43px;padding:6px 9px;background:var(--stage-tint);color:var(--stage-ink);text-align:left;border:0;border-radius:7px;cursor:pointer}
.es-stage-options button:disabled{cursor:default}
.es-stage-options small{font-weight:750}
.es-order-workflow-panel{display:grid;gap:8px;padding:12px 12px max(12px,env(safe-area-inset-bottom))}
.es-order-workflow-panel p{margin:0 0 5px;color:#4a5a70}
.es-order-workflow-panel button{min-height:44px;padding:6px 12px;border-radius:7px;border:1px solid #dce3ed;background:#f3f5f8;color:#142d50;font-weight:750;cursor:pointer}
.es-order-workflow-panel .es-order-delete-action{color:#972134;background:#fff0f3;border-color:#f4c4ce}
.es-order-confirm-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.es-order-workflow-error{margin:0;padding:8px 12px 14px;color:#972134;font-weight:700}
.es-order-workflow-dialog .es-stage-legend-chip{background:var(--stage-ink);color:#fff}

.es-stage-legend-tally{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:5px;min-width:41px;min-height:24px;padding:2px 5px;border-radius:6px;background:var(--stage-ink);color:#fff;font-variant-numeric:tabular-nums}
.es-stage-legend-tally svg{width:15px;height:15px}
.es-stage-legend-filter,.es-stage-legend-total{display:flex;align-items:center;gap:7px;min-height:34px;width:100%;padding:4px 6px;border:1px solid #e5ebf4;border-radius:7px;background:#f5f7fb;color:#142d50;font:inherit;font-weight:720;text-align:left;cursor:pointer}
.es-stage-legend-filter{color:var(--stage-ink);background:color-mix(in srgb,var(--stage-tint) 42%,white)}
.es-stage-legend-filter[aria-pressed=true]{border-color:var(--stage-ink);background:var(--stage-tint)}
.es-stage-legend-check{margin-inline-start:auto;font-weight:850}
.es-stage-legend-total{justify-content:space-between}
.es-stage-legend-total[aria-pressed=true]{background:#eaf0fc;border-color:#a8bde0}
.es-stage-legend-filter:focus-visible,.es-stage-legend-total:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
.es-stage-legend-toggle{position:relative}
.es-stage-legend-active{position:absolute;top:-1px;right:-1px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:var(--stage-ink)}

.es-order-more{grid-area:actions;position:relative;z-index:2;display:grid;place-items:center;width:100%;min-height:36px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--stage-ink);cursor:pointer}
.es-order-more:active{opacity:.65}

/* Hierarquia do Vendedor: cabeçalho escuro, grupo claro, pedidos em cartões de largura inteira. */
.es-order-group{--stage-row:color-mix(in srgb,var(--stage-ink) 7%,var(--stage-tint));--stage-secondary:color-mix(in srgb,var(--stage-ink) 63%,#263345)}
.es-order-group .es-order-rows{display:grid;gap:5px;padding:5px 10px 6px}
.es-order-group .es-order-rows>li+li{border-block-start:0}
.es-order-group .es-order-rows[hidden]{display:none}
.es-order-group .es-order-summary{border-radius:12px;background:var(--stage-row);border:1px solid color-mix(in srgb,var(--stage-ink) 16%,var(--stage-tint))}
.es-order-group .es-orderline-details{border-radius:0 0 12px 12px}
.es-order-group .es-order-heading{gap:6px}
.es-order-group .es-order-name{font-size:1rem;line-height:1.16;letter-spacing:-.02em}
.es-order-group .es-order-stage-button{border-radius:8px}
.es-order-stage-button .es-stage-symbol{width:26px;height:26px}
.es-order-stage-button:focus-visible{outline:2px solid var(--stage-ink);outline-offset:1px}
.es-order-group .es-order-code{padding:0;background:transparent;gap:4px;align-items:center;font-size:.875rem}
.es-order-group .es-order-code b{font-size:inherit}
.es-order-group .es-order-code .es-order-sale-icon{width:15px;height:15px}
.es-order-group .es-order-quantity{display:inline-flex;align-items:center;gap:5px;font-size:.78rem}
.es-order-group .es-order-quantity::before{content:"";width:3px;height:3px;border-radius:50%;background:currentColor}
.es-order-group .es-order-summary{color:#263345}
.es-order-group .es-order-summary .es-order-meta,.es-order-group .es-order-summary .es-order-amount-empty{color:var(--stage-secondary)}
.es-order-group .es-order-meta{gap:3px 8px}
.es-order-group .es-order-date{font-size:.75rem}
.es-order-group .es-order-amount:not(.es-order-amount-empty){font-size:1rem;white-space:normal;line-height:1.1}
.es-order-group .es-order-amount-empty{font-size:.87rem}
.es-order-group .es-order-more{min-height:24px}
@media(max-width:360px){
 .es-order-group .es-order-summary{column-gap:6px;grid-template-columns:var(--order-avatar-size) minmax(0,1fr) auto 27px;padding-inline:5px 6px}
 .es-order-group .es-order-heading{gap:5px}
 .es-order-group .es-order-amount:not(.es-order-amount-empty){font-size:.94rem;max-width:30vw}
 .es-order-group .es-order-meta{gap:3px 6px}
}
@media(hover:hover){.es-order-group .es-order-summary:hover{background:color-mix(in srgb,var(--stage-ink) 14%,var(--stage-tint))}}

/* O cartão de prévia inteiro usa a paleta do destino, sem capturar toques. */

/* Filtros compactos: o fundo é mais fino que a área de toque. */
#roleShell:has(>.es-seller)>.material-appbar.MuiAppBar-root:has(>.es-seller-stage-filter){border-bottom:0}
#roleShell:has(>.es-seller)>.material-appbar.MuiAppBar-root:has(>.es-seller-stage-filter)>.material-toolbar{max-width:none;border-bottom:4px solid var(--brand-highlight);padding-inline:max(4px,env(safe-area-inset-left),calc((100% - 1100px) / 2)) max(4px,env(safe-area-inset-right),calc((100% - 1100px) / 2));min-height:64px}
.es-seller-stage-filter{display:grid;grid-template-columns:1.26fr repeat(5,minmax(0,1fr));gap:4px;width:100%;margin:0;padding:0 max(8px,env(safe-area-inset-right),calc((100% - 421px) / 2)) 0 max(8px,env(safe-area-inset-left),calc((100% - 421px) / 2));background:#f0f3f8;box-shadow:inset 0 -1px #dde4ee;}
.es-seller-stage-filter button{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;gap:4px;min-height:36px;min-width:0;padding:0 3px;border:0;border-radius:7px;background:transparent;color:var(--stage-ink,#142d50);font:750 .75rem/1 system-ui,sans-serif;cursor:pointer}
.es-seller-stage-filter button::before{content:"";position:absolute;z-index:-1;inset:5px 0;border:1px solid transparent;border-radius:6px;background:var(--stage-tint,#dbe7ff);pointer-events:none}
.es-seller-stage-filter button[aria-pressed=true]{color:#fff}
.es-seller-stage-filter button[aria-pressed=true]::before{background:var(--stage-ink,#2454b8);border-color:#fff}
.es-seller-stage-filter button:focus-visible{outline:2px solid #142d50;outline-offset:-1px}
.es-seller-stage-filter b{display:inline-grid;place-items:center;min-width:19px;max-width:100%;min-height:17px;padding:0 4px;border-radius:5px;background:var(--stage-ink,#142d50);color:#fff;font:800 .78rem/1 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.es-seller-stage-filter button[aria-pressed=true] b{background:#fff;color:var(--stage-ink,#142d50)}
.es-seller-filter-icon{display:grid;place-items:center;width:25px;height:25px;flex:none;border-radius:5px;background:color-mix(in srgb,var(--stage-ink) 10%,var(--stage-tint))}
.es-seller-stage-filter button[aria-pressed=true] .es-seller-filter-icon{background:rgb(255 255 255 / 16%)}
.es-seller-stage-filter .es-stage-symbol{width:19px;height:19px}
.es-seller-stage-filter button:has(.es-seller-filter-icon){gap:3px;padding-inline:2px}
@media(max-width:350px){.es-seller-stage-filter{gap:3px}.es-seller-stage-filter button,.es-seller-stage-filter button:has(.es-seller-filter-icon){gap:2px;padding-inline:2px}.es-seller-filter-icon{width:23px;height:23px}.es-seller-stage-filter .es-stage-symbol{width:17px;height:17px}.es-seller-stage-filter b{min-width:17px;padding-inline:3px}}


/* Só a linha do título recolhe; a faixa de filtros permanece acionável no topo. */
#roleShell[data-seller-bar-hidden]>.material-appbar.MuiAppBar-root:has(>.es-seller-stage-filter):not(:has(.es-toolbar-search,.es-toolbar-menu[aria-expanded=true],.material-toolbar :focus-visible)){transform:translateY(-64px);pointer-events:none}
#roleShell[data-seller-bar-hidden]>.material-appbar.MuiAppBar-root:has(>.es-seller-stage-filter):not(:has(.es-toolbar-search,.es-toolbar-menu[aria-expanded=true],.material-toolbar :focus-visible)) .es-seller-stage-filter{pointer-events:auto;position:relative}
#roleShell[data-seller-bar-hidden]>.material-appbar.MuiAppBar-root:has(>.es-seller-stage-filter):not(:has(.es-toolbar-search,.es-toolbar-menu[aria-expanded=true],.material-toolbar :focus-visible)) .es-seller-stage-filter::before{content:"";position:absolute;inset:auto 0 100%;height:env(safe-area-inset-top,0px);background:var(--es-status-inset,#f0f3f8);pointer-events:none}

/* Escolha de modalidade dentro da janela do pedido. */
@keyframes es-modality-enter{from{transform:translateY(28px)}to{transform:translateY(0)}}

/* Os destinos do menu de contato parecem ações, inclusive sem passar o mouse. */
.es-order-contact-actions{gap:7px;padding:10px 12px max(12px,env(safe-area-inset-bottom))}
.es-order-contact-actions li>a,.es-order-contact-unavailable{grid-template-columns:34px minmax(0,1fr) 16px;min-height:56px;padding:7px 9px;border:1px solid #d7e1eb;border-radius:9px;background:#f6f8fc}
.es-order-contact-actions li>a{text-decoration:none;box-shadow:0 1px 2px rgb(20 45 80 / 10%)}
.es-order-contact-actions li>a>svg,.es-order-contact-actions li>a>.icon{width:15px;height:15px;color:#465d7b}
.es-order-contact-actions li>a:hover,.es-order-contact-actions li>a:focus-visible{background:#ecf2fa;border-color:#9eb1cb}
.es-order-contact-actions li>a:focus-visible{outline:2px solid #2454b8;outline-offset:1px}
.es-order-contact-actions li>a.es-order-contact-primary{background:#146438;border-color:#146438}
.es-order-contact-actions li>a.es-order-contact-primary:hover,.es-order-contact-actions li>a.es-order-contact-primary:focus-visible{background:#0e522c;border-color:#0e522c}
.es-order-contact-primary strong,.es-order-contact-primary small,.es-order-contact-actions li>a.es-order-contact-primary>svg,.es-order-contact-actions li>a.es-order-contact-primary>.icon{color:#fff}
.es-order-contact-primary .es-order-contact-icon{background:rgb(255 255 255 / 17%);color:#fff}
.es-order-contact-unavailable{background:#f5f6f8;border-style:dashed}
.es-dev-refresh{position:fixed;inset:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) auto auto;z-index:1100;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 20px);padding:7px 8px 7px 11px;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:#142d50;box-shadow:0 4px 18px #142d5033;font:600 .84rem/1.25 system-ui,sans-serif}
.es-dev-refresh button{flex:none;min-height:36px;padding:4px 8px;border:0;border-radius:6px;background:#142d50;color:#fff;font:inherit;cursor:pointer}
.es-dev-refresh button:disabled{opacity:.65;cursor:wait}
.es-dev-refresh button:focus-visible{outline:2px solid #2454b8;outline-offset:2px}

/* Um único seletor resume os dados que vão para o pedido. */
.es-order-client-picker{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;min-height:56px;padding:7px 9px;color:#142d50;text-align:left}
.es-order-client-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:#dfe9fb}
.es-order-client-picker .es-order-client-icon svg{width:19px;height:19px;color:#2454b8}
.es-order-client-summary{display:grid;gap:2px;min-width:0}
.es-order-client-summary strong{font-weight:800;overflow-wrap:anywhere}
.es-order-client-summary small{font-size:.77rem;font-weight:550;color:#435575;line-height:1.25;overflow-wrap:anywhere}
.es-order-client-action{display:flex;align-items:center;justify-content:center;min-width:23px;font-size:.78rem;color:#2454b8;font-weight:750}
.es-order-client-action svg{color:#2454b8}

.es-order-field-control{display:block;position:relative;min-width:0}
.es-order-field-control .es-order-field-icon{position:absolute;left:10px;top:13px;width:17px;height:17px;color:#415d81;pointer-events:none}
.es-seller-field .es-order-field-control :is(input,textarea){display:block;padding-inline-start:35px}
.es-order-field-control:focus-within .es-order-field-icon{color:#2454b8}
.es-order-field-control input[name="value"]{font-variant-numeric:tabular-nums}
@media(max-width:350px){.es-order-field-control .es-order-field-icon{left:7px;width:15px;height:15px;top:14px}.es-seller-field .es-order-field-control :is(input,textarea){padding-inline-start:28px}}

.es-order-date-trigger{justify-content:flex-start;gap:8px;min-height:44px;font-variant-numeric:tabular-nums}
.es-order-date-trigger svg{width:17px;height:17px;color:#415d81}
.es-seller-dialog[open][data-pane=date]{animation:es-modality-enter .2s ease-out both}
.es-calendar{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:inherit}
.es-calendar-body{display:grid;gap:8px;overflow:auto;padding:9px 14px max(12px,env(safe-area-inset-bottom));width:min(100%,420px);margin-inline:auto}
.es-calendar-shortcuts{display:grid;grid-template-columns:1fr 1fr 1.28fr;gap:6px}
.es-calendar-shortcuts button{display:grid;align-content:center;gap:2px;min-width:0;min-height:44px;padding:5px 3px;border:1px solid #d8e3f0;border-radius:8px;background:#f1f5fa;color:#142d50;font:inherit;cursor:pointer}
.es-calendar-shortcuts button[aria-pressed=true]{border-color:#2454b8;background:#e4edfd}
.es-calendar-shortcuts strong{font-size:.8rem;line-height:1.15}
.es-calendar-shortcuts small{color:#43587a;font-size:.73rem;font-variant-numeric:tabular-nums}
.es-calendar-month{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;text-align:center;color:#142d50;font-size:.95rem}
.es-calendar-month strong::first-letter{text-transform:uppercase}
.es-calendar-month button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #d8e3f0;border-radius:8px;background:#f7f9fc;color:#142d50;cursor:pointer}
.es-calendar-prev svg{rotate:180deg}
.es-calendar-grid{display:grid;gap:2px}
.es-calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.es-calendar-week>[role=columnheader]{text-align:center;color:#43587a;font-size:.73rem;font-weight:700;padding-block:3px}
.es-calendar-week button{width:100%;min-height:37px;border:1px solid transparent;border-radius:7px;background:#fff;color:#142d50;font:700 .88rem/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;cursor:pointer}
.es-calendar-week button[data-outside=true]{color:#667792}
.es-calendar-week button[aria-current=date]{border-color:#9db7dc;background:#eaf1fc}
.es-calendar-week [aria-selected=true]>button{background:#2454b8;color:#fff;border-color:#2454b8}
.es-calendar :is(button):focus-visible{outline:2px solid #2454b8;outline-offset:1px}
@media(hover:hover){.es-calendar-week [aria-selected=false]>button:hover{background:#edf2fa}}
@media(prefers-reduced-motion:reduce){.es-seller-dialog[open][data-pane=date]{animation:none}}

.es-sale-field-wide{align-content:start}
.es-sale-stepper{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:5px}
.es-sale-stepper input{font-variant-numeric:tabular-nums}
.es-sale-stepper button{display:grid;place-items:center;min-height:44px;padding:0;border:1px solid #cbd9ec;border-radius:7px;background:#eaf1fc;color:#2454b8;cursor:pointer}
.es-sale-stepper button svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;stroke-linecap:round;fill:none}
.es-sale-stepper button:disabled{background:#f1f3f7;color:#6b7b93;cursor:not-allowed}
.es-sale-stepper button:focus-visible{outline:2px solid #2454b8;outline-offset:1px}
.es-sale-hint{color:#435575;font-size:.72rem;font-weight:600;line-height:1.2}
@media(max-width:350px){
 .es-sale-stepper{gap:4px}
 .es-sale-stepper .es-order-field-control .es-order-field-icon{left:5px;width:13px}
 .es-sale-stepper .es-order-field-control input{padding-inline-start:22px;padding-inline-end:3px}
}

/* Modalidades em dois botões lado a lado, sem mudar o diálogo. */

.es-client-picker-row{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:6px}
.es-phonebook-trigger{display:grid;place-items:center;min-height:44px;padding:0;border:1px solid #cbd9ec;border-radius:8px;background:#eaf1fc;color:#2454b8;cursor:pointer}
.es-phonebook-trigger svg{width:22px;height:22px}
.es-phonebook-sheet{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:inherit}
.es-phonebook-body{display:grid;gap:9px;padding:12px 14px max(14px,env(safe-area-inset-bottom));overflow:auto}
.es-phonebook-body p{margin:0;color:#435575;font-size:.84rem;line-height:1.35}
.es-phonebook-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.es-phonebook-button{min-height:42px;padding:6px 8px;border:1px solid #cbd9ec;border-radius:8px;background:#eef3fb;color:#142d50;font:750 .86rem/1.15 system-ui,sans-serif;cursor:pointer}
.es-phonebook-result strong{color:#142d50}
.es-phonebook-result ul{list-style:none;padding:0;margin:5px 0 0;display:grid;gap:5px}
.es-phonebook-result li>button{width:100%}
.es-phonebook-trigger:focus-visible,.es-phonebook-button:focus-visible{outline:2px solid #2454b8;outline-offset:1px}

/* Data, valor e quantidade compartilham uma linha mesmo em telas estreitas. */
.es-order-essentials{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) minmax(0,.92fr);gap:7px;align-items:end}
.es-order-essentials .es-order-date-trigger{white-space:nowrap;font-size:.83rem;gap:5px;padding-inline:7px}
.es-order-essentials .es-order-date-trigger span{overflow-wrap:normal}
.es-order-essentials .es-order-date-trigger svg{width:15px;height:15px}
.es-order-essentials .es-order-field-control .es-order-field-icon{left:7px;width:15px;height:15px;top:14px}
.es-order-essentials .es-order-field-control input{padding-inline:26px 4px;font-size:.9rem}
@media(max-width:350px){.es-order-essentials{gap:5px}.es-order-essentials .es-order-date-trigger{gap:4px;padding-inline:5px}.es-order-essentials .es-order-date-trigger svg{width:13px;height:13px}}

.es-toolbar-clients{flex-shrink:0}
.es-directory-footer button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.es-directory-footer button svg{width:18px;height:18px}
.es-directory-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:inherit}
.es-directory-body{display:grid;gap:12px;padding:12px 16px;overflow:auto}
.es-directory-body p{margin:0;line-height:1.45}
.es-directory-body dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.es-directory-body dl div{padding:8px 9px;border:1px solid #dbe5f0;border-radius:8px;background:#f4f7fb}
.es-directory-body dt{color:#435575;font-size:.78rem;font-weight:700}
.es-directory-body dd{margin:3px 0 0;color:#142d50;font-weight:700;overflow-wrap:anywhere}
.es-directory-whatsapp{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:7px 10px;border-radius:8px;background:#146438;color:#fff;font-weight:750;text-decoration:none}
.es-directory-whatsapp svg{width:17px;height:17px}
.es-directory-whatsapp:focus-visible{outline:2px solid #2454b8;outline-offset:2px}
.es-directory-footer .es-directory-edit{background:#142d50;color:#fff}
.es-directory-footer .es-directory-delete{color:#98263c;background:#fff5f6}
.es-modality-field{margin:0;padding:0;border:0;min-inline-size:0;display:block}
.es-modality-field legend{padding:0;margin-bottom:4px}
.es-modality-segment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.es-modality-segment label{cursor:pointer;position:relative;min-width:0}
.es-modality-segment input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;pointer-events:none}
.es-modality-segment-label{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:5px 6px;border:1px solid #cbd8ea;border-radius:8px;background:#f1f5fa;color:#2d4669;font-size:.85rem;line-height:1.18;text-align:center}
.es-modality-segment-label svg{width:18px;height:18px;flex:none}
.es-modality-segment input:checked+.es-modality-segment-label{background:#142d50;border-color:#142d50;color:#fff}
.es-modality-segment input:focus-visible+.es-modality-segment-label{outline:2px solid #2454b8;outline-offset:1px}

.es-order-location-field small{color:#435575;font-size:.76rem;line-height:1.3;overflow-wrap:anywhere}
.es-location-trigger>span{display:flex;align-items:center;gap:7px;text-align:left}
.es-location-trigger .es-order-field-icon{width:18px;height:18px}
.es-location-trigger:disabled{opacity:.62;cursor:not-allowed}
.es-seller-dialog[open][data-pane=location]{height:var(--window-visible-height,100dvh);max-height:none;width:100%;border:0;border-radius:0;animation:es-modality-enter .2s ease-out both}
.es-seller-dialog[open][data-pane=location]{inset:auto 0 var(--window-bottom-gap,0px);height:var(--window-visible-height,100vh);height:var(--window-visible-height,100dvh);margin:0;overflow:hidden}
.es-location-sheet{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);background:#fff;color:#142d50}
.es-location-sheet .es-location-head{padding:calc(7px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 5px max(12px,env(safe-area-inset-left,0px));border-bottom:1px solid #dce5ef}
.es-location-head h2{margin:0;font-size:1rem}
.es-location-head .es-seller-close{min-width:38px;min-height:38px}
.es-location-map-wrap{position:relative;isolation:isolate;min-height:0;background:#edf2f5;overflow:hidden}
.es-location-map{position:absolute;inset:0;z-index:0}
.es-location-map .leaflet-top.leaflet-right{top:100px}
.es-location-map .leaflet-control-attribution{margin-inline-end:env(safe-area-inset-right,0px)}
.es-location-top{position:absolute;z-index:2;top:8px;left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));margin-inline:auto;width:min(calc(100% - 20px),620px);pointer-events:none}
.es-location-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:5px;background:#fff;border:1px solid #cbd8ea;border-radius:9px;box-shadow:0 3px 12px #142d502c;pointer-events:auto}
.es-location-link label,.es-location-note label{display:block;min-width:0}
.es-location-link input,.es-location-note textarea{display:block;min-width:0;width:100%;min-height:42px;padding:7px 9px;border:1px solid #cbd8ea;border-radius:7px;color:#142d50;font:400 1rem/1.25 system-ui,sans-serif}
.es-location-link .es-location-find,.es-location-my-gps{min-height:42px;padding:0 10px;border:1px solid #cbd8ea;border-radius:7px;background:#eaf1fc;color:#142d50;font-weight:750;cursor:pointer}
.es-location-status{margin:5px 0 0;width:fit-content;max-width:100%;padding:4px 7px;border:1px solid #e0e7f0;border-radius:6px;background:#fffffff5;color:#142d50;font-size:.77rem}
.es-location-my-gps{position:absolute;z-index:1;top:174px;right:max(10px,env(safe-area-inset-right,0px));display:grid;place-items:center;width:42px;padding:0;background:#fff;box-shadow:0 1px 5px #142d5030}
.es-location-my-gps:disabled{opacity:.55;cursor:default}
.es-location-dock{position:absolute;z-index:2;bottom:max(21px,env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(calc(100% - 20px),540px);background:#fffffff5;border:1px solid #dce5ef;border-radius:9px;box-shadow:0 3px 14px #142d5030}
.es-location-note{padding:4px 8px 0;font-size:.82rem;font-weight:750}
.es-location-note summary{min-height:30px;line-height:30px;cursor:pointer}
.es-location-note textarea{min-height:40px;max-height:75px;resize:vertical}
.es-location-footer{display:flex;flex-wrap:wrap;justify-content:end;padding:5px 7px;gap:5px;border:0;background:transparent}
.es-location-footer button{min-height:38px;padding:6px 8px}
.es-location-footer .es-location-save{background:#142d50;color:#fff}
.es-location-footer button:disabled{opacity:.55}
.es-location-footer .es-location-clear{color:#98263c}
.es-map-pin{pointer-events:none;background:none;border:0}
@media(max-height:440px){.es-location-map .leaflet-top.leaflet-right{top:64px}.es-location-my-gps{top:132px}.es-location-status{max-width:calc(100% - 46px)}}
@media(prefers-reduced-motion:reduce){.es-seller-dialog[open][data-pane=location]{animation:none}}

.es-client-search-only,.es-directory-search-main{flex:1;min-width:0}
.es-directory-search-head{background:#f7f9fd;align-items:start}
.es-directory-search-main{display:grid;gap:7px}
.es-managed-clients .es-client-rows{display:grid;gap:5px;border:0;border-radius:0}
.es-managed-clients .es-client-rows li+li{border-top:0}
.es-managed-clients .es-client-rows li>button{min-height:53px;border:1px solid #dbe5f0;border-radius:8px;background:#f8fafd}
.es-managed-clients .es-client-rows li>button:focus-visible,.es-managed-clients .es-client-rows li>button:hover{background:#eaf1fb}
.es-managed-clients .es-client-avatar{background:#dce8fa;color:#123b76}
.es-directory-result{margin:4px 0 8px;padding:7px 9px;border:1px solid #b6e0c6;border-radius:7px;background:#edf9f1;color:#146438;font-weight:750}
.es-phonebook-sheet:not(.es-phonebook-review) .es-phonebook-body>button:first-child{background:#142d50;color:#fff;display:flex;align-items:center;justify-content:center;gap:7px}
.es-phonebook-sheet:not(.es-phonebook-review) .es-phonebook-body>button:first-child svg{width:20px;height:20px}
.es-phonebook-actions button{min-height:44px}
.es-phonebook-review{grid-template-rows:auto minmax(0,1fr) auto}
.es-phonebook-review-head{display:flex;align-items:center;justify-content:space-between;gap:7px}
.es-phonebook-review-head button{min-height:34px}
.es-phonebook-review-list{list-style:none;padding:0;margin:0;display:grid;gap:5px}
.es-phonebook-review-list li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;padding:8px;border:1px solid #dbe5f0;border-radius:8px;background:#f8fafd}
.es-phonebook-review-list label{display:flex;align-items:center;gap:7px;min-width:0;cursor:pointer}
.es-phonebook-review-list label>span{display:grid;gap:2px;overflow-wrap:anywhere}
.es-phonebook-review-list strong{font-size:.88rem;color:#142d50}
.es-phonebook-review-list small{font-size:.77rem;color:#435575}
.es-phonebook-review-list input{accent-color:#2454b8;width:17px;height:17px;flex:none}
.es-phonebook-review-list select{min-height:35px;max-width:100%;padding:3px 5px;border:1px solid #cbd9ec;border-radius:6px;color:#142d50;background:#fff;font:inherit;font-size:.82rem}

.es-client-panel .es-directory-entrypoints{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:stretch;padding-inline:12px}
.es-client-panel .es-directory-entrypoints button{width:100%;min-width:0;min-height:44px;margin:0;padding:7px 5px;border-radius:8px;line-height:1.2;justify-content:center;text-align:center;font-weight:750}
.es-client-panel .es-directory-entrypoints button svg{flex:none;width:18px;height:18px}
.es-client-panel .es-directory-entrypoints .es-directory-agenda-btn{background:#eef4fc;border-color:#cbd9ec;color:#183c70}
.es-client-panel .es-directory-entrypoints .es-directory-agenda-btn:hover{background:#e4edfa}
.es-client-panel .es-directory-entrypoints button:focus-visible{outline:2px solid #2454b8;outline-offset:1px}

.es-seller-blank{padding:18px 16px}
.es-seller-blank>p{max-width:36ch}
.es-db-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:5px}
.es-db-browser-help{display:grid;gap:7px;width:min(100%,380px);padding:9px;margin-top:5px;border:1px solid #dce5ef;border-radius:8px;background:#f6f9fc}
.es-db-browser-help input{width:100%;min-width:0;min-height:36px;padding:6px;border:1px solid #cbd8ea;border-radius:6px;color:#142d50;font-size:1rem}

.es-date-filter-fab{position:fixed;right:max(15px,env(safe-area-inset-right));bottom:calc(max(14px,env(safe-area-inset-bottom)) + 62px);z-index:850;display:grid;place-items:center;width:44px;height:44px;border:1px solid #cbd8ea;border-radius:9px;background:#fff;color:#142d50;box-shadow:0 3px 10px #142d5024;cursor:pointer}
.es-date-filter-fab svg{width:23px;height:23px}
.es-date-filter-fab[data-active=true]{color:#1448a5;border-color:#668acc}
.es-date-filter-fab>span{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background:#2454b8}
.es-date-filter-fab:disabled{opacity:.55;cursor:not-allowed}
.es-date-filter-fab:focus-visible{outline:2px solid #2454b8;outline-offset:2px}
.es-calendar-range{grid-template-rows:auto minmax(0,1fr) auto}
.es-calendar-periods{grid-template-columns:repeat(3,minmax(0,1fr))}
.es-calendar-range-info{margin:0;color:#36547a;font-size:.8rem;font-weight:700}
.es-calendar-week [data-range-inside=true]>button{background:#dbe9ff;color:#142d50;border-color:transparent}
.es-calendar-range-footer .es-calendar-apply{background:#142d50;color:#fff}
.es-calendar-range-footer .es-calendar-apply:disabled{opacity:.55}
.es-toolbar-menu{position:relative;flex:none}
.es-toolbar-menu-panel{position:absolute;z-index:7;top:calc(100% + 3px);right:0;display:grid;gap:2px;min-width:172px;padding:5px;border:1px solid #dce5ef;border-radius:8px;background:#fff;box-shadow:0 6px 18px #142d5038}
.es-toolbar-menu-panel button{display:flex;align-items:center;gap:8px;min-height:42px;border:0;border-radius:6px;padding:5px 9px;color:#142d50;background:#fff;font:700 .9rem system-ui,sans-serif;text-align:left;cursor:pointer}
.es-toolbar-menu-panel button:hover,.es-toolbar-menu-panel button:focus-visible{outline:none;background:#eaf1fb}
.es-toolbar-menu-panel button:disabled{opacity:.54;cursor:not-allowed}
.es-toolbar-menu-panel svg{width:19px;height:19px;flex:none}
.es-seller-blank>small{font-size:.75rem;font-variant-numeric:tabular-nums}

.es-stage-options button:disabled{opacity:.56}
.es-stage-step-label{display:grid;gap:2px;min-width:0}
.es-stage-step-label small{font-weight:600;font-size:.78rem}
.es-stage-return-form fieldset{min-width:0;margin:0;padding:0;border:0}
.es-stage-return-form legend,.es-stage-return-detail{font-weight:750;color:#142d50}
.es-stage-return-form legend{margin-bottom:8px;font-size:1rem}
.es-stage-return-form .es-stage-return-route{font-size:.875rem;margin:0}
.es-stage-return-route strong:last-child{color:var(--stage-ink)}
.es-stage-reason-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.es-stage-return-form .es-stage-reason{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:46px;padding:6px 8px;
 border-color:color-mix(in srgb,var(--stage-ink) 32%,#fff);border-radius:8px;background:var(--stage-tint);color:var(--stage-ink);text-align:left;font-size:.875rem;line-height:1.22}
.es-stage-return-form .es-stage-reason[aria-pressed=true]{color:#fff;background:var(--stage-ink);border-color:var(--stage-ink)}
.es-stage-reason:focus-visible{outline:2px solid var(--stage-ink);outline-offset:2px}
.es-stage-reason-check{visibility:hidden;flex:none}
.es-stage-reason[aria-pressed=true] .es-stage-reason-check{visibility:visible}
@media(max-width:350px){.es-stage-reason-grid{grid-template-columns:1fr}}
.es-stage-return-detail{display:grid;gap:4px}
.es-stage-return-detail textarea{min-height:64px;padding:7px;font:inherit;font-weight:500;border:1px solid #c3cfdf;border-radius:6px;background:#f7f9fc;color:#142d50;resize:vertical}
.es-stage-return-form .es-stage-return-submit{background:var(--stage-ink);color:#fff;border-color:var(--stage-ink)}
.es-stage-return-form button:disabled{opacity:.55;cursor:default}
.es-client-rows .es-client-ranked-row{grid-template-columns:38px minmax(0,1fr) auto 18px;gap:7px}
.es-client-order-count{display:inline-flex;align-items:center;justify-content:center;padding:3px 6px;border-radius:12px;background:#e3edff;color:#123b76;white-space:nowrap;font-size:.72rem;font-weight:750;font-variant-numeric:tabular-nums}
.es-client-order-count[data-zero=true]{background:#f1f3f6;color:#4a5a70}
.es-order-group .es-orderline-details{gap:6px;padding:7px;border-top:1px solid color-mix(in srgb,var(--stage-ink) 17%,transparent);background:color-mix(in srgb,var(--stage-tint) 46%,#fff)}
.es-order-detail{position:relative;min-width:0;min-height:50px;padding:6px 7px 6px 33px;border:1px solid color-mix(in srgb,var(--stage-ink) 14%,transparent);border-radius:7px;background:#fff}
.es-order-detail-icon{position:absolute;inset-block-start:7px;inset-inline-start:6px;display:grid;place-items:center;width:22px;height:22px;border-radius:5px;color:var(--stage-ink);background:var(--stage-tint)}
.es-order-detail-icon svg{width:15px;height:15px}
.es-orderline-details .es-order-detail dt{margin:0 0 2px;color:var(--stage-ink);font-size:.73rem;line-height:1.23}
.es-orderline-details .es-order-detail dd{font-size:.86rem;line-height:1.3;color:#263345;font-weight:600}
.es-order-detail dd+dd{margin-top:6px}
.es-order-detail time{font-variant-numeric:tabular-nums}
@media(max-width:344px){.es-order-group .es-orderline-details{gap:4px;padding:5px}.es-order-detail{padding-inline-start:29px}.es-order-detail-icon{width:19px;height:19px;inset-inline-start:5px}}
.es-seller-list-hint{margin:8px 10px 0;padding:9px 12px;border-radius:7px;background:#e9f1ff;color:#142d50}
.es-seller-list-hint p{margin:0 0 4px}
.es-seller-list-hint button,.es-seller-search-empty button,.es-calendar-all button{min-height:38px;padding:5px 10px;color:#1448a5;background:#fff;border:1px solid #c4d4ec;border-radius:7px;font-weight:750;cursor:pointer}
.es-seller-search-empty small{color:#4a5a70}
.es-calendar-all{margin:8px 0 0}
.es-calendar-all button{width:100%}
.es-calendar-all button[aria-pressed=true]{background:#1448a5;color:#fff;border-color:#1448a5}
.es-order-group .es-orderline-details{border-radius:0}
.es-order-timeline{padding:9px 12px 12px;border-radius:0 0 12px 12px;background:#fff;border-top:1px solid #dce3ed}
.es-order-timeline h3{margin:1px 0 9px;color:#142d50;font-size:.96rem}
.es-order-timeline ol{display:grid;gap:0;list-style:none;margin:0;padding:0}
.es-order-timeline li{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;padding:0 0 10px}
.es-order-timeline li:not(:last-child)::after{content:"";width:2px;position:absolute;top:28px;bottom:0;left:13px;background:#dce3ed}
.es-order-timeline-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:var(--stage-tint);color:var(--stage-ink)}
.es-order-timeline-icon svg{width:17px;height:17px}
.es-order-timeline-event{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere;color:#263345;font-size:.87rem;line-height:1.3}
.es-order-timeline-event>strong{color:var(--stage-ink);font-size:.9rem}
.es-order-timeline time,.es-order-timeline small{font-size:.76rem;color:#4a5a70}
.es-order-timeline time{font-variant-numeric:tabular-nums}
.es-order-timeline p{margin:3px 0 0;color:#4a5a70;font-size:.81rem}
.es-seller-loading{padding:8px 10px 18px}
.es-seller-loading-shapes{display:grid;gap:12px}
.es-seller-loading-shapes section{display:grid;gap:5px}
.es-seller-loading-title{display:flex;align-items:center;gap:8px;height:27px}
.es-seller-loading-title span:first-child{width:38px;height:22px}
.es-seller-loading-title span:last-child{width:92px;height:12px}
.es-seller-loading-row{display:grid;grid-template-columns:44px minmax(0,1fr) 48px;align-items:center;gap:9px;min-height:60px;padding:6px;border-radius:9px;background:#f5f7fa}
.es-seller-loading-row div{display:grid;gap:7px}
.es-seller-loading-shapes span{display:block;border-radius:5px;background-color:#e6ecf4;background-image:linear-gradient(102deg,transparent 24%,#ffffff9c 48%,transparent 72%);background-size:240% 100%;animation:es-seller-pulse 1.15s linear infinite}
.es-seller-loading-row div span{height:9px;width:var(--row-line)}
.es-seller-loading-row div span+span{height:8px;width:48%}
.es-seller-loading-avatar{height:44px}.es-seller-loading-value{height:12px}
@keyframes es-seller-pulse{from{background-position:130% 0}to{background-position:-120% 0}}
@media(prefers-reduced-motion:reduce){.es-seller-loading-shapes span{animation:none;background-image:none}}
.es-location-results{margin-top:5px;max-height:min(40vh,255px);max-height:min(40dvh,255px);overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #cbd8ea;border-radius:9px;box-shadow:0 3px 12px #142d502c;pointer-events:auto}
.es-location-results p{margin:0;padding:6px 9px;font-size:.75rem;color:#4a5a70}
.es-location-results ul{list-style:none;padding:0;margin:0}
.es-location-results button{display:grid;gap:2px;text-align:left;width:100%;min-height:44px;padding:7px 9px;border:0;border-top:1px solid #e1e8f1;background:#fff;color:#142d50;cursor:pointer}
.es-location-results button:focus-visible,.es-location-results button:hover{background:#eaf1fc}
.es-location-results small{color:#4a5a70}
.es-location-link{grid-template-columns:minmax(0,1fr) auto auto}
.es-location-link .es-location-paste{background:#fff;padding-inline:8px}
@media(max-width:380px){.es-location-link{gap:4px;padding:4px}.es-location-link .es-location-find{padding-inline:7px;font-size:.8rem}}
.es-order-group .es-order-summary{grid-template-columns:var(--order-avatar-size) minmax(0,1fr) max-content;grid-template-areas:"avatar customer date" "avatar meta actions"}
.es-order-group .es-order-date{grid-area:date;justify-self:end;margin:0;white-space:nowrap}
.es-order-group .es-order-meta{gap:1px 7px}
.es-order-sale-value{display:flex;align-items:baseline;gap:6px;min-width:0;max-width:100%}
.es-order-sale-value .es-order-code{min-width:0;overflow-wrap:anywhere}
.es-order-sale-value .es-order-code b{min-width:0}
.es-order-group .es-order-sale-value .es-order-amount{flex:none;white-space:nowrap;text-align:left;font-size:.84rem;max-width:none}
.es-order-actions{grid-area:actions;justify-self:end;display:flex;align-items:center;position:relative;z-index:2}
.es-order-actions .es-order-more,.es-order-actions .es-order-favorite{width:32px;min-height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;color:var(--stage-ink);background:transparent;cursor:pointer}
.es-order-actions .es-order-favorite{color:#715000}
.es-order-favorite[aria-pressed=true]{background:#ffedaf;color:#684700}
.es-order-favorite[aria-pressed=true] svg{fill:#efad13}
.es-order-favorite[aria-disabled=true]{opacity:.55;cursor:wait}
.es-order-favorite:focus-visible{outline:2px solid #715000;outline-offset:1px}
.es-order-favorite-error{margin:6px 9px;color:#a0162b;font-size:.8rem}
@media(max-width:360px){.es-order-group .es-order-summary{--order-avatar-size:42px;column-gap:5px}.es-order-actions .es-order-more,.es-order-actions .es-order-favorite{width:30px}.es-order-sale-value{gap:4px}.es-order-group .es-order-sale-value .es-order-amount{font-size:.77rem}}
.es-order-actions .es-order-lock{width:32px;min-height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;color:var(--stage-ink);background:transparent;cursor:pointer}
.es-order-actions .es-order-lock[aria-pressed=true]{background:#ffedbe;color:#674500}
.es-order-lock:focus-visible{outline:2px solid var(--stage-ink);outline-offset:1px}
.es-order-lock[aria-disabled=true]{opacity:.55;cursor:wait}
.es-order-hold-banner{display:flex;gap:7px;align-items:center;padding:7px 8px;background:#fff3d6;color:#654500;font-size:.83rem;overflow-wrap:anywhere}
.es-order-hold-banner svg{flex:none}
.es-order-timeline .es-order-timeline-hold{color:#674500;background:#ffedbe}
.es-location-link{grid-template-columns:minmax(0,1fr) auto}
.es-location-input{display:flex;align-items:center;gap:3px;min-width:0;min-height:42px;padding-inline-end:4px;border:1px solid #cbd8ea;border-radius:7px;background:#fff}
.es-location-input:focus-within{border-color:#2454b8}
.es-location-input label{flex:1}
.es-location-input input{border:0;min-height:40px;background:transparent;outline:none}
.es-location-input .es-location-paste{flex:none;min-height:32px;padding:0 7px;border:0;border-radius:5px;background:#eaf1fc;color:#184477;font-size:.78rem;font-weight:750;cursor:pointer}
.es-location-paste:focus-visible{outline:2px solid #2454b8;outline-offset:1px}
@media(max-width:360px){.es-order-actions .es-order-more,.es-order-actions .es-order-favorite,.es-order-actions .es-order-lock{width:27px}}
.es-place-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:7px 7px 0;max-height:max(94px,calc(var(--window-visible-height,100dvh) - 170px));overflow-y:auto}
.es-place-fields label{min-width:0;display:grid;gap:3px;color:#142d50;font-size:.77rem;font-weight:750}
.es-place-fields input,.es-place-fields textarea{display:block;min-width:0;width:100%;height:38px;padding:7px 8px;border:1px solid #cbd8ea;border-radius:6px;background:#fff;color:#142d50;font:400 1rem/1.25 system-ui,sans-serif}
.es-place-fields textarea{min-height:38px;max-height:100px;resize:vertical}
.es-place-fields input:focus-visible,.es-place-fields textarea:focus-visible{outline:2px solid #2454b8;outline-offset:1px}
.es-place-fields input::placeholder,.es-place-fields textarea::placeholder{color:#586a81}
.es-order-instructions{min-width:0;margin:0;padding:7px 8px;border:1px solid #d8e2f0;border-radius:9px}
.es-order-instructions legend{display:flex;align-items:center;gap:5px;padding:0 4px;font-size:.86rem;font-weight:750;color:#142d50}
.es-instruction-dot{width:5px;height:5px;border-radius:50%;background:currentColor}
.es-order-instructions small{display:block;margin-top:5px;line-height:1.32;font-size:.75rem;color:#50617b}
.es-desktop-stage-label,.es-desktop-orderbar,.es-seller-desktop-columns{display:none}
/* Painel do Vendedor: grade e controles de mesa. Telas menores de toque mantêm os cartões e atalhos flutuantes. */
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell:has(>.es-seller){
  --seller-desk-max:1180px;--seller-desk-side:max(24px,calc((100vw - var(--seller-desk-max)) / 2));
  --seller-desk-columns:50px minmax(155px,1.48fr) minmax(132px,1.13fr) minmax(86px,.64fr) minmax(48px,.4fr) minmax(88px,.65fr) 144px;
  --seller-desk-gap:12px;background:#f3f5f8;
 }
 #roleShell:has(>.es-seller)>.material-appbar.MuiAppBar-root{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;background:#fff;
  box-shadow:0 1px 0 #dce4ef,0 4px 14px #142d500a;
 }
 #roleShell:has(>.es-seller)>.material-appbar.MuiAppBar-root>.material-toolbar{
  grid-column:1/-1;max-width:none;padding-inline:var(--seller-desk-side);
  background:var(--brand-navy);color:#fff;border-bottom:3px solid var(--brand-highlight);
 }
 #roleShell:has(>.es-seller)>.material-appbar.MuiAppBar-root:has(>.es-seller-stage-filter)>.material-toolbar{
  padding-inline:var(--seller-desk-side);border-bottom-width:3px;
 }
 #roleShell[data-seller-bar-hidden]:has(>.es-seller)>.material-appbar.MuiAppBar-root{transform:none;pointer-events:auto}
 #roleShell .es-seller-stage-filter{grid-column:1;display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;padding:6px 0 6px var(--seller-desk-side);background:#fff;box-shadow:none}
 #roleShell .es-seller-stage-filter button{min-height:38px;gap:5px;padding-inline:7px;font:750 .77rem/1.1 Inter,system-ui,sans-serif;white-space:nowrap}
 #roleShell .es-seller-stage-filter button::before{inset:1px 0;border-radius:7px}
 #roleShell .es-seller-stage-filter .es-seller-filter-icon{width:21px;height:21px}
 #roleShell .es-seller-stage-filter .es-stage-symbol{width:15px;height:15px}
 #roleShell .es-desktop-stage-label{display:inline}
 /* Atalhos do Vendedor: uma faixa independente das abas, sem posições por botão. */
 #roleShell .es-desktop-orderbar{--seller-action-size:38px;grid-column:2;grid-row:2;display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-end;gap:8px;padding:4px var(--seller-desk-side) 4px 10px;border-bottom:1px solid #d6e1ef}
 .es-desktop-orderbar button{display:flex;align-items:center;justify-content:center;position:relative;flex:none;box-sizing:border-box;inline-size:var(--seller-action-size);block-size:var(--seller-action-size);padding:0;border:1px solid #c4d4ec;border-radius:7px;background:#fff;color:#142d50;cursor:pointer}
 .es-desktop-orderbar button svg{width:17px;height:17px}
 .es-desktop-orderbar .es-desktop-add{border-color:var(--brand-navy);background:var(--brand-navy);color:#fff}
 .es-desktop-orderbar .es-desktop-period[data-active=true]{border-color:#668acc;color:#1448a5}
 .es-desktop-period-dot{position:absolute;inset:4px 4px auto auto;width:6px;height:6px;border-radius:50%;background:currentColor}
 .es-desktop-orderbar button:disabled{opacity:.57;cursor:wait}
 #roleShell>.es-seller{width:min(100% - 48px,var(--seller-desk-max));max-width:none;padding:16px 0 58px;margin-inline:auto}
 #roleShell .es-seller-fab,#roleShell .es-date-filter-fab{display:none}
 #roleShell .es-order-groups{--seller-card-inset:10px;overflow:hidden;border:1px solid #dce4ef;border-radius:12px;background:#fff}
 #roleShell .es-seller-desktop-columns{display:grid;grid-template-columns:var(--seller-desk-columns);gap:var(--seller-desk-gap);align-items:center;padding:9px calc(var(--seller-card-inset) + 14px);background:#eaf0f8;color:#374962;font-size:.76rem;font-weight:750}
 #roleShell .es-order-group+.es-order-group{border-top:1px solid #e2e9f2}
 #roleShell .es-order-group-head{min-height:38px;padding:4px 12px;background:#f8faff}
 #roleShell .es-order-group-title{font-size:.88rem}
 #roleShell .es-order-group-rule{background:none}
 #roleShell .es-order-group-toggle{width:34px;height:32px;border-radius:6px;cursor:pointer}
 #roleShell .es-order-group .es-order-rows{padding:6px var(--seller-card-inset) 9px;gap:7px}
 #roleShell .es-order-group .es-order-rows[hidden]{display:none}
 #roleShell .es-order-rows>li+li{border-top:0}
 #roleShell .es-order-group .es-order-summary{
  grid-template-columns:var(--seller-desk-columns);grid-template-areas:"avatar customer sale amount quantity date actions";grid-template-rows:minmax(50px,auto);
  gap:var(--seller-desk-gap);min-height:57px;padding:7px 13px;border:1px solid color-mix(in srgb,var(--stage-ink) 18%,var(--stage-tint));border-radius:11px;background:var(--stage-row);box-shadow:0 1px 3px #142d5014,0 2px 5px #142d5008;
 }
 #roleShell .es-order-group .es-order-meta,#roleShell .es-order-sale-value{display:contents}
 #roleShell .es-order-group .es-order-code{grid-area:sale;color:#142d50}
 #roleShell .es-order-group .es-order-amount{grid-area:amount;white-space:nowrap;text-align:start;color:#142d50;font-size:.9rem}
 #roleShell .es-order-group .es-order-amount-empty{color:#526278}
 #roleShell .es-order-group .es-order-quantity{grid-area:quantity;font-size:.8rem;color:#425776}
 #roleShell .es-order-group .es-order-date{grid-area:date;justify-self:start;font-size:.8rem}
 #roleShell .es-order-group .es-order-actions{justify-self:start;gap:2px}
 #roleShell .es-order-actions button{width:34px;min-height:34px}
 #roleShell .es-order-stage-button{height:39px;align-self:center}
 #roleShell .es-order-group .es-order-name{font-size:.91rem;color:#142d50}
 #roleShell .es-order-group .es-orderline-details{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 13px}
 #roleShell .es-order-timeline{padding:10px 13px 12px;border-radius:0}
 #roleShell .es-order-timeline ol{max-width:720px}
 #roleShell .es-order-group button:focus-visible,#roleShell .es-desktop-orderbar button:focus-visible{outline:2px solid #2454b8;outline-offset:2px}
 #roleShell .es-order-group .es-order-disclosure{border-radius:inherit}
 #roleShell .es-order-group .es-order-disclosure:focus-visible{outline-offset:-3px}
 #roleShell :is(.es-seller-dialog:not([data-pane=location]),.es-order-contact-dialog){
  inset:16px;margin:auto;border-radius:12px;max-height:min(calc(100dvh - 32px),800px);height:fit-content;
 }
 #roleShell .es-seller-dialog[data-pane=order]{width:min(calc(100% - 44px),720px)}
 #roleShell .es-order-contact-dialog{width:min(calc(100% - 44px),500px)}
 #roleShell :is(.es-seller-dialog:not([data-pane=location]),.es-order-contact-dialog)[open],
 #roleShell :is(.es-seller-dialog:not([data-pane=location]),.es-order-contact-dialog)[data-closing]{animation:none}
 #roleShell :is(.es-seller-dialog,.es-order-contact-dialog) button:not(:disabled){cursor:pointer}
 #roleShell .es-seller-fields{scrollbar-color:#a2b3ce #f0f3f8}
 #roleShell .es-seller-loading{max-width:100%;padding-inline:0}
}
@media(min-width:1024px) and (hover:hover),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell .es-order-group .es-order-summary:hover{background:color-mix(in srgb,var(--stage-ink) 14%,var(--stage-tint))}
 #roleShell .es-order-actions button:hover,#roleShell .es-order-group-toggle:hover{background:#e5eefb}
 #roleShell .es-order-actions :is(.es-order-favorite,.es-order-lock)[aria-pressed=true]:hover{background:#ffe099}
 .es-desktop-orderbar .es-desktop-period:not(:disabled):hover{border-color:#2454b8;color:#1448a5}
 .es-desktop-orderbar .es-desktop-add:not(:disabled):hover{background:#2454b8;color:#fff}
}
.es-directory-footer .es-directory-new-order{background:var(--brand-navy);border-color:var(--brand-navy);color:#fff}
.es-directory-footer .es-directory-new-order:disabled{opacity:.52;cursor:not-allowed}
.es-directory-new-order:focus-visible{outline:2px solid #2454b8;outline-offset:2px}
.es-directory-body .es-directory-order-hint{font-size:.82rem;color:#4a5a70}
.es-order-peek-dialog{width:min(100%,640px)}
.es-order-peek-dialog[data-order-mode=details]{overflow:hidden}
.es-order-peek-dialog[data-order-mode=details] .es-order-dialog-section{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:inherit}
.es-order-peek-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;background:#f3f6fb;scrollbar-color:#a5b8d3 #f3f6fb}
.es-order-peek-overview{padding:10px 12px 8px;background:#fff;border-bottom:1px solid #dce5f0}
.es-order-peek-stage{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:7px;background:var(--stage-tint);color:var(--stage-ink)}
.es-order-peek-stage>.es-stage-legend-chip{flex:none;width:32px;height:32px}
.es-order-peek-stage small,.es-order-peek-stage strong{display:block}
.es-order-peek-stage small{font-size:.72rem;font-weight:650;line-height:1.25}
.es-order-peek-stage strong{font-size:.95rem;line-height:1.3}
.es-order-peek-locked{margin-inline-start:auto;display:inline-flex;gap:5px;align-items:center;padding:4px 6px;border-radius:6px;background:#ffedbe;color:#674500;font-size:.77rem;font-weight:750}
.es-order-peek-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 9px;margin:8px 0 0;color:#142d50}
.es-order-peek-facts dt{color:#425776;font-size:.74rem;font-weight:680}
.es-order-peek-facts dd{margin:2px 0 0;font-size:.89rem;font-weight:750;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.es-order-peek-detail h4{margin:0;padding:8px 12px 0;color:#142d50;font-size:.88rem}
.es-order-peek-dialog .es-order-peek-detail .es-orderline-details{padding:7px 12px 10px;border:0;background:#f3f6fb}
.es-order-peek-foot{justify-content:space-between;gap:6px;padding-inline:12px}
.es-order-peek-foot .es-order-peek-change{display:flex;align-items:center;gap:6px;background:var(--brand-navy);border-color:var(--brand-navy);color:#fff}
.es-order-peek-change svg,.es-order-back-strip svg{width:17px;height:17px;flex:none}
.es-order-back-strip{padding:7px 10px 0}
.es-order-back-strip button{display:inline-flex;gap:5px;align-items:center;min-height:36px;padding:4px 7px;border:0;border-radius:6px;background:#eef4fc;color:#153b6c;font-weight:700;cursor:pointer}
.es-order-peek-dialog .es-order-contact-head h3:focus{outline:none}
.es-order-peek-dialog button:focus-visible{outline:2px solid #2454b8;outline-offset:2px}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){#roleShell .es-order-peek-dialog{width:min(calc(100% - 44px),680px)}}
.es-order-peek-contact{padding:8px 12px 6px;background:#fff}
.es-order-peek-contact h4{margin:0 0 6px;color:#142d50;font-size:.88rem}
.es-order-contact-compact{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:6px}
.es-order-contact-compact li>a,.es-order-contact-compact .es-order-contact-unavailable{
 grid-template-columns:28px minmax(0,1fr);gap:5px;padding:5px 6px;min-height:44px;box-shadow:none
}
.es-order-contact-compact .es-order-contact-icon{width:28px;height:28px;border-radius:6px}
.es-order-contact-compact .es-order-contact-icon svg{width:17px;height:17px}
.es-order-contact-compact strong{font-size:.8rem;line-height:1.16;overflow-wrap:anywhere}
.es-order-contact-compact small{font-size:.69rem;line-height:1.2}
.es-order-peek-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:0 12px 8px;background:#fff;border-bottom:1px solid #dce5f0}
.es-order-peek-tools button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:3px 7px;border:0;border-radius:6px;color:#344d6c;background:#edf3fa;font-size:.76rem;font-weight:750;cursor:pointer}
.es-order-peek-tools button[aria-pressed=true]{color:#674500;background:#ffedbe}
.es-order-peek-tools button[aria-pressed=true] svg{fill:#efad13}
.es-order-peek-tools .es-order-peek-delete{margin-inline-start:auto;color:#962336;background:transparent}
.es-order-peek-tools button[aria-disabled=true]{opacity:.57;cursor:wait}
@media(min-width:520px){.es-order-contact-compact{grid-template-columns:repeat(4,minmax(0,1fr))}}
.es-order-direct-instructions .es-order-peek-change{background:var(--brand-navy);border-color:var(--brand-navy);color:#fff}
.es-order-direct-instructions .es-order-instructions{max-width:100%}
@media(max-width:380px){.es-order-peek-foot{justify-content:flex-start}.es-order-peek-foot button{padding-inline:8px;font-size:.78rem}}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell .es-seller-stage-filter[role=tablist]{align-items:end;flex-wrap:wrap;gap:4px;padding-block:4px 0;border-bottom:1px solid #d6e1ef}
 #roleShell .es-seller-stage-filter[role=tablist] button{
  flex:0 0 auto;min-height:38px;padding-inline:7px;color:#314b6d;border:1px solid #d6e1ef;border-bottom:0;border-radius:8px 8px 0 0;background:#f3f6fb;
 }
 #roleShell .es-seller-stage-filter[role=tablist] button::before{content:none}
 #roleShell .es-seller-stage-filter[role=tablist] button[aria-selected=true]{
  color:var(--stage-ink,#1448a5);border-color:color-mix(in srgb,var(--stage-ink,#1448a5) 35%,#fff);background:var(--stage-tint,#e8f0ff);
 }
 #roleShell .es-seller-stage-filter[role=tablist] button[aria-selected=true]::after{
  content:"";position:absolute;inset:auto 0 0;height:3px;border-radius:3px 3px 0 0;background:var(--stage-ink,#1448a5);
 }
 #roleShell .es-seller-stage-filter[role=tablist] .es-seller-filter-icon{background:var(--stage-tint,#e8f0ff)}
 #roleShell .es-seller-stage-filter[role=tablist] button[aria-selected=true] b{background:#fff;color:var(--stage-ink,#1448a5)}
 #roleShell .es-seller-stage-filter[role=tablist] button:focus-visible{outline:2px solid #2454b8;outline-offset:-3px}
}
@media(min-width:1024px) and (hover:hover),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell .es-seller-stage-filter[role=tablist] button:not([aria-selected=true]):hover{background:#edf3fa}
}
.es-sale-confirmation{display:grid;gap:3px;padding:8px 9px;background:#fff2d6;color:#644400;border:1px solid #e9cd8d;border-radius:7px;font-size:.81rem;line-height:1.3}
.es-sale-confirmation strong{font-size:.88rem}
.es-order-peek-steps{padding:8px 12px 9px;border-bottom:1px solid #dce5f0;background:#fff}
.es-order-peek-steps h4{margin:0 0 6px;color:#142d50;font-size:.88rem}


.es-order-priority[data-priority=normal],.es-order-priority-choices [data-priority=normal]{--prio-ink:#415d7b;--prio-fill:#eaf0f8}
.es-order-priority[data-priority=alta],.es-order-priority-choices [data-priority=alta]{--prio-ink:#7b4600;--prio-fill:#fff0cd}
.es-order-priority[data-priority=urgente],.es-order-priority-choices [data-priority=urgente]{--prio-ink:#9f1533;--prio-fill:#ffdfe6}
#roleShell .es-order-actions .es-order-priority{display:grid;place-items:center;width:30px;min-height:32px;padding:0;border:0;border-radius:7px;color:var(--prio-ink);background:var(--prio-fill);cursor:pointer}
#roleShell .es-order-actions .es-order-priority[data-priority=normal]{background:transparent}
#roleShell .es-order-actions .es-order-priority:hover,#roleShell .es-order-peek-tools .es-order-priority:hover{background:color-mix(in srgb,var(--prio-fill) 86%,var(--prio-ink))}
#roleShell .es-order-peek-tools .es-order-priority{background:var(--prio-fill);color:var(--prio-ink)}
#roleShell .es-order-priority:focus-visible{outline:2px solid var(--prio-ink);outline-offset:-1px}
.es-order-priority-choices{display:grid;gap:7px}
#roleShell .es-order-priority-choices button{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:46px;padding:6px 9px;border:1px solid color-mix(in srgb,var(--prio-ink) 30%,#fff);border-radius:8px;background:var(--prio-fill);color:var(--prio-ink);text-align:left;cursor:pointer}
#roleShell .es-order-priority-choices button[aria-pressed=true]{border-color:var(--prio-ink)}
.es-order-priority-choices span{padding:3px 5px;border-radius:5px;background:var(--prio-ink);color:#fff;font-size:.76rem;font-weight:750}
@media(max-width:360px){#roleShell .es-order-actions .es-order-priority{width:27px}}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){#roleShell .es-order-actions .es-order-priority{width:34px;min-height:34px}}

.es-order-payment[data-payment=pendente],.es-order-payment-choices [data-payment=pendente],.es-order-payment-segment [data-payment=pendente]{--prio-ink:#654300;--prio-fill:#fff0c9}
.es-order-payment[data-payment=pago],.es-order-payment-choices [data-payment=pago],.es-order-payment-segment [data-payment=pago]{--prio-ink:#17623c;--prio-fill:#e2f3e9}
#roleShell .es-order-payment{grid-area:amount;position:relative;z-index:2;display:inline-grid;justify-items:center;align-content:center;gap:2px;min-height:36px;min-width:0;padding:2px 4px;background:transparent;border:1px solid transparent;border-radius:6px;font:inherit;cursor:pointer}
#roleShell .es-order-payment .es-order-amount{font-size:.88rem;line-height:1.12;font-weight:800;color:var(--stage-ink,#142d50);text-align:center;white-space:nowrap;max-width:none}
#roleShell .es-order-payment .es-order-amount-empty{font-weight:580;color:#526278}
.es-order-payment-badge{display:inline-flex;align-items:center;gap:2px;padding:1px 4px;border-radius:4px;color:var(--prio-ink);background:var(--prio-fill);font-size:.67rem;font-weight:750;line-height:1.2;white-space:nowrap}
.es-order-payment-badge svg{width:11px;height:11px}
#roleShell .es-order-payment:hover,#roleShell .es-order-payment:focus-visible{border-color:var(--prio-ink);outline:none}
.es-order-payment-segment input:checked+.es-modality-segment-label{color:var(--prio-ink);background:var(--prio-fill);border-color:var(--prio-ink)}
#roleShell .es-order-peek-facts .es-order-payment{padding-inline:0}
@media(max-width:360px){#roleShell .es-order-payment .es-order-amount{font-size:.75rem}}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell .es-seller-desktop-columns>span:is(:first-child,:nth-child(4)){text-align:center}
 #roleShell .es-order-summary .es-order-payment{justify-self:center}
}

#roleShell .es-order-payment{display:inline-flex;justify-content:center;align-items:center;gap:4px;padding:2px 5px;min-height:27px;background:var(--prio-fill);border:1px solid color-mix(in srgb,var(--prio-ink) 18%,transparent);border-radius:6px;white-space:nowrap}
#roleShell .es-order-payment .es-order-amount:not(.es-order-amount-empty){color:var(--prio-ink)}
#roleShell .es-order-payment-badge{padding:0;background:none}
#roleShell .es-order-payment-badge svg{width:13px;height:13px}
#roleShell .es-order-peek-facts .es-order-payment{padding-inline:5px}
.es-order-sale-value{align-items:center}
.es-order-items-editor{border:1px solid #d5e0ed;border-radius:9px;background:#fff;padding:8px;margin:0;min-width:0}
.es-order-items-editor legend{font-weight:750;color:#142d50;font-size:.85rem}
.es-order-items-editor legend small{font-weight:500;color:#526278}
.es-order-item-fields{display:grid;gap:5px;margin-bottom:7px}
.es-order-item-line{display:grid;grid-template-columns:minmax(0,1fr) 59px 33px;align-items:end;gap:5px}
.es-order-item-line label{display:grid;gap:3px;min-width:0;font-size:.77rem;color:#344d6c}
.es-order-item-line input{width:100%;min-width:0;min-height:36px;padding:5px 7px;border:1px solid #cad7e8;border-radius:6px;background:#f3f6fb;color:#142d50;font-size:16px}
#roleShell .es-order-item-line button{min-height:36px;border:1px solid #e6c8d0;border-radius:6px;background:#fff5f6;color:#9f1533;font-size:1.1rem;cursor:pointer}
#roleShell .es-order-item-add,#roleShell .es-order-peek-items button{min-height:33px;padding:4px 8px;border:1px solid #c4d5ec;border-radius:7px;background:#edf4ff;color:#142d50;font-size:.81rem;font-weight:750;cursor:pointer}
.es-order-peek-items{padding:8px 12px;background:#fff;border-bottom:1px solid #dce5f0}
.es-order-peek-items>div{display:flex;align-items:center;justify-content:space-between;gap:6px}
.es-order-peek-items h4{margin:0;color:#142d50;font-size:.9rem}
.es-order-peek-items ul{display:grid;gap:3px;padding:0;margin:6px 0 0;list-style:none}
.es-order-peek-items li{display:flex;gap:7px;min-width:0;padding:4px 6px;background:#f3f6fb;border-radius:5px;font-size:.8rem;overflow-wrap:anywhere}
.es-order-print-pane{min-height:0;overflow:auto}
.es-order-print-pane fieldset{min-width:0;margin:0;padding:0;border:0}
.es-order-print-pane legend,.es-order-print-size{font-size:.83rem;font-weight:750;color:#142d50}
.es-order-print-choices{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:4px}
#roleShell .es-order-print-choices button{min-height:40px;border:1px solid #c9d6e9;border-radius:7px;background:#fff;color:#142d50;font-weight:700;cursor:pointer}
#roleShell .es-order-print-choices button[aria-pressed=true]{border-color:#2454b8;background:#eaf2ff;color:#173e80}
.es-order-print-size{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.es-order-print-size select{min-height:38px;max-width:100%;padding:3px 5px;border:1px solid #cad7e8;border-radius:6px;color:#142d50;background:#fff;font:inherit}
.es-order-print-preview{display:grid;justify-items:center;max-height:45dvh;overflow:auto;padding:7px;background:#e8edf4;border:1px solid #d8e1ec;border-radius:8px}
.es-print-document{width:100%;background:#fff;color:#142d50;font:400 12px/1.26 system-ui,sans-serif;overflow-wrap:anywhere}
.es-print-document :is(h2,h3,p,dl,dd){margin:0}
.es-print-document header{display:flex;justify-content:space-between;align-items:baseline;gap:6px;border-bottom:1px solid #8799b3;padding-bottom:.25em}
.es-print-full{max-width:800px;padding:9px}
.es-print-full header strong{font-size:1.15em;color:#153967}
.es-print-full header h2{font-size:1.18em}
.es-print-full dl{display:grid;grid-template-columns:1fr 1fr;gap:5px 9px;margin:8px 0}
.es-print-full dt{font-size:.85em;font-weight:700;color:#3f526c}
.es-print-full :is(section,dl>div){break-inside:avoid}
.es-print-full section:has(table){break-inside:auto}
.es-print-full section{margin-top:8px}
.es-print-full h3{margin-bottom:4px;font-size:1em}
.es-print-full table{width:100%;border-collapse:collapse;text-align:left}
.es-print-full :is(th,td){padding:3px 5px;border-bottom:1px solid #c5d0df}
.es-print-full tr{break-inside:avoid}
.es-print-full :is(th,td):last-child{text-align:center;width:18%}
.es-print-label{max-width:340px;padding:9px;border:1px solid #e1e5eb;display:grid;gap:.28em}
.es-print-label h2{font-size:1.45em;line-height:1.05}
.es-print-label header,.es-print-label footer{display:flex;justify-content:space-between;align-items:baseline;gap:5px}
.es-print-label header{font-size:.85em;font-weight:750}
.es-print-label footer{border-top:1px solid #8799b3;padding-top:.15em}
.es-print-label[data-size="58x40"]{max-width:212px;font-size:10px}
[data-order-print-output]{display:none}
@media print{
 body:has(>[data-order-print-output]){display:block!important;position:static!important;overflow:visible!important;margin:0!important;padding:0!important;background:#fff!important;min-height:0!important}
 body:has(>[data-order-print-output])>:not([data-order-print-output]){display:none!important}
 body:has(>[data-order-print-output]) dialog::backdrop{display:none!important}
 [data-order-print-output]{display:block!important}
 [data-order-print-output] .es-print-document{max-width:none;padding:0;border:0;color:#000}
 [data-order-print-output] .es-print-label{font-size:9pt;line-height:1.1}
 [data-order-print-output] .es-print-label[data-size="58x40"]{font-size:7pt}
 [data-order-print-output] .es-print-label[data-size="100x150"]{font-size:13pt;gap:.55em}
}


/* No celular, valor e data ficam juntos à direita no topo do cartão. */
#roleShell .es-order-summary .es-order-payment{justify-self:center}
#roleShell .es-order-top-facts{grid-area:topfacts;display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
#roleShell .es-order-group .es-order-summary{--order-avatar-size:64px;grid-template-columns:var(--order-avatar-size) minmax(0,1fr) max-content;grid-template-areas:"avatar customer topfacts" "avatar seller actions" "avatar meta actions";grid-template-rows:minmax(32px,auto) minmax(15px,auto) minmax(16px,auto);column-gap:6px;row-gap:1px}
#roleShell .es-order-meta{display:flex;align-items:center;gap:1px 4px}
#roleShell .es-order-sale-value{display:block;max-width:100%}
#roleShell .es-order-sale-value .es-order-code{display:flex;max-width:100%}
#roleShell .es-order-sale-value .es-order-code b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell .es-order-top-facts,#roleShell .es-order-group .es-order-meta,#roleShell .es-order-sale-value{display:contents}
 #roleShell .es-order-group .es-order-summary{grid-template-columns:var(--seller-desk-columns);grid-template-areas:"avatar customer sale amount quantity date actions" "avatar seller . . . . .";grid-template-rows:minmax(33px,auto) minmax(16px,auto);column-gap:var(--seller-desk-gap);row-gap:1px;--order-avatar-size:50px;padding-block:6px}
}
#roleShell .es-order-group .es-order-summary[data-priority=alta]{border-color:#ad670d;box-shadow:inset 0 0 0 1px #ad670d55,0 1px 3px #142d5014}
#roleShell .es-order-group .es-order-summary[data-priority=urgente]{border-color:#ba2347;box-shadow:inset 0 0 0 1px #ba234777,0 1px 4px #98183b22}
#roleShell .es-order-summary[data-priority=urgente]::after{content:"";position:absolute;inset:0;pointer-events:none;border:3px solid #da2148;border-radius:inherit;opacity:0}
@media(prefers-reduced-motion:no-preference){
 #roleShell:has(>.es-seller[data-urgent-animation=on]) .es-order-summary[data-priority=urgente]::after{animation:es-urgent-border-pulse 1.35s ease-in-out infinite}
}
@keyframes es-urgent-border-pulse{0%,100%{opacity:0}48%{opacity:.95}}

.es-print-brand{display:flex;align-items:center;gap:.55em;min-width:0;font-weight:750}
.es-print-brand img{width:2.8em;height:2.8em;object-fit:contain;flex:none}
.es-print-brand strong{display:block;color:#133467;text-transform:uppercase;letter-spacing:.055em}
.es-print-brand p{font-size:.9em;color:#425b7d}
.es-print-branded{border-top:4px solid #173866;padding:14px;color:#16273b}
.es-print-branded .es-print-header{padding-bottom:10px;align-items:center;border-bottom:1px solid #bdcbe0}
.es-print-company{display:flex;flex-direction:column;align-items:flex-end;text-align:right;color:#384d69;font-size:.83em}
.es-print-hero{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:5px 10px;padding:9px 0}
.es-print-kicker{display:block;font-size:.78em;letter-spacing:.07em;font-weight:750;text-transform:uppercase;color:#435b79}
.es-print-branded .es-print-hero h2{font-size:1.65em;line-height:1.13;color:#133467}
.es-print-hero-meta{display:grid;justify-items:end;font-size:.88em;color:#3b536f}
.es-print-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px;border:1px solid #c9d7e8;border-radius:7px;background:#f0f4fa}
.es-print-overview>div{display:grid;gap:2px;align-content:start;padding-inline:3px}
.es-print-overview span{font-size:.84em;color:#415573}
.es-print-overview strong{font-size:1.08em;color:#162f53}
.es-print-overview strong[data-payment=pago]{color:#15623c}
.es-print-branded section h3,.es-print-stores h3{padding:4px 0;border-bottom:1px solid #b8c9df;color:#14345e;text-transform:uppercase;letter-spacing:.055em;font-size:.86em}
.es-print-branded th{background:#edf2fa;color:#263e60}
.es-print-note{white-space:pre-wrap;margin-bottom:.2em!important}
.es-print-stores{margin-top:9px;break-inside:avoid}
.es-print-stores ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:0;margin:0;list-style:none}
.es-print-stores li{display:grid;gap:1px;font-size:.85em}
.es-print-label{max-width:min(100%,var(--label-width));width:var(--label-width);padding:var(--label-inset);border:1px solid #bcc9dc;gap:.29em;color:#142d50}
.es-print-label .es-print-brand img{width:1.7em;height:1.7em}
.es-print-label .es-print-brand strong{font-size:1em;letter-spacing:.04em}
.es-print-label .es-print-label-mode{font-size:.93em;text-transform:uppercase}
.es-print-label-id{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:.28em}
.es-print-label-id>span{font-size:.83em;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.es-print-label-id h2{font-size:1.47em;line-height:1.04}
.es-print-label-count{padding:.12em .35em;background:#e9eef5;border-radius:.27em;white-space:nowrap;font-size:.92em}
.es-print-label-customer{font-size:1.05em;line-height:1.12}
.es-print-label-foot{white-space:normal;font-size:.83em}
.es-print-label[data-size="58x40"]{max-width:min(100%,var(--label-width));gap:.23em;font-size:9px}
.es-print-label[data-size="100x150"]{font-size:14px;gap:.55em}
@media(max-width:430px){.es-print-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{
 [data-order-print-output] .es-print-branded{border:0;border-top:3px solid #173866;padding-top:7px}
 [data-order-print-output] .es-print-overview{grid-template-columns:repeat(4,minmax(0,1fr))}
 [data-order-print-output] .es-print-label{width:100%;max-width:none;gap:.25em}
 [data-order-print-output] .es-print-label[data-size="58x40"]{font-size:7pt}
 [data-order-print-output] .es-print-label[data-size="100x150"]{font-size:13pt;gap:.55em}
}

.es-order-item-fields{gap:7px}
.es-order-item-line{grid-template-columns:minmax(0,1fr) minmax(93px,110px) 34px;gap:7px;padding:6px;border:1px solid #dde6f1;border-radius:8px;background:#f8fafd}
.es-order-item-line label{font-weight:650}
.es-order-item-line label input{background:#fff}
.es-order-item-qty{min-width:0;display:grid;gap:3px;font-size:.77rem;font-weight:650;color:#344d6c}
.es-order-qty-stepper{display:grid;grid-template-columns:31px minmax(0,1fr) 31px;min-width:0;border:1px solid #bacde7;border-radius:7px;overflow:hidden;background:#fff}
#roleShell .es-order-qty-stepper input{min-height:34px;padding:0 2px;border:0;border-radius:0;background:#fff;text-align:center;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
#roleShell .es-order-qty-stepper button{min-height:34px;padding:0;border:0;border-radius:0;background:#e9f1fd;color:#173e74;font:750 1.05rem/1 system-ui;cursor:pointer}
#roleShell .es-order-qty-stepper button:disabled{color:#72829a;background:#f2f5f9;cursor:default}
#roleShell .es-order-qty-stepper button:not(:disabled):hover{background:#d9e8fc}
#roleShell .es-order-qty-stepper :is(button,input):focus-visible{outline:2px solid #2454b8;outline-offset:-2px}
#roleShell .es-order-item-remove{background:#fff;line-height:1}
@media(max-width:360px){.es-order-item-line{gap:5px;padding:4px;grid-template-columns:minmax(0,1fr) 97px 30px}.es-order-qty-stepper{grid-template-columns:27px minmax(0,1fr) 27px}}
#roleShell .es-order-summary .es-order-payment{min-height:32px;padding-inline:6px}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){#roleShell .es-order-summary .es-order-payment{min-height:34px}}

/* Proporção dos cartões do Vendedor: avatar quadrado e leitura equilibrada no topo. */
#roleShell .es-order-summary .es-order-stage-button{
 width:var(--order-avatar-size);height:var(--order-avatar-size);min-width:0;min-height:0;aspect-ratio:1;place-self:center;border-radius:8px;
}
#roleShell .es-order-summary .es-order-stage-button .es-stage-symbol{width:26px;height:26px}
#roleShell .es-order-summary .es-order-date{font-size:.85rem;font-weight:720;font-variant-numeric:tabular-nums;line-height:1.15}
#roleShell .es-order-summary .es-order-payment{padding-inline:5px}
#roleShell .es-order-summary .es-order-payment .es-order-amount{font-size:.8rem}
@media(max-width:360px){#roleShell .es-order-summary .es-order-payment .es-order-amount{font-size:.75rem}}

.es-orderline-details .es-order-registration{display:grid;gap:2px}
.es-order-registration strong{font-size:.88rem;color:#142d50}
.es-order-registration time{font-size:.75rem;font-weight:550;color:#425776;font-variant-numeric:tabular-nums}

@media(max-width:340px){#roleShell .es-order-group .es-order-summary{--order-avatar-size:58px;column-gap:4px}}

/* Exibição dos nomes; não altera o valor armazenado nem a busca. */
.es-client-name-caps,.es-seller-dialog input:is([name=contact],[name=customer]):not([type=hidden]){text-transform:uppercase}
.es-seller-dialog input:is([name=contact],[name=customer])::placeholder{text-transform:none}

/* Valor e ícone indicam o estado sem pintar o fundo do cartão. */
#roleShell .es-order-payment,#roleShell .es-order-payment:hover,#roleShell .es-order-payment:focus-visible{background:transparent}
#roleShell .es-order-payment:not(:hover):not(:focus-visible){border-color:transparent}
#roleShell .es-order-payment[data-payment=pendente]{--prio-ink:#805100}
#roleShell .es-order-payment[data-payment=pago]{--prio-ink:#17623c}
#roleShell .es-order-payment .es-order-amount-empty{color:color-mix(in srgb,var(--prio-ink) 72%,#526278)}

#roleShell .es-order-payment[data-no-amount=true]{min-width:32px}
#roleShell .es-order-payment[data-no-amount=true] .es-order-amount-empty{color:#526278;font-weight:650}

.es-stage-urgent-setting{display:flex;align-items:center;gap:7px;min-height:34px;margin-top:7px;color:#374962;font-size:.76rem;cursor:pointer}
.es-stage-urgent-setting input{accent-color:#2454b8}

.es-photo-gallery,.es-photo-review{padding:10px 12px 14px;background:#fff;color:#142d50;min-width:0}
.es-photo-gallery p{margin:0 0 8px;font-size:.82rem;line-height:1.4}
.es-photo-info{background:#edf3fc;border-radius:7px;padding:6px 8px}
.es-photo-empty{display:flex;align-items:center;justify-content:center;gap:7px;min-height:88px;background:#f4f7fb;border-radius:9px;color:#4c617d}
.es-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;gap:7px;padding:0;margin:0 0 8px}
.es-photo-grid button{display:grid;width:100%;min-width:0;padding:0;border:1px solid #d6e2f1;border-radius:8px;overflow:hidden;background:#f8faff;color:#142d50;text-align:left;cursor:pointer}
.es-photo-grid img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:#14243c}
.es-photo-meta{display:grid;gap:2px;padding:5px 7px;color:#38516e;font-size:.73rem;overflow-wrap:anywhere}
.es-photo-meta strong{color:#142d50;font-size:.82rem}
.es-photo-review figure{margin:0;background:#13223a;border-radius:8px;overflow:hidden}
.es-photo-review img{display:block;width:100%;object-fit:contain;max-height:49dvh}
.es-photo-footer{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:6px;margin-top:7px}
.es-photo-footer button,.es-photo-camera-head button,.es-photo-camera-error button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:37px;padding:4px 9px;border:1px solid #bdcee7;border-radius:7px;background:#f1f5fc;color:#142d50;font-size:.82rem;font-weight:750;cursor:pointer}
.es-photo-footer .es-photo-primary{background:#173967;color:#fff;border-color:#173967}
.es-photo-footer button:disabled,.es-photo-camera-head button:disabled,.es-photo-shutter:disabled{opacity:.48;cursor:default}
.es-photo-camera{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;background:#080f1b;color:#fff;min-width:0}
.es-photo-camera-head{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:5px 10px;font-size:.85rem;font-weight:700}
.es-photo-camera-head button,.es-photo-camera-error button{background:#1f304a;border-color:#405575;color:#fff}
.es-photo-camera-head button[aria-pressed=true]{background:#ffe58a;color:#3c2a08;border-color:#ffe58a}
.es-photo-viewfinder{position:relative;min-height:0;display:grid;place-items:center;background:#080f1b;overflow:hidden}
.es-photo-viewfinder p{position:absolute;font-size:.86rem}
.es-photo-frame{position:relative;max-width:100%;height:100%;overflow:hidden;background:#000}
.es-photo-frame video{width:100%;height:100%;object-fit:contain;display:block}
.es-photo-gridlines{position:absolute;inset:0;pointer-events:none;opacity:.22;background-image:linear-gradient(to right,transparent 33%,#fff 33%,#fff 33.2%,transparent 33.2%,transparent 66%,#fff 66%,#fff 66.2%,transparent 66.2%),linear-gradient(to bottom,transparent 33%,#fff 33%,#fff 33.2%,transparent 33.2%,transparent 66%,#fff 66%,#fff 66.2%,transparent 66.2%)}
.es-photo-camera-error{display:grid;justify-items:center;gap:4px;padding:4px 8px;color:#ffe7b7;text-align:center;font-size:.8rem}
.es-photo-camera-error p{margin:0}
.es-photo-camera-controls{display:grid;justify-items:center;gap:5px;padding:5px 10px max(8px,env(safe-area-inset-bottom))}
.es-photo-camera-controls label{display:flex;align-items:center;gap:5px;font-size:.82rem}
.es-photo-camera-controls input{width:min(40vw,180px);accent-color:#8cb8ff}
.es-photo-shutter{display:grid;place-items:center;width:65px;height:65px;border:3px solid #fff;border-radius:50%;background:transparent;cursor:pointer}
.es-photo-shutter span{width:49px;height:49px;border-radius:50%;background:#fff}
.es-photo-camera-controls small{font-size:.73rem;text-align:center;color:#b9c9e3}
#roleShell .es-order-peek-dialog[data-order-mode=photos]:has(.es-photo-camera){inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
#roleShell .es-order-peek-dialog[data-order-mode=photos]:has(.es-photo-camera)>section{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}
#roleShell .es-photo-camera :focus-visible,#roleShell .es-photo-gallery :focus-visible,#roleShell .es-photo-review :focus-visible{outline:2px solid #6d9deb;outline-offset:-2px}
@media(min-width:640px){.es-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.es-photo-upload-preview>li{overflow:hidden;border:1px solid #d6e2f1;border-radius:8px;background:#f8faff}
.es-photo-upload-preview>li>button{display:block;padding:5px 7px;border-width:1px 0 0;border-radius:0;color:#9a2944;font-weight:700;font-size:.76rem}

#roleShell .es-order-heading{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}
.es-order-row-seller{display:flex;align-items:center;gap:3px;min-width:0;max-width:100%;color:#405775;font-size:.72rem;font-weight:650;line-height:1.12}
.es-order-row-seller svg{width:12px;height:12px;flex:none}
.es-order-row-seller>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.es-order-seller-peek{display:flex;align-items:center;gap:6px;margin:6px 0 0;padding:5px 7px;border-radius:6px;background:#edf4fd;color:#263e60;font-size:.76rem}
.es-order-seller-peek strong{display:block;font-size:.9rem;color:#142d50}
.es-order-seller-peek svg{flex:none}
#roleShell .es-order-summary .es-order-list-age{font-size:.8rem}
@media(max-width:355px){#roleShell .es-order-summary .es-order-list-age svg{display:none}#roleShell .es-order-summary .es-order-list-age{font-size:.72rem}}

/* Fotos: ações sempre à mão, coleções por etapa e conferência em tamanho maior. */
#roleShell .es-order-photo-entry{padding:8px 12px;background:#fff;border-bottom:1px solid #e2eaf3}
#roleShell .es-order-photo-entry button{width:100%;display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:9px;min-height:52px;padding:5px 9px;border:1px solid #cad9ee;border-radius:8px;background:#f1f6fe;text-align:left;color:#163866;cursor:pointer}
.es-order-photo-entry-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:#dceaff;color:#1a4785}
.es-order-photo-entry :is(strong,small){display:block}
.es-order-photo-entry strong{font-size:.88rem}
.es-order-photo-entry small{margin-top:2px;color:#405c81;font-size:.75rem}
#roleShell .es-order-photo-entry button:hover{background:#e6effe}
#roleShell .es-order-peek-dialog[data-order-mode=photos]{width:min(calc(100% - 36px),940px);height:min(730px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);overflow:hidden}
#roleShell .es-order-peek-dialog[data-order-mode=photos]>.es-order-dialog-section{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0}
#roleShell .es-order-peek-dialog[data-order-mode=photos] .es-order-contact-head{min-height:53px;padding-block:8px;border-bottom-color:#d9e4f2}
.es-photo-workspace{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0;padding:0;overflow:hidden;background:#f5f8fc;color:#142d50;--photo-pad:clamp(12px,2.5vw,22px)}
.es-photo-gallery-top{padding:12px var(--photo-pad) 9px;background:#fff;border-bottom:1px solid #dae5f2}
.es-photo-gallery-heading,.es-photo-panel-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.es-photo-gallery-heading h4,.es-photo-panel-intro h4{margin:0;font-size:clamp(1.05rem,2.2vw,1.24rem);line-height:1.2;color:#17355d}
.es-photo-gallery-heading p,.es-photo-panel-intro p{margin:3px 0 0;font-size:.8rem;color:#526788}
.es-photo-stage-badge{padding:4px 7px;border-radius:6px;font-size:.73rem;font-weight:750;color:var(--stage-ink);background:var(--stage-tint);white-space:nowrap}
.es-photo-toolbar{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.es-photo-toolbar button,.es-photo-viewer-bar button,.es-photo-retry,.es-photo-download{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:5px 10px;border:1px solid #c8d8ed;border-radius:8px;background:#fff;color:#173a68;font:750 .82rem/1.2 Inter,system-ui,sans-serif;cursor:pointer;text-decoration:none}
.es-photo-toolbar button{flex:0 1 auto}
.es-photo-toolbar .es-photo-primary,.es-photo-actionbar .es-photo-primary{background:#173b6c;border-color:#173b6c;color:#fff}
.es-photo-toolbar button:not(:disabled):hover{background:#edf4fe}
.es-photo-toolbar .es-photo-primary:not(:disabled):hover{background:#28558b}
.es-photo-toolbar button:disabled{opacity:.5;cursor:default}
.es-photo-filters{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:8px}
.es-photo-filters button{display:flex;align-items:center;gap:5px;min-height:36px;padding:3px 7px;border:1px solid #d5e1ef;border-radius:7px;background:#fff;color:var(--stage-ink,#234779);font-size:.75rem;font-weight:700;cursor:pointer}
.es-photo-filters button[aria-pressed=true]{background:var(--stage-tint,#ddecff);border-color:var(--stage-ink,#315b92)}
.es-photo-filters b{font-size:.69rem;min-width:16px;text-align:center;font-variant-numeric:tabular-nums;border-radius:5px;background:#e9f1fc;padding:1px 3px}
.es-photo-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px var(--photo-pad) 14px;scrollbar-gutter:stable;scrollbar-color:#b6c7df #f5f8fc}
.es-photo-group+.es-photo-group{margin-top:17px}
.es-photo-group h4{display:flex;align-items:center;gap:6px;margin:0 0 7px;font-size:.89rem;color:#193a68}
.es-photo-group h4 small{margin-left:auto;color:#566b87;font-size:.73rem;font-weight:650}
.es-photo-stage-marker{width:8px;height:8px;background:var(--stage-ink,#6481ad);border-radius:2px}
.es-photo-workspace .es-photo-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:8px;margin:0}
.es-photo-workspace .es-photo-grid li{min-width:0}
.es-photo-workspace .es-photo-grid button{width:100%;border-radius:9px}
.es-photo-workspace .es-photo-grid button:hover{border-color:#5c82b4}
.es-photo-grid button figure{position:relative;margin:0;overflow:hidden;background:#142c4c}
.es-photo-grid button figure img{display:block;aspect-ratio:4/3}
.es-photo-grid button figure>span{position:absolute;right:5px;bottom:5px;padding:2px 5px;border-radius:5px;background:rgb(10 26 49 / 88%);color:#fff;font-size:.67rem;font-weight:750}
.es-photo-tile-meta{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 6px;min-height:32px;padding:5px 6px;background:#fff;color:#24466f;font-size:.73rem;font-weight:650;font-variant-numeric:tabular-nums}
.es-photo-tile-meta small{font-size:.66rem;color:#526a88}
.es-photo-workspace .es-photo-empty{display:grid;justify-items:center;align-content:center;min-height:clamp(160px,36dvh,280px);gap:5px;background:transparent;text-align:center;padding:14px 8px}
.es-photo-empty-icon{display:grid;place-items:center;color:#305b99;background:#e6effe;width:48px;height:48px;border-radius:10px}
.es-photo-empty h4{margin:3px 0 0;color:#1b3d67;font-size:1rem}
.es-photo-empty p{margin:0;font-size:.82rem;max-width:30ch;color:#506989}
.es-photo-placeholder{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.es-photo-placeholder span{max-width:230px;aspect-ratio:4/3;background:#e6edf8;border-radius:8px}
.es-photo-workspace .es-photo-notice{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 8px;padding:7px 8px;background:#e9f1fd;border-radius:7px;color:#254a7e;font-size:.79rem}
.es-photo-notice progress{width:100%;height:8px;accent-color:#315c97}
.es-photo-workspace .es-photo-error{background:#fff0f1;color:#97243b}
.es-photo-workspace .es-photo-success{background:#e7f6ed;color:#195b3a}
.es-photo-gallery-foot,.es-photo-actionbar{margin:0;padding:7px var(--photo-pad) max(7px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d9e4f2}
.es-photo-gallery-foot{justify-content:space-between}
.es-photo-gallery-foot small{font-size:.73rem;color:#566b87}
.es-photo-workspace .es-photo-footer button{min-height:44px}
.es-photo-panel-intro{padding:12px var(--photo-pad) 9px;background:#fff;border-bottom:1px solid #d9e4f2}
.es-photo-panel-intro>strong{font-size:.79rem;color:#234a7d;white-space:nowrap}
.es-photo-review .es-photo-meta{padding-inline:0}
.es-photo-viewer{background:#0f2039;color:#fff}
.es-photo-viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px var(--photo-pad);background:#172c48}
.es-photo-viewer-bar button{background:#253d5d;border-color:#506984;color:#fff}
.es-photo-position{color:#e4edfb;font-size:.8rem;white-space:nowrap}
.es-photo-viewer-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(195px,245px);min-height:0;overflow:auto}
.es-photo-viewer-stage{position:relative;min-width:0;min-height:0;overflow:hidden}
.es-photo-viewer-stage figure{margin:0;height:100%;min-height:0;display:grid;place-items:center;overflow:hidden;touch-action:pan-y}
.es-photo-viewer-stage img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.es-photo-viewer-stage figure[data-zoom=true]{display:block;overflow:auto;touch-action:auto;overscroll-behavior:contain}
.es-photo-viewer-stage figure[data-zoom=true] img{width:200%;height:auto;max-width:none}
.es-photo-viewer-stage>button{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid #7997b8;background:#172c4a;color:#fff;cursor:pointer}
.es-photo-viewer-stage>button:disabled{opacity:.32;cursor:default}
.es-photo-viewer-prev{left:7px}
.es-photo-viewer-next{right:7px}
.es-photo-viewer-info{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:0;overflow:auto;background:#fff;color:#193758;padding:10px}
.es-photo-viewer-info>div:first-child{display:flex;justify-content:space-between;gap:5px;align-items:baseline}
.es-photo-viewer-info h4{margin:0;font-size:.91rem}
.es-photo-viewer-info>div:first-child>span{font-size:.73rem;color:#4b6489}
.es-photo-viewer-info .es-photo-meta{padding:4px 0;gap:4px}
.es-photo-download{align-self:start;background:#edf4fd}
.es-photo-filmstrip{display:flex;justify-content:flex-start;gap:5px;overflow-x:auto;padding:5px var(--photo-pad) max(5px,env(safe-area-inset-bottom));background:#172c48}
.es-photo-filmstrip button{flex:none;width:57px;height:45px;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:#142b4c;cursor:pointer}
.es-photo-filmstrip button[aria-current=true]{border-color:#b1d1ff}
.es-photo-filmstrip img{width:100%;height:100%;object-fit:cover}
#roleShell .es-photo-workspace :focus-visible,#roleShell .es-order-photo-entry button:focus-visible{outline:2px solid #5d96eb;outline-offset:-2px}
#roleShell .es-order-summary .es-order-heading{justify-content:center;min-width:0;gap:2px}
#roleShell .es-order-heading .es-order-name{width:100%;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#roleShell .es-order-row-seller{height:15px;line-height:15px;max-width:100%;white-space:nowrap}
#roleShell .es-order-row-seller svg{width:12px;height:12px}
@media(max-width:640px){
 #roleShell .es-order-peek-dialog[data-order-mode=photos]{inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
 .es-photo-toolbar button{flex:1 1 0;min-width:0}
 .es-photo-workspace .es-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .es-photo-viewer-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(155px,1fr) auto;overflow:auto}
 .es-photo-viewer-info{min-height:auto;overflow:visible}
 .es-photo-viewer-info .es-photo-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 6px}
 .es-photo-viewer-bar button{min-height:44px;padding-inline:7px}
 .es-photo-tile-meta{align-content:center}
}
@media(min-width:641px) and (max-height:570px){.es-photo-gallery-top{padding-top:8px}.es-photo-gallery-foot,.es-photo-actionbar{padding-block:4px}.es-photo-viewer-stage{min-height:100px}}

/* Uma linha de grade comum centraliza nome, pagamento e tempo na mesma altura. */
#roleShell .es-order-summary .es-order-heading{display:contents}
#roleShell .es-order-summary .es-order-name{grid-area:customer;align-self:center;min-width:0;line-height:1.2}
#roleShell .es-order-summary .es-order-row-seller{grid-area:seller;align-self:center}
#roleShell .es-order-summary .es-order-top-facts{align-self:center}
#roleShell .es-order-summary .es-order-meta{align-self:center}

/* Ações compactas do cartão móvel. */
#roleShell .es-order-summary .es-order-actions-desktop{display:none}
#roleShell .es-order-summary .es-order-actions-mobile{display:flex;gap:3px}
.es-order-stage-mobile-sale{display:none}
#roleShell .es-order-summary .es-order-sale-value{display:none}
#roleShell .es-order-summary .es-order-stage-button{grid-template-rows:minmax(0,1fr) auto;gap:1px;padding:4px}
.es-order-stage-mobile-sale{display:flex;align-items:center;justify-content:center;gap:1px;width:100%;min-height:22px;padding:1px 2px;border-radius:4px;background:#fff;color:var(--stage-ink);line-height:1}
.es-order-stage-mobile-sale b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;font-weight:850;font-variant-numeric:tabular-nums}
.es-order-stage-mobile-sale[data-sale-length=long] b{font-size:.72rem}
.es-order-stage-mobile-sale .es-order-sale-icon{width:12px;height:12px;flex:none}
.es-order-mobile-menu-trigger{display:grid;place-items:center;width:35px;height:35px;flex:none;padding:0;border:1px solid color-mix(in srgb,var(--stage-ink) 52%,#fff);border-radius:7px;background:#fff;color:var(--stage-ink);cursor:pointer}
.es-order-mobile-menu-trigger:hover{background:var(--stage-tint)}
.es-order-indicator{display:grid;place-items:center;width:19px;height:23px;color:#526680}
.es-order-indicator svg{width:15px;height:15px}
.es-order-indicator-favorite[data-active=true]{color:#765100}
.es-order-indicator-favorite[data-active=true] svg{fill:#efad13}
.es-order-indicator-lock[data-active=true],.es-order-indicator-priority[data-priority=alta]{color:#805100}
.es-order-indicator-priority[data-priority=urgente]{color:#a82142}
.es-order-mobile-menu{display:grid;gap:7px;background:#f6f8fc}
.es-order-menu-group{display:grid;gap:1px;border:1px solid #d9e4f1;border-radius:9px;overflow:hidden}
#roleShell .es-order-mobile-menu .es-order-menu-option{display:grid;grid-template-columns:33px minmax(0,1fr) 18px;align-items:center;gap:7px;min-height:46px;width:100%;padding:4px 7px;border:0;border-radius:0;background:#fff;color:#193a66;text-align:left;cursor:pointer}
#roleShell .es-order-mobile-menu .es-order-menu-option+.es-order-menu-option{border-top:1px solid #e4ebf5}
#roleShell .es-order-mobile-menu .es-order-menu-option:hover{background:#edf4fd}
.es-order-menu-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;background:#eaf2fd;color:#244b7b}
.es-order-menu-option[aria-pressed=true] .es-order-menu-icon{background:#fff1ce;color:#805100}
.es-order-menu-option[aria-pressed=true] .es-order-menu-icon svg{fill:#efad13}
.es-order-menu-option :is(strong,small){display:block}
.es-order-menu-option small{margin-top:2px;color:#435d7e;font-size:.73rem}
.es-order-menu-end{display:grid;place-items:center}
.es-order-menu-end svg{width:15px;height:15px}
#roleShell .es-order-mobile-menu .es-order-menu-danger,.es-order-menu-danger .es-order-menu-icon{color:#9b2340}
.es-order-menu-danger .es-order-menu-icon{background:#ffe9ed}
#roleShell .es-order-menu-option:focus-visible,#roleShell .es-order-mobile-menu-trigger:focus-visible{outline:2px solid #2454b8;outline-offset:-2px}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell .es-order-summary .es-order-actions-desktop{display:flex}
 #roleShell .es-order-summary .es-order-actions-mobile,#roleShell .es-order-stage-mobile-sale{display:none}
 #roleShell .es-order-summary .es-order-sale-value{display:contents}
 #roleShell .es-order-summary .es-order-stage-button{grid-template-rows:none;gap:0;padding:0}
}

#roleShell .es-order-summary .es-order-payment[data-no-amount=true]{display:none}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){#roleShell .es-order-summary .es-order-payment[data-no-amount=true]{display:inline-flex}}

/* Destaque móvel sincronizado no cartão e no avatar; nenhuma superfície pisca. */
#roleShell .es-order-summary[data-priority=alta]{--order-priority-stroke:#db920e;--order-priority-ring:#f4c460;--priority-pulse-rate:1.8s}
#roleShell .es-order-summary[data-priority=urgente]{--order-priority-stroke:#da2148;--order-priority-ring:#ff91a4;--priority-pulse-rate:1.35s}
#roleShell .es-order-summary[data-priority=alta]::after{content:"";position:absolute;inset:0;pointer-events:none;border:3px solid var(--order-priority-stroke);border-radius:inherit;opacity:0}
#roleShell .es-order-summary:is([data-priority=alta],[data-priority=urgente]) .es-order-stage-button::before,
#roleShell .es-order-summary:is([data-priority=alta],[data-priority=urgente]) .es-order-stage-button::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit}
#roleShell .es-order-summary:is([data-priority=alta],[data-priority=urgente]) .es-order-stage-button::before{border:1px solid var(--order-priority-ring)}
#roleShell .es-order-summary:is([data-priority=alta],[data-priority=urgente]) .es-order-stage-button::after{border:3px solid var(--order-priority-stroke);opacity:0}
@media(prefers-reduced-motion:no-preference){
 #roleShell:has(>.es-seller[data-urgent-animation=on]) .es-order-summary[data-priority=alta]::after,
 #roleShell:has(>.es-seller[data-urgent-animation=on]) .es-order-summary:is([data-priority=alta],[data-priority=urgente]) .es-order-stage-button::after{animation:es-urgent-border-pulse var(--priority-pulse-rate) ease-in-out infinite}
}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell .es-order-summary[data-priority=alta]::after,
 #roleShell .es-order-summary:is([data-priority=alta],[data-priority=urgente]) .es-order-stage-button::before,
 #roleShell .es-order-summary:is([data-priority=alta],[data-priority=urgente]) .es-order-stage-button::after{content:none}
}

.es-order-seller-text{flex:1;min-width:0;overflow-wrap:anywhere}
.es-order-seller-wa{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:36px;padding:3px 7px;border:1px solid #b1dac4;border-radius:6px;background:#e6f5ed;color:#155c39;text-decoration:none;font:750 .73rem/1.15 Inter,system-ui,sans-serif;white-space:nowrap}
.es-order-seller-wa svg{width:17px;height:17px}
a.es-order-seller-wa:hover{background:#d3ecdf}
.es-order-seller-wa:focus-visible{outline:2px solid #176743;outline-offset:1px}
.es-order-seller-wa:disabled{background:#f4f7fb;border-color:#d8e3ed;color:#506784}
@media(max-width:360px){.es-order-seller-wa{padding-inline:5px}.es-order-seller-wa span{font-size:.68rem}}

.es-order-stage-mobile-sale b{font-size:.71rem;font-weight:650;letter-spacing:-.025em}
.es-order-stage-mobile-sale[data-sale-length=long] b{font-size:.67rem}
.es-order-stage-mobile-sale .es-order-sale-icon{width:8px;height:9px}
@media(max-width:340px){#roleShell .es-order-group .es-order-summary{--order-avatar-size:62px}.es-order-stage-mobile-sale b{font-size:.67rem}}

#roleShell .es-order-summary .es-order-actions-mobile{gap:2px}
.es-order-actions-mobile .es-order-mobile-menu-trigger{width:32px;height:32px}
.es-order-actions-mobile .es-order-mobile-more{background:transparent;border-color:transparent}
.es-order-actions-mobile .es-order-mobile-more:hover{background:#fff;border-color:color-mix(in srgb,var(--stage-ink) 38%,#fff)}
.es-order-actions-mobile .es-order-indicator{width:15px}
.es-order-actions-mobile .es-order-indicator svg{width:14px;height:14px}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){#roleShell .es-order-summary .es-order-actions-mobile{display:none}}

/* Cartão móvel: posição tradicional do número, atalhos na borda direita. */
#roleShell .es-order-summary .es-order-sale-value{display:block}
#roleShell .es-order-summary .es-order-stage-button{grid-template-rows:none;gap:0;padding:0}
#roleShell .es-order-summary .es-order-actions-mobile{margin-inline-end:-3px}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){#roleShell .es-order-summary .es-order-sale-value{display:contents}}
/* Detalhe móvel: um único scroll com resumo enxuto e atalhos fixos no rodapé. */
#roleShell .es-order-peek-dialog[data-order-layout=mobile]{width:min(100%,620px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);overflow:hidden;inset:auto 0 0;margin-inline:auto;border-radius:14px 14px 0 0}
#roleShell .es-order-peek-dialog[data-order-layout=mobile]>.es-order-dialog-section{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0}
#roleShell .es-order-peek-dialog[data-order-layout=mobile] .es-order-contact-head{padding:12px 10px 6px;min-height:55px}
#roleShell .es-order-peek-dialog[data-order-layout=mobile] .es-order-contact-head h3{font-size:1.025rem}
#roleShell .es-order-peek-dialog[data-order-layout=mobile] .es-order-contact-head p{font-size:.73rem;margin-top:2px}
#roleShell .es-order-peek-dialog[data-order-layout=mobile] .es-seller-close{min-width:42px;min-height:42px}
.es-m-order-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;background:#f3f6fa;padding:8px 9px 12px;scrollbar-color:#b5c5dc #f3f6fa}
.es-m-order-overview{border:1px solid #d8e3ef;border-radius:10px;background:#fff;overflow:hidden}
.es-m-order-stage{display:flex;align-items:center;gap:6px;min-height:35px;padding:4px 7px;color:var(--stage-ink);background:var(--stage-tint);font-size:.85rem}
.es-m-order-stage .es-stage-legend-chip{width:26px;height:26px}
.es-m-order-stage .es-stage-symbol{width:17px;height:17px}
.es-m-order-mode,.es-m-order-lock{margin-inline-start:auto;display:inline-flex;align-items:center;gap:3px;font-size:.7rem;font-weight:730}
.es-m-order-lock{padding:2px 4px;border-radius:5px;background:#fff0c3;color:#654300}
.es-m-order-lock svg{width:13px;height:13px}
.es-m-order-hold{margin:0;padding:4px 8px;background:#fff8e1;color:#654300;font-size:.74rem;line-height:1.3;overflow-wrap:anywhere}
.es-m-order-facts{display:grid;grid-template-columns:1.06fr 1fr .92fr;margin:0;padding:4px 0;border-bottom:1px solid #e1e8f1}
.es-m-order-facts>div{display:grid;align-content:center;gap:2px;min-width:0;padding:0 6px}
.es-m-order-facts>div+div{border-inline-start:1px solid #e5ebf3}
.es-m-order-facts dt{font-weight:650;color:#465e7e;font-size:.68rem;line-height:1.15}
.es-m-order-facts dd{margin:0;color:#142d50;font-size:.79rem;font-weight:760;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#roleShell .es-m-order-facts .es-order-payment{min-height:29px;padding:0 2px;max-width:100%;white-space:nowrap}
#roleShell .es-m-order-facts .es-order-payment .es-order-amount{font-size:clamp(.69rem,3.2vw,.82rem)}
.es-m-order-no-price{display:inline-flex;align-items:center;gap:3px;min-height:29px;padding:0 1px;border:0;background:transparent;color:#805100;font-size:.77rem;font-weight:750;cursor:pointer}
.es-m-order-no-price[data-payment=pago]{color:#17623c}
.es-m-order-no-price svg{width:12px;height:12px}
.es-m-order-overview .es-order-seller-peek{margin:4px 0 0;padding:2px 7px;background:#fff;gap:5px}
.es-m-order-overview .es-order-seller-peek>svg{width:15px;height:15px;color:#365c8f}
.es-m-order-overview .es-order-seller-text{font-size:.65rem}
.es-m-order-overview .es-order-seller-text strong{font-size:.79rem;line-height:1.15}
.es-m-order-overview .es-order-seller-wa{min-height:38px}
.es-m-order-registration{display:flex;align-items:center;flex-wrap:wrap;gap:2px 5px;min-width:0;margin:3px 7px 6px;padding-top:5px;border-top:1px solid #e5eaf2;color:#405b7b;font-size:.67rem;font-variant-numeric:tabular-nums}
.es-m-order-registration svg{width:13px;height:13px}
.es-m-order-registration strong{color:#193d69}
.es-m-order-registration time{margin-left:auto;color:#485f7c}
.es-m-order-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}
.es-m-order-shortcuts button,.es-m-order-fold-toggle{display:grid;align-items:center;gap:6px;min-width:0;text-align:left;color:#1c3e68;cursor:pointer}
.es-m-order-shortcuts button{grid-template-columns:29px minmax(0,1fr);min-height:45px;padding:4px 6px;border:1px solid #cfdded;border-radius:8px;background:#edf4fe}
.es-m-order-shortcuts button[aria-expanded=true]{background:#dceaff;border-color:#9cb9e2}
.es-m-order-fold-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:6px;background:#e7effa;color:#2b5288}
.es-m-order-shortcuts .es-m-order-fold-icon{background:#dceafe}
.es-m-order-shortcuts strong,.es-m-order-fold-toggle strong{display:block;font-size:.8rem;line-height:1.1}
.es-m-order-shortcuts small,.es-m-order-fold-toggle small{display:block;color:#456183;font-size:.66rem;line-height:1.22;margin-top:2px}
.es-m-order-sections{margin-top:6px;border:1px solid #d5e1ef;background:#fff;border-radius:9px;overflow:hidden}
.es-m-order-fold+.es-m-order-fold{border-top:1px solid #e2eaf3}
.es-m-order-fold-toggle{grid-template-columns:27px minmax(0,1fr) 15px;min-height:42px;width:100%;padding:3px 7px;border:0;background:#fff}
.es-m-order-fold-toggle[aria-expanded=true]{background:#eef5fe}
.es-m-order-fold-chevron{display:grid;place-items:center;color:#315780}
.es-m-order-fold-chevron svg{width:14px;height:14px}
.es-m-order-fold-toggle[aria-expanded=true] .es-m-order-fold-chevron{transform:rotate(90deg)}
.es-m-order-fold-body{border-top:1px solid #e2ebf5;padding:4px 6px 6px;background:#fff}
.es-m-order-fold-body[hidden],.es-m-order-items[hidden]{display:none}
.es-m-order-fold-body .es-order-contact-compact{gap:4px;padding:1px}
.es-m-order-fold-body .es-order-contact-compact li>a,.es-m-order-fold-body .es-order-contact-unavailable{min-height:39px;padding:3px 4px}
.es-m-order-fold-body .es-orderline-details{padding:4px;gap:4px}
.es-m-order-fold-body .es-order-timeline{padding:5px 3px;border:0;background:#fff}
.es-m-order-tools{padding:1px;border:0;gap:5px}
.es-m-order-tools button{min-height:38px}
.es-m-order-tools .es-order-peek-delete{margin-inline-start:0}
.es-m-order-items{padding:3px 6px 6px;border:1px solid #d9e5f3;border-radius:7px;background:#fff;margin-top:4px}
.es-m-order-items ul{margin:0 0 4px;padding:0;list-style:none}
.es-m-order-items li{display:flex;gap:5px;padding:3px 0;border-bottom:1px solid #e8edf5;font-size:.8rem;overflow-wrap:anywhere}
.es-m-order-mini,.es-m-order-footer button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:3px 7px;border:1px solid #c6d7eb;border-radius:7px;background:#f0f5fd;color:#1a4070;font-size:.77rem;font-weight:750;cursor:pointer}
.es-m-order-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 9px max(6px,env(safe-area-inset-bottom));border-top:1px solid #dce5f2;background:#fff}
.es-m-order-footer>div{display:flex;align-items:center;gap:4px;color:#24486e;font-size:.76rem;font-weight:750}
.es-m-order-footer .es-m-order-play{width:42px;padding:0;background:#194783;border-color:#194783;color:#fff}
.es-m-order-footer .es-m-order-play:hover{background:#265591}
#roleShell .es-m-order-scroll :focus-visible,#roleShell .es-m-order-footer :focus-visible{outline:2px solid #3774c8;outline-offset:-2px}

/* Detalhes do celular: contato e ações ficam antes do resumo. */
#roleShell .es-order-peek-dialog[data-order-layout=mobile] .es-order-contact-head p{display:none}
#roleShell .es-order-peek-dialog[data-order-layout=mobile] .es-order-contact-head{min-height:51px}
.es-m-order-client{padding:7px;background:#fff;border:1px solid #d8e3ef;border-radius:9px}
.es-m-order-client-main{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:7px;padding:1px 1px 5px}
.es-m-order-client-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;background:#e7f0fe;color:#245587}
.es-m-order-client-main h4{margin:0;color:#142f55;font-size:clamp(.97rem,4vw,1.14rem);line-height:1.16;overflow-wrap:anywhere}
.es-m-order-client-main p{margin:2px 0 0;color:#405d80;font-size:.75rem;line-height:1.22;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.es-m-order-client-main .es-m-order-client-address{font-size:.7rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.es-m-order-client-links .es-order-contact-compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;padding:0}
#roleShell .es-m-order-client-links :is(.es-order-contact-compact li>a,.es-order-contact-unavailable){display:flex;flex-direction:column;justify-content:center;text-align:center;min-height:44px;gap:2px;padding:3px 2px;border-radius:6px}
#roleShell .es-m-order-client-links .es-order-contact-icon{width:19px;height:19px;border-radius:3px}
.es-m-order-client-links .es-order-contact-icon svg{width:14px;height:14px}
.es-m-order-client-links .es-order-contact-compact strong{font-size:.67rem;line-height:1.1}
.es-m-order-client-links .es-order-contact-unavailable small{display:none}
.es-m-order-top-actions{margin:5px 0;padding:6px;border:1px solid #d7e4f2;border-radius:8px;background:#fff}
.es-m-order-top-actions h4{margin:0 1px 4px;color:#24486e;font-size:.75rem}
#roleShell .es-m-order-top-actions .es-m-order-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;margin:0;padding:0}
#roleShell .es-m-order-top-actions .es-m-order-tools button{flex-direction:column;min-width:0;min-height:44px;width:100%;padding:3px 1px;gap:2px;line-height:1.12;text-align:center;font-size:clamp(.62rem,2.8vw,.74rem);overflow-wrap:anywhere}
.es-m-order-top-actions .es-m-order-tools svg{flex:none;width:16px;height:16px}

/* No celular, código, quantidade e ações ocupam uma única linha. */
#roleShell .es-order-group .es-order-summary{grid-template-areas:"avatar customer topfacts" "avatar seller seller" "avatar lower lower"}
.es-order-lower{grid-area:lower;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px}
#roleShell .es-order-lower .es-order-meta{grid-area:1/1;justify-self:stretch;min-width:0;display:flex;align-items:center;flex-wrap:nowrap;gap:5px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}
#roleShell .es-order-lower :is(.es-order-sale-value,.es-order-sale-value .es-order-code,.es-order-quantity){flex:none;max-width:none;white-space:nowrap}
#roleShell .es-order-lower .es-order-sale-value .es-order-code b{overflow:visible;text-overflow:clip;white-space:nowrap;font-variant-numeric:tabular-nums}
#roleShell .es-order-lower .es-order-meta[data-long-code=true]{position:relative;z-index:2}
#roleShell .es-order-lower .es-order-meta[data-long-code=true] .es-order-code{font-size:.72rem}
#roleShell .es-order-lower .es-order-actions-mobile{grid-area:1/2;margin:0;gap:1px}
#roleShell .es-order-actions-mobile :is(.es-order-indicator,.es-order-mobile-more){width:29px;height:36px;flex:none;padding:0;border-radius:7px;background:transparent;cursor:pointer}
#roleShell .es-order-actions-mobile .es-order-indicator{border:0}
#roleShell .es-order-actions-mobile .es-order-indicator:hover{background:#ffffffa6}
#roleShell .es-order-actions-mobile .es-order-indicator:focus-visible{outline:2px solid #2454b8;outline-offset:-2px}
#roleShell .es-order-actions-mobile .es-order-indicator[aria-disabled=true]{opacity:.55;cursor:wait}
#roleShell .es-order-quantity-icon{display:none}
@media(max-width:360px){
 #roleShell .es-order-group .es-order-summary{--order-avatar-size:54px}
}
@media(max-width:425px){
 #roleShell .es-order-lower{gap:3px}
 #roleShell .es-order-lower .es-order-meta{gap:4px}
 #roleShell .es-order-lower .es-order-quantity{font-size:.75rem;gap:2px;font-variant-numeric:tabular-nums}
 #roleShell .es-order-actions-mobile :is(.es-order-indicator,.es-order-mobile-more){width:26px}
 #roleShell .es-order-quantity-unit{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #roleShell .es-order-quantity-icon{display:block;width:12px;height:12px;flex:none}
}
@media(max-width:345px){
 #roleShell .es-order-actions-mobile :is(.es-order-indicator,.es-order-mobile-more){width:24px}
 #roleShell .es-order-lower .es-order-meta[data-wide-meta=true] .es-order-code svg{display:none}
}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell .es-order-group .es-order-summary{grid-template-areas:"avatar customer sale amount quantity date actions" "avatar seller . . . . ."}
 #roleShell .es-order-lower,#roleShell .es-order-lower .es-order-meta{display:contents}
 #roleShell .es-order-lower .es-order-meta[data-long-code=true] .es-order-code{font-size:inherit}
 #roleShell .es-order-lower .es-order-sale-value .es-order-code b{overflow:hidden;text-overflow:ellipsis}
}
#roleShell .es-order-summary[data-drag-preview]{
 position:fixed;right:auto;bottom:auto;margin:0;z-index:100;pointer-events:none;user-select:none;
 --stage-row:color-mix(in srgb,var(--stage-ink) 7%,var(--stage-tint));
 max-width:none;max-height:none;overflow:visible;opacity:.98;box-shadow:0 8px 30px #142c5059;
 outline:2px solid var(--stage-ink);
}
#roleShell .es-order-summary[data-drag-preview] *{pointer-events:none}
#roleShell .es-order-summary[data-drag-source]{opacity:.35}
#roleShell .es-order-group[data-drop-target]{outline:2px solid var(--stage-ink);outline-offset:-2px;background:var(--stage-tint)}


/* Cinco abas no espaço disponível, com ícone acima do texto no celular. */
.es-order-instructions,.es-instructions-summary,.es-instruction-content{min-width:0}
.es-instruction-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:2px;border-bottom:1px solid #ccd9e9}
#roleShell .es-instruction-tabs button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:44px;margin:0;padding:3px 1px 4px;border:0;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;background:#f2f5f9;color:var(--stage-ink);font:750 clamp(.60rem,2.8vw,.8rem)/1.12 Inter,system-ui,sans-serif;text-align:center;cursor:pointer;overflow-wrap:anywhere}
#roleShell .es-instruction-tabs button[aria-selected=true]{border-bottom-color:var(--stage-ink);background:var(--stage-tint)}
#roleShell .es-instruction-tabs button:focus-visible{outline:2px solid var(--stage-ink);outline-offset:-2px}
#roleShell .es-instruction-tabs .es-stage-symbol{width:16px;height:16px;flex:none}
#roleShell .es-instruction-tabs .es-instruction-dot{position:absolute;top:5px;right:4px;width:5px;height:5px;background:var(--stage-ink);border-radius:50%}
.es-instruction-content{padding-top:6px}
.es-instruction-summary-panel{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 10px;padding:7px 5px 3px}
.es-instruction-summary-panel p{flex:1 1 165px;min-width:0;margin:0;color:#334d6d;font-size:.83rem;white-space:pre-wrap;overflow-wrap:anywhere}
#roleShell .es-instruction-edit{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--stage-ink) 23%,#fff);border-radius:7px;background:var(--stage-tint);color:var(--stage-ink);font-size:.76rem;font-weight:750;cursor:pointer}
#roleShell .es-instruction-edit svg{width:15px;height:15px}
@media(min-width:600px){
 #roleShell .es-instruction-tabs button{flex-direction:row;gap:5px;font-size:.77rem}
}

/* A localização recebida não substitui o endereço até ser conferida. */
.es-shared-location{width:auto;margin:8px 10px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px;border:1px solid #c4d9f3;border-radius:8px;background:#eef5ff;color:#142d50}
.es-shared-location-inline{margin:0}
.es-shared-location-icon{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:6px;background:#dceaff;color:#184d93}
.es-shared-location-icon svg{width:17px;height:17px}
.es-shared-location>div{flex:1 1 110px;min-width:0}
.es-shared-location :is(strong,small){display:block;line-height:1.2}
.es-shared-location strong{font-size:.83rem}
.es-shared-location small{margin-top:2px;color:#405d80;font-size:.71rem}
.es-shared-location button,.es-location-use-shared{min-height:38px;padding:4px 8px;border:1px solid #acc7eb;border-radius:6px;background:#fff;color:#154580;font-size:.76rem;font-weight:750;cursor:pointer}
.es-shared-location .es-shared-location-dismiss{display:grid;place-items:center;width:32px;border:0;background:transparent;padding:0}
.es-shared-location-dismiss svg{width:16px;height:16px}
.es-location-use-shared{margin-bottom:5px;background:#e6f0ff}

#roleShell .es-location-trigger[aria-busy=true]{cursor:progress;opacity:1;background:#eaf2fd;color:#19477e}
.es-location-spinner{display:inline-block;vertical-align:middle;flex:none;width:16px;height:16px;border:2px solid #a9c2e4;border-top-color:#2454b8;border-radius:50%;animation:es-location-spin .7s linear infinite}
@keyframes es-location-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.es-location-spinner{animation:none}}

/* Detalhes do pedido em telas de toque: corte linhas, não o tamanho das letras. */
#roleShell .es-order-peek-dialog[data-order-layout=mobile] .es-order-contact-head{min-height:58px;padding:12px 12px 8px}
#roleShell .es-order-peek-dialog[data-order-layout=mobile] .es-order-contact-head h3{font-size:1.25rem;line-height:1.22}
#roleShell .es-order-peek-dialog[data-order-layout=mobile] .es-order-contact-head .es-seller-close{min-width:44px;min-height:44px}
.es-m-order-scroll{padding:10px;line-height:1.4}
.es-m-order-client,.es-m-order-top-actions{padding:9px}
.es-m-order-client-main{gap:9px;padding-bottom:9px}
.es-m-order-client-main h4{font-size:1.25rem;line-height:1.25}
.es-m-order-client-main p,.es-m-order-client-main .es-m-order-client-address{font-size:.9375rem;line-height:1.35}
.es-m-order-client-main .es-m-order-client-address{white-space:normal;overflow:visible}
.es-m-order-client-links .es-order-contact-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#roleShell .es-m-order-client-links :is(.es-order-contact-compact li>a,.es-order-contact-unavailable){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;min-height:48px;text-align:start;padding:6px;gap:7px}
#roleShell .es-m-order-client-links .es-order-contact-icon{width:24px;height:24px;flex:none}
.es-m-order-client-links .es-order-contact-icon svg{width:16px;height:16px}
.es-m-order-client-links .es-order-contact-compact strong{font-size:.875rem;line-height:1.25;overflow-wrap:anywhere}
.es-m-order-top-actions{margin:8px 0}
.es-m-order-top-actions h4{font-size:1rem;margin-bottom:7px}
#roleShell .es-m-order-top-actions .es-m-order-tools{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#roleShell .es-m-order-top-actions .es-m-order-tools button{min-height:49px;padding:5px 3px;gap:3px;font-size:.875rem;line-height:1.25}
.es-m-order-top-actions .es-m-order-tools svg{width:18px;height:18px}
.es-m-order-stage{min-height:42px;padding:5px 9px;font-size:1rem}
.es-m-order-mode,.es-m-order-lock{font-size:.875rem;flex-wrap:wrap}
.es-m-order-facts{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}
.es-m-order-facts>div{padding:8px;gap:4px}
.es-m-order-facts>div:first-child{grid-column:1/-1;grid-template-columns:1fr auto;align-items:center;gap:6px 10px;border-bottom:1px solid #e1e8f1}
.es-m-order-facts>div:nth-child(2){border-inline-start:0}
.es-m-order-facts dt,.es-m-order-overview .es-order-seller-text,.es-m-order-registration{font-size:.875rem;line-height:1.35}
.es-m-order-facts dd,.es-m-order-overview .es-order-seller-text strong,.es-m-order-hold{font-size:1rem;line-height:1.32}
#roleShell .es-m-order-facts .es-order-payment,.es-m-order-no-price{min-height:44px}
#roleShell .es-m-order-facts .es-order-payment .es-order-amount,.es-m-order-no-price{font-size:1rem}
.es-m-order-overview .es-order-seller-peek{padding:5px 8px;flex-wrap:wrap}
.es-m-order-overview .es-order-seller-wa,.es-m-order-overview .es-order-seller-wa span{min-height:44px;font-size:.875rem}
.es-m-order-overview .es-order-seller-wa span{min-height:0}
.es-m-order-registration{margin:5px 8px 8px}
.es-m-order-registration time{margin-inline-start:0;white-space:normal}
.es-m-order-shortcuts{margin-top:8px;gap:7px}
.es-m-order-shortcuts button,.es-m-order-fold-toggle{min-height:54px;padding:7px}
.es-m-order-shortcuts strong,.es-m-order-fold-toggle strong,.es-m-order-items li{font-size:1rem;line-height:1.25}
.es-m-order-shortcuts small,.es-m-order-fold-toggle small{font-size:.875rem;line-height:1.28}
.es-m-order-fold-body .es-order-detail dt,.es-m-order-fold-body .es-order-timeline :is(time,small,p){font-size:.875rem}
.es-m-order-fold-body .es-order-detail dd,.es-m-order-fold-body .es-order-timeline-event>strong,.es-m-order-instructions .es-instruction-summary-panel p{font-size:1rem}
.es-m-order-mini,.es-m-order-footer button{min-height:46px;font-size:.9375rem;line-height:1.25}
.es-m-order-footer button{flex:1}
.es-m-order-footer .es-m-order-play{width:auto;padding:4px 6px}
.es-m-order-footer button svg{flex:none}
#roleShell .es-m-order-instructions{margin:8px 0 0;padding:8px 7px;background:#fff}
.es-m-order-instructions h4{margin:0 0 6px;font-size:1rem;color:#142d50}
#roleShell .es-m-order-instructions .es-instruction-edit{font-size:.875rem;min-height:44px}

/* Android edge-to-edge: paint only the top system inset, not the blue toolbar. */
:root[data-dotas-android] .material-appbar.MuiAppBar-root{
 background-image:linear-gradient(to bottom,#fff 0 env(safe-area-inset-top,0px),transparent env(safe-area-inset-top,0px) 100%);
}
:root[data-dotas-android] .es-splash::after{
 content:"";position:absolute;inset:0 0 auto;height:env(safe-area-inset-top,0px);background:#fff;pointer-events:none;
}
:root[data-dotas-android]{--es-status-inset:#fff}

/* Os detalhes seguem a mesma ordem dos campos da edição. */
.es-order-peek-scroll .es-peek-client{margin:8px 12px}
.es-peek-client .es-peek-client-label{margin:0 0 2px;font-size:.875rem;font-weight:700}
.es-peek-location{margin:0 0 8px;padding:7px 8px;border-radius:7px;background:#eef4fb;color:#263d5c;font-size:.875rem;line-height:1.35;overflow-wrap:anywhere}
.es-peek-location p{margin:2px 0 0;white-space:pre-wrap}
.es-peek-location p span{font-weight:650}
.es-order-peek-scroll .es-m-order-client-links .es-order-contact-compact{grid-template-columns:repeat(4,minmax(0,1fr))}
.es-peek-data{background:#fff;color:#142d50}
.es-order-peek-scroll .es-peek-data{margin:8px 12px;padding:0 8px;border:1px solid #d8e3ef;border-radius:10px}
.es-peek-edit-facts{margin:0;padding:8px 9px;gap:8px}
.es-peek-edit-facts dt{font-size:.875rem;line-height:1.25}
.es-peek-edit-facts dd{font-size:1rem;line-height:1.3}
.es-peek-modality{grid-column:1/-1;border-top:1px solid #e1e8f1;padding-top:7px}
.es-peek-payment{display:flex;gap:8px;justify-content:space-between;align-items:center;margin:0 8px;padding-inline:1px;border-top:1px solid #e1e8f1;font-size:.875rem}
.es-peek-payment button{min-width:70px;justify-content:center;gap:6px;border-radius:6px}
.es-peek-payment button:hover{background:#eff4fb}
.es-peek-extra{margin:5px 8px 8px;font-size:.875rem;line-height:1.35;overflow-wrap:anywhere;white-space:pre-wrap}
.es-m-order-scroll .es-peek-edit-facts dd{font-size:clamp(.875rem,3.8vw,1rem)}

#roleShell .es-draft-photo-entry{padding:0;background:transparent;border:0}
.es-draft-photo-entry strong small{display:inline;margin:0;font-weight:500}
#roleShell .es-seller-dialog[data-pane=photos]{width:min(100%,780px);height:min(94dvh,820px);max-height:94dvh;overflow:hidden}
.es-draft-photo-pane{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}
.es-draft-photo-pane .es-seller-form-head{position:relative}
.es-peek-mason{margin:1px 0 8px;color:#263d5c;font-size:.875rem;line-height:1.35;overflow-wrap:anywhere}
.es-delivery-schedule{gap:8px}
.es-delivery-schedule .es-order-date-trigger{min-height:44px}
.es-schedule-clear{justify-self:start;min-height:44px;padding:0 8px;border:0;background:transparent;color:#364e73;font-weight:700;cursor:pointer}
#roleShell .es-note-photo-entry button{background:#fff4dc;border-color:#eac77d;color:#664000}
#roleShell .es-note-photo-entry button:hover{background:#ffedc6}
.es-note-photo-entry .es-order-photo-entry-icon{background:#ffe4ac;color:#664000}
.es-note-photo-entry .es-order-photo-entry-icon svg{width:20px;height:20px}

.es-commercial{margin-bottom:16px;border:1px solid #cfdced;border-radius:14px;background:#fff;color:#14345b}
.es-commercial-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;background:#eef5ff;border-radius:14px}
.es-commercial h3,.es-commercial h4,.es-commercial p{margin:0}
.es-commercial p,.es-commercial dd,.es-commercial-history small{font-size:.88rem;line-height:1.42;overflow-wrap:anywhere}
.es-commercial-head p{margin-top:4px}
.es-commercial-body{padding:12px 15px;display:grid;gap:9px;justify-items:start}
.es-commercial button{border:1px solid #bdcfe7;border-radius:8px;padding:6px 12px;background:#fff;color:#14345b;min-height:44px;font-weight:750;cursor:pointer}
.es-commercial button.es-commercial-primary{background:#1f51a1;color:#fff;border-color:#1f51a1}
.es-commercial button:disabled{opacity:.6;cursor:wait}
.es-commercial-preview,.es-commercial-history{width:100%;min-width:0;border-top:1px solid #dbe6f4;padding-top:9px}
.es-commercial-preview dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:8px 0}
.es-commercial-preview dt{font-weight:750;font-size:.85rem}.es-commercial-preview dd{margin:1px 0 0}
.es-commercial-items{width:100%;overflow:auto;border:1px solid #dbe6f4;border-radius:8px}
.es-commercial-items table{width:100%;border-collapse:collapse;font-size:.83rem}
.es-commercial-items th,.es-commercial-items td{padding:6px 8px;border-bottom:1px solid #dce6f3;text-align:left}
.es-commercial-items thead{background:#eef5ff}.es-commercial-items td{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.es-commercial-items th small,.es-commercial-history small{display:block;color:#4a6080}
.es-commercial-preview footer{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:9px}
.es-commercial-preview footer strong{margin-right:auto}
.es-commercial-error,.es-commercial-notice{padding:7px 9px;border-radius:7px;background:#fdecef;color:#8b2032}
.es-commercial-notice{background:#e5f4ea;color:#1c5534}
.es-commercial-history ul{list-style:none;margin:5px 0 0;padding:0}
.es-commercial-history li{display:flex;justify-content:space-between;align-items:start;gap:8px;padding:7px 0;border-top:1px solid #e4edf8}
@media(max-width:520px){.es-commercial-head{align-items:flex-start;flex-direction:column}.es-commercial-preview dl{grid-template-columns:1fr}}
.es-commercial-items th[scope=row]{overflow-wrap:anywhere}
@media(max-width:520px){
 .es-commercial-items table,.es-commercial-items tbody{display:block}
 .es-commercial-items thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .es-commercial-items tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #dce6f3;padding:5px 2px}
 .es-commercial-items th[scope=row]{grid-column:1/-1;border:0}
 .es-commercial-items td{border:0;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left}
 .es-commercial-items td::before{content:attr(data-label);display:block;font-weight:650;color:#405a7d}
}
.es-seller-pdf-picker{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#344f76;font-size:.875rem}
.es-seller-pdf-picker button{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #b8cdeb;border-radius:8px;color:#194476;background:#edf4ff;font-weight:750;min-height:44px;cursor:pointer}
.es-seller-pdf-picker svg{width:20px;height:20px}
.es-seller-commercial-review{min-width:0;border:1px solid #c8d8ee;border-radius:9px;color:#173753;background:#f3f8ff}
.es-seller-commercial-review summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;min-height:46px;cursor:pointer}
.es-seller-commercial-review summary small,.es-seller-commercial-body li small{display:block;color:#456084;font-size:.82rem}
.es-seller-commercial-body{padding:0 10px 8px;font-size:.875rem}
.es-seller-commercial-body p{margin:4px 0}
.es-seller-commercial-body ul{list-style:none;padding:0;margin:7px 0 0;max-height:250px;overflow:auto}
.es-seller-commercial-body li{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid #dce7f5;overflow-wrap:anywhere}
.es-seller-commercial-body li b{white-space:nowrap}
.es-seller-shared-pdf{margin:8px 10px 84px;padding:9px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#eef5ff;border:1px solid #c6d9f5;color:#173e74;border-radius:8px}
.es-seller-shared-pdf button{min-height:44px;padding:5px 9px;border:1px solid #9ebce8;border-radius:8px;background:#fff;color:inherit;font-weight:750;cursor:pointer}

/* Estados de pagamento: azul para prazo, âmbar para receber e verde para pago. */
.es-order-payment[data-payment=cobrar_entrega],.es-order-payment-choices [data-payment=cobrar_entrega],.es-order-payment-segment [data-payment=cobrar_entrega]{--prio-ink:#254fa7;--prio-fill:#e4edff}
.es-m-order-no-price[data-payment=cobrar_entrega],.es-print-overview strong[data-payment=cobrar_entrega]{color:#254fa7}
.es-print-overview strong[data-payment=pendente]{color:#654300}
.es-order-payment-segment{grid-template-columns:repeat(3,minmax(0,1fr))}
.es-order-payment-segment .es-modality-segment-label{padding-inline:6px;justify-content:center;font-size:clamp(.813rem,3.6vw,.95rem)}

.es-order-form-group{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:9px 10px;border:1px solid #d9e4f2;border-radius:9px;background:#f8fbff}
.es-order-form-group h3{grid-column:1/-1;margin:0;color:#294a75;font-size:.875rem;line-height:1.3}
.es-order-form-finance{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:9px;align-items:end;padding:8px;border:1px solid #d1e1f5;border-radius:8px;background:#eef5ff}
.es-order-form-finance fieldset{min-width:0}
.es-order-form-date-qty{grid-template-columns:repeat(2,minmax(0,1fr))}
.es-order-peek-finance,.es-peek-basics{grid-template-columns:repeat(2,minmax(0,1fr))}
.es-order-peek-finance{align-items:start;margin:0 7px;padding:7px 9px;border:1px solid #d4e3f5;border-radius:8px;background:#eef5ff}
.es-m-order-stage+.es-peek-data{padding-top:7px}
.es-order-peek-scroll .es-order-peek-finance{margin-top:7px}
.es-order-peek-finance dt{color:#294975}
.es-order-peek-finance dd{margin:0}
.es-order-peek-finance button{min-height:44px;min-width:64px;justify-content:flex-start;gap:6px;padding-inline:4px;border-radius:6px}
.es-order-peek-finance button:hover{background:#e2edfb}
.es-peek-basics{border-bottom:1px solid #e3ebf5}
@media(max-width:480px){.es-order-form-finance{grid-template-columns:minmax(0,1fr)}}

/* Lista compartilhada entre cadastro, edição e visualização dos pedidos. */
.es-order-imported-lines{min-width:0;padding:8px;border:1px solid #cfdfef;border-radius:10px;background:#f5f9ff}
.es-order-imported-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 6px;color:#183553;font-size:.86rem}
.es-order-imported-head span{background:#e0ecfc;color:#1d4670;border-radius:999px;padding:2px 8px;font-weight:750}
#roleShell ul.es-order-lines{display:grid;gap:1px;list-style:none;padding:0;margin:0;background:white;border:1px solid #dce6f2;border-radius:8px;overflow:hidden}
#roleShell li.es-order-line{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;margin:0;background:white;border:0;border-radius:0;font-size:.9rem;line-height:1.25}
#roleShell li.es-order-line+li.es-order-line{border-top:1px solid #e8eef6}
.es-order-line-qty{min-width:30px;padding:4px 5px;text-align:center;border-radius:5px;background:#e9f0fa;color:#224369;white-space:nowrap;font-variant-numeric:tabular-nums}
.es-order-line-name{display:grid;gap:3px;min-width:0;color:#132f4a;overflow-wrap:anywhere}
.es-order-line-name small{color:#52657b;font-size:.76rem}
.es-order-line-total{color:#153853;font-size:.84rem;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
#roleShell .es-order-line-more,#roleShell .es-m-order-items .es-order-mini{margin-top:6px}
#roleShell .es-order-peek-items>.es-order-lines{margin-top:6px}
.es-import-confirm{min-width:0;padding:10px;border:1px solid #cddff4;border-radius:10px;background:#f2f7ff;color:#173656}
.es-import-metadata{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:7px 10px}
.es-import-metadata span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere;font-size:.875rem}
.es-import-metadata .es-import-date{grid-column:1/-1;display:flex;align-items:baseline;gap:6px;padding-bottom:5px;border-bottom:1px solid #d8e4f2}
.es-import-date strong{font-variant-numeric:tabular-nums}
.es-import-confirm small,.es-import-confirm p{color:#4c627a;font-size:.79rem}
.es-import-confirm p{margin:6px 0 0}

/* A importação fica junto ao botão de pedidos, não dentro do formulário manual. */
.es-seller-order-fabs{position:fixed;right:max(15px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:850;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.es-seller-order-fabs .es-seller-fab{position:static;justify-content:center;padding:0}
.es-seller-order-fabs .es-seller-fab,.es-seller-order-fabs .es-seller-import-fab{inline-size:52px;block-size:52px;min-block-size:52px;box-sizing:border-box}
.es-seller-order-fabs .es-seller-fab-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.es-seller-import-fab{display:flex;align-items:center;justify-content:center;inline-size:44px;block-size:44px;padding:0;border:1px solid;border-radius:9px;font-weight:750;box-shadow:0 4px 12px #142d5033;cursor:pointer}
:is(.es-desktop-orderbar .es-desktop-import,.es-seller-import-fab){border-color:#11615d;background:#11615d;color:#fff}
@media(hover:hover){:is(.es-desktop-orderbar .es-desktop-import,.es-seller-import-fab):not(:disabled):hover{border-color:#0b4b47;background:#0b4b47}}
.es-seller-import-fab svg{width:19px;height:19px}
.es-seller-import-fab:disabled{opacity:.55;cursor:not-allowed}
.es-pdf-review-dialog{inset:0;margin:auto;width:min(calc(100% - 24px),440px);border-radius:14px}
.es-pdf-review-dialog::backdrop{background:#071c3b80}
.es-pdf-review-content{padding:12px;overflow:auto}
.es-pdf-review-content p{margin:4px 0}
.es-pdf-review-form{display:flex;flex-direction:column;max-height:inherit}
.es-pdf-review-form .es-seller-form-foot{position:static}
@media(min-width:1024px),(min-width:900px) and (hover:hover) and (pointer:fine){
 #roleShell .es-seller-order-fabs{display:none}
}

/* No celular, centraliza o filtro na lateral, no mesmo eixo dos atalhos. */
.es-date-filter-fab{right:calc(max(15px,env(safe-area-inset-right)) + 4px);top:50%;bottom:auto;transform:translateY(-50%)}
.es-seller-import-fab:focus-visible{outline:2px solid #2454b8;outline-offset:2px}
.es-import-lines{width:100%;border-collapse:collapse;margin-top:8px;font-size:.82rem}
.es-import-lines caption{font-weight:750;text-align:left;padding:4px 0}
.es-import-lines th,.es-import-lines td{text-align:left;vertical-align:top;padding:6px 4px;border-bottom:1px solid #d8e4f2}
.es-import-lines thead{color:#4c627a;font-size:.77rem}
.es-import-lines th:last-child,.es-import-lines td:last-child{text-align:right}
.es-import-lines td:nth-child(2){overflow-wrap:anywhere}
.es-import-lines td:first-child,.es-import-lines td:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.es-import-lines td small{display:block;margin-top:2px}
.es-import-lines tfoot{font-weight:750;color:#153853}
.es-import-lines tfoot th{text-align:left}
.es-import-lines tfoot th,.es-import-lines tfoot td{border-bottom:0;padding-top:9px}
.es-pdf-review-content{min-height:0}
.es-pdf-review-form>.es-seller-form-head,.es-pdf-review-form>.es-seller-form-foot{flex:none}

/* Conferência do cliente e da coleta antes de salvar o pedido importado. */
.es-pdf-review-form[hidden]{display:none}
.es-import-client-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:8px;margin:8px 0;padding:8px;border:1px solid #ccdbef;border-radius:8px;background:white;min-width:0}
.es-import-client-fields legend{padding:0 4px;font-size:.83rem;font-weight:750}
.es-import-client-fields label{display:grid;gap:3px;min-width:0;font-size:.79rem;font-weight:700}
.es-import-client-fields label:last-of-type,.es-import-map{grid-column:1/-1}
.es-import-client-fields input{width:100%;min-width:0;min-height:36px;padding:5px 7px;border:1px solid #becfe5;border-radius:6px;color:#173656;background:#f8fbff;font:400 1rem system-ui,sans-serif}
.es-import-client-fields .es-import-map{min-height:38px;justify-content:flex-start;font-size:.83rem}
.es-store-pickup-check{display:inline-flex;align-items:center;gap:6px;min-height:30px;margin-top:3px;padding:3px 5px;border-radius:5px;background:#eef3fb;color:#214774;font-size:.78rem;font-weight:700;cursor:pointer}
.es-store-pickup-check:has(input:checked),.es-store-pickup-tag{background:#fef0ce;color:#634300}
.es-store-pickup-check input{appearance:auto;inline-size:16px;block-size:16px;margin:0;accent-color:#244d80}
.es-order-line-name .es-store-pickup-tag{justify-self:start;padding:2px 5px;border-radius:5px;color:#634300;font-weight:750}
.es-import-confirm .es-import-pickup-hint{margin:8px 0 3px}
@media(max-width:370px){.es-import-client-fields{grid-template-columns:minmax(0,1fr)}}

/* Ancoragem das marcações sobre o Google, sem cobrir a atribuição do mapa. */
.es-google-map-pin,.es-google-gps-dot{position:absolute;pointer-events:none;z-index:1}
.es-google-map-pin{transform:translate(-21px,-43px)}
.es-google-gps-dot{width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#1874e5;transform:translate(-50%,-50%)}
.es-location-map-wrap[data-map-provider=google] .es-location-dock{bottom:max(35px,env(safe-area-inset-bottom,0px))}

.es-order-origin{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:9px;border:1px solid #d9e4ee;border-radius:9px;background:#f6f9fc;color:#183454}
.es-order-origin-head{display:flex;align-items:center;gap:8px;flex:1 0 auto;max-width:100%}
.es-order-origin-icon{display:grid;place-items:center;width:31px;height:31px;flex:none;border-radius:7px;background:#e2edf8;color:#284a75}
.es-order-origin-head small,.es-order-origin-head strong{display:block}
.es-order-origin-head small{font-size:.73rem;color:#506987}
.es-order-origin-head strong{font-size:.9rem}
.es-order-origin-actions{display:flex;flex-wrap:wrap;gap:6px}
.es-order-origin-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:4px 9px;border:1px solid #8eacc4;border-radius:7px;background:white;color:#173b65;font-family:inherit;font-weight:700;font-size:.82rem;line-height:1.2;cursor:pointer}
.es-order-origin-actions button:last-child{border-color:#11615d;background:#11615d;color:#fff}
.es-order-origin-actions button:disabled{opacity:.55;cursor:wait}
.es-order-origin-actions button:focus-visible{outline:2px solid #2454b8;outline-offset:2px}
.es-order-origin p{margin:0;flex-basis:100%;font-size:.8rem}
.es-order-origin p[role=alert]{color:#9e1f32}
@media(max-width:540px){.es-order-origin-actions{flex-basis:100%}.es-order-origin-actions button{flex:1;min-height:44px}}

.es-order-pdf-preview{display:grid;gap:6px;flex:1 0 100%;min-width:0;padding:6px;background:#eaf0f7;border:1px solid #d9e4ee;border-radius:7px}
.es-order-pdf-preview header,.es-order-pdf-preview nav{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:.8rem}
.es-order-pdf-preview button{min-height:36px;padding:3px 8px;border:1px solid #b3c7da;border-radius:6px;background:#fff;color:#173b65;font:inherit;cursor:pointer}
.es-order-pdf-preview button:disabled{opacity:.55;cursor:default}
.es-order-pdf-preview canvas{display:block;width:100%;height:auto;background:#fff}
.es-order-pdf-preview canvas[hidden]{display:none}

.es-location-layers{display:inline-flex;gap:2px;padding:3px;margin-top:5px;min-width:0;background:#fff;border:1px solid #cbd8ea;border-radius:9px;box-shadow:0 2px 8px #142d5026;pointer-events:auto}
.es-location-layers button{min-height:38px;padding:0 12px;border:0;border-radius:6px;background:#fff;color:#18395f;font:inherit;font-size:.84rem;font-weight:750;cursor:pointer}
.es-location-layers button[aria-pressed=true]{background:#1f51a1;color:#fff}
.es-location-layers button:focus-visible{outline:2px solid #2075d6;outline-offset:2px}
.es-maps-settings summary{cursor:pointer;display:list-item;list-style:revert;list-style-position:inside}
.es-maps-settings summary>div{display:inline-block;vertical-align:middle;margin-inline-start:4px}
.es-maps-settings label{font-size:.87rem;font-weight:750}
.es-maps-settings input{width:min(100%,440px);min-height:42px;border:1px solid #becfe5;border-radius:7px;padding:6px 9px;color:#173656;background:#f8fbff;font:inherit}
.es-maps-settings-actions{display:flex;flex-wrap:wrap;gap:8px}


.es-order-payment-segment{grid-template-columns:minmax(0,.9fr) minmax(0,1fr) minmax(0,1.35fr)}
.es-order-payment-segment .es-modality-segment-label{text-align:center;line-height:1.15;min-height:44px}
.es-delivery-payments ul,.es-admin-payments dl{margin:0;padding:0;width:100%;list-style:none;display:grid;gap:8px}
.es-delivery-payments li,.es-admin-payments dl>div{padding:12px;border:1px solid #cfdced;border-radius:9px}
.es-delivery-payment-badge{display:inline-block;padding:5px 8px;border-radius:6px;margin-top:7px;color:#654300;background:#fff0c9}
.es-delivery-payment-badge[data-payment=pago]{color:#17623c;background:#e2f3e9}
.es-delivery-payment-badge[data-payment=cobrar_entrega]{color:#154884;background:#e4edff}
.es-delivery-payment-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.es-admin-payments dl{grid-template-columns:repeat(3,minmax(0,1fr))}
.es-admin-payments dl>div{padding:7px;font-size:.85rem}
.es-admin-payments dd{margin:4px 0 0;font-size:1rem;font-weight:750}


.es-pdf-payment{margin-block:9px;padding:8px;border:1px solid #cfdced;border-radius:9px;background:#fff}
.es-pdf-payment>small{display:block;margin-bottom:6px;line-height:1.3}
.es-pdf-cash-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.es-pdf-cash-options .es-modality-segment-label{min-height:62px;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.es-pdf-cash-options .es-modality-segment-label small{line-height:1.15;color:inherit}

.es-import-confirm .es-pdf-detected{padding:6px 9px;margin:6px 0;border-radius:7px;background:#edf4ff;color:#173b70;font-size:.86rem;line-height:1.35}

.es-order-paid-label{color:var(--prio-ink);font-size:.65rem;font-weight:750;white-space:nowrap}
#roleShell .es-order-summary .es-order-payment[data-payment=pago][data-no-amount=true]{display:inline-flex}

.es-pdf-cash-options input:disabled+.es-modality-segment-label{cursor:not-allowed}
.es-pdf-cash-options input:disabled:not(:checked)+.es-modality-segment-label{color:#5b6778;background:#f0f3f7;border-color:#d5dce6}
#roleShell .es-order-summary .es-order-payment[data-payment-note=prazo][data-no-amount=true]{display:inline-flex}
