/* RBS Desk v1.8.13 — Perfil universal bottom sheet + shell desktop do cliente */

/* ---------- Portal do Cliente: desktop deixa de parecer PWA mobile em browser ---------- */
.v1813-client-shell{max-width:none!important;min-height:100dvh;padding:0!important;background:#f4f7fa}
.v1813-client-stage{min-width:0;min-height:100dvh;display:flex;flex-direction:column}
.v1813-client-rail{display:none}
.v1813-client-topbar{position:sticky;top:0;z-index:24}
.v1813-client-top-actions{margin-left:auto}
.v1813-client-search-top{display:none;width:42px;height:42px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--navy);place-items:center}
.v1813-client-search-top svg{width:18px;height:18px}
.v1813-desktop-title{display:none}
.v1813-client-shell .topbar .avatar{overflow:hidden;padding:0;background:#fff}
.v1813-client-shell .topbar .avatar>.ow-avatar{width:100%;height:100%;border-radius:inherit}
.v1813-client-shell .topbar .avatar>.ow-avatar img{width:100%;height:100%;object-fit:cover}
.v1813-client-mobile-nav{z-index:26}

@media (min-width:1024px), (min-width:760px) and (pointer:fine){
  body.portal-client{overflow:hidden;background:#eef3f7}
  .v1813-client-shell{display:grid!important;grid-template-columns:104px minmax(0,1fr);height:100dvh;overflow:hidden}
  .v1813-client-rail{display:flex;flex-direction:column;grid-column:1;grid-row:1;background:#0d2946;color:#fff;padding:14px 10px 12px;border-right:1px solid rgba(255,255,255,.08);min-height:100dvh;overflow:hidden}
  .v1813-client-brand{display:grid;place-items:center;gap:5px;padding:2px 0 18px}
  .v1813-client-brand>span{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#fff;color:#0d2946;font-size:15px;font-weight:900;letter-spacing:-.03em}
  .v1813-client-brand>strong{font-size:13px;font-weight:800;letter-spacing:.01em}
  .v1813-client-rail nav{display:grid;gap:6px}
  .v1813-client-rail nav button,.v1813-client-rail-foot>button{appearance:none;border:0;background:transparent;color:#c9d7e4;border-radius:15px;min-height:62px;padding:8px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font:inherit;font-size:11px;font-weight:700;cursor:pointer;transition:.16s ease}
  .v1813-client-rail nav button svg,.v1813-client-rail-foot>button svg{width:21px;height:21px}
  .v1813-client-rail nav button:hover,.v1813-client-rail-foot>button:hover{background:rgba(255,255,255,.08);color:#fff}
  .v1813-client-rail nav button.active{background:#fff;color:#0d2946;box-shadow:0 8px 22px rgba(0,0,0,.13)}
  .v1813-client-rail-foot{margin-top:auto;display:grid;gap:7px;padding-top:12px}
  .v1813-client-profile{min-height:74px!important}
  .v1813-client-profile>.ow-avatar{width:34px;height:34px;border:2px solid rgba(255,255,255,.28)}
  .v1813-client-profile>span:last-child{display:grid;gap:1px;text-align:center;min-width:0}
  .v1813-client-profile strong{font-size:10px;color:inherit;max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .v1813-client-profile small{font-size:9px;opacity:.75}
  .v1813-client-stage{grid-column:2;grid-row:1;height:100dvh;overflow:hidden;background:#f5f7fa}
  .v1813-client-topbar{height:68px;flex:0 0 68px;display:flex!important;align-items:center;border-bottom:1px solid #dfe7ee;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);padding:0 22px!important}
  .v1813-mobile-brand{display:none!important}
  .v1813-desktop-title{display:grid;gap:2px;min-width:0}
  .v1813-desktop-title small{font-size:10px;font-weight:800;color:#718294;text-transform:uppercase;letter-spacing:.08em}
  .v1813-desktop-title strong{font-size:18px;color:#102235;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .v1813-client-search-top{display:grid}
  .v1813-client-shell .topbar .avatar{width:42px;height:42px;border-radius:13px}
  .v1813-client-shell .page{flex:1;min-height:0;overflow:auto;padding:22px 28px 30px!important;max-width:none!important;width:100%!important}
  .v1813-client-shell .bottom-nav{display:none!important}
  .v1813-client-shell .portal-home,.v1813-client-shell .v186-portal-ticket,.v1813-client-shell .portal-new{max-width:1240px;margin:0 auto}
  .v1813-client-shell .v186-portal-hero{border-radius:24px!important}
}

/* ---------- Perfil universal: bottom sheet premium ---------- */
body.v1813-sheet-open{overflow:hidden}
#modal.v1813-profile-sheet-shell{align-items:flex-end!important;padding:0!important;background:rgba(8,20,33,.44);backdrop-filter:blur(8px)}
#modal.v1813-profile-sheet-shell .modal-card{position:relative;width:min(760px,calc(100% - 24px))!important;max-width:760px!important;max-height:min(92dvh,920px)!important;margin:0 auto 10px!important;border-radius:30px 30px 24px 24px!important;padding:12px 18px calc(18px + env(safe-area-inset-bottom))!important;overflow:auto!important;overscroll-behavior:contain;background:#f2f2f7!important;box-shadow:0 -18px 70px rgba(9,24,40,.26)!important;scrollbar-width:thin}
.v1813-sheet-handle{width:44px;height:5px;border-radius:99px;background:#c2c7cd;margin:0 auto 14px;position:sticky;top:0;z-index:4}
.v1813-profile-sheet{display:grid;gap:16px}
.v1813-profile-hero{text-align:center;padding:4px 10px 2px}
.v1813-profile-avatar-wrap{display:grid;place-items:center;margin-bottom:10px}
.v1813-profile-avatar-wrap .v155-avatar.hero{width:104px!important;height:104px!important;border-radius:50%!important;box-shadow:0 7px 22px rgba(12,39,66,.16);border:4px solid #fff;font-size:28px!important}
.v1813-profile-avatar-wrap .v155-avatar.hero img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.v1813-profile-hero h2{font-size:27px!important;letter-spacing:-.035em;margin:3px 0 3px;color:#111820}
.v1813-profile-hero p{font-size:13px!important;color:#5f6975;margin:0;overflow-wrap:anywhere}
.v1813-profile-hero>span{display:block;font-size:12px;color:#79838d;margin-top:3px}
.v1813-photo-action{display:inline-flex;align-items:center;justify-content:center;margin-top:9px;color:#1473e6;font-size:12px;font-weight:750;cursor:pointer}
.v1813-profile-group{background:#fff;border-radius:20px;border:1px solid rgba(173,181,190,.28);overflow:hidden;box-shadow:0 2px 12px rgba(20,35,50,.035)}
.v1813-profile-group-title{padding:12px 15px 8px;font-size:10px;font-weight:850;letter-spacing:.065em;text-transform:uppercase;color:#697683;background:#fbfbfd}
.v1813-profile-row,.v1813-profile-link{min-height:58px;padding:10px 15px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;border:0;border-top:1px solid #eceef1;background:#fff;width:100%;text-align:left;color:#111820;font:inherit}
.v1813-profile-row>span,.v1813-profile-link>span{width:30px;height:30px;border-radius:8px;background:#eef4fb;color:#176bba;display:grid;place-items:center}
.v1813-profile-row>span svg,.v1813-profile-link>span svg{width:16px;height:16px}
.v1813-profile-row>div,.v1813-profile-link>div{min-width:0}
.v1813-profile-row strong,.v1813-profile-row small,.v1813-profile-link strong,.v1813-profile-link small{display:block}
.v1813-profile-row strong,.v1813-profile-link strong{font-size:13px;color:#111820}
.v1813-profile-row small,.v1813-profile-link small{font-size:10px;color:#7b8692;margin-top:2px;line-height:1.35}
.v1813-profile-row>b{font-size:12px;color:#596572;font-weight:600;max-width:260px;text-align:right;overflow-wrap:anywhere}
.v1813-profile-link{cursor:pointer}
.v1813-profile-link:hover{background:#fafcff}
.v1813-profile-row-stack{grid-template-columns:30px minmax(0,1fr)}
.v1813-permission-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.v1813-permission-chips i{font-style:normal;font-size:9px;font-weight:700;color:#53687b;background:#f0f4f7;border-radius:999px;padding:5px 7px}
.v1813-profile-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 15px 4px;border-top:1px solid #eceef1}
.v1813-profile-form-grid .field{margin:0}
.v1813-profile-form-grid .field label{font-size:9px}
.v1813-profile-form-grid .field input{min-height:44px;background:#f9fafb}
.v1813-profile-form-grid .field small{font-size:9px;line-height:1.4;color:#7b8692;margin-top:5px}
.v1813-span-2{grid-column:1/-1}
.v1813-save-profile{margin:10px 15px 15px;width:calc(100% - 30px)}
.v1813-profile-setting{padding:14px 15px;border-top:1px solid #eceef1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.v1813-profile-setting>div:first-child strong,.v1813-profile-setting>div:first-child small{display:block}
.v1813-profile-setting>div:first-child strong{font-size:13px;color:#111820}
.v1813-profile-setting>div:first-child small{font-size:10px;color:#7b8692;margin-top:2px}
.v1813-profile-setting .ux-segmented{min-width:235px}
.v1813-typography-setting{grid-template-columns:minmax(0,1fr) minmax(260px,1fr)}
.v1813-type-controls{display:grid;grid-template-columns:minmax(0,1fr) 74px auto;gap:7px;align-items:center}
.v1813-type-controls select,.v1813-type-controls input{width:100%;min-height:40px;border:1px solid #d8dfe6;border-radius:10px;background:#f9fafb;padding:0 9px;color:#172536;font-size:12px}
.v1813-type-controls span{font-size:11px;font-weight:800;color:#607080;white-space:nowrap}
.v1813-text-button{grid-column:2;justify-self:end;border:0;background:transparent;color:#1473e6;font-size:10px;font-weight:750;cursor:pointer;padding:5px 0}
.v1813-profile-footer{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-bottom:2px}
.v1813-profile-footer .btn{width:100%;min-height:46px}
.v1813-client-more .hub-card span svg{width:21px;height:21px}

@media(max-width:760px){
  #modal.v1813-profile-sheet-shell .modal-card{width:100%!important;max-width:none!important;max-height:94dvh!important;margin:0!important;border-radius:28px 28px 0 0!important;padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important}
  .v1813-profile-sheet{gap:12px}
  .v1813-profile-avatar-wrap .v155-avatar.hero{width:88px!important;height:88px!important}
  .v1813-profile-hero h2{font-size:24px!important}
  .v1813-profile-form-grid{grid-template-columns:1fr;padding:12px 12px 3px}
  .v1813-span-2{grid-column:auto}
  .v1813-save-profile{margin:9px 12px 12px;width:calc(100% - 24px)}
  .v1813-profile-row,.v1813-profile-link{padding:10px 12px;grid-template-columns:30px minmax(0,1fr) auto}
  .v1813-profile-row>b{max-width:125px;font-size:11px}
  .v1813-profile-setting{grid-template-columns:1fr;padding:12px}
  .v1813-profile-setting .ux-segmented{min-width:0;width:100%}
  .v1813-typography-setting{grid-template-columns:1fr}
  .v1813-type-controls{grid-template-columns:minmax(0,1fr) 68px auto}
  .v1813-text-button{grid-column:auto;justify-self:start}
  .v1813-profile-footer{grid-template-columns:1fr}
}
