/* AUTO FLOW — identidade 31/10/2026
   Interior do CRM: branco; somente menus laterais em grafite;
   logo oficial original e acentos vermelhos. Este arquivo deve ser o ultimo CSS
   dos layouts da loja e da plataforma, inclusive depois de @stack('styles').
   Nao altera temas publicos de sites de lojistas, canvas do Studio, imagens,
   semantica de sucesso/aviso/erro ou enderecos e nomes tecnicos existentes.
*/
:root {
  --af-red: #e60012;        /* vermelho de acao, contraste com textos brancos */
  --af-red-logo: #ff0000;   /* vermelho EXATO do logo fornecido */
  --af-red-hover: #b90011;
  --af-red-wash: #fff1f2;
  --af-graphite: #292929;
  --af-graphite-2: #333333;
  --af-ink: #26272b;
  --af-muted: #70747c;
  --af-line: #e4e5e8;
  --af-white: #fff;
}
body.drive-store-shell, body.drive-platform-shell, body.drive-auth-shell {
  --accent: var(--af-red);
  --dark: var(--af-graphite);
  --bg: var(--af-white);
  --ink: var(--af-ink);
  --line: var(--af-line);
  --ds-bg: var(--af-white);
  --ds-ink: var(--af-ink);
  --ds-muted: var(--af-muted);
  --ds-outline: var(--af-line);
  --dg-line: var(--af-line);
  color: var(--af-ink);
}
/* Estrutura operacional clara — inclusive rolagem do shell persistente */
html body.drive-store-shell,
html body.drive-store-shell .ds-persistent-main,
html body.drive-store-shell #drive-frame,
html body.drive-platform-shell,
html body.drive-platform-shell .main-content,
html body.drive-platform-shell .page-content {background:var(--af-white)!important}
body.drive-store-shell .ds-persistent-main{scrollbar-color:#c9cbd0 transparent}
body.drive-store-shell #drive-frame :is(.panel,.stat,.op-panel,.op-card,.op-kpis article,.dc-surface,.dc-stat,.dc-vehicle,.dc-lead,.dc-info,.dg1-card,.dg1-panel,.sv-panel,.pv-panel,.os-panel,.ds-hero,.op-hero),
body.drive-platform-shell .main-content :is(.panel,.stat,.card){background-color:#fff;border-color:var(--af-line);color:var(--af-ink)}
body.drive-store-shell #drive-frame :is(.op-lane,.dc-column,.dg1-mini,.ds-hero-foot){background:#fafafa;border-color:#e9eaed}
body.drive-store-shell #drive-frame :is(.op-hero,.ds-hero,.dc-next){background:#fff!important;background-image:none!important;color:var(--af-ink)!important}
body.drive-store-shell #drive-frame :is(.op-hero,.ds-hero,.dc-next) :is(h1,h2,strong){color:var(--af-ink)!important}
/* Menu da loja: unica grande area escura */
html body.drive-store-shell .ds-icon-rail,
html body.drive-store-shell .ds-sidebar,
html body.drive-store-shell .sidebar{background:var(--af-graphite)!important;background-image:none!important;border-color:#454545!important;color:#c9c9c9}
body.drive-store-shell .ds-rail-separator,body.drive-store-shell .ds-rail-group-divider,
body.drive-store-shell .ds-rail-bottom{border-color:#454545;background-color:#454545}
body.drive-store-shell .ds-rail-bottom{background:transparent}
body.drive-store-shell .ds-rail-link{color:#bfc0c3}
body.drive-store-shell .ds-rail-link:is(:hover,:focus-visible){background:#393939!important;color:#fff!important;border-color:#484848!important}
body.drive-store-shell .ds-rail-link:is(.active,[aria-current="page"]){background:#424242!important;border-color:#525252!important;color:#ff3434!important}
body.drive-store-shell .ds-rail-link.active::before{background:var(--af-red-logo)!important}
body.drive-store-shell .ds-rail-user{background:#424242;color:#fff;border-color:#585858}
body.drive-store-shell .ds-real-tooltip{background:#333;border-color:#515151;color:#fff}
/* Super Admin: mesmo grafite, conteudo branco */
html body.drive-platform-shell .sidebar{background:var(--af-graphite)!important;background-image:none!important;border-right:1px solid #484848!important;color:#cecece}
body.drive-platform-shell .sidebar .store-identity{background:#333;border-color:#4d4d4d;color:#cecece}
body.drive-platform-shell .sidebar .store-identity strong{color:#fff}
body.drive-platform-shell .sidebar :is(.menu-label,.sidebar-foot small){color:#a3a3a3}
body.drive-platform-shell .menu a{color:#ccc}
body.drive-platform-shell .menu a:hover{background:#393939;color:#fff}
body.drive-platform-shell .menu a.active{background:#3d3d3d;color:#fff;border-left:3px solid var(--af-red-logo);padding-left:11px}
body.drive-platform-shell .topbar{background:#fff;border-bottom:1px solid var(--af-line)}
body.drive-platform-shell .topbar .pill{background:var(--af-red-wash);color:#ad0010}
body.drive-platform-shell .stat{border-top:2px solid var(--af-red)}
/* Logo: usar PNG OFICIAL (transparente) sem redesenhar */
body .af-logo-image {display:block;object-fit:contain;flex-shrink:0}
body.drive-store-shell .ds-rail-brand{background:transparent!important;transform:none!important;box-shadow:none!important;border:0!important;padding:0!important;overflow:visible}
body.drive-store-shell .ds-rail-brand img{width:35px;height:35px;object-fit:contain;display:block}
body.drive-store-shell .ds-brand .af-logo-image{width:42px;height:42px}
body.drive-platform-shell .logo .af-logo-image{width:44px;height:44px}
body.drive-auth-shell .auth-brand .af-logo-image{width:54px;height:54px}
body.drive-platform-shell .logo strong, body.drive-auth-shell .logo strong{color:#fff}
body .logo-coral{color:#ff3434!important}
body.drive-platform-shell .logo small{color:#b7b7b7}
/* Acoes primarias vermelhas, secundarias brancas */
body:is(.drive-store-shell,.drive-platform-shell,.drive-auth-shell) :is(
  .btn-primary,.ds-btn-primary,.di-btn-primary,.pv-btn-primary,.dv-fipe-btn-primary,
  .dg1-button:not(.dg1-button-alt),.sf-main,.sv-btn:not(.sv-btn-outline),
  .dpc-btn-primary,.da-connect,.ml-btn-primary
){background:var(--af-red)!important;border-color:var(--af-red)!important;color:#fff!important;background-image:none!important}
body:is(.drive-store-shell,.drive-platform-shell,.drive-auth-shell) :is(
  .btn-primary,.ds-btn-primary,.di-btn-primary,.pv-btn-primary,.dv-fipe-btn-primary,
  .dg1-button:not(.dg1-button-alt),.sf-main,.sv-btn:not(.sv-btn-outline),
  .dpc-btn-primary,.da-connect,.ml-btn-primary
):is(:hover,:focus-visible){background:var(--af-red-hover)!important;border-color:var(--af-red-hover)!important}
body:is(.drive-store-shell,.drive-platform-shell) :is(.btn-outline,.dg1-button-alt,.sv-btn-outline){background:#fff!important;color:#414145!important;border-color:#d5d6da!important}
body:is(.drive-store-shell,.drive-platform-shell) :is(.btn-outline,.dg1-button-alt,.sv-btn-outline):hover{border-color:var(--af-red)!important;color:var(--af-red)!important}
/* Acentos em cabecalhos, guias, controles e campos */
body:is(.drive-store-shell,.drive-platform-shell,.drive-auth-shell) :is(
 .eyebrow,.op-kicker,.ds-hero-kicker,.ds-section-label,.dg1-kicker,
 .sv-eyebrow,.tl-eyebrow,.dc-kicker,.ds-hero h1 em
){color:var(--af-red)!important}
body.drive-store-shell #drive-frame :is(.dc-tabs a.selected,.op-tabs a.selected,.ds-tab.active,.sv-tab.active){background:var(--af-red-wash)!important;border-color:#ffc4ca!important;color:var(--af-red)!important}
body.drive-store-shell #drive-frame :is(.op-progress span,.dg1-bar-fill,.ds-frame-loading span){background:var(--af-red)!important;background-image:none!important}
body.drive-store-shell .ds-frame-loading span{background:var(--af-red)!important}
body:is(.drive-store-shell,.drive-platform-shell,.drive-auth-shell) :is(input,textarea,select):focus-visible {border-color:var(--af-red)!important;box-shadow:0 0 0 3px rgba(230,0,18,.1)!important;outline:none}
body:is(.drive-store-shell,.drive-platform-shell,.drive-auth-shell) :is(a,button):focus-visible{outline-color:var(--af-red)!important}
/* Preserve cores semanticas: verde OK, amarelo alerta, vermelho erro.
   Nao sobrescrever texto das tabelas, imagens, status ou canvas do Studio. */
@media(max-width:650px){body.drive-platform-shell .sidebar{background:var(--af-graphite)!important}}


/* AUTO FLOW — 31/10/2026 — SCROLLBARS DO CONTEUDO (LOJA + SUPER ADMIN)
   Escopos efetivos: #drive-scroll-area/.ds-persistent-main (loja) e
   .main-content (Super Admin), inclusive areas internas com overflow.
   Menus laterais nao sao atingidos. Nenhum overflow novo e criado.
   Compatibilidade: scrollbar-* (Firefox/Chromium) e WebKit scrollbar.
*/
:root {
  --af-scroll-thumb: #4a4a4a;
  --af-scroll-thumb-hover: #303030;
  --af-scroll-track: transparent;
}
/* A loja possui um scroll container independente do documento. */
body.drive-store-shell .ds-persistent-main,
body.drive-store-shell .ds-persistent-main *,
/* O Super Admin usa outro scroll container, com scroll normal no mobile. */
body.drive-platform-shell .app-layout > .main-content,
body.drive-platform-shell .app-layout > .main-content * {
  scrollbar-width: thin;
  scrollbar-color: var(--af-scroll-thumb) var(--af-scroll-track);
}
body.drive-store-shell .ds-persistent-main::-webkit-scrollbar,
body.drive-store-shell .ds-persistent-main *::-webkit-scrollbar,
body.drive-platform-shell .app-layout > .main-content::-webkit-scrollbar,
body.drive-platform-shell .app-layout > .main-content *::-webkit-scrollbar {
  width: 7px;
}
body.drive-store-shell .ds-persistent-main::-webkit-scrollbar-track,
body.drive-store-shell .ds-persistent-main *::-webkit-scrollbar-track,
body.drive-platform-shell .app-layout > .main-content::-webkit-scrollbar-track,
body.drive-platform-shell .app-layout > .main-content *::-webkit-scrollbar-track {
  background: var(--af-scroll-track);
  border-radius: 999px;
}
body.drive-store-shell .ds-persistent-main::-webkit-scrollbar-thumb,
body.drive-store-shell .ds-persistent-main *::-webkit-scrollbar-thumb,
body.drive-platform-shell .app-layout > .main-content::-webkit-scrollbar-thumb,
body.drive-platform-shell .app-layout > .main-content *::-webkit-scrollbar-thumb {
  background: var(--af-scroll-thumb);
  border-radius: 999px;
}
body.drive-store-shell .ds-persistent-main::-webkit-scrollbar-thumb:hover,
body.drive-store-shell .ds-persistent-main *::-webkit-scrollbar-thumb:hover,
body.drive-platform-shell .app-layout > .main-content::-webkit-scrollbar-thumb:hover,
body.drive-platform-shell .app-layout > .main-content *::-webkit-scrollbar-thumb:hover {
  background: var(--af-scroll-thumb-hover);
}
/* Quando a plataforma usa a rolagem normal da pagina (celular). */
html:has(> body.drive-platform-shell),
body.drive-platform-shell {
  scrollbar-width: thin;
  scrollbar-color: var(--af-scroll-thumb) var(--af-scroll-track);
}
html:has(> body.drive-platform-shell)::-webkit-scrollbar,
body.drive-platform-shell::-webkit-scrollbar { width: 7px; }
html:has(> body.drive-platform-shell)::-webkit-scrollbar-track,
body.drive-platform-shell::-webkit-scrollbar-track {
  background: var(--af-scroll-track);
  border-radius: 999px;
}
html:has(> body.drive-platform-shell)::-webkit-scrollbar-thumb,
body.drive-platform-shell::-webkit-scrollbar-thumb {
  background: var(--af-scroll-thumb);
  border-radius: 999px;
}
html:has(> body.drive-platform-shell)::-webkit-scrollbar-thumb:hover,
body.drive-platform-shell::-webkit-scrollbar-thumb:hover {
  background: var(--af-scroll-thumb-hover);
}
/* Garantia de que a correcao de barra nunca afete os MENUS. */
body.drive-platform-shell .sidebar,
body.drive-platform-shell .sidebar .menu,
body.drive-store-shell .ds-icon-rail,
body.drive-store-shell .ds-rail-nav { scrollbar-width: none !important; }
body.drive-platform-shell .sidebar::-webkit-scrollbar,
body.drive-platform-shell .sidebar .menu::-webkit-scrollbar,
body.drive-store-shell .ds-icon-rail::-webkit-scrollbar,
body.drive-store-shell .ds-rail-nav::-webkit-scrollbar { display: none; }


/* AUTO FLOW — refinamento visual da LOJA 31/10/2026.
   Apenas menu operacional, rodape e hovers do dashboard.
   Nao altera Super Admin, sites, logica comercial, permissões nem scrollbars.
*/
/* Seta abrir/recolher: regra antiga de drive-global-polish usa !important e laranja.
   Manter formato sem moldura, porem vermelho consistente com a marca. */
html body.drive-store-shell .ds-icon-rail button#ds-rail-toggle,
html body.drive-store-shell .ds-icon-rail.is-expanded button#ds-rail-toggle,
html body.drive-store-shell .ds-icon-rail button#ds-rail-toggle svg,
html body.drive-store-shell .ds-icon-rail.is-expanded button#ds-rail-toggle svg {
  color: #ff3434 !important;
  -webkit-text-fill-color: #ff3434 !important;
  stroke: #ff3434 !important;
  border-color: transparent !important;
}
html body.drive-store-shell .ds-icon-rail button#ds-rail-toggle:hover,
html body.drive-store-shell .ds-icon-rail button#ds-rail-toggle:focus-visible,
html body.drive-store-shell .ds-icon-rail button#ds-rail-toggle:hover svg,
html body.drive-store-shell .ds-icon-rail button#ds-rail-toggle:focus-visible svg {
  color: #ff6666 !important;
  -webkit-text-fill-color: #ff6666 !important;
  stroke: #ff6666 !important;
}
html body.drive-store-shell .ds-icon-rail button#ds-rail-toggle:focus-visible svg {
  border-bottom-color: #ff3434 !important;
}
/* Hover dos itens na barra lateral: reforco de identidade e legibilidade. */
html body.drive-store-shell .ds-icon-rail .ds-rail-nav .ds-rail-link:hover,
html body.drive-store-shell .ds-icon-rail .ds-rail-nav .ds-rail-link:focus-visible,
html body.drive-store-shell .ds-icon-rail .ds-rail-bottom .ds-rail-link:not(.ds-rail-toggle):hover,
html body.drive-store-shell .ds-icon-rail .ds-rail-bottom .ds-rail-link:not(.ds-rail-toggle):focus-visible {
  color: #ff5656 !important;
  background: #393939 !important;
  border-color: #555 !important;
}
html body.drive-store-shell .ds-icon-rail .ds-rail-nav .ds-rail-link.active {
  color: #ff3434 !important;
}
/* Rodape em uma coluna organizada, sem icones avulsos quando expandido. */
body.drive-store-shell .ds-icon-rail .ds-rail-bottom {
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid #454545;
  background: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
}
body.drive-store-shell .ds-icon-rail .ds-rail-bottom .ds-rail-logout {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
}
body.drive-store-shell .ds-icon-rail .ds-rail-profile {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 5px 0 0;
  box-sizing: border-box;
}
body.drive-store-shell .ds-icon-rail .ds-rail-profile .ds-rail-user {
  margin: 0;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
}
body.drive-store-shell .ds-icon-rail .ds-rail-profile-info {display: none;}
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-bottom {
  padding: 11px 3px 0;
  gap: 4px;
}
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-bottom .ds-rail-toggle,
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-bottom > a.ds-rail-link,
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-bottom .ds-rail-logout > button.ds-rail-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 39px;
  min-height: 39px;
  flex: 0 0 auto;
  padding: 8px 10px;
  margin: 0;
  text-align: left;
}
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-bottom > a.ds-rail-link svg,
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-bottom .ds-rail-logout svg,
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-bottom .ds-rail-toggle svg {flex-shrink: 0;}
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-profile {
  width: 100%;
  margin-top: 7px;
  padding: 10px 7px 2px;
  gap: 10px;
  justify-content: flex-start;
  border-top: 1px solid #454545;
}
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  color: #fff;
}
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-profile-info :is(strong,small) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.3;
}
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-profile-info strong {font-size: 11px;font-weight: 750;}
body.drive-store-shell .ds-icon-rail.is-expanded .ds-rail-profile-info small {font-size: 10px;color: #aeb0b4;}
/* Dashboard: eliminar coral legado; preservar indicadores semanticos de alertas e OK. */
html body.drive-store-shell #drive-frame .dv-dashboard .dv-task-add {
  background: var(--af-red) !important;
  border-color: var(--af-red) !important;
  color: #fff !important;
}
html body.drive-store-shell #drive-frame .dv-dashboard .dv-task-add:is(:hover,:focus-visible) {
  background: var(--af-red-hover) !important;
  border-color: var(--af-red-hover) !important;
}
html body.drive-store-shell #drive-frame .dv-dashboard .dv-task-filters a.selected,
html body.drive-store-shell #drive-frame .dv-dashboard .dv-task-filters a[aria-current="true"] {
  background: var(--af-red-wash) !important;
  color: #b90011 !important;
  border-color: #f4a1a9 !important;
}
html body.drive-store-shell #drive-frame .dv-dashboard .dv-task-filters a:not(.selected):is(:hover,:focus-visible) {
  color: var(--af-red) !important;
  background: #fff8f8 !important;
  border-color: #eaa8b0 !important;
}
html body.drive-store-shell #drive-frame .dv-dashboard a.dv-metric:is(:hover,:focus-visible),
html body.drive-store-shell #drive-frame .dv-dashboard a.dv-case-card:is(:hover,:focus-visible) {
  border-color: var(--af-red) !important;
  box-shadow: 0 4px 16px rgb(230 0 18 / 8%) !important;
}
html body.drive-store-shell #drive-frame .dv-dashboard :is(
  .dv-panel-heading a,.dv-post-softlink,.dv-post-entry a,
  .dv-task-side a,.dv-offsite-more a,.dv-inline-link
) {color: var(--af-red) !important;}
html body.drive-store-shell #drive-frame .dv-dashboard :is(
  .dv-panel-heading a,.dv-post-softlink,.dv-post-entry a,
  .dv-task-side a,.dv-offsite-more a,.dv-inline-link
):is(:hover,:focus-visible) {color: var(--af-red-hover) !important;}
html body.drive-store-shell #drive-frame .dv-dashboard .dv-post-softlink {border-color: #f0c3c8 !important;}
html body.drive-store-shell #drive-frame .dv-dashboard .dv-post-softlink:is(:hover,:focus-visible) {
  background: var(--af-red-wash) !important;
  border-color: var(--af-red) !important;
}
html body.drive-store-shell #drive-frame .dv-dashboard :is(.dv-ratio-track i,.dv-case-track i) {
  background: var(--af-red) !important;
}
@media (max-width: 600px) {
  body.drive-store-shell .ds-icon-rail .ds-rail-profile .ds-rail-user {
    width: 28px;height: 28px;flex-basis: 28px;
  }
}

/* ================================================================
   Auto Flow | Pacote 14 - modais comerciais, checkboxes 14px e
   refinamento de ações internas (2026-11-03)
   ================================================================ */
body.drive-store-shell.af-modal-open{overflow:hidden}
body.drive-store-shell #drive-frame input[type="checkbox"],
body.drive-store-shell #drive-frame input[type="radio"]{width:14px;height:14px;min-width:14px;min-height:14px;accent-color:#ee1c25}
body.drive-store-shell #drive-frame .af-checkbox-line{display:flex;align-items:flex-start;gap:10px}
body.drive-store-shell #drive-frame .af-checkbox-line input{margin-top:2px}
body.drive-store-shell #drive-frame .af-form-note{font-size:12px;color:#6c7d8f}
body.drive-store-shell #drive-frame .af-table-action-cell{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.drive-store-shell #drive-frame .af-table-action-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;flex:1 1 520px}
body.drive-store-shell #drive-frame .af-table-action-main .inline-form{flex-wrap:wrap}
body.drive-store-shell #drive-frame .af-table-action-cell > .btn{margin-left:auto;white-space:nowrap}
body.drive-store-shell #drive-frame .af-empty-note{margin:0;color:#66788a}
body.drive-store-shell #drive-frame .af-history-list{display:grid;gap:10px}
body.drive-store-shell #drive-frame .af-history-item{padding:12px 14px;border:1px solid #e3e9ef;background:#f9fbfd;border-radius:2px}
body.drive-store-shell #drive-frame .af-history-item strong{display:block;color:#203243;margin-bottom:4px}
body.drive-store-shell #drive-frame .af-history-item small{display:block;color:#6c7d8f}
body.drive-store-shell #drive-frame .af-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;z-index:1400}
body.drive-store-shell #drive-frame .af-modal.is-open{display:flex}
body.drive-store-shell #drive-frame .af-modal-backdrop{position:absolute;inset:0;background:rgba(17,24,32,.56)}
body.drive-store-shell #drive-frame .af-modal-dialog{position:relative;width:min(760px,100%);max-height:min(88vh,860px);overflow:auto;background:#fff;border:1px solid #dde5ec;border-radius:2px;box-shadow:0 20px 60px rgba(15,23,35,.18);padding:0}
body.drive-store-shell #drive-frame .af-modal-dialog-large{width:min(920px,100%)}
body.drive-store-shell #drive-frame .af-modal-dialog-medium{width:min(720px,100%)}
body.drive-store-shell #drive-frame .af-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 16px;border-bottom:1px solid #e7edf3}
body.drive-store-shell #drive-frame .af-modal-header h3{margin:4px 0 6px;font-size:22px;letter-spacing:-.5px;color:#203243}
body.drive-store-shell #drive-frame .af-modal-header p{margin:0;color:#6f8091}
body.drive-store-shell #drive-frame .af-modal-eyebrow{display:block;font-size:10px;letter-spacing:1.4px;font-weight:800;color:#ee1c25}
body.drive-store-shell #drive-frame .af-modal-close{border:1px solid #d8e0e8;background:#fff;color:#33475a;width:40px;height:40px;min-width:40px;padding:0;font-size:22px;line-height:1;border-radius:2px}
body.drive-store-shell #drive-frame .af-modal-close:hover{border-color:#ee1c25;color:#ee1c25}
body.drive-store-shell #drive-frame .af-modal-body{padding:22px 24px 24px}
body.drive-store-shell #drive-frame .af-modal-divider{height:1px;background:#e7edf3;margin:2px 0}
body.drive-store-shell #drive-frame .af-modal-actions{display:flex;justify-content:flex-end}
@media(max-width:780px){
  body.drive-store-shell #drive-frame .af-modal{padding:14px}
  body.drive-store-shell #drive-frame .af-modal-header,body.drive-store-shell #drive-frame .af-modal-body{padding-left:16px;padding-right:16px}
  body.drive-store-shell #drive-frame .af-table-action-cell{align-items:stretch}
  body.drive-store-shell #drive-frame .af-table-action-main{flex-basis:100%}
  body.drive-store-shell #drive-frame .af-table-action-cell>.btn{margin-left:0}
}

/* Pacote 15: alinhamento exclusivo da lista de Negociações. */
html body.drive-store-shell #drive-frame .af-opportunities-table table{min-width:1260px}
html body.drive-store-shell #drive-frame .af-opportunities-table th:last-child,
html body.drive-store-shell #drive-frame .af-opportunities-table td.af-op-actions{min-width:660px;width:660px}
html body.drive-store-shell #drive-frame .af-opportunities-table .af-table-action-cell{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap;min-width:0}
html body.drive-store-shell #drive-frame .af-opportunities-table .af-table-action-main{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;flex:0 1 auto;min-width:0}
html body.drive-store-shell #drive-frame .af-opportunities-table .af-commercial-stage-form{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;min-width:0;margin:0}
html body.drive-store-shell #drive-frame .af-opportunities-table .af-commercial-stage-form select[name="stage"]{width:155px;min-width:155px;max-width:155px;flex:none;height:36px;min-height:36px;margin:0;padding:5px 8px;font-size:11px}
html body.drive-store-shell #drive-frame .af-opportunities-table .af-commercial-stage-form select[name="lost_reason"]{width:165px;min-width:165px;max-width:165px;flex:none;height:36px;min-height:36px;margin:0;padding:5px 8px;font-size:11px}
html body.drive-store-shell #drive-frame .af-opportunities-table .af-commercial-stage-form button,
html body.drive-store-shell #drive-frame .af-opportunities-table .af-table-action-cell .btn{flex:none;white-space:nowrap;height:36px;min-height:36px;padding:5px 10px;font-size:11px;align-self:center;margin:0}
html body.drive-store-shell #drive-frame .af-opportunities-table .af-table-action-cell > button:last-child{margin-left:auto}
/* Se o viewport for estreito, a tabela rola horizontalmente, sem quebrar os controles. */
html body.drive-store-shell #drive-frame .af-opportunities-table{overflow-x:auto}


