/* Sfera CRM • Opportunities 1.143 UI consistency
   Final targeted overrides. Palette and table rhythm match approved dashboard
   and Companies; older legacy desktop/mobile rules remain untouched. */

/* One polished white workspace containing the tabs AND the actual data table. */
#opportunity-view[data-desk][data-studio="v4"] .s4-workspace{
  background:#fff!important;
  border:1px solid #dde7f4!important;
  border-radius:18px!important;
  overflow:visible!important;
  box-shadow:0 7px 23px rgba(23,52,107,.065)!important;
}
#opportunity-view[data-studio="v4"] .s4-workspace-nav{
  background:#fff!important;
  border-radius:18px 18px 0 0!important;
  padding:0 18px!important;
  min-height:57px!important;
  border-bottom:1px solid #e7edf6!important;
}
#opportunity-view[data-desk][data-studio="v4"] #opportunity-management-pane{
  padding:15px 17px 18px!important;
  border:0!important;
  border-radius:0 0 18px 18px!important;
  background:#fff!important;
  box-shadow:none!important;
}
#opportunity-view[data-studio="v4"] .s8-directory-table-wrap{
  background:#fff!important;
  border:1px solid #e3e9f2!important;
  border-radius:14px!important;
  box-shadow:0 3px 11px rgba(25,55,105,.035)!important;
  overflow:hidden!important;
}
#opportunity-view[data-studio="v4"] .s8-opportunity-table thead th{
  background:#f5f7fc!important;
  color:#637491!important;
  font:700 11px/1.35 "Open Sans",sans-serif!important;
  border-bottom:1px solid #e5eaf3!important;
}
#opportunity-view[data-studio="v4"] .s8-opportunity-table th:nth-child(1){width:26%!important}
#opportunity-view[data-studio="v4"] .s8-opportunity-table th:nth-child(2){width:17%!important}
#opportunity-view[data-studio="v4"] .s8-opportunity-table th:nth-child(3){width:12%!important}
#opportunity-view[data-studio="v4"] .s8-opportunity-table th:nth-child(4){width:17%!important}
#opportunity-view[data-studio="v4"] .s8-opportunity-table th:nth-child(5){width:13%!important}
#opportunity-view[data-studio="v4"] .s8-opportunity-table th:nth-child(6){width:15%!important}
#opportunity-view[data-studio="v4"] .s8-opportunity-table th:nth-child(n+7),
#opportunity-view[data-desk][data-studio="v4"] .s8-opportunity-table #opportunity-results tr>td:nth-child(n+7){
  display:none!important;
}
#opportunity-view[data-studio="v4"] .s8-opportunity-table #opportunity-results::before,
#opportunity-view[data-studio="v4"] .s8-opportunity-table #opportunity-results::after{content:none!important;display:none!important}
#opportunity-view[data-desk][data-studio="v4"] .s8-opportunity-table #opportunity-results tr:empty{display:none!important}
#opportunity-view[data-studio="v4"] #opportunity-management-pane>.opportunity-results-head,
#opportunity-view[data-studio="v4"] .s9-meta-source,
#opportunity-view[data-studio="v4"] #opportunity-management-pane>.opportunity-pane__header,
#opportunity-view[data-studio="v4"] #opportunity-management-pane>.s4-table-head,
#opportunity-view[data-studio="v4"] #opportunity-management-pane>.opp-desk-list-labels{
  display:none!important;
  height:0!important;min-height:0!important;margin:0!important;
  padding:0!important;border:0!important;box-shadow:none!important;
}
/* The previous summary wrapper has now been removed in JS too. */
#opportunity-view[data-desk][data-studio="v4"] #opportunity-results tr.opportunity-card.s7-row:hover{
  background:#f4f7fc!important;
  box-shadow:none!important;transform:none!important;
}
#opportunity-view[data-studio="v4"] .s8-opportunity-table .s7-prob-track{
  height:9px!important;
}
#opportunity-view[data-studio="v4"] .s8-opportunity-table .s7-prob-fill{
  transition:transform .37s cubic-bezier(.2,.85,.2,1)!important;
}
/* Make visible action buttons unmistakable: individually tinted surfaces,
   dedicated SVG + actual text, native original event handlers retained. */
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions{
  display:flex!important;
  align-items:center!important;justify-content:center!important;
  gap:8px!important;min-height:86px!important;
  flex:0 0 auto!important;flex-wrap:nowrap!important;
  background:#fff!important;
  border-top:1px solid #dce6f5!important;
  box-shadow:0 -3px 13px rgba(14,33,102,.045)!important;
  z-index:100!important;isolation:isolate!important;
  position:relative!important;opacity:1!important;visibility:visible!important;
  padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px))!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions .s9-action-visible:not([hidden]){
  box-sizing:border-box!important;
  display:flex!important;flex:1 1 0!important;flex-direction:row!important;
  min-width:0!important;width:auto!important;max-width:none!important;
  min-height:48px!important;height:auto!important;
  align-items:center!important;justify-content:center!important;
  gap:7px!important;margin:0!important;padding:9px 7px!important;
  position:relative!important;opacity:1!important;visibility:visible!important;
  border:1px solid #d6e5fa!important;border-radius:10px!important;
  background:#f2f7ff!important;
  color:#285ea9!important;
  -webkit-text-fill-color:currentColor!important;
  font:700 11px/1.28 "Open Sans",sans-serif!important;
  text-indent:0!important;letter-spacing:0!important;
  filter:none!important;mix-blend-mode:normal!important;
  box-shadow:0 2px 5px rgba(25,55,105,.035)!important;
  transition:background-color .14s ease,border-color .14s ease!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions button.s9-action-visible .s6-action-icon{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  flex:0 0 19px!important;width:19px!important;height:19px!important;
  color:inherit!important;opacity:1!important;visibility:visible!important;
  -webkit-text-fill-color:currentColor!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions button.s9-action-visible .s6-action-icon svg{
  display:block!important;width:18px!important;height:18px!important;
  min-width:18px!important;opacity:1!important;visibility:visible!important;
  color:inherit!important;stroke:currentColor!important;stroke-width:1.85!important;
  fill:none!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions button.s9-action-visible .s6-action-label{
  display:block!important;
  flex:0 1 auto!important;width:auto!important;max-width:100%!important;
  min-width:0!important;height:auto!important;overflow:visible!important;
  opacity:1!important;visibility:visible!important;
  color:inherit!important;-webkit-text-fill-color:currentColor!important;
  font:700 11px/1.25 "Open Sans",sans-serif!important;
  text-align:center!important;text-indent:0!important;white-space:normal!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions button.s9-action-visible:hover,
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions button.s9-action-visible:focus-visible{
  background:#e5f0ff!important;border-color:#abcaf4!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions [data-close-phase="Vinta"].s9-action-visible{
  color:#18815b!important;background:#eaf8f0!important;border-color:#d0eee0!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions [data-close-phase="Vinta"].s9-action-visible:hover{
  background:#d9f2e5!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions [data-close-phase="Persa"].s9-action-visible{
  color:#ad5b4a!important;background:#fff2ed!important;border-color:#f5e0d9!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions #opportunity-delete.s9-action-visible{
  color:#bb4658!important;background:#fff0f2!important;border-color:#f9dde4!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer button[hidden]{display:none!important}
/* Intro: show client identity first, no redundant "Vinta / Preventivo 6554". */
#opportunity-detail-dialog.opp-desk-dialog .s6-detail-labels{
  display:none!important;
}
#opportunity-detail-dialog.opp-desk-dialog .s6-detail-intro{
  padding-top:2px!important;
}
#opportunity-detail-dialog.opp-desk-dialog .s6-detail-prob-ring{
  animation:none!important;
}
#opportunity-detail-dialog.opp-desk-dialog .s8-value-counter,
#opportunity-detail-dialog.opp-desk-dialog .s8-ring-counter{
  font-variant-numeric:tabular-nums!important;
}

/* Only one control owns the native create handler; mobile + proxies it. */
#signed-in .opp-desk-topbar button.s9-mobile-create{display:none!important}
/* Same single-line compact header shape as Companies (the old Desk CSS had
   104px min-height and display:contents at 760px, causing a double row). */
@media (max-width:900px){
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;min-width:0!important;
    min-height:var(--sfera-topbar-height,56px)!important;
    height:var(--sfera-topbar-height,56px)!important;
    max-height:var(--sfera-topbar-height,56px)!important;
    box-sizing:border-box!important;
    padding:0 10px!important;gap:7px!important;
    overflow:visible!important;
    background:#0e2166!important;
  }
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar .portal-topbar__branding{
    display:flex!important;flex:0 0 auto!important;
    min-width:0!important;grid-area:auto!important;
  }
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar .opp-desk-topbar{
    display:flex!important;
    position:relative!important;
    flex:1 1 auto!important;min-width:0!important;
    height:100%!important;
    align-items:center!important;justify-content:flex-end!important;
    margin:0!important;padding:0!important;gap:7px!important;
    flex-wrap:nowrap!important;
    grid-area:auto!important;
  }
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar .portal-topbar__actions{
    display:flex!important;align-items:center!important;
    flex:0 0 auto!important;
    min-width:0!important;
    margin-left:0!important;
    grid-area:auto!important;
    order:3!important;
  }
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar #app-menu-toggle{
    display:grid!important;place-items:center!important;
    opacity:1!important;visibility:visible!important;
    min-width:36px!important;min-height:36px!important;
    width:36px!important;height:36px!important;flex:0 0 36px!important;
  }
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar #account-menu-toggle{
    flex:0 0 36px!important;width:36px!important;
    min-width:36px!important;min-height:36px!important;
  }
  #signed-in .opp-desk-topbar h1{display:none!important}
  #signed-in .opp-desk-topbar .s8-mobile-search-toggle{
    box-sizing:border-box!important;
    flex:0 0 36px!important;width:36px!important;
    height:36px!important;min-height:36px!important;min-width:36px!important;
    display:grid!important;place-items:center!important;
  }
  #signed-in .opp-desk-topbar button.s9-mobile-create{
    box-sizing:border-box!important;
    display:grid!important;place-items:center!important;
    flex:0 0 36px!important;width:36px!important;
    height:36px!important;min-width:36px!important;min-height:36px!important;
    margin:0!important;padding:0!important;
    border:1px solid #c8dfff!important;border-radius:10px!important;
    background:#e4f0ff!important;color:#0e2166!important;
    font:500 25px/1 "Open Sans",sans-serif!important;
    opacity:1!important;visibility:visible!important;
    cursor:pointer!important;
  }
  #signed-in .opp-desk-topbar #opportunity-new{
    display:grid!important;place-items:center!important;
    flex:0 0 36px!important;width:36px!important;
    height:36px!important;min-width:36px!important;min-height:36px!important;
    font-size:24px!important;line-height:1!important;
    grid-area:auto!important;justify-self:auto!important;
  }
  #signed-in .opp-desk-topbar .opp-desk-search{
    display:none!important;
  }
  #signed-in .opp-desk-topbar.s8-search-open .opp-desk-search{
    display:flex!important;
    position:fixed!important;
    left:12px!important;right:12px!important;
    top:calc(var(--sfera-topbar-height,56px) + 7px)!important;
    width:auto!important;max-width:none!important;min-width:0!important;
    z-index:13000!important;
    background:#0e2166!important;
    box-shadow:0 9px 25px rgba(14,33,102,.2)!important;
  }
}
@media(max-width:380px){
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar{gap:5px!important;padding:0 7px!important}
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar .opp-desk-topbar{gap:5px!important}
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar .portal-topbar__actions{gap:3px!important}
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar #app-menu-toggle,
  #signed-in.app-shell:has(#opportunity-view:not([hidden])) .app-topbar #account-menu-toggle,
  #signed-in .opp-desk-topbar .s8-mobile-search-toggle,
  #signed-in .opp-desk-topbar button.s9-mobile-create,
  #signed-in .opp-desk-topbar #opportunity-new{
    flex-basis:33px!important;width:33px!important;min-width:33px!important;
    height:33px!important;min-height:33px!important;
  }
}

/* Tablet/mobile cards retain responsive native table semantics under 1050px */
@media(max-width:1050px),(hover:none) and (pointer:coarse){
  #opportunity-view[data-studio="v4"] .s8-directory-table-wrap{
    overflow:visible!important;border:0!important;
    border-radius:0!important;box-shadow:none!important;
  }
  #opportunity-view[data-studio="v4"] .s8-opportunity-table,
  #opportunity-view[data-studio="v4"] .s8-opportunity-table tbody{
    display:block!important;min-width:0!important;width:100%!important;
    background:transparent!important;
  }
  #opportunity-view[data-studio="v4"] .s8-opportunity-table thead{display:none!important}
  #opportunity-view[data-desk][data-studio="v4"] #opportunity-results{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;min-width:0!important;
  }
  #opportunity-view[data-desk][data-studio="v4"] #opportunity-results tr.opportunity-card.s7-row{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-areas:"identity identity" "phase amount" "follow expiry" "prob prob"!important;
    height:auto!important;min-height:0!important;
    margin:0!important;padding:13px!important;gap:10px!important;
    border:1px solid #e0e8f3!important;
    border-radius:13px!important;background:#fff!important;
    box-shadow:0 4px 13px rgba(25,55,105,.035)!important;
  }
  #opportunity-view[data-desk][data-studio="v4"] #opportunity-results tr.opportunity-card.s7-row>td{
    display:block!important;max-width:none!important;min-width:0!important;width:auto!important;
    height:auto!important;padding:5px 3px!important;
    border:0!important;background:transparent!important;
  }
  #opportunity-view[data-studio="v4"] #opportunity-results td.s4-row-id{grid-area:identity!important}
  #opportunity-view[data-studio="v4"] #opportunity-results td.s4-row-phase{grid-area:phase!important}
  #opportunity-view[data-studio="v4"] #opportunity-results td.s4-row-amount{grid-area:amount!important}
  #opportunity-view[data-studio="v4"] #opportunity-results td.s4-row-follow{grid-area:follow!important}
  #opportunity-view[data-studio="v4"] #opportunity-results td.s4-row-expiry{grid-area:expiry!important}
  #opportunity-view[data-studio="v4"] #opportunity-results td.s7-probability{
    grid-area:prob!important;
    display:grid!important;
    grid-template-columns:90px minmax(0,1fr)!important;
    gap:5px 10px!important;
    padding-top:10px!important;border-top:1px solid #ebf0f7!important;
  }
}
/* Clear labels, readable tappable icons on narrow mobile without cropping. */
@media(max-width:760px){
  #opportunity-view[data-desk][data-studio="v4"] .s4-workspace{
    border-radius:15px!important;
  }
  #opportunity-view[data-studio="v4"] .s4-workspace-nav{
    border-radius:15px 15px 0 0!important;
  }
  #opportunity-view[data-studio="v4"] #opportunity-management-pane{
    padding:11px!important;
  }
  /* Mobile creation is in the blue topbar; avoid a duplicate below the tabs. */
  #opportunity-view[data-studio="v4"] .s4-toolbar #opportunity-new{
    display:none!important;
  }
  #opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions{
    gap:5px!important;min-height:80px!important;
    padding:8px 7px calc(8px + env(safe-area-inset-bottom,0px))!important;
  }
  #opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions .s9-action-visible:not([hidden]){
    flex-direction:column!important;gap:3px!important;
    min-height:60px!important;padding:5px 2px!important;
  }
  #opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions .s9-action-visible .s6-action-label{
    font-size:9px!important;line-height:1.2!important;
  }
}
@media(prefers-reduced-motion:reduce){
 #opportunity-detail-dialog.opp-desk-dialog .s9-action-visible,
 #opportunity-view[data-studio="v4"] .s7-prob-fill{
  transition:none!important;animation:none!important;
 }
}

/* 2.7.10 · Opportunities workspace corrections. Sfera Dashboard tokens.
   One selector group, native filters and native create handler unchanged. */

/* The screenshot identifies header#opportunity-management-heading: prior
   title-text cleanup missed this header once its copy became empty. */
#opportunity-view #opportunity-management-heading,
#opportunity-view header.opportunity-management-heading{
  display:none!important;height:0!important;min-height:0!important;
  padding:0!important;margin:0!important;border:0!important;
  background:none!important;box-shadow:none!important;
}
#opportunity-view[data-studio="v4"] .s4-workspace{
  scroll-margin-top:calc(var(--sfera-topbar-height,56px) + 12px);
}
/* Same compact segmented-control language as the Task assignment scope;
   all 3 original tab buttons and native click handlers remain in place. */
#opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs{
  box-sizing:border-box!important;display:inline-flex!important;
  align-items:center!important;gap:3px!important;
  flex:0 0 auto!important;width:max-content!important;max-width:100%!important;
  min-height:42px!important;height:42px!important;
  margin:0!important;padding:4px!important;
  background:var(--dashboard-neutral,#f2f5fa)!important;
  border:1px solid var(--dashboard-border,#dce6f2)!important;
  border-radius:12px!important;box-shadow:none!important;
  overflow:visible!important;
}
#opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs button{
  box-sizing:border-box!important;position:relative!important;
  flex:0 0 auto!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
  min-height:32px!important;height:32px!important;
  padding:0 14px!important;margin:0!important;
  border:0!important;border-radius:9px!important;
  background:transparent!important;
  color:#61738e!important;font:650 12px/1 "Open Sans",sans-serif!important;
  box-shadow:none!important;transform:none!important;
  transition:color .15s ease,background-color .15s ease!important;
}
#opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs button::after{
  display:none!important;content:none!important;
}
#opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs button[aria-selected="true"]{
  color:#fff!important;background:var(--dashboard-title,#0e2166)!important;
  box-shadow:0 1px 3px rgba(14,33,102,.12)!important;
}
#opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs button:not([aria-selected="true"]):hover{
  color:var(--dashboard-title,#0e2166)!important;
  background:#e7edf6!important;
}
#opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs button:focus-visible{
  outline:2px solid var(--dashboard-primary,#0b7ff0)!important;
  outline-offset:2px!important;
}
#opportunity-view[data-studio="v4"] .s4-workspace-nav .s4-toolbar #s4-filter{
  box-sizing:border-box!important;width:38px!important;min-width:38px!important;
  height:38px!important;min-height:38px!important;
  padding:0!important;font-size:0!important;
  display:inline-grid!important;place-items:center!important;
}
#opportunity-view[data-studio="v4"] .s4-workspace-nav .s4-toolbar #s4-filter svg{
  width:19px!important;height:19px!important;
}
/* Euro values never count up on entering, scrolling or repainting. */
#opportunity-view[data-studio="v4"] #opportunity-results .s7-amount-number{
  animation:none!important;transition:none!important;
  opacity:1!important;font-variant-numeric:tabular-nums!important;
}
@media(max-width:760px){
  #opportunity-view[data-studio="v4"] .s4-workspace-nav{
    display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;
    align-items:center!important;gap:7px!important;
    padding:8px 10px!important;
  }
  #opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs{
    flex:0 0 auto!important;min-height:40px!important;height:40px!important;
  }
  #opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs button{
    height:30px!important;min-height:30px!important;padding:0 10px!important;
    font-size:11px!important;
  }
  #opportunity-view[data-studio="v4"] .s4-workspace-nav .s4-toolbar{
    margin-left:auto!important;gap:5px!important;
  }
}
@media(max-width:400px){
  #opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs button{
    padding:0 8px!important;font-size:10.5px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #opportunity-view[data-studio="v4"] .s4-workspace-nav .opportunity-tabs button{
    transition:none!important;
  }
}

/* 2.18.11 · Drawer action visibility and customer link alignment.
   Keep the original command buttons/handlers, Sfera colors and motion.
   Render readable actions before and after the v4 detail enhancement runs. */
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  gap:9px!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:12px 15px calc(12px + env(safe-area-inset-bottom,0px))!important;
  overflow:visible!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>button.s9-action-visible:not([hidden]){
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:row!important;
  flex:1 1 auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:52px!important;
  height:auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  margin:0!important;
  padding:9px 8px!important;
  opacity:1!important;
  visibility:visible!important;
  color:#285ea9!important;
  -webkit-text-fill-color:currentColor!important;
  background:#f2f7ff!important;
  border:1px solid #d6e5fa!important;
  border-radius:10px!important;
  font:700 11px/1.35 "Open Sans",sans-serif!important;
  text-indent:0!important;
  white-space:normal!important;
  overflow:visible!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>button.s9-action-visible:not([hidden])>.s6-action-icon{
  display:grid!important;
  flex:0 0 19px!important;
  width:19px!important;
  height:19px!important;
  place-items:center!important;
  opacity:1!important;
  visibility:visible!important;
  color:inherit!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>button.s9-action-visible:not([hidden])>.s6-action-icon svg{
  display:block!important;
  width:18px!important;
  height:18px!important;
  stroke:currentColor!important;
  fill:none!important;
  opacity:1!important;
  visibility:visible!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>button.s9-action-visible:not([hidden])>.s6-action-label{
  display:block!important;
  flex:0 1 auto!important;
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  min-width:0!important;
  opacity:1!important;
  visibility:visible!important;
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  font:700 11px/1.3 "Open Sans",sans-serif!important;
  text-align:center!important;
  text-indent:0!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>#opportunity-edit.s9-action-visible:not([hidden]){
  background:#f2f7ff!important;color:#285ea9!important;border-color:#d6e5fa!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>[data-close-phase="Vinta"].s9-action-visible:not([hidden]){
  background:#eaf8f0!important;color:#18815b!important;border-color:#d0eee0!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>[data-close-phase="Persa"].s9-action-visible:not([hidden]){
  background:#fff2ed!important;color:#ad5b4a!important;border-color:#f5e0d9!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>#opportunity-delete.s9-action-visible:not([hidden]){
  background:#fff0f2!important;color:#bb4658!important;border-color:#f9dde4!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>#opportunity-detail-footer-close:not([hidden]){
  grid-column:1/-1!important;justify-self:center!important;width:min(240px,100%)!important;
}

/* Treat the client identity as one purposeful linked action, not a floating
   label detached from an oversized button. The original button stays intact. */
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail #opportunity-customer-link.s10-customer-link{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  width:auto!important;
  min-width:0!important;
  margin:6px 16px 16px!important;
  padding:13px 16px!important;
  background:#fff!important;
  border:1px solid #dae7f7!important;
  border-radius:13px!important;
  box-shadow:0 3px 12px rgba(14,33,102,.035)!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail #opportunity-customer-link.s10-customer-link .s10-customer-caption{
  display:block!important;
  flex:0 0 auto!important;
  color:#637d9f!important;
  font:700 12px/1.45 "Open Sans",sans-serif!important;
  white-space:nowrap!important;
}
#opportunity-detail-dialog.opp-desk-dialog #opportunity-detail #opportunity-customer-link.s10-customer-link>button{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 1 auto!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  margin:0 0 0 auto!important;
  padding:9px 13px!important;
  background:#edf4ff!important;
  color:#2868be!important;
  border:1px solid #d3e3fb!important;
  border-radius:9px!important;
  font:650 12px/1.45 "Open Sans",sans-serif!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
@media(max-width:760px){
  #opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions{
    gap:7px!important;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px))!important;
  }
}
@media(max-width:520px){
  #opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  #opportunity-detail-dialog.opp-desk-dialog #opportunity-detail>footer.s6-detail-actions>button.s9-action-visible:not([hidden]){
    min-height:49px!important;
    flex-direction:row!important;
  }
  #opportunity-detail-dialog.opp-desk-dialog #opportunity-detail #opportunity-customer-link.s10-customer-link{
    align-items:stretch!important;
    flex-direction:column!important;
    gap:8px!important;
    padding:12px!important;
  }
  #opportunity-detail-dialog.opp-desk-dialog #opportunity-detail #opportunity-customer-link.s10-customer-link>button{
    width:100%!important;
    margin-left:0!important;
    justify-content:center!important;
  }
}
