/* A.A.M v21.5.28 — CSS autoritativo do seletor nativo aprimorado existente.
   Nenhum segundo JS ou dropdown concorrente é carregado. */
html.aam-refined body .aam-select{
 display:block!important;position:relative!important;box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 padding:0!important;margin:0!important;
}
html.aam-refined body select.aam-select-native{
 position:absolute!important;left:0!important;top:0!important;
 width:1px!important;height:1px!important;min-height:0!important;
 margin:0!important;padding:0!important;overflow:hidden!important;
 opacity:0!important;clip-path:inset(50%)!important;
 border:0!important;box-shadow:none!important;pointer-events:none!important;
 z-index:-1!important;appearance:none!important;
}
html.aam-refined body .aam-select-btn{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
 min-height:50px!important;margin:0!important;padding:11px 13px!important;
 font:inherit!important;font-weight:520!important;text-align:left!important;
 color:#faf5ff!important;border:1px solid rgba(170,94,255,.80)!important;
 border-radius:17px!important;background:linear-gradient(150deg,#2a125d,#11082d)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 8px 20px rgba(42,3,109,.23)!important;
 cursor:pointer!important;gap:10px!important;appearance:none!important;
 overflow-wrap:break-word!important;white-space:normal!important;
}
html.aam-refined body .aam-select-btn::after{
 flex:0 0 auto!important;font-size:1.16rem!important;color:#ffd783!important;
 line-height:1!important;transition:transform .18s ease!important;
}
html.aam-refined body .aam-select.open .aam-select-btn::after{transform:rotate(180deg)}
html.aam-refined body .aam-select-btn:focus-visible{
 outline:2px solid #e6b9ff!important;outline-offset:2px!important;
}
html.aam-refined body .aam-select.open .aam-select-btn{
 border-color:#d99eff!important;
 box-shadow:inset 0 1px rgba(255,255,255,.16),0 0 19px rgba(161,60,255,.32)!important;
}
html.aam-refined body .aam-select-list{
 position:fixed!important;box-sizing:border-box!important;z-index:2147483645!important;
 padding:9px!important;margin:0!important;overflow-y:auto!important;overscroll-behavior:contain;
 border:1px solid rgba(169,94,255,.90)!important;border-radius:20px!important;
 background:linear-gradient(160deg,#21104e,#0b0726 92%)!important;
 box-shadow:0 20px 52px rgba(4,0,24,.70),0 0 30px rgba(147,53,255,.25)!important;
 backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
}
html.aam-refined body .aam-select .aam-select-option{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 width:100%!important;min-height:45px!important;
 padding:10px 13px!important;gap:8px!important;
 border:1px solid transparent!important;border-radius:13px!important;
 background:transparent!important;color:#f7f1ff!important;
 box-shadow:none!important;font:inherit!important;font-weight:500!important;
 line-height:1.3!important;text-align:left!important;white-space:normal!important;
 cursor:pointer!important;
}
html.aam-refined body .aam-select .aam-select-option:hover,
html.aam-refined body .aam-select .aam-select-option:focus-visible{
 background:rgba(149,55,255,.18)!important;border-color:rgba(189,122,255,.40)!important;
 outline:none!important;
}
html.aam-refined body .aam-select .aam-select-option.selected{
 background:linear-gradient(140deg,rgba(125,41,227,.56),rgba(71,19,154,.66))!important;
 border-color:rgba(179,109,255,.55)!important;color:#fff!important;
 box-shadow:inset 0 1px rgba(255,255,255,.08)!important;
}
html.aam-refined body .aam-select .aam-select-option.selected::after{color:#ffdd89!important}
html.aam-refined body .aam-select .aam-select-option:disabled{opacity:.4;cursor:not-allowed!important}
/* Toasts e modais nativos que ainda usavam tema marrom */
html.aam-refined body .aam-ui-toast,
html.aam-refined body .aam-ui-modal{
 background:linear-gradient(152deg,#251055,#0c0726)!important;
 border-color:rgba(160,92,255,.77)!important;color:#f9f4ff!important;
 box-shadow:0 20px 46px rgba(5,0,29,.59),0 0 18px rgba(160,64,255,.18)!important;
}
html.aam-refined body .aam-ui-message{color:#cabce5!important}
html.aam-refined body .aam-ui-backdrop{background:rgba(6,3,24,.8)!important}
html.aam-refined body .aam-ui-action:not(.primary):not(.danger){
 background:linear-gradient(145deg,#311267,#190d43)!important;
 border-color:rgba(160,93,244,.70)!important;color:#fff!important;
}
html.aam-refined body .aam-ui-action.primary{
 background:linear-gradient(145deg,#3a176c,#1a0b44)!important;
 color:#ffe4a2!important;border:1px solid #ffcf72!important;
}

/* Remove marrom em cartões do dossiê e em subpainéis */
html.aam-refined body :is(.dossier-modal,.modal.fullscreen,#dossierModal),
html.aam-refined body :is(.dossier-card,.financial-hero>div,.info-grid>div,.document-item,.document-empty,.location-map-card,.location-coords,.profile-summary-grid>div,.loan-history-item){
 background:radial-gradient(ellipse at 100% 0%,rgba(156,64,255,.10),transparent 58%),
 linear-gradient(148deg,#1b0c47,#0b0728)!important;
 border-color:rgba(159,95,250,.64)!important;color:#f8f4ff!important;
 box-shadow:inset 0 1px rgba(255,255,255,.06),0 12px 26px rgba(5,0,26,.25)!important;
}
html.aam-refined body .dossier-modal,
html.aam-refined body #dossierModal{
 background:linear-gradient(160deg,#12082d,#08051d)!important;
 border-color:rgba(145,72,247,.70)!important;
}
html.aam-refined body :is(.dossier-avatar,.crm-photo-empty){
 background:linear-gradient(145deg,#170a3d,#0b0823)!important;
 border-color:rgba(162,97,247,.50)!important;color:#c9bae6!important;
}
html.aam-refined body .dossier-actions{
 background:linear-gradient(160deg,rgba(20,8,52,.985),rgba(7,5,24,.99))!important;
 border-top:1px solid rgba(160,89,255,.70)!important;
 box-shadow:0 -16px 34px rgba(8,0,31,.45)!important;
}
html.aam-refined body .dossier-tabs{
 background:linear-gradient(140deg,#200d4e,#0d0828)!important;
 border-color:rgba(145,74,238,.68)!important;
}
html.aam-refined body .dossier-tabs .tab:not(.active){
 background:linear-gradient(145deg,#271355,#160c36)!important;
 border:1px solid rgba(156,85,244,.55)!important;color:#e6d8fa!important;
}
html.aam-refined body .dossier-tabs .tab.active{
 background:linear-gradient(140deg,#b253ff,#6420e7)!important;
 border-color:#cf8cff!important;color:#fff!important;
 box-shadow:inset 0 1px rgba(255,255,255,.24),0 0 18px rgba(146,46,253,.35)!important;
}
html.aam-refined body :is(.dossier-card h3,.dossier-card h4){color:#fff!important}
html.aam-refined body :is(.dossier-card p,.dossier-card .info-grid span,.dossier-card small,.document-empty){color:#cdbce9!important}
html.aam-refined body .dossier-actions .btn:not(.primary){
 background:linear-gradient(145deg,#3b166e,#1e0c49)!important;
 color:#fff!important;border:1px solid rgba(172,102,255,.72)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.11),0 7px 20px rgba(62,5,149,.25)!important;
}
html.aam-refined body .dossier-actions .btn.primary{
 background:linear-gradient(145deg,#421876,#240e54)!important;
 border-color:#ffd482!important;color:#ffe4a7!important;
 box-shadow:inset 0 1px rgba(255,255,255,.1),0 0 17px rgba(255,198,99,.20)!important;
}
/* Tab, card and drawer title always readable */
html.aam-refined body .dossier-profile h2{color:#fff!important}
html.aam-refined body :is(.dossier-profile p,#dossierSubtitle){color:#c8bce2!important}
@media(max-width:700px){
 html.aam-refined body .portfolio-filters .aam-select,
 html.aam-refined body #forms .aam-select{min-width:0!important;width:100%!important;}
 html.aam-refined body .portfolio-filters .aam-select-btn{min-height:51px!important;padding:10px 11px!important;font-size:.87rem!important}
 html.aam-refined body .portfolio-filters #portfolioSearch{min-width:0!important;width:100%!important;}
}
@media(prefers-reduced-motion:reduce){
 html.aam-refined body .aam-select-btn,html.aam-refined body .aam-select-list{transition:none!important}
}
