/* SisMed Premium UI 2026 - núcleo visual controlado e isolado */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html[data-sismed-theme]{
  --sm-bg:#f4f7ff;--sm-bg-2:#eef3ff;--sm-surface:#ffffff;--sm-surface-2:#f8faff;
  --sm-surface-glass:rgba(255,255,255,.86);--sm-text:#10172a;--sm-muted:#60708c;
  --sm-line:#dfe6f3;--sm-line-strong:#cfd9eb;--sm-primary:#5b5cff;--sm-primary-2:#8b3dff;
  --sm-cyan:#1bcbf0;--sm-success:#12ad68;--sm-danger:#e54867;--sm-warning:#f59e0b;
  --sm-shadow:0 14px 38px rgba(35,47,90,.10);--sm-shadow-soft:0 6px 18px rgba(35,47,90,.07);
  --sm-radius:18px;--sm-radius-lg:24px;--sm-sidebar:252px;--sm-header:72px;
  color-scheme:light;
}
html[data-sismed-theme="dark"]{--sm-bg:#070b1d;--sm-bg-2:#0b1230;--sm-surface:#10172f;--sm-surface-2:#0c132a;--sm-surface-glass:rgba(12,19,42,.88);--sm-text:#f7f8ff;--sm-muted:#9aa6c4;--sm-line:#202c50;--sm-line-strong:#2d3a64;--sm-shadow:0 18px 50px rgba(0,0,0,.28);--sm-shadow-soft:0 8px 24px rgba(0,0,0,.20);color-scheme:dark}
html[data-sismed-theme="midnight"]{--sm-bg:#020617;--sm-bg-2:#080b24;--sm-surface:#080e25;--sm-surface-2:#070c20;--sm-surface-glass:rgba(4,9,27,.9);--sm-text:#fff;--sm-muted:#9ca9cb;--sm-line:#222d58;--sm-line-strong:#36427a;--sm-primary:#675cff;--sm-primary-2:#c13cff;--sm-shadow:0 20px 60px rgba(0,0,0,.38);--sm-shadow-soft:0 10px 28px rgba(0,0,0,.28);color-scheme:dark}

html[data-sismed-theme] body:not(.print-page):not(.sismed-print){font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;background:radial-gradient(circle at 82% 4%,rgba(114,76,255,.13),transparent 28%),linear-gradient(135deg,var(--sm-bg),var(--sm-bg-2))!important;color:var(--sm-text)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) *{font-family:inherit}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) a{transition:color .2s ease,background .2s ease,transform .2s ease,border-color .2s ease,box-shadow .2s ease}

/* Shell principal */
html[data-sismed-theme] .dashboard-container{background:transparent!important;color:var(--sm-text)!important}
html[data-sismed-theme] .main-header{background:var(--sm-surface-glass)!important;border-bottom:1px solid var(--sm-line)!important;box-shadow:0 8px 30px rgba(40,52,95,.06)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html[data-sismed-theme="dark"] .main-header,html[data-sismed-theme="midnight"] .main-header{background:rgba(4,9,27,.88)!important}
html[data-sismed-theme] .logo-area{gap:11px!important;color:var(--sm-text)!important}
html[data-sismed-theme] .logo-area .logo-icon{display:none!important}
html[data-sismed-theme] .logo-area:before{content:"";display:block;width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:url('/sismed-icon-96.png') center/cover no-repeat;box-shadow:0 8px 22px rgba(98,63,255,.28)}
html[data-sismed-theme] .logo-text{color:var(--sm-text)!important;font-weight:800!important;letter-spacing:-.03em}
html[data-sismed-theme] .btn-sidebar-toggle,html[data-sismed-theme] .header-notification,html[data-sismed-theme] .btn-icon{background:var(--sm-surface-2)!important;color:var(--sm-text)!important;border:1px solid var(--sm-line)!important;border-radius:13px!important;box-shadow:none!important}
html[data-sismed-theme] .btn-sidebar-toggle:hover,html[data-sismed-theme] .header-notification:hover,html[data-sismed-theme] .btn-icon:hover{border-color:var(--sm-primary)!important;color:var(--sm-primary)!important;transform:translateY(-1px)}
html[data-sismed-theme] .user-card{background:var(--sm-surface-2)!important;border:1px solid var(--sm-line)!important;border-radius:16px!important;color:var(--sm-text)!important;box-shadow:none!important}
html[data-sismed-theme] .user-name,html[data-sismed-theme] .user-card *{color:var(--sm-text)}
html[data-sismed-theme] .user-menu,html[data-sismed-theme] .notifications-menu{background:var(--sm-surface)!important;border:1px solid var(--sm-line)!important;color:var(--sm-text)!important;box-shadow:var(--sm-shadow)!important;border-radius:18px!important}
html[data-sismed-theme] .menu-item,html[data-sismed-theme] .notifications-menu *{color:var(--sm-text)!important}
html[data-sismed-theme] .menu-item:hover{background:rgba(99,79,255,.10)!important}

/* Sidebar */
html[data-sismed-theme] .sidebar{background:var(--sm-surface-glass)!important;border-right:1px solid var(--sm-line)!important;box-shadow:none!important;backdrop-filter:blur(18px);color:var(--sm-text)!important}
html[data-sismed-theme="dark"] .sidebar,html[data-sismed-theme="midnight"] .sidebar{background:rgba(4,9,27,.88)!important}
html[data-sismed-theme] .sidebar-title{color:var(--sm-muted)!important;border-color:var(--sm-line)!important;font-size:.68rem!important;letter-spacing:.12em!important}
html[data-sismed-theme] .nav-btn{background:transparent!important;border:1px solid transparent!important;color:var(--sm-muted)!important;border-radius:13px!important;box-shadow:none!important;font-weight:650!important}
html[data-sismed-theme] .nav-btn i{color:currentColor!important}
html[data-sismed-theme] .nav-btn:hover{background:rgba(99,79,255,.08)!important;color:var(--sm-text)!important;border-color:rgba(99,79,255,.14)!important;transform:translateX(2px)}
html[data-sismed-theme] .nav-btn.active{background:linear-gradient(135deg,rgba(75,92,255,.18),rgba(156,59,255,.16))!important;color:var(--sm-primary)!important;border-color:rgba(99,79,255,.38)!important;box-shadow:0 8px 24px rgba(82,63,255,.12)!important}
html[data-sismed-theme="dark"] .nav-btn.active,html[data-sismed-theme="midnight"] .nav-btn.active{color:#fff!important;background:linear-gradient(135deg,rgba(74,87,255,.32),rgba(154,47,255,.25))!important;box-shadow:0 0 28px rgba(100,61,255,.16)!important}

/* Área central */
html[data-sismed-theme] .content-area{background:transparent!important;color:var(--sm-text)!important;padding:20px 26px 28px!important}
html[data-sismed-theme] .content-section{color:var(--sm-text)!important}
html[data-sismed-theme] .saaS-dashboard{max-width:1680px!important;margin:0 auto!important;gap:14px!important}
html[data-sismed-theme] .saaS-unit-card,html[data-sismed-theme] .saaS-hero,html[data-sismed-theme] .saaS-panel,html[data-sismed-theme] .saaS-highlight,html[data-sismed-theme] .saaS-account-panel,html[data-sismed-theme] .saaS-default-unit-alert,html[data-sismed-theme] .visitor-demo-banner{background:var(--sm-surface)!important;color:var(--sm-text)!important;border:1px solid var(--sm-line)!important;border-radius:var(--sm-radius-lg)!important;box-shadow:var(--sm-shadow-soft)!important}
html[data-sismed-theme] .saaS-unit-card{min-height:78px!important}
html[data-sismed-theme] .saaS-unit-card:after{background:linear-gradient(135deg,transparent,rgba(104,76,255,.10))!important}
html[data-sismed-theme] .saaS-unit-name,html[data-sismed-theme] .saaS-greeting,html[data-sismed-theme] .saaS-panel-header strong{color:var(--sm-text)!important}
html[data-sismed-theme] .saaS-eyebrow,html[data-sismed-theme] .saaS-unit-helper,html[data-sismed-theme] .saaS-question,html[data-sismed-theme] .saaS-panel-header span{color:var(--sm-muted)!important}
html[data-sismed-theme] .saaS-hero{position:relative;overflow:hidden!important;min-height:92px!important;background:linear-gradient(120deg,var(--sm-surface),var(--sm-surface-2))!important}
html[data-sismed-theme] .saaS-hero:after{content:"";position:absolute;right:-5%;top:-120%;width:52%;height:320%;background:radial-gradient(circle,rgba(140,61,255,.22) 0 1.5px,transparent 2px);background-size:15px 15px;transform:rotate(-12deg);opacity:.55;pointer-events:none}
html[data-sismed-theme] .saaS-greeting{font-size:clamp(1.45rem,2.2vw,2.2rem)!important;letter-spacing:-.035em!important;font-weight:800!important}
html[data-sismed-theme] .saaS-plan-pill{background:var(--sm-surface-2)!important;border-color:var(--sm-line)!important;color:var(--sm-text)!important}
html[data-sismed-theme] .saaS-highlight{background:linear-gradient(100deg,rgba(87,87,255,.10),rgba(20,183,255,.08))!important;border-color:rgba(96,87,255,.22)!important}
html[data-sismed-theme] .saaS-highlight *{color:var(--sm-text)}

/* Cards e ações */
html[data-sismed-theme] .saaS-action-card,html[data-sismed-theme] .saaS-stat-card,html[data-sismed-theme] .quick-action-card,html[data-sismed-theme] .module-card,html[data-sismed-theme] .feature-card,html[data-sismed-theme] .card{background:var(--sm-surface-2)!important;color:var(--sm-text)!important;border:1px solid var(--sm-line)!important;border-radius:18px!important;box-shadow:none!important}
html[data-sismed-theme] .saaS-action-card:hover,html[data-sismed-theme] .quick-action-card:hover,html[data-sismed-theme] .module-card:hover,html[data-sismed-theme] .feature-card:hover{transform:translateY(-4px)!important;border-color:rgba(104,76,255,.52)!important;box-shadow:0 16px 34px rgba(83,61,190,.15)!important}
html[data-sismed-theme] .saaS-action-card strong,html[data-sismed-theme] .saaS-action-card h3,html[data-sismed-theme] .module-card h3,html[data-sismed-theme] .card-title{color:var(--sm-text)!important}
html[data-sismed-theme] .saaS-action-card span,html[data-sismed-theme] .saaS-action-card p,html[data-sismed-theme] .module-card p,html[data-sismed-theme] .text-muted{color:var(--sm-muted)!important}
html[data-sismed-theme] .saaS-action-icon,html[data-sismed-theme] .quick-action-icon{background:linear-gradient(135deg,rgba(85,89,255,.14),rgba(170,58,255,.13))!important;color:var(--sm-primary)!important;border:1px solid rgba(110,82,255,.16)!important}

/* Elementos genéricos dos módulos, sempre dentro do tema */
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.container,.main-container,.page-container,.module-container,.app-container,.content-wrapper,.page-content,.module-content){color:var(--sm-text)}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.panel,.box,.widget,.section-card,.form-card,.table-card,.modal-content,.offcanvas,.dropdown-menu){background:var(--sm-surface)!important;color:var(--sm-text)!important;border-color:var(--sm-line)!important;box-shadow:var(--sm-shadow-soft)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(h1,h2,h3,h4,h5,h6,label,legend,.title,.page-title,.section-title){color:var(--sm-text)}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(p,.subtitle,.description,.help-text,.form-text,small){color:var(--sm-muted)}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.form-control,.form-select){background:var(--sm-surface-2)!important;color:var(--sm-text)!important;border:1px solid var(--sm-line-strong)!important;border-radius:13px!important;box-shadow:none!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(input,select,textarea,.form-control,.form-select):focus{border-color:var(--sm-primary)!important;box-shadow:0 0 0 4px rgba(91,92,255,.12)!important;outline:none!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(table,.table){background:var(--sm-surface)!important;color:var(--sm-text)!important;border-color:var(--sm-line)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(th,td){border-color:var(--sm-line)!important;color:var(--sm-text)}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) th{background:var(--sm-surface-2)!important;color:var(--sm-muted)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.btn-primary,button.primary,.primary-btn,.btn-success){background:linear-gradient(135deg,#3c79ff,var(--sm-primary-2))!important;color:#fff!important;border:0!important;box-shadow:0 9px 22px rgba(90,67,255,.22)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.btn-secondary,.btn-light,.btn-outline-primary,.secondary-btn){background:var(--sm-surface-2)!important;color:var(--sm-text)!important;border:1px solid var(--sm-line-strong)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.btn,button,.button){border-radius:13px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.btn,button,.button):hover{transform:translateY(-1px)}

/* Seletor de tema */
.sismed-theme-launcher{position:fixed;right:18px;bottom:18px;z-index:2147483000;width:48px;height:48px;border-radius:16px;border:1px solid rgba(255,255,255,.25);background:linear-gradient(135deg,#2f7cff,#9b32ff);color:#fff;box-shadow:0 14px 34px rgba(82,55,220,.35);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:19px}
.sismed-theme-panel{position:fixed;right:18px;bottom:76px;z-index:2147483001;width:min(330px,calc(100vw - 28px));padding:14px;background:var(--sm-surface);color:var(--sm-text);border:1px solid var(--sm-line);border-radius:20px;box-shadow:var(--sm-shadow);display:none}
.sismed-theme-panel.open{display:block;animation:smPop .18s ease-out}
.sismed-theme-panel h4{margin:2px 4px 12px;color:var(--sm-text);font-size:1rem}.sismed-theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.sismed-theme-option{padding:10px 7px;border:1px solid var(--sm-line);border-radius:14px;background:var(--sm-surface-2);color:var(--sm-text);cursor:pointer;text-align:center;font-size:.76rem;font-weight:700}.sismed-theme-option.active{border-color:var(--sm-primary);box-shadow:0 0 0 3px rgba(91,92,255,.10)}.sismed-theme-swatch{height:34px;border-radius:9px;margin-bottom:7px;border:1px solid rgba(127,127,127,.18)}
@keyframes smPop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}

/* Desktop HD */
@media(min-width:1440px){html[data-sismed-theme] .content-area{padding-left:32px!important;padding-right:32px!important}html[data-sismed-theme] .saaS-dashboard{max-width:1780px!important}html[data-sismed-theme] .saaS-actions-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:1900px){html[data-sismed-theme] .saaS-dashboard{max-width:1880px!important}html[data-sismed-theme] .content-area{padding:24px 38px 34px!important}}

/* Mobile nativo */
@media(max-width:768px){
 html[data-sismed-theme] body{min-height:100dvh!important;height:auto!important;overflow-x:hidden!important;background:linear-gradient(180deg,var(--sm-bg),var(--sm-bg-2))!important}
 html[data-sismed-theme] .main-header{height:66px!important;padding:8px 12px!important;position:sticky!important;top:0!important;z-index:9999!important}
 html[data-sismed-theme] .logo-area:before{width:38px;height:38px;flex-basis:38px;border-radius:12px}.logo-text{font-size:1.08rem!important}
 html[data-sismed-theme] .user-card{padding:5px!important;background:transparent!important;border:0!important}.user-details{display:none!important}
 html[data-sismed-theme] .content-area{padding:14px 12px 100px!important;width:100%!important;max-width:100%!important}
 html[data-sismed-theme] .saaS-dashboard{gap:12px!important;width:100%!important}
 html[data-sismed-theme] .saaS-unit-card{padding:14px!important;border-radius:18px!important;min-height:auto!important}.saaS-unit-helper{display:none!important}.saaS-unit-change{padding:9px 10px!important;font-size:.75rem!important}
 html[data-sismed-theme] .saaS-hero{padding:20px 17px!important;min-height:110px!important}.saaS-hero:after{width:75%;opacity:.35}.saaS-plan-pill{display:none!important}.saaS-greeting{font-size:1.55rem!important}.saaS-question{font-size:.9rem!important;margin-top:5px!important}
 html[data-sismed-theme] .saaS-panel{padding:14px!important;border-radius:20px!important}.saaS-panel-header{margin-bottom:12px!important}
 html[data-sismed-theme] .saaS-actions-grid,html[data-sismed-theme] #quick-actions-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html[data-sismed-theme] .saaS-action-card{min-height:132px!important;padding:14px 9px!important;border-radius:17px!important;text-align:center!important;justify-content:center!important}.saaS-action-card span{font-size:.72rem!important;line-height:1.35!important}.saaS-action-card strong{font-size:.9rem!important}.saaS-action-icon{margin:0 auto 7px!important}
 html[data-sismed-theme] .sidebar{box-shadow:14px 0 44px rgba(0,0,0,.22)!important}
 .sismed-theme-launcher{right:12px;bottom:78px;width:44px;height:44px;border-radius:15px}.sismed-theme-panel{right:12px;bottom:130px}
}
@media(max-width:390px){html[data-sismed-theme] .saaS-actions-grid,html[data-sismed-theme] #quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.saaS-action-card span{display:none!important}}

/* Impressão fica intocada */
@media print{.sismed-theme-launcher,.sismed-theme-panel{display:none!important}html[data-sismed-theme] body{background:#fff!important;color:#000!important}}


/* === Ajustes globais V3: dark/midnight, badges, alinhamento e módulos === */
html[data-sismed-theme="dark"] body:not(.print-page):not(.sismed-print){
  background:
    radial-gradient(circle at 82% 4%,rgba(114,76,255,.16),transparent 24%),
    radial-gradient(circle at 18% 18%,rgba(15,196,255,.08),transparent 18%),
    linear-gradient(145deg,#050915 0%,#0b1331 44%,#080d23 100%)!important;
}
html[data-sismed-theme="midnight"] body:not(.print-page):not(.sismed-print){
  background:
    radial-gradient(circle at 88% 8%,rgba(189,65,255,.18) 0,transparent 18%),
    radial-gradient(circle at 72% 28%,rgba(72,110,255,.12) 0,transparent 22%),
    radial-gradient(circle at 16% 18%,rgba(0,214,255,.08) 0,transparent 18%),
    linear-gradient(155deg,#020617 0%,#06102b 38%,#09091f 100%)!important;
  background-attachment:fixed!important;
}
html[data-sismed-theme="midnight"] .content-area,
html[data-sismed-theme="midnight"] .saaS-dashboard{position:relative}
html[data-sismed-theme="midnight"] .content-area::before{
  content:"";position:fixed;inset:72px 0 0 0;pointer-events:none;z-index:0;
  background:
    radial-gradient(circle,rgba(151,71,255,.16) 0 1.1px,transparent 1.5px) 0 0/18px 18px,
    linear-gradient(90deg,transparent,rgba(124,58,237,.03),transparent);
  opacity:.38;
}
html[data-sismed-theme] .content-area > *,
html[data-sismed-theme] .saaS-dashboard > *{position:relative;z-index:1}

html[data-sismed-theme="dark"] .saaS-highlight,
html[data-sismed-theme="midnight"] .saaS-highlight,
html[data-sismed-theme="dark"] .visitor-demo-banner,
html[data-sismed-theme="midnight"] .visitor-demo-banner,
html[data-sismed-theme="dark"] .saaS-default-unit-alert,
html[data-sismed-theme="midnight"] .saaS-default-unit-alert{
  background:linear-gradient(135deg,rgba(14,24,52,.92),rgba(17,16,52,.88))!important;
  border-color:rgba(94,104,255,.26)!important;
  box-shadow:0 16px 40px rgba(0,0,0,.18)!important;
}
html[data-sismed-theme="dark"] .saaS-hero,
html[data-sismed-theme="midnight"] .saaS-hero{
  background:
    linear-gradient(120deg,rgba(10,16,36,.97),rgba(8,13,34,.94))!important;
  border-color:rgba(99,79,255,.20)!important;
}
html[data-sismed-theme="dark"] .saaS-hero:after,
html[data-sismed-theme="midnight"] .saaS-hero:after{opacity:.78}

html[data-sismed-theme] .nav-btn{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:.72rem!important;
  min-height:52px!important;
  padding:10px 12px!important;
  text-align:left!important;
}
html[data-sismed-theme] .nav-btn > :not(i):not(.sm-icon-host):not(small){
  min-width:0;display:block;white-space:normal;line-height:1.18!important;
}
html[data-sismed-theme] .nav-btn i,
html[data-sismed-theme] .nav-btn .sm-icon-host{grid-column:1;align-self:start;margin-top:1px}
html[data-sismed-theme] .nav-btn small,
html[data-sismed-theme] .nav-btn .badge,
html[data-sismed-theme] .nav-btn .menu-badge{
  grid-column:3;justify-self:end;align-self:center;
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:22px;padding:3px 9px;border-radius:999px;
  background:linear-gradient(135deg,#315dff,#9e39ff)!important;color:#fff!important;
  font-size:.62rem!important;font-weight:900!important;letter-spacing:.04em!important;
  white-space:nowrap;line-height:1!important;box-shadow:0 8px 18px rgba(82,55,220,.22);
}
html[data-sismed-theme] .nav-btn[data-module="plantao_challenge_module"] small{background:linear-gradient(135deg,#7c3aed,#c026d3)!important}
html[data-sismed-theme] .nav-btn[data-module="condutas_module"] small,
html[data-sismed-theme] .nav-btn.nav-condutas-feature small{background:linear-gradient(135deg,#2563eb,#3b82f6)!important}
html[data-sismed-theme] .sidebar-title{margin:12px 0 8px!important}

html[data-sismed-theme] .saaS-action-card,
html[data-sismed-theme] .quick-action-card{overflow:hidden}
html[data-sismed-theme] .saaS-action-icon,
html[data-sismed-theme] .quick-action-icon{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  background:linear-gradient(135deg,rgba(85,89,255,.18),rgba(170,58,255,.14))!important;
  color:var(--sm-primary)!important;
}
html[data-sismed-theme="dark"] .saaS-action-card .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card .saaS-action-icon,
html[data-sismed-theme="dark"] .quick-action-card .quick-action-icon,
html[data-sismed-theme="midnight"] .quick-action-card .quick-action-icon{
  background:linear-gradient(145deg,rgba(52,49,118,.62),rgba(33,24,89,.68))!important;
  border-color:rgba(111,96,255,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 10px 22px rgba(24,18,64,.22)!important;
}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="assistente_ia_module"] .saaS-action-icon,
html[data-sismed-theme="dark"] .saaS-action-card[data-quick-id="module:assistente_ia_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="assistente_ia_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-quick-id="module:assistente_ia_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(228,236,255,.96),rgba(238,243,255,.98))!important;color:#2563eb!important}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="documentos_medicos_module"] .saaS-action-icon,
html[data-sismed-theme="dark"] .saaS-action-card[data-quick-id="module:documentos_medicos_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="documentos_medicos_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-quick-id="module:documentos_medicos_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(255,247,237,.96),rgba(255,251,245,.98))!important;color:#ea580c!important}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="plantao_challenge_module"] .saaS-action-icon,
html[data-sismed-theme="dark"] .saaS-action-card[data-quick-id="module:plantao_challenge_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="plantao_challenge_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-quick-id="module:plantao_challenge_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(244,236,255,.96),rgba(250,244,255,.98))!important;color:#7c3aed!important}

html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.toolbar,.toolbar-bar,.subpanel,.sub-card,.inner-card,.info-card,.notice-card,.tip-card,.editor-card,.editor-toolbar,.empty-state,.filter-card,.banner,.hero-card,.step-card,.tab-card,.tab-panel,.well,.card-body,.list-group-item,.accordion-item,.accordion-button,.tabs-content,.data-card,.summary-card,.status-card,.detail-card,.module-header,.module-toolbar,.search-panel,.preview-panel,.table-responsive,.fieldset-card,.patient-card,.patient-search-bar,.patient-form-card,.prescricao-card,.content-box,.white-panel,.light-card){
  background:var(--sm-surface)!important;color:var(--sm-text)!important;border-color:var(--sm-line)!important;
}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.tabs,.tab-list,.nav-tabs,.nav-pills,.pill-group,.chip-group,.toolbar-actions,.section-tabs){
  background:transparent!important;border-color:var(--sm-line)!important;
}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.nav-tabs .nav-link,.nav-pills .nav-link,.pill,.chip,.badge-pill,.tag,.toolbar-chip,.quick-filter,.segment-option){
  background:var(--sm-surface-2)!important;color:var(--sm-text)!important;border:1px solid var(--sm-line)!important;
}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.nav-tabs .nav-link.active,.nav-pills .nav-link.active,.pill.active,.chip.active,.segment-option.active){
  background:linear-gradient(135deg,rgba(60,121,255,.18),rgba(155,50,255,.16))!important;color:var(--sm-primary)!important;border-color:rgba(99,79,255,.40)!important;
}
html[data-sismed-theme="dark"] body:not(.print-page):not(.sismed-print) :is(.section-card,.form-card,.table-card,.module-card,.sub-card,.editor-card,.card,.list-group-item,.accordion-item,.accordion-button),
html[data-sismed-theme="midnight"] body:not(.print-page):not(.sismed-print) :is(.section-card,.form-card,.table-card,.module-card,.sub-card,.editor-card,.card,.list-group-item,.accordion-item,.accordion-button){
  background:linear-gradient(145deg,rgba(10,16,36,.96),rgba(7,12,30,.94))!important;
}
html[data-sismed-theme="dark"] body:not(.print-page):not(.sismed-print) :is(.alert,.info-strip,.info-banner,.helper-banner,.status-banner,.demo-banner),
html[data-sismed-theme="midnight"] body:not(.print-page):not(.sismed-print) :is(.alert,.info-strip,.info-banner,.helper-banner,.status-banner,.demo-banner){
  background:linear-gradient(145deg,rgba(14,22,48,.96),rgba(10,16,38,.95))!important;color:var(--sm-text)!important;border-color:rgba(89,97,255,.24)!important;
}
html[data-sismed-theme="dark"] body:not(.print-page):not(.sismed-print) :is(.patient-inline-bar,.patient-strip,.patient-toolbar,.patient-header),
html[data-sismed-theme="midnight"] body:not(.print-page):not(.sismed-print) :is(.patient-inline-bar,.patient-strip,.patient-toolbar,.patient-header){
  background:linear-gradient(135deg,rgba(10,18,40,.96),rgba(8,14,32,.96))!important;border-color:rgba(99,79,255,.24)!important;
}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.ace_editor,.CodeMirror,.code-editor,.prescription-editor,.editor-surface,.editor-body){
  background:var(--sm-surface-2)!important;color:var(--sm-text)!important;border-color:var(--sm-line)!important;
}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.btn-outline-secondary,.btn-outline-dark,.btn-light,.ghost-btn,.outline-btn){
  background:var(--sm-surface-2)!important;color:var(--sm-text)!important;border:1px solid var(--sm-line)!important;
}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.badge,.status-badge,.perfil-badge,.vincular-badge,.plan-badge,.account-crm-badge,.unidade-tipo-badge){
  border-color:transparent!important;
}
html[data-sismed-theme="dark"] body:not(.print-page):not(.sismed-print) :is(.badge,.status-badge,.perfil-badge,.vincular-badge,.plan-badge,.account-crm-badge,.unidade-tipo-badge),
html[data-sismed-theme="midnight"] body:not(.print-page):not(.sismed-print) :is(.badge,.status-badge,.perfil-badge,.vincular-badge,.plan-badge,.account-crm-badge,.unidade-tipo-badge){
  box-shadow:0 8px 16px rgba(0,0,0,.16);
}

.sismed-theme-launcher{display:flex;align-items:center;justify-content:center;gap:0}
.sismed-theme-launcher .sm-theme-launcher-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px}
.sismed-theme-panel{padding:16px 16px 14px}
.sismed-theme-panel-header{display:flex;align-items:center;gap:10px;margin:0 2px 12px}
.sismed-theme-panel-icon{width:36px;height:36px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(60,121,255,.18),rgba(155,50,255,.18));color:var(--sm-primary)}
.sismed-theme-panel h4{margin:0;font-size:1rem}
.sismed-theme-panel p{margin:.15rem 0 0;color:var(--sm-muted);font-size:.78rem}
.sismed-theme-option{display:flex;flex-direction:column;align-items:center;gap:0;padding:10px 8px}
.sismed-theme-option-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin-bottom:6px;color:var(--sm-primary)}
.sismed-theme-option.active .sismed-theme-option-icon{color:var(--sm-primary-2)}
.sismed-theme-option-label{font-size:.76rem;font-weight:800;line-height:1.1}

@media(max-width:768px){
  html[data-sismed-theme] .nav-btn{min-height:50px!important;padding:10px 10px!important;gap:.62rem!important;grid-template-columns:18px minmax(0,1fr) auto!important}
  html[data-sismed-theme] .nav-btn small{font-size:.55rem!important;padding:3px 7px!important}
}

/* === Hub de conversão e descoberta === */
html[data-sismed-theme] .conversion-hub{
  position:relative;overflow:hidden;margin-top:18px;padding:22px;
  border:1px solid var(--sm-line);border-radius:24px;
  background:
    radial-gradient(circle at 88% 8%,rgba(139,61,255,.11),transparent 24%),
    linear-gradient(145deg,var(--sm-surface),var(--sm-surface-2));
  box-shadow:var(--sm-shadow-soft);color:var(--sm-text);
}
html[data-sismed-theme="dark"] .conversion-hub,
html[data-sismed-theme="midnight"] .conversion-hub{
  background:
    radial-gradient(circle at 90% 4%,rgba(184,59,255,.18),transparent 26%),
    radial-gradient(circle at 10% 100%,rgba(36,135,255,.10),transparent 24%),
    linear-gradient(145deg,rgba(10,16,38,.98),rgba(7,12,31,.96));
  border-color:rgba(99,79,255,.22);
}
.conversion-hub-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.conversion-hub-kicker{display:inline-flex;align-items:center;gap:7px;color:var(--sm-primary);font-size:.72rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.conversion-hub h2{margin:7px 0 4px;color:var(--sm-text);font-size:clamp(1.15rem,1.6vw,1.5rem);letter-spacing:-.025em}
.conversion-hub-head p{margin:0;color:var(--sm-muted);font-size:.86rem;line-height:1.45}
.conversion-account-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 15px;border-radius:13px;background:linear-gradient(135deg,#3378ff,#9b32ff);color:#fff!important;font-size:.8rem;font-weight:850;text-decoration:none;box-shadow:0 10px 24px rgba(83,61,214,.24);white-space:nowrap}
.conversion-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.conversion-card{position:relative;isolation:isolate;min-height:218px;padding:17px;border:1px solid var(--sm-line);border-radius:19px;background:var(--sm-surface-2);color:var(--sm-text);text-align:left;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:14px;overflow:hidden;box-shadow:none}
.conversion-card:hover{transform:translateY(-4px);border-color:rgba(105,79,255,.52);box-shadow:0 18px 36px rgba(72,49,170,.14)}
html[data-sismed-theme="dark"] .conversion-card,
html[data-sismed-theme="midnight"] .conversion-card{background:linear-gradient(145deg,rgba(13,21,48,.94),rgba(8,14,35,.94));border-color:rgba(87,100,164,.30)}
.conversion-card-featured{grid-column:span 2;background:linear-gradient(135deg,rgba(59,99,255,.12),rgba(159,49,255,.10))!important;border-color:rgba(103,82,255,.35)!important}
html[data-sismed-theme="dark"] .conversion-card-featured,
html[data-sismed-theme="midnight"] .conversion-card-featured{background:linear-gradient(135deg,rgba(34,47,105,.88),rgba(44,18,92,.78))!important}
.conversion-card-glow{position:absolute;right:-50px;bottom:-72px;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(169,64,255,.34),rgba(62,89,255,.10) 46%,transparent 70%);z-index:-1;filter:blur(2px)}
.conversion-icon{width:47px;height:47px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(70,102,255,.18),rgba(145,48,255,.17));color:#5b5cff;border:1px solid rgba(100,83,255,.18);box-shadow:0 10px 22px rgba(70,54,177,.11)}
html[data-sismed-theme="dark"] .conversion-icon,
html[data-sismed-theme="midnight"] .conversion-icon{color:#9185ff;background:linear-gradient(135deg,rgba(73,67,159,.58),rgba(42,26,100,.72));border-color:rgba(126,102,255,.28)}
.conversion-icon-green{color:#059669;background:rgba(16,185,129,.12)}
.conversion-icon-orange{color:#ea580c;background:rgba(249,115,22,.12)}
.conversion-icon-purple{color:#8b3dff;background:rgba(139,61,255,.12)}
html[data-sismed-theme="dark"] .conversion-icon-green,html[data-sismed-theme="midnight"] .conversion-icon-green{color:#45d7a1;background:rgba(16,185,129,.13)}
html[data-sismed-theme="dark"] .conversion-icon-orange,html[data-sismed-theme="midnight"] .conversion-icon-orange{color:#ff9a62;background:rgba(249,115,22,.13)}
html[data-sismed-theme="dark"] .conversion-icon-purple,html[data-sismed-theme="midnight"] .conversion-icon-purple{color:#c48cff;background:rgba(139,61,255,.15)}
.conversion-copy{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start}
.conversion-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:9px}
.conversion-meta b,.conversion-meta em{display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;border-radius:999px;font-size:.57rem;font-style:normal;font-weight:900;letter-spacing:.06em;line-height:1;background:rgba(60,121,255,.10);color:#2563eb}
.conversion-meta em{background:rgba(139,61,255,.11);color:#7c3aed}
html[data-sismed-theme="dark"] .conversion-meta b,html[data-sismed-theme="midnight"] .conversion-meta b{background:rgba(69,112,255,.17);color:#8fb2ff}
html[data-sismed-theme="dark"] .conversion-meta em,html[data-sismed-theme="midnight"] .conversion-meta em{background:rgba(164,74,255,.17);color:#d2a5ff}
.conversion-copy strong{color:var(--sm-text);font-size:.96rem;line-height:1.22;letter-spacing:-.015em}
.conversion-copy small{display:block;margin-top:7px;color:var(--sm-muted);font-size:.75rem;line-height:1.45}
.conversion-action{display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:15px;color:var(--sm-primary);font-size:.76rem;font-weight:850}
.conversion-action i{font-size:.72rem;transition:transform .18s ease}
.conversion-card:hover .conversion-action i{transform:translateX(3px)}
@media(max-width:1180px){.conversion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.conversion-card-featured{grid-column:span 2}}
@media(max-width:720px){
 html[data-sismed-theme] .conversion-hub{padding:16px;border-radius:20px}
 .conversion-hub-head{display:block}.conversion-account-cta{width:100%;margin-top:13px}
 .conversion-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:11px;padding-bottom:4px;scrollbar-width:none}
 .conversion-grid::-webkit-scrollbar{display:none}
 .conversion-card,.conversion-card-featured{flex:0 0 min(84vw,330px);min-height:215px;grid-column:auto;scroll-snap-align:start}
}


/* === Ajustes finos de contraste, módulos e conversão (2026-08-02 v3) === */
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea,
  .input-control,
  .form-control,
  .form-select,
  .search-input,
  .patient-search-input,
  .receitas-search-input,
  .receitas-combo-input,
  .editor-input,
  .editor-textarea,
  .prescription-editor,
  .CodeMirror,
  .ace_editor
){
  background:var(--sm-surface-2)!important;
  color:var(--sm-text)!important;
  border-color:var(--sm-line)!important;
  box-shadow:none!important;
}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(input,textarea)::placeholder{color:var(--sm-muted)!important;opacity:.9!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(input[readonly],textarea[readonly],input:disabled,textarea:disabled,select:disabled){
  background:color-mix(in srgb,var(--sm-surface-2) 86%, transparent)!important;
  color:var(--sm-muted)!important;
}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(select option){background:var(--sm-surface)!important;color:var(--sm-text)!important}

html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(
  .info-item,
  .print-models,
  .chk,
  .receitas-combo-results,
  .receita-combo-option,
  .receita-combo-empty,
  .receitas-history-item,
  .receitas-history-chip,
  .receitas-search-wrap,
  .recent-recipe-chip,
  .patient-inline-bar,
  .sismed-module-patient,
  .sismed-module-shell,
  .account-hero,
  .account-card,
  .account-crm-card,
  .account-metric-card,
  .account-alert,
  .account-plan-chip,
  .account-plan-info-panel,
  .account-profile-row,
  .account-info-list > div,
  .account-plan-stats > div,
  .account-crm-empty,
  .account-crm-item,
  .meter-bar,
  .meter-head,
  .account-academic-convert
){
  background:var(--sm-surface)!important;
  color:var(--sm-text)!important;
  border-color:var(--sm-line)!important;
  box-shadow:none!important;
}
html[data-sismed-theme="dark"] body:not(.print-page):not(.sismed-print) :is(
  .info-item,
  .print-models,
  .chk,
  .receitas-combo-results,
  .receita-combo-option,
  .receita-combo-empty,
  .account-hero,
  .account-card,
  .account-crm-card,
  .account-metric-card,
  .account-alert,
  .account-plan-chip,
  .account-plan-info-panel,
  .account-profile-row,
  .account-info-list > div,
  .account-plan-stats > div,
  .account-crm-empty,
  .account-crm-item,
  .meter-bar,
  .account-academic-convert,
  .sismed-module-patient,
  .sismed-module-shell
),
html[data-sismed-theme="midnight"] body:not(.print-page):not(.sismed-print) :is(
  .info-item,
  .print-models,
  .chk,
  .receitas-combo-results,
  .receita-combo-option,
  .receita-combo-empty,
  .account-hero,
  .account-card,
  .account-crm-card,
  .account-metric-card,
  .account-alert,
  .account-plan-chip,
  .account-plan-info-panel,
  .account-profile-row,
  .account-info-list > div,
  .account-plan-stats > div,
  .account-crm-empty,
  .account-crm-item,
  .meter-bar,
  .account-academic-convert,
  .sismed-module-patient,
  .sismed-module-shell
){
  background:linear-gradient(145deg,rgba(10,16,36,.96),rgba(7,12,30,.94))!important;
}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.account-info-list > div span,.account-plan-stats > div span,.account-card-title,.account-eyebrow,.account-hero p,.small-note,.receitas-search-note,.chk small,.meter-head span){color:var(--sm-muted)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) :is(.account-profile-row strong,.account-info-list > div strong,.account-plan-stats > div strong,.account-metric-card strong,.account-plan-name,.section-title,.info-label){color:var(--sm-text)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) .meter-bar{overflow:hidden;border:1px solid var(--sm-line)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) .chk:hover{border-color:rgba(99,79,255,.30)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) .receita-combo-option:hover{background:rgba(99,79,255,.10)!important}
html[data-sismed-theme] body:not(.print-page):not(.sismed-print) .section-title{border-color:rgba(99,79,255,.45)!important}

html[data-sismed-theme] .user-menu{
  padding:.8rem!important;
  min-width:min(340px,calc(100vw - 24px))!important;
  border-radius:20px!important;
  background:var(--sm-surface)!important;
  border:1px solid var(--sm-line)!important;
  box-shadow:var(--sm-shadow)!important;
}
html[data-sismed-theme] .user-menu .menu-item{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:.78rem!important;
  min-height:48px!important;
  margin:0 0 7px!important;
  padding:.78rem .9rem!important;
  border-radius:15px!important;
  border:1px solid var(--sm-line)!important;
  background:var(--sm-surface-2)!important;
  color:var(--sm-text)!important;
  text-align:left!important;
  transform:none!important;
}
html[data-sismed-theme] .user-menu .menu-item:hover{
  background:rgba(99,79,255,.10)!important;
  border-color:rgba(99,79,255,.28)!important;
  transform:translateX(0)!important;
}
html[data-sismed-theme] .user-menu .menu-item i,
html[data-sismed-theme] .user-menu .menu-item .sm-icon-host{width:20px!important;min-width:20px!important;color:var(--sm-primary)!important}
html[data-sismed-theme] .user-menu .menu-item small,
html[data-sismed-theme] .user-menu .menu-item .menu-notification-badge{
  margin-left:0!important;
  justify-self:end!important;
}
html[data-sismed-theme] .user-menu .menu-item small{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:22px!important;padding:3px 9px!important;border-radius:999px!important;
  background:linear-gradient(135deg,#315dff,#9e39ff)!important;color:#fff!important;
  font-size:.62rem!important;font-weight:900!important;letter-spacing:.04em!important;line-height:1!important;
}
html[data-sismed-theme] .user-menu .menu-sep{background:var(--sm-line)!important;margin:.55rem 0!important}
html[data-sismed-theme] .user-menu .logout-btn{border-radius:15px!important;min-height:48px!important}

html[data-sismed-theme] .saaS-action-card[data-module="assistente_ia_module"] .saaS-action-icon,
html[data-sismed-theme] .saaS-action-card[data-module="receitas_module"] .saaS-action-icon,
html[data-sismed-theme] .saaS-action-card[data-module="exames_module"] .saaS-action-icon,
html[data-sismed-theme] .saaS-action-card[data-module="atestados_module"] .saaS-action-icon,
html[data-sismed-theme] .saaS-action-card[data-module="documentos_medicos_module"] .saaS-action-icon,
html[data-sismed-theme] .saaS-action-card[data-module="pub_aih_module"] .saaS-action-icon,
html[data-sismed-theme] .saaS-action-card[data-module="pub_apac_module"] .saaS-action-icon,
html[data-sismed-theme] .saaS-action-card[data-module="lme_module"] .saaS-action-icon,
html[data-sismed-theme] .saaS-action-card[data-module="academia_calc_module"] .saaS-action-icon,
html[data-sismed-theme] .saaS-action-card[data-module="calcped_module"] .saaS-action-icon{
  box-shadow:none!important;
}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="receitas_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="receitas_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(36,71,171,.62),rgba(27,41,108,.72))!important;color:#8db3ff!important}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="exames_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="exames_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(6,117,126,.60),rgba(8,61,78,.72))!important;color:#7ae4ee!important}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="atestados_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="atestados_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(127,52,165,.62),rgba(73,31,110,.74))!important;color:#dfb0ff!important}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="pub_aih_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="pub_aih_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(126,70,16,.60),rgba(91,43,12,.72))!important;color:#ffcf8f!important}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="pub_apac_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="pub_apac_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(18,98,117,.60),rgba(15,56,86,.72))!important;color:#9fe8ff!important}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="lme_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="lme_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(54,121,42,.58),rgba(26,68,23,.72))!important;color:#b9ffb0!important}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="academia_calc_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="academia_calc_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(38,76,149,.58),rgba(27,39,102,.72))!important;color:#acc2ff!important}
html[data-sismed-theme="dark"] .saaS-action-card[data-module="calcped_module"] .saaS-action-icon,
html[data-sismed-theme="midnight"] .saaS-action-card[data-module="calcped_module"] .saaS-action-icon{background:linear-gradient(145deg,rgba(151,79,12,.60),rgba(90,52,14,.72))!important;color:#ffd29b!important}

@media(min-width:1260px){
  html[data-sismed-theme] .conversion-hub{
    width:min(100%,380px)!important;
    max-width:380px!important;
    margin:18px 0 0 auto!important;
    padding:16px!important;
    border-radius:22px!important;
  }
  html[data-sismed-theme] .conversion-hub-head{display:block!important;margin-bottom:12px!important}
  html[data-sismed-theme] .conversion-hub h2{font-size:1.18rem!important;margin:4px 0 4px!important}
  html[data-sismed-theme] .conversion-hub-head p{font-size:.8rem!important;line-height:1.38!important}
  html[data-sismed-theme] .conversion-account-cta{width:100%;margin-top:12px!important}
  html[data-sismed-theme] .conversion-grid{display:flex!important;flex-direction:column!important;gap:10px!important}
  html[data-sismed-theme] .conversion-card,
  html[data-sismed-theme] .conversion-card-featured{
    min-height:auto!important;
    padding:14px!important;
    border-radius:17px!important;
    gap:10px!important;
    grid-column:auto!important;
  }
  html[data-sismed-theme] .conversion-icon{width:42px!important;height:42px!important;border-radius:13px!important}
  html[data-sismed-theme] .conversion-copy strong{font-size:.9rem!important}
  html[data-sismed-theme] .conversion-copy small{
    margin-top:4px!important;
    font-size:.73rem!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  html[data-sismed-theme] .conversion-action{padding-top:10px!important;font-size:.74rem!important}
}


/* === Dashboard inicial estilo ecossistema (2026-08-02) === */
html[data-sismed-theme] .saaS-dashboard.has-modern-home > .saaS-unit-card,
html[data-sismed-theme] .saaS-dashboard.has-modern-home > .saaS-default-unit-alert,
html[data-sismed-theme] .saaS-dashboard.has-modern-home > .saaS-hero,
html[data-sismed-theme] .saaS-dashboard.has-modern-home > .sismed-dashboard-highlights,
html[data-sismed-theme] .saaS-dashboard.has-modern-home > .saaS-section-title-row,
html[data-sismed-theme] .saaS-dashboard.has-modern-home > #quick-actions-grid,
html[data-sismed-theme] .saaS-dashboard.has-modern-home > .visitor-quick-cta,
html[data-sismed-theme] .saaS-dashboard.has-modern-home > .conversion-hub,
html[data-sismed-theme] .saaS-dashboard.has-modern-home > .saaS-bottom-grid{display:none!important}
html[data-sismed-theme] .sismed-home-dashboard{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}
html[data-sismed-theme] .sismed-home-main,
html[data-sismed-theme] .sismed-home-sidebar{display:grid;gap:18px}
html[data-sismed-theme] .sismed-home-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px}
html[data-sismed-theme] .sismed-home-heading h1{margin:0;font-size:2rem;line-height:1.05;color:var(--sm-text)}
html[data-sismed-theme] .sismed-home-heading p{margin:.45rem 0 0;color:var(--sm-muted);font-size:.98rem}
html[data-sismed-theme] .sismed-home-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex:1}
html[data-sismed-theme] .sismed-home-search{position:relative;display:flex;align-items:center;gap:12px;min-width:320px;max-width:390px;flex:1;padding:0 14px;height:56px;border-radius:18px;background:var(--sm-surface);border:1px solid var(--sm-line);box-shadow:var(--sm-shadow-soft)}
html[data-sismed-theme] .sismed-home-search i{color:var(--sm-muted);font-size:1rem}
html[data-sismed-theme] .sismed-home-search input{flex:1;border:0!important;background:transparent!important;color:var(--sm-text)!important;height:100%;padding:0!important;box-shadow:none!important}
html[data-sismed-theme] .sismed-home-search input:focus{outline:none!important}
html[data-sismed-theme] .sismed-home-shortcut{display:inline-flex;align-items:center;justify-content:center;padding:0 10px;height:30px;border-radius:10px;background:var(--sm-surface-2);border:1px solid var(--sm-line);color:var(--sm-muted);font-size:.78rem;font-weight:700;white-space:nowrap}
html[data-sismed-theme] .sismed-home-new-action{display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 22px;border:0;border-radius:18px;background:linear-gradient(135deg,#4d86ff,#9747ff);color:#fff;font-size:1rem;font-weight:800;box-shadow:0 18px 38px rgba(91,70,255,.28);cursor:pointer}
html[data-sismed-theme] .sismed-home-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
html[data-sismed-theme] .sismed-stat-card{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:14px;padding:18px;border:1px solid var(--sm-line);border-radius:20px;background:var(--sm-surface);box-shadow:var(--sm-shadow-soft);cursor:pointer;text-align:left}
html[data-sismed-theme] .sismed-stat-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:15px;background:var(--sm-surface-2);font-size:1rem;color:#6b6bf8}
html[data-sismed-theme] .sismed-stat-card.accent-cyan .sismed-stat-icon{color:#1ab0e8;background:rgba(26,176,232,.12)}
html[data-sismed-theme] .sismed-stat-card.accent-lilac .sismed-stat-icon{color:#8d67ff;background:rgba(141,103,255,.12)}
html[data-sismed-theme] .sismed-stat-card.accent-violet .sismed-stat-icon{color:#7b61ff;background:rgba(123,97,255,.12)}
html[data-sismed-theme] .sismed-stat-copy{display:grid;gap:2px}
html[data-sismed-theme] .sismed-stat-copy small{font-size:.88rem;color:var(--sm-muted);font-weight:700}
html[data-sismed-theme] .sismed-stat-copy strong{font-size:2.05rem;line-height:1;color:var(--sm-text)}
html[data-sismed-theme] .sismed-stat-copy em{font-style:normal;color:var(--sm-muted);font-size:.84rem}
html[data-sismed-theme] .sismed-stat-more{align-self:flex-start;color:var(--sm-muted)}
html[data-sismed-theme] .sismed-home-hero-card{display:grid;grid-template-columns:minmax(0,1fr) 45%;align-items:center;gap:18px;min-height:146px;padding:28px;border-radius:24px;border:1px solid var(--sm-line);background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(249,250,255,.98));box-shadow:var(--sm-shadow-soft);overflow:hidden;position:relative}
html[data-sismed-theme] .sismed-home-hero-card h2{margin:0;color:var(--sm-text);font-size:2rem;line-height:1.08}
html[data-sismed-theme] .sismed-home-hero-card h2 span{background:linear-gradient(135deg,#4e83ff,#8e5cff);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-sismed-theme] .sismed-home-hero-card p{margin:.55rem 0 .2rem;color:var(--sm-text);font-size:1.08rem}
html[data-sismed-theme] .sismed-home-hero-card small{display:block;max-width:600px;font-size:.92rem;color:var(--sm-muted);line-height:1.5}
html[data-sismed-theme] .sismed-home-hero-art{justify-self:stretch;height:100%;min-height:90px;border-radius:18px;background:radial-gradient(circle at 60% 50%, rgba(141,92,255,.22), transparent 28%), radial-gradient(circle at 52% 52%, rgba(101,116,255,.50) 0 2px, transparent 3px) 0 0/16px 16px, radial-gradient(circle at 52% 52%, rgba(101,116,255,.42) 0 2px, transparent 3px) 8px 8px/16px 16px;opacity:.95;position:relative}
html[data-sismed-theme] .sismed-home-hero-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg, transparent 8%, rgba(130,80,255,.08) 45%, rgba(63,145,255,.22) 100%)}
html[data-sismed-theme] .sismed-home-module-board,
html[data-sismed-theme] .sismed-home-side-card,
html[data-sismed-theme] .sismed-home-security-banner{border:1px solid var(--sm-line);background:var(--sm-surface);box-shadow:var(--sm-shadow-soft)}
html[data-sismed-theme] .sismed-home-module-board{padding:18px;border-radius:24px}
html[data-sismed-theme] .sismed-home-board-head,
html[data-sismed-theme] .sismed-home-side-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
html[data-sismed-theme] .sismed-home-board-head h3,
html[data-sismed-theme] .sismed-home-side-head h3{margin:0;color:var(--sm-text);font-size:1.2rem}
html[data-sismed-theme] .sismed-home-board-head p{margin:.28rem 0 0;color:var(--sm-muted);font-size:.9rem}
html[data-sismed-theme] .sismed-home-secondary-btn,
html[data-sismed-theme] .sismed-home-side-link{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 14px;border-radius:12px;border:1px solid var(--sm-line);background:var(--sm-surface-2);color:var(--sm-text);font-weight:700;cursor:pointer;white-space:nowrap}
html[data-sismed-theme] .sismed-home-module-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:14px}
html[data-sismed-theme] .sismed-home-module-card{display:grid;align-content:start;gap:12px;min-height:148px;padding:18px;border-radius:18px;border:1px solid var(--sm-line);background:linear-gradient(180deg,var(--sm-surface),var(--sm-surface-2));color:var(--sm-text);text-align:left;cursor:pointer}
html[data-sismed-theme] .sismed-home-module-card strong{font-size:1.18rem;line-height:1.1}
html[data-sismed-theme] .sismed-home-module-card small{font-size:.86rem;line-height:1.45;color:var(--sm-muted)}
html[data-sismed-theme] .sismed-home-module-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,rgba(92,106,255,.12),rgba(164,78,255,.14));color:#7f63ff;font-size:1.4rem}
html[data-sismed-theme] .sismed-home-sidebar{grid-template-columns:1fr}
html[data-sismed-theme] .sismed-home-side-card{padding:18px;border-radius:24px}
html[data-sismed-theme] .sismed-home-activity-list{display:grid;gap:10px;margin-top:14px}
html[data-sismed-theme] .sismed-home-activity-item{display:grid;grid-template-columns:38px 1fr;align-items:start;gap:12px;width:100%;padding:0 0 12px;border:0;border-bottom:1px solid var(--sm-line);background:transparent;color:var(--sm-text);text-align:left;cursor:pointer}
html[data-sismed-theme] .sismed-home-activity-item:last-child{padding-bottom:0;border-bottom:0}
html[data-sismed-theme] .sismed-home-activity-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:var(--sm-surface-2);color:#7e68ff;font-size:.98rem}
html[data-sismed-theme] .sismed-home-activity-copy strong{display:block;font-size:.92rem;line-height:1.35;color:var(--sm-text)}
html[data-sismed-theme] .sismed-home-activity-copy small{display:block;margin-top:4px;color:var(--sm-muted);font-size:.8rem;line-height:1.35}
html[data-sismed-theme] .sismed-home-shortcuts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
html[data-sismed-theme] .sismed-home-shortcut-card{display:grid;grid-template-columns:16px 1fr;gap:10px;align-items:center;min-height:52px;padding:12px;border-radius:14px;border:1px solid var(--sm-line);background:var(--sm-surface-2);color:var(--sm-text);text-align:left;cursor:pointer}
html[data-sismed-theme] .sismed-home-shortcut-card i{color:#8a66ff}
html[data-sismed-theme] .sismed-home-shortcut-card span{font-size:.86rem;font-weight:700;line-height:1.25}
html[data-sismed-theme] .sismed-home-news-card{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start;width:100%;margin-top:14px;padding:14px;border:1px solid var(--sm-line);border-radius:18px;background:linear-gradient(135deg,rgba(138,102,255,.06),rgba(67,167,255,.08));color:var(--sm-text);text-align:left;cursor:pointer}
html[data-sismed-theme] .sismed-home-news-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.72);color:#7b61ff}
html[data-sismed-theme] .sismed-home-news-copy em{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:linear-gradient(135deg,#4d86ff,#9747ff);color:#fff;font-size:.72rem;font-weight:800;font-style:normal}
html[data-sismed-theme] .sismed-home-news-copy strong{display:block;margin-top:8px;font-size:.95rem;color:var(--sm-text);line-height:1.35}
html[data-sismed-theme] .sismed-home-news-copy small{display:block;margin-top:4px;font-size:.82rem;color:var(--sm-muted);line-height:1.4}
html[data-sismed-theme] .sismed-home-security-banner{display:grid;grid-template-columns:44px 1fr auto 64px;align-items:center;gap:18px;padding:18px 20px;border-radius:24px;color:var(--sm-text);text-align:left;cursor:pointer;overflow:hidden;position:relative;background:linear-gradient(90deg,var(--sm-surface),rgba(110,89,255,.08) 72%,rgba(92,151,255,.18))}
html[data-sismed-theme] .sismed-home-security-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;background:rgba(92,106,255,.12);color:#7c5fff}
html[data-sismed-theme] .sismed-home-security-copy strong{display:block;font-size:1.02rem}
html[data-sismed-theme] .sismed-home-security-copy small{display:block;margin-top:4px;color:var(--sm-muted);font-size:.88rem}
html[data-sismed-theme] .sismed-home-security-action{font-weight:800;color:#5466ff;display:inline-flex;align-items:center;gap:6px}
html[data-sismed-theme] .sismed-home-security-lock{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#d7d7ff,#8d75ff);color:#fff;font-size:1.3rem;box-shadow:0 12px 30px rgba(103,77,255,.25)}
html[data-sismed-theme="dark"] .sismed-home-search,
html[data-sismed-theme="midnight"] .sismed-home-search,
html[data-sismed-theme="dark"] .sismed-stat-card,
html[data-sismed-theme="midnight"] .sismed-stat-card,
html[data-sismed-theme="dark"] .sismed-home-module-board,
html[data-sismed-theme="midnight"] .sismed-home-module-board,
html[data-sismed-theme="dark"] .sismed-home-side-card,
html[data-sismed-theme="midnight"] .sismed-home-side-card,
html[data-sismed-theme="dark"] .sismed-home-secondary-btn,
html[data-sismed-theme="midnight"] .sismed-home-secondary-btn,
html[data-sismed-theme="dark"] .sismed-home-side-link,
html[data-sismed-theme="midnight"] .sismed-home-side-link,
html[data-sismed-theme="dark"] .sismed-home-shortcut-card,
html[data-sismed-theme="midnight"] .sismed-home-shortcut-card,
html[data-sismed-theme="dark"] .sismed-home-activity-icon,
html[data-sismed-theme="midnight"] .sismed-home-activity-icon,
html[data-sismed-theme="dark"] .sismed-home-news-icon,
html[data-sismed-theme="midnight"] .sismed-home-news-icon{background:var(--sm-surface-2)}
html[data-sismed-theme="dark"] .sismed-home-hero-card,
html[data-sismed-theme="midnight"] .sismed-home-hero-card{background:linear-gradient(135deg,rgba(12,18,40,.96),rgba(9,13,32,.96));border-color:rgba(113,94,255,.20)}
html[data-sismed-theme="dark"] .sismed-home-module-card,
html[data-sismed-theme="midnight"] .sismed-home-module-card{background:linear-gradient(180deg,rgba(13,20,45,.96),rgba(10,16,37,.96))}
html[data-sismed-theme="dark"] .sismed-home-news-card,
html[data-sismed-theme="midnight"] .sismed-home-news-card{background:linear-gradient(135deg,rgba(92,106,255,.10),rgba(67,167,255,.08))}
html[data-sismed-theme="dark"] .sismed-home-security-banner,
html[data-sismed-theme="midnight"] .sismed-home-security-banner{background:linear-gradient(90deg,rgba(13,20,45,.96),rgba(21,21,70,.98) 72%,rgba(66,56,165,.95))}
html[data-sismed-theme="dark"] .sismed-home-shortcut,
html[data-sismed-theme="midnight"] .sismed-home-shortcut{background:rgba(255,255,255,.04)}
html[data-sismed-theme="dark"] .sismed-home-new-action,
html[data-sismed-theme="midnight"] .sismed-home-new-action{box-shadow:0 14px 34px rgba(70,63,193,.32)}
html[data-sismed-theme] .sismed-home-module-card:hover,
html[data-sismed-theme] .sismed-stat-card:hover,
html[data-sismed-theme] .sismed-home-side-link:hover,
html[data-sismed-theme] .sismed-home-secondary-btn:hover,
html[data-sismed-theme] .sismed-home-shortcut-card:hover,
html[data-sismed-theme] .sismed-home-news-card:hover,
html[data-sismed-theme] .sismed-home-activity-item:hover,
html[data-sismed-theme] .sismed-home-security-banner:hover{border-color:rgba(99,79,255,.34)!important;transform:translateY(-1px)}
html[data-sismed-theme] .sismed-home-module-card,
html[data-sismed-theme] .sismed-stat-card,
html[data-sismed-theme] .sismed-home-shortcut-card,
html[data-sismed-theme] .sismed-home-news-card,
html[data-sismed-theme] .sismed-home-security-banner,
html[data-sismed-theme] .sismed-home-side-link,
html[data-sismed-theme] .sismed-home-secondary-btn{transition:all .18s ease}
@media(max-width:1360px){html[data-sismed-theme] .sismed-home-dashboard{grid-template-columns:minmax(0,1fr)}html[data-sismed-theme] .sismed-home-sidebar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1180px){html[data-sismed-theme] .sismed-home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-sismed-theme] .sismed-home-module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-sismed-theme] .sismed-home-sidebar{grid-template-columns:1fr}html[data-sismed-theme] .sismed-home-hero-card{grid-template-columns:1fr}}
@media(max-width:820px){html[data-sismed-theme] .sismed-home-topbar{flex-direction:column;align-items:stretch}html[data-sismed-theme] .sismed-home-top-actions{width:100%;flex-direction:column}html[data-sismed-theme] .sismed-home-search{min-width:0;max-width:none;width:100%}html[data-sismed-theme] .sismed-home-new-action{width:100%;justify-content:center}html[data-sismed-theme] .sismed-home-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-sismed-theme] .sismed-home-security-banner{grid-template-columns:44px 1fr;gap:14px}html[data-sismed-theme] .sismed-home-security-action,html[data-sismed-theme] .sismed-home-security-lock{grid-column:2}}
@media(max-width:560px){html[data-sismed-theme] .sismed-home-stats{grid-template-columns:1fr}html[data-sismed-theme] .sismed-home-module-grid,html[data-sismed-theme] .sismed-home-shortcuts-grid{grid-template-columns:1fr}html[data-sismed-theme] .sismed-home-hero-card{padding:22px}html[data-sismed-theme] .sismed-home-heading h1{font-size:1.55rem}html[data-sismed-theme] .sismed-stat-copy strong{font-size:1.8rem}}

/* ===== Dashboard refinado + busca global + grade padrão de 8 módulos ===== */
html[data-sismed-theme] .sismed-home-top-actions{position:relative;max-width:560px;width:100%}
html[data-sismed-theme] .sismed-home-search-wrap{position:relative;width:100%;max-width:560px;margin-left:auto}
html[data-sismed-theme] .sismed-home-search{min-width:0;max-width:none;width:100%}
html[data-sismed-theme] .sismed-home-search-clear{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--sm-muted);cursor:pointer}
html[data-sismed-theme] .sismed-home-search-clear:hover{background:var(--sm-surface-2);color:var(--sm-text)}
html[data-sismed-theme] .sismed-home-search-results{position:absolute;z-index:120;top:calc(100% + 10px);left:0;right:0;max-height:min(460px,62vh);overflow-y:auto;padding:9px;border:1px solid var(--sm-line);border-radius:18px;background:var(--sm-surface);box-shadow:var(--sm-shadow)}
html[data-sismed-theme] .sismed-home-search-result{display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;padding:11px 12px;border:0;border-radius:13px;background:transparent;color:var(--sm-text);text-align:left;cursor:pointer}
html[data-sismed-theme] .sismed-home-search-result:hover{background:linear-gradient(135deg,rgba(61,121,255,.11),rgba(151,54,255,.09))}
html[data-sismed-theme] .sismed-home-search-result-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,rgba(68,106,255,.16),rgba(143,55,255,.14));color:var(--sm-primary)}
html[data-sismed-theme] .sismed-home-search-result strong{display:block;font-size:.88rem;line-height:1.25}
html[data-sismed-theme] .sismed-home-search-result small{display:block;margin-top:3px;color:var(--sm-muted);font-size:.74rem;line-height:1.3}
html[data-sismed-theme] .sismed-home-search-result-arrow{color:var(--sm-muted)}
html[data-sismed-theme] .sismed-home-search-empty{padding:18px;text-align:center;color:var(--sm-muted);font-size:.84rem}
html[data-sismed-theme="dark"] .sismed-home-search-results,html[data-sismed-theme="midnight"] .sismed-home-search-results{background:rgba(7,12,30,.98);border-color:rgba(102,92,190,.28);backdrop-filter:blur(20px)}

html[data-sismed-theme] .sismed-home-module-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-sismed-theme] .sismed-home-module-card{min-height:156px}
html[data-sismed-theme] .sismed-home-shortcuts-empty{grid-column:1/-1;padding:13px;border:1px dashed var(--sm-line);border-radius:13px;color:var(--sm-muted);text-align:center;font-size:.78rem}

body:has(#sismed-home-dashboard):not(.quick-actions-modal-open),html:has(#sismed-home-dashboard):not(.quick-actions-modal-open){overflow-y:auto!important}
#quick-actions-backdrop:not(.show){pointer-events:none!important;visibility:hidden!important}
#quick-actions-backdrop.show{visibility:visible!important}

@media(max-width:1180px){html[data-sismed-theme] .sismed-home-module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){html[data-sismed-theme] .sismed-home-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-sismed-theme] .sismed-home-top-actions{max-width:none}}
@media(max-width:560px){html[data-sismed-theme] .sismed-home-module-grid{grid-template-columns:1fr}}

/* ===== Receitas Médicas — coerência visual Clear/Dark/Midnight ===== */
html[data-sismed-theme] body.sismed-receitas-premium{background:transparent!important;color:var(--sm-text)!important;padding:12px!important}
html[data-sismed-theme] body.sismed-receitas-premium .section-title{display:flex;align-items:center;gap:10px;padding:14px 18px!important;margin:0 0 12px!important;border:1px solid var(--sm-line)!important;border-radius:18px!important;background:var(--sm-surface)!important;color:var(--sm-text)!important;box-shadow:var(--sm-shadow-soft)!important}
html[data-sismed-theme] body.sismed-receitas-premium .section-title:after{display:none!important}
html[data-sismed-theme] body.sismed-receitas-premium .info-item.receita-shell{padding:16px!important;border:1px solid var(--sm-line)!important;border-radius:22px!important;background:var(--sm-surface)!important;color:var(--sm-text)!important;box-shadow:var(--sm-shadow-soft)!important}
html[data-sismed-theme] body.sismed-receitas-premium :is(.rc-drawer,.rc-drawer[open],.rc-drawer-body,.rc-drawer-content,.receita-top-grid,.print-models,.receitas-history-wrap,.receitas-history-card,.receita-info-item,.receita-actions,.main-actions--below-textarea){border-color:var(--sm-line)!important;color:var(--sm-text)!important}
html[data-sismed-theme] body.sismed-receitas-premium :is(.rc-drawer,.rc-drawer-body,.rc-drawer-content,.print-models,.receitas-history-wrap,.receitas-history-card){background:var(--sm-surface-2)!important}
html[data-sismed-theme] body.sismed-receitas-premium :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.receitas-combo-input,.receitas-search-input){background:var(--sm-surface-2)!important;color:var(--sm-text)!important;border-color:var(--sm-line)!important}
html[data-sismed-theme] body.sismed-receitas-premium textarea#receita-texto{min-height:clamp(300px,52vh,620px)!important;border-radius:18px!important;padding:18px!important;line-height:1.55!important}
html[data-sismed-theme] body.sismed-receitas-premium :is(label,.form-label,.small-note,.receitas-search-note,.rc-summary-left small,.receita-info-item small){color:var(--sm-muted)!important}
html[data-sismed-theme] body.sismed-receitas-premium .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:42px!important;border-radius:13px!important;padding:0 15px!important;font-weight:800!important;box-shadow:none!important}
html[data-sismed-theme] body.sismed-receitas-premium .btn-primary,html[data-sismed-theme] body.sismed-receitas-premium .btn-ia-import{background:linear-gradient(135deg,#397cff,#983fff)!important;border-color:transparent!important;color:#fff!important}
html[data-sismed-theme] body.sismed-receitas-premium .btn-secondary{background:var(--sm-surface-2)!important;border-color:var(--sm-line)!important;color:var(--sm-text)!important}
html[data-sismed-theme] body.sismed-receitas-premium .btn-success{background:linear-gradient(135deg,#0f9f78,#21c394)!important;border-color:transparent!important;color:#fff!important}
html[data-sismed-theme] body.sismed-receitas-premium .btn-warning{background:linear-gradient(135deg,#f59e0b,#f97316)!important;border-color:transparent!important;color:#fff!important}
html[data-sismed-theme] body.sismed-receitas-premium .btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626)!important;border-color:transparent!important;color:#fff!important}
html[data-sismed-theme] body.sismed-receitas-premium :is(.chk,.via-quick-btn,.top-receita-btn,.receita-combo-option){background:var(--sm-surface)!important;color:var(--sm-text)!important;border-color:var(--sm-line)!important}
html[data-sismed-theme] body.sismed-receitas-premium :is(.chk:hover,.via-quick-btn:hover,.top-receita-btn:hover,.receita-combo-option:hover){border-color:rgba(99,79,255,.45)!important;background:linear-gradient(135deg,rgba(60,121,255,.10),rgba(155,50,255,.08))!important}
html[data-sismed-theme="dark"] body.sismed-receitas-premium .section-title,html[data-sismed-theme="midnight"] body.sismed-receitas-premium .section-title,html[data-sismed-theme="dark"] body.sismed-receitas-premium .info-item.receita-shell,html[data-sismed-theme="midnight"] body.sismed-receitas-premium .info-item.receita-shell{background:linear-gradient(145deg,rgba(10,16,36,.98),rgba(7,12,30,.97))!important;border-color:rgba(91,96,171,.28)!important}
html[data-sismed-theme="dark"] body.sismed-receitas-premium :is(.rc-drawer,.rc-drawer-body,.rc-drawer-content,.print-models,.receitas-history-wrap,.receitas-history-card,.chk,.top-receita-btn,.receita-combo-option),html[data-sismed-theme="midnight"] body.sismed-receitas-premium :is(.rc-drawer,.rc-drawer-body,.rc-drawer-content,.print-models,.receitas-history-wrap,.receitas-history-card,.chk,.top-receita-btn,.receita-combo-option){background:rgba(12,20,44,.94)!important;border-color:rgba(91,96,171,.25)!important}
@media(max-width:720px){html[data-sismed-theme] body.sismed-receitas-premium{padding:8px!important}html[data-sismed-theme] body.sismed-receitas-premium .info-item.receita-shell{padding:10px!important;border-radius:18px!important}html[data-sismed-theme] body.sismed-receitas-premium .main-actions--below-textarea{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-sismed-theme] body.sismed-receitas-premium .main-actions--below-textarea .btn{width:100%!important}}

/* ===== PATCH VISUAL 2026-08-02 H — perfil, paciente, busca, ações e Top 5 ===== */
html[data-sismed-theme] .user-card,
html[data-sismed-theme] .user-card-main,
html[data-sismed-theme] .header-right .user-card{
  background:var(--sm-surface-2)!important;
  color:var(--sm-text)!important;
  border-color:var(--sm-line)!important;
}
html[data-sismed-theme="dark"] .user-card,
html[data-sismed-theme="midnight"] .user-card{
  background:linear-gradient(145deg,rgba(12,20,44,.96),rgba(7,12,30,.98))!important;
  border:1px solid rgba(95,91,180,.28)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}
html[data-sismed-theme] .user-card .user-name{color:var(--sm-text)!important}
html[data-sismed-theme] .user-card .user-perfil{color:var(--sm-muted)!important}

html[data-sismed-theme] .patient-section{
  background:var(--sm-bg)!important;
  border-bottom:1px solid var(--sm-line)!important;
  padding:.5rem .9rem!important;
}
html[data-sismed-theme] .patient-card{
  background:var(--sm-surface)!important;
  color:var(--sm-text)!important;
  border:1px solid var(--sm-line)!important;
  box-shadow:var(--sm-shadow-soft)!important;
  border-radius:16px!important;
}
html[data-sismed-theme="dark"] .patient-card,
html[data-sismed-theme="midnight"] .patient-card{
  background:linear-gradient(145deg,rgba(10,17,38,.98),rgba(7,12,30,.98))!important;
  border-color:rgba(91,96,171,.28)!important;
}
html[data-sismed-theme] .patient-global input#patient-name{
  background:transparent!important;
  border:0!important;
  color:var(--sm-text)!important;
  box-shadow:none!important;
}
html[data-sismed-theme] .patient-hint{
  background:var(--sm-surface-2)!important;
  color:var(--sm-muted)!important;
  border:1px solid var(--sm-line)!important;
}

/* Busca única, sem campo interno duplicado */
html[data-sismed-theme] .sismed-home-search-wrap{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-sismed-theme] label.sismed-home-search{
  background:var(--sm-surface)!important;
  border:1px solid var(--sm-line)!important;
  box-shadow:var(--sm-shadow-soft)!important;
  padding:0 12px!important;
}
html[data-sismed-theme] label.sismed-home-search input#sismed-home-search-input{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
  color:var(--sm-text)!important;
}
html[data-sismed-theme] label.sismed-home-search input#sismed-home-search-input:focus{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-sismed-theme="dark"] label.sismed-home-search,
html[data-sismed-theme="midnight"] label.sismed-home-search{
  background:linear-gradient(145deg,rgba(10,17,38,.96),rgba(7,12,30,.98))!important;
  border-color:rgba(91,96,171,.28)!important;
}

/* Área dos botões da receita sem faixa branca */
html[data-sismed-theme] body.sismed-receitas-premium .receita-conteudo-area,
html[data-sismed-theme] body.sismed-receitas-premium .main-actions--below-textarea,
html[data-sismed-theme] body.sismed-receitas-premium .receita-actions{
  background:var(--sm-surface)!important;
  color:var(--sm-text)!important;
  border-color:var(--sm-line)!important;
}
html[data-sismed-theme] body.sismed-receitas-premium .main-actions--below-textarea{
  margin-top:10px!important;
  padding:10px 0 0!important;
  border-top:1px solid var(--sm-line)!important;
}
html[data-sismed-theme="dark"] body.sismed-receitas-premium .receita-conteudo-area,
html[data-sismed-theme="midnight"] body.sismed-receitas-premium .receita-conteudo-area,
html[data-sismed-theme="dark"] body.sismed-receitas-premium .main-actions--below-textarea,
html[data-sismed-theme="midnight"] body.sismed-receitas-premium .main-actions--below-textarea{
  background:linear-gradient(145deg,rgba(10,16,36,.98),rgba(7,12,30,.97))!important;
}

/* Top 5 em destaque, com a mesma linguagem do seletor de impressão */
html[data-sismed-theme] body.sismed-receitas-premium .rc-drawer--top5{
  background:var(--sm-surface-2)!important;
  border:1px solid var(--sm-line)!important;
  border-radius:18px!important;
  padding:6px!important;
}
html[data-sismed-theme] body.sismed-receitas-premium .rc-drawer--top5 > summary{
  background:transparent!important;
  color:var(--sm-text)!important;
  border:0!important;
  min-height:38px!important;
  padding:7px 10px!important;
}
html[data-sismed-theme] body.sismed-receitas-premium .rc-drawer--top5 .rc-summary-icon{
  background:linear-gradient(135deg,rgba(58,124,255,.16),rgba(152,63,255,.16))!important;
  color:var(--sm-primary)!important;
  border:1px solid rgba(99,79,255,.24)!important;
}
html[data-sismed-theme] body.sismed-receitas-premium .rc-drawer--top5 .top-receitas-body{
  background:transparent!important;
  border:0!important;
  padding:4px 6px 6px!important;
}
html[data-sismed-theme] body.sismed-receitas-premium .top-receita-btn{
  background:var(--sm-surface)!important;
  color:var(--sm-text)!important;
  border:1px solid var(--sm-line)!important;
  box-shadow:0 4px 12px rgba(26,35,70,.06)!important;
}
html[data-sismed-theme] body.sismed-receitas-premium .top-receita-btn:hover{
  background:linear-gradient(135deg,rgba(58,124,255,.11),rgba(152,63,255,.10))!important;
  border-color:rgba(99,79,255,.42)!important;
  transform:translateY(-1px)!important;
}
html[data-sismed-theme] body.sismed-receitas-premium .top-receita-rank{
  background:linear-gradient(135deg,#397cff,#983fff)!important;
  color:#fff!important;
  border:0!important;
}
html[data-sismed-theme] body.sismed-receitas-premium .top-receita-name{color:var(--sm-text)!important}
html[data-sismed-theme] body.sismed-receitas-premium .top-receita-model{color:var(--sm-muted)!important}
html[data-sismed-theme="dark"] body.sismed-receitas-premium .rc-drawer--top5,
html[data-sismed-theme="midnight"] body.sismed-receitas-premium .rc-drawer--top5{
  background:linear-gradient(145deg,rgba(12,20,44,.94),rgba(8,14,34,.96))!important;
  border-color:rgba(91,96,171,.27)!important;
}
html[data-sismed-theme="dark"] body.sismed-receitas-premium .top-receita-btn,
html[data-sismed-theme="midnight"] body.sismed-receitas-premium .top-receita-btn{
  background:rgba(8,15,35,.96)!important;
  border-color:rgba(91,96,171,.28)!important;
}

@media(max-width:760px){
  html[data-sismed-theme] .patient-section{padding:.4rem .55rem!important}
  html[data-sismed-theme] .patient-card{padding:.65rem .75rem!important}
  html[data-sismed-theme] body.sismed-receitas-premium .main-actions--below-textarea{padding-top:8px!important}
}

/* ===== Dashboard compacto + seletor de origem + confirmação de segurança ===== */
html[data-sismed-theme] .sismed-home-origin-zone{
  position:relative;
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
html[data-sismed-theme] .sismed-home-origin-zone .sismed-home-hero-art{
  position:absolute;
  inset:0;
  min-height:0;
  height:100%;
}
html[data-sismed-theme] .sismed-home-origin-selector{
  position:relative;
  z-index:2;
  width:min(100%,380px);
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 34px;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-radius:18px;
  border:1px solid rgba(104,92,255,.28);
  background:color-mix(in srgb,var(--sm-surface) 88%, transparent);
  color:var(--sm-text);
  box-shadow:0 16px 34px rgba(38,34,104,.16);
  backdrop-filter:blur(18px);
  cursor:pointer;
  text-align:left;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
html[data-sismed-theme] .sismed-home-origin-selector:hover{
  transform:translateY(-2px);
  border-color:rgba(104,92,255,.52);
  box-shadow:0 20px 38px rgba(38,34,104,.24);
}
html[data-sismed-theme] .sismed-home-origin-icon{
  width:44px;height:44px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(79,116,255,.18),rgba(149,68,255,.20));
  color:#765dff;
}
html[data-sismed-theme] .sismed-home-origin-copy{display:grid;gap:2px;min-width:0}
html[data-sismed-theme] .sismed-home-origin-copy small{
  font-size:.62rem;font-weight:900;letter-spacing:.08em;color:var(--sm-muted)
}
html[data-sismed-theme] .sismed-home-origin-copy strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:.93rem;line-height:1.2;color:var(--sm-text)
}
html[data-sismed-theme] .sismed-home-origin-copy em{
  font-style:normal;font-size:.7rem;color:var(--sm-muted)
}
html[data-sismed-theme] .sismed-home-origin-change{
  width:34px;height:34px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  background:var(--sm-surface-2);color:var(--sm-primary)
}
html[data-sismed-theme="dark"] .sismed-home-origin-selector,
html[data-sismed-theme="midnight"] .sismed-home-origin-selector{
  background:rgba(8,14,35,.78);
  border-color:rgba(116,94,255,.34);
}

html[data-sismed-theme] .sismed-home-security-banner[hidden]{display:none!important}
html[data-sismed-theme] .sismed-home-security-banner{
  grid-template-columns:42px minmax(0,1fr) auto!important;
  gap:14px!important;
  padding:14px 16px!important;
  min-height:72px;
  transition:opacity .18s ease,transform .18s ease;
}
html[data-sismed-theme] .sismed-home-security-banner.is-confirmed{
  opacity:0;transform:translateY(6px)
}
html[data-sismed-theme] .sismed-home-security-actions{
  display:flex;align-items:center;gap:8px;justify-content:flex-end
}
html[data-sismed-theme] .sismed-home-security-details,
html[data-sismed-theme] .sismed-home-security-confirm{
  min-height:36px;padding:0 13px;border-radius:11px;font-weight:800;cursor:pointer
}
html[data-sismed-theme] .sismed-home-security-details{
  border:1px solid var(--sm-line);background:var(--sm-surface-2);color:var(--sm-text)
}
html[data-sismed-theme] .sismed-home-security-confirm{
  border:0;background:linear-gradient(135deg,#3d7cff,#8f45ff);color:#fff;
  display:inline-flex;align-items:center;gap:7px
}

/* Compactação proporcional em desktops para manter 8 módulos encaixados */
@media (min-width:1181px){
  html[data-sismed-theme] .sismed-home-dashboard{gap:12px;grid-template-columns:minmax(0,1fr) 260px}
  html[data-sismed-theme] .sismed-home-main,
  html[data-sismed-theme] .sismed-home-sidebar{gap:12px}
  html[data-sismed-theme] .sismed-home-topbar{gap:12px}
  html[data-sismed-theme] .sismed-home-heading h1{font-size:1.72rem}
  html[data-sismed-theme] .sismed-home-heading p{margin-top:.28rem;font-size:.82rem}
  html[data-sismed-theme] .sismed-home-search{height:46px;border-radius:15px}
  html[data-sismed-theme] .sismed-home-stats{gap:10px}
  html[data-sismed-theme] .sismed-stat-card{padding:12px 13px;border-radius:16px;gap:10px;min-height:82px}
  html[data-sismed-theme] .sismed-stat-icon{width:38px;height:38px;border-radius:12px}
  html[data-sismed-theme] .sismed-stat-copy small{font-size:.75rem}
  html[data-sismed-theme] .sismed-stat-copy strong{font-size:1.62rem}
  html[data-sismed-theme] .sismed-stat-copy em{font-size:.72rem}
  html[data-sismed-theme] .sismed-home-hero-card{
    min-height:112px;padding:18px 20px;border-radius:20px;grid-template-columns:minmax(0,1fr) 48%;gap:14px
  }
  html[data-sismed-theme] .sismed-home-hero-card h2{font-size:1.65rem}
  html[data-sismed-theme] .sismed-home-hero-card p{font-size:.93rem;margin:.36rem 0 .16rem}
  html[data-sismed-theme] .sismed-home-hero-card small{font-size:.78rem;line-height:1.35}
  html[data-sismed-theme] .sismed-home-origin-zone{min-height:78px}
  html[data-sismed-theme] .sismed-home-origin-selector{padding:10px 11px;grid-template-columns:38px minmax(0,1fr) 30px;border-radius:15px}
  html[data-sismed-theme] .sismed-home-origin-icon{width:38px;height:38px;border-radius:12px}
  html[data-sismed-theme] .sismed-home-origin-change{width:30px;height:30px;border-radius:9px}
  html[data-sismed-theme] .sismed-home-module-board{padding:13px 14px;border-radius:20px}
  html[data-sismed-theme] .sismed-home-board-head h3,
  html[data-sismed-theme] .sismed-home-side-head h3{font-size:1rem}
  html[data-sismed-theme] .sismed-home-board-head p{font-size:.76rem;margin-top:.18rem}
  html[data-sismed-theme] .sismed-home-secondary-btn,
  html[data-sismed-theme] .sismed-home-side-link{height:32px;padding:0 11px;border-radius:10px;font-size:.72rem}
  html[data-sismed-theme] .sismed-home-module-grid{gap:10px;margin-top:10px}
  html[data-sismed-theme] .sismed-home-module-card{
    min-height:108px!important;padding:12px 13px;border-radius:15px;gap:7px
  }
  html[data-sismed-theme] .sismed-home-module-icon{width:42px;height:42px;border-radius:13px;font-size:1.05rem}
  html[data-sismed-theme] .sismed-home-module-card strong{font-size:.94rem}
  html[data-sismed-theme] .sismed-home-module-card small{font-size:.72rem;line-height:1.32}
  html[data-sismed-theme] .sismed-home-side-card{padding:13px;border-radius:20px}
  html[data-sismed-theme] .sismed-home-activity-list{gap:7px;margin-top:10px}
  html[data-sismed-theme] .sismed-home-activity-item{grid-template-columns:30px 1fr;gap:9px;padding-bottom:8px}
  html[data-sismed-theme] .sismed-home-activity-icon{width:30px;height:30px;border-radius:10px;font-size:.78rem}
  html[data-sismed-theme] .sismed-home-activity-copy strong{font-size:.77rem}
  html[data-sismed-theme] .sismed-home-activity-copy small{font-size:.68rem;margin-top:2px}
  html[data-sismed-theme] .sismed-home-shortcuts-grid{gap:7px;margin-top:10px}
  html[data-sismed-theme] .sismed-home-shortcut-card{min-height:44px;padding:9px;border-radius:11px;gap:7px}
  html[data-sismed-theme] .sismed-home-shortcut-card span{font-size:.72rem}
  html[data-sismed-theme] .sismed-home-news-card{margin-top:10px;padding:10px;border-radius:14px;grid-template-columns:36px 1fr}
  html[data-sismed-theme] .sismed-home-news-icon{width:36px;height:36px;border-radius:11px}
  html[data-sismed-theme] .sismed-home-security-banner{padding:11px 13px!important;min-height:60px;border-radius:18px!important}
  html[data-sismed-theme] .sismed-home-security-copy strong{font-size:.88rem}
  html[data-sismed-theme] .sismed-home-security-copy small{font-size:.72rem}
}

@media (max-width:820px){
  html[data-sismed-theme] .sismed-home-origin-zone{min-height:118px}
  html[data-sismed-theme] .sismed-home-origin-selector{width:100%}
  html[data-sismed-theme] .sismed-home-security-banner{grid-template-columns:40px 1fr!important}
  html[data-sismed-theme] .sismed-home-security-actions{grid-column:1/-1;justify-content:stretch}
  html[data-sismed-theme] .sismed-home-security-details,
  html[data-sismed-theme] .sismed-home-security-confirm{flex:1}
}


/* ===== Ajuste 2026-08-02 J — origem em largura total e perfil integrado ===== */
html[data-sismed-theme] .sismed-home-origin-zone{
  width:100%!important;
  min-height:100%!important;
  display:block!important;
}
html[data-sismed-theme] .sismed-home-origin-zone .sismed-home-hero-art{
  border-radius:18px!important;
  overflow:hidden!important;
}
html[data-sismed-theme] .sismed-home-origin-selector{
  width:100%!important;
  max-width:none!important;
  min-height:100px!important;
  height:100%!important;
  grid-template-columns:52px minmax(0,1fr) 40px!important;
  gap:15px!important;
  padding:16px 18px!important;
  border-radius:18px!important;
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--sm-surface) 94%,transparent),color-mix(in srgb,var(--sm-surface) 82%,transparent)),
    radial-gradient(circle at 72% 50%,rgba(82,99,255,.14),transparent 38%)!important;
  backdrop-filter:blur(20px)!important;
}
html[data-sismed-theme] .sismed-home-origin-icon{
  width:52px!important;
  height:52px!important;
  border-radius:16px!important;
}
html[data-sismed-theme] .sismed-home-origin-copy small{font-size:.68rem!important}
html[data-sismed-theme] .sismed-home-origin-copy strong{font-size:1rem!important}
html[data-sismed-theme] .sismed-home-origin-copy em{font-size:.76rem!important}
html[data-sismed-theme] .sismed-home-origin-change{
  width:40px!important;
  height:40px!important;
  border-radius:13px!important;
}
html[data-sismed-theme="dark"] .sismed-home-origin-selector,
html[data-sismed-theme="midnight"] .sismed-home-origin-selector{
  background:
    linear-gradient(90deg,rgba(10,17,39,.96),rgba(10,17,39,.82)),
    radial-gradient(circle at 72% 50%,rgba(101,75,255,.24),transparent 42%)!important;
  border-color:rgba(116,94,255,.38)!important;
}
html[data-sismed-theme] .header-right{
  background:transparent!important;
}
html[data-sismed-theme] .header-right .user-card{
  background:var(--sm-surface)!important;
  border:1px solid var(--sm-line)!important;
  border-radius:18px!important;
  padding:.52rem .65rem .52rem .72rem!important;
  box-shadow:0 10px 26px rgba(13,18,48,.08)!important;
}
html[data-sismed-theme="dark"] .header-right .user-card,
html[data-sismed-theme="midnight"] .header-right .user-card{
  background:linear-gradient(145deg,rgba(11,18,40,.98),rgba(8,13,31,.98))!important;
  border-color:rgba(96,91,180,.30)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.22)!important;
}
html[data-sismed-theme] .header-right .user-card-main{
  background:transparent!important;
  border:0!important;
}
html[data-sismed-theme] .header-right .user-actions{
  background:transparent!important;
}
html[data-sismed-theme] .header-right .btn-icon{
  background:var(--sm-surface-2)!important;
  border:1px solid var(--sm-line)!important;
}
@media(max-width:900px){
  html[data-sismed-theme] .sismed-home-origin-selector{
    min-height:84px!important;
    grid-template-columns:44px minmax(0,1fr) 34px!important;
    padding:12px 13px!important;
  }
  html[data-sismed-theme] .sismed-home-origin-icon{width:44px!important;height:44px!important}
  html[data-sismed-theme] .sismed-home-origin-change{width:34px!important;height:34px!important}
}


/* ===== Ajuste 2026-08-02 K — preencher viewport e perfil administrativo ===== */
@media (min-width: 1180px){
  html[data-sismed-theme] .sismed-home-dashboard{
    min-height:calc(100vh - 190px)!important;
    align-items:stretch!important;
  }
  html[data-sismed-theme] .sismed-home-main{
    min-height:calc(100vh - 190px)!important;
    grid-template-rows:auto auto auto minmax(330px,1fr)!important;
    align-content:stretch!important;
  }
  html[data-sismed-theme] .sismed-home-module-board{
    min-height:clamp(330px,calc(100vh - 555px),440px)!important;
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr)!important;
  }
  html[data-sismed-theme] .sismed-home-module-grid{
    height:100%!important;
    grid-template-rows:repeat(2,minmax(128px,1fr))!important;
    align-content:stretch!important;
  }
  html[data-sismed-theme] .sismed-home-module-card{
    min-height:128px!important;
    height:100%!important;
    align-content:center!important;
  }
  html[data-sismed-theme] .sismed-home-sidebar{
    align-content:start!important;
  }
}

html[data-sismed-theme] .header-right{
  min-width:330px!important;
  gap:.65rem!important;
}
html[data-sismed-theme] .header-right .user-card{
  min-width:285px!important;
  min-height:54px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:.55rem!important;
  padding:.42rem .55rem .42rem .6rem!important;
  border-radius:17px!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--sm-surface) 96%,transparent),color-mix(in srgb,var(--sm-surface-2) 94%,transparent))!important;
}
html[data-sismed-theme] .header-right .user-card-main{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  align-items:center!important;
  gap:.7rem!important;
}
html[data-sismed-theme] .header-right .user-avatar{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
}
html[data-sismed-theme] .header-right .user-details{
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
}
html[data-sismed-theme] .header-right .user-name{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  color:var(--sm-text)!important;
  font-size:.88rem!important;
  line-height:1.15!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html[data-sismed-theme] .header-right .user-perfil{
  margin-top:4px!important;
  gap:.35rem!important;
  flex-wrap:nowrap!important;
  overflow:hidden!important;
}
html[data-sismed-theme] .header-right .user-perfil > *{
  max-width:100%!important;
  white-space:nowrap!important;
}
html[data-sismed-theme] .header-right .user-actions{
  display:flex!important;
  align-items:center!important;
  gap:.25rem!important;
}
html[data-sismed-theme] .header-right .btn-icon{
  width:34px!important;
  height:34px!important;
  border-radius:11px!important;
}
html[data-sismed-theme="dark"] .header-right .user-card,
html[data-sismed-theme="midnight"] .header-right .user-card{
  background:linear-gradient(145deg,rgba(13,21,47,.98),rgba(7,12,29,.98))!important;
  border-color:rgba(102,94,202,.32)!important;
}

@media (max-width: 1360px) and (min-width: 901px){
  html[data-sismed-theme] .header-right{min-width:290px!important}
  html[data-sismed-theme] .header-right .user-card{min-width:245px!important}
  html[data-sismed-theme] .header-right .user-name{font-size:.82rem!important}
}

/* ===== Ajuste 2026-08-02 L — proporção do dashboard e atividades para reimpressão ===== */
@media (min-width:1180px){
  html[data-sismed-theme] .sismed-home-dashboard{
    min-height:auto!important;
    align-items:start!important;
  }
  html[data-sismed-theme] .sismed-home-main{
    min-height:auto!important;
    grid-template-rows:auto auto auto auto!important;
    align-content:start!important;
  }
  html[data-sismed-theme] .sismed-home-module-board{
    min-height:auto!important;
    height:auto!important;
    display:block!important;
  }
  html[data-sismed-theme] .sismed-home-module-grid{
    height:auto!important;
    grid-template-rows:repeat(2,108px)!important;
    align-content:start!important;
  }
  html[data-sismed-theme] .sismed-home-module-card{
    min-height:108px!important;
    height:108px!important;
    padding:13px 14px!important;
    gap:7px!important;
    align-content:center!important;
  }
  html[data-sismed-theme] .sismed-home-module-icon{
    width:38px!important;
    height:38px!important;
    border-radius:12px!important;
  }
  html[data-sismed-theme] .sismed-home-module-card strong{font-size:.91rem!important}
  html[data-sismed-theme] .sismed-home-module-card small{
    font-size:.70rem!important;
    line-height:1.28!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  html[data-sismed-theme] .sismed-home-sidebar{gap:10px!important}
  html[data-sismed-theme] .sismed-home-sidebar .sismed-home-side-card:last-child{
    padding:11px!important;
    border-radius:18px!important;
  }
  html[data-sismed-theme] .sismed-home-sidebar .sismed-home-side-card:last-child .sismed-home-side-head h3{
    font-size:.94rem!important;
  }
  html[data-sismed-theme] .sismed-home-news-card{
    margin-top:8px!important;
    padding:9px!important;
    border-radius:13px!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    gap:9px!important;
  }
  html[data-sismed-theme] .sismed-home-news-icon{
    width:32px!important;
    height:32px!important;
    border-radius:10px!important;
    font-size:.74rem!important;
  }
  html[data-sismed-theme] .sismed-home-news-copy em{
    padding:2px 7px!important;
    font-size:.55rem!important;
  }
  html[data-sismed-theme] .sismed-home-news-copy strong{
    margin-top:5px!important;
    font-size:.78rem!important;
    line-height:1.18!important;
  }
  html[data-sismed-theme] .sismed-home-news-copy small{
    margin-top:4px!important;
    font-size:.66rem!important;
    line-height:1.28!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
}

html[data-sismed-theme] .sismed-home-activity-item{
  border-radius:12px!important;
  padding:7px!important;
  border:1px solid transparent!important;
}
html[data-sismed-theme] .sismed-home-activity-item:hover{
  background:rgba(99,79,255,.09)!important;
  border-color:rgba(99,79,255,.24)!important;
}

/* ===== Rodapé premium do dashboard — 2026-08-02 ===== */
html[data-sismed-theme] .sismed-home-brand-footer{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1fr 1.12fr 1fr 1.62fr 1.5fr;
  align-items:stretch;
  gap:0;
  min-height:112px;
  margin-top:2px;
  border:1px solid var(--sm-line);
  border-radius:24px;
  overflow:hidden;
  background:
    radial-gradient(circle at 94% 50%,rgba(139,70,255,.18),transparent 20%),
    linear-gradient(135deg,color-mix(in srgb,var(--sm-surface) 97%,transparent),color-mix(in srgb,var(--sm-surface-2) 95%,transparent));
  box-shadow:var(--sm-shadow-soft);
}
html[data-sismed-theme] .sismed-home-brand-footer > *{
  position:relative;
  min-width:0;
  border:0;
  border-right:1px solid var(--sm-line);
  background:transparent;
  color:var(--sm-text);
  text-decoration:none;
}
html[data-sismed-theme] .sismed-home-brand-footer > *:last-child{border-right:0}
html[data-sismed-theme] .sismed-home-footer-audience,
html[data-sismed-theme] .sismed-home-footer-security,
html[data-sismed-theme] .sismed-home-footer-cta{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:13px;
  padding:18px 20px;
  text-align:left;
  cursor:pointer;
  transition:background .18s ease,transform .18s ease;
}
html[data-sismed-theme] .sismed-home-footer-cta{
  grid-template-columns:minmax(0,1fr) 48px;
  background:linear-gradient(135deg,rgba(87,78,255,.10),rgba(153,57,255,.15));
}
html[data-sismed-theme] .sismed-home-brand-footer > *:hover{
  background:linear-gradient(135deg,rgba(89,92,255,.10),rgba(157,62,255,.10));
}
html[data-sismed-theme] .sismed-home-footer-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:50%;
  border:1px solid rgba(119,91,255,.42);
  background:linear-gradient(145deg,rgba(85,95,255,.15),rgba(161,58,255,.12));
  color:#8669ff;
  font-size:1.12rem;
}
html[data-sismed-theme] .sismed-home-brand-footer strong{
  display:block;
  color:var(--sm-text);
  font-size:.92rem;
  line-height:1.22;
  font-weight:850;
}
html[data-sismed-theme] .sismed-home-brand-footer small{
  display:block;
  margin-top:5px;
  color:var(--sm-muted);
  font-size:.72rem;
  line-height:1.38;
}
html[data-sismed-theme] .sismed-home-footer-cta strong{
  margin-top:4px;
  font-size:1.22rem;
  letter-spacing:.01em;
}
html[data-sismed-theme] .sismed-home-footer-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(135deg,#4d86ff,#9b38ff);
  box-shadow:0 12px 28px rgba(95,56,255,.30);
}
html[data-sismed-theme="dark"] .sismed-home-brand-footer,
html[data-sismed-theme="midnight"] .sismed-home-brand-footer{
  background:
    radial-gradient(circle at 92% 50%,rgba(151,60,255,.22),transparent 22%),
    linear-gradient(135deg,rgba(13,20,45,.98),rgba(9,14,36,.98));
}
html[data-sismed-theme="midnight"] .sismed-home-brand-footer{
  box-shadow:0 18px 45px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.03);
}

@media(max-width:1360px){
  html[data-sismed-theme] .sismed-home-brand-footer{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  html[data-sismed-theme] .sismed-home-footer-security{grid-column:span 2}
  html[data-sismed-theme] .sismed-home-footer-cta{grid-column:span 1}
  html[data-sismed-theme] .sismed-home-brand-footer > *{border-bottom:1px solid var(--sm-line)}
  html[data-sismed-theme] .sismed-home-brand-footer > *:nth-child(3),
  html[data-sismed-theme] .sismed-home-brand-footer > *:nth-child(5){border-right:0}
  html[data-sismed-theme] .sismed-home-brand-footer > *:nth-child(n+4){border-bottom:0}
}
@media(max-width:820px){
  html[data-sismed-theme] .sismed-home-brand-footer{
    grid-template-columns:1fr;
    border-radius:20px;
  }
  html[data-sismed-theme] .sismed-home-footer-security,
  html[data-sismed-theme] .sismed-home-footer-cta{grid-column:auto}
  html[data-sismed-theme] .sismed-home-brand-footer > *{
    border-right:0!important;
    border-bottom:1px solid var(--sm-line)!important;
  }
  html[data-sismed-theme] .sismed-home-brand-footer > *:last-child{border-bottom:0!important}
  html[data-sismed-theme] .sismed-home-footer-audience,
  html[data-sismed-theme] .sismed-home-footer-security,
  html[data-sismed-theme] .sismed-home-footer-cta{padding:15px 16px}
}

/* ===== Ajuste 2026-08-02 M — remover atalhos laterais e alinhar novidades/rodapé ===== */
@media (min-width:1361px){
  html[data-sismed-theme] .sismed-home-sidebar{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    align-self:stretch!important;
    align-content:stretch!important;
    gap:10px!important;
  }
  html[data-sismed-theme] .sismed-home-sidebar .sismed-home-side-card:last-child{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    height:100%!important;
  }
  html[data-sismed-theme] .sismed-home-sidebar .sismed-home-side-card:last-child .sismed-home-news-card{
    flex:1 1 auto!important;
    align-content:start!important;
  }
  html[data-sismed-theme] .sismed-home-brand-footer{
    margin-top:0!important;
    align-self:start!important;
  }
}
@media (max-width:1360px){
  html[data-sismed-theme] .sismed-home-sidebar{
    gap:10px!important;
  }
}

/* ===== Ajuste 2026-08-02 N — dashboard mais preenchido e tipografia proporcional ===== */
@media (min-width:1361px){
  html[data-sismed-theme] .sismed-home-dashboard{
    grid-template-columns:minmax(0,1fr) 272px!important;
    gap:14px!important;
  }
  html[data-sismed-theme] .sismed-home-main,
  html[data-sismed-theme] .sismed-home-sidebar{
    gap:13px!important;
  }
  html[data-sismed-theme] .sismed-home-heading h1{
    font-size:1.98rem!important;
    letter-spacing:-.025em!important;
  }
  html[data-sismed-theme] .sismed-home-heading p{
    font-size:.9rem!important;
    margin-top:.32rem!important;
  }
  html[data-sismed-theme] .sismed-home-search{
    height:50px!important;
    min-width:390px!important;
    max-width:500px!important;
    font-size:.9rem!important;
  }
  html[data-sismed-theme] .sismed-home-stats{
    gap:11px!important;
  }
  html[data-sismed-theme] .sismed-stat-card{
    min-height:94px!important;
    padding:15px 16px!important;
    border-radius:18px!important;
    gap:12px!important;
  }
  html[data-sismed-theme] .sismed-stat-icon{
    width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    font-size:1.02rem!important;
  }
  html[data-sismed-theme] .sismed-stat-copy small{
    font-size:.81rem!important;
  }
  html[data-sismed-theme] .sismed-stat-copy strong{
    font-size:1.82rem!important;
  }
  html[data-sismed-theme] .sismed-stat-copy em{
    font-size:.77rem!important;
  }
  html[data-sismed-theme] .sismed-home-hero-card{
    min-height:126px!important;
    padding:21px 23px!important;
    border-radius:22px!important;
  }
  html[data-sismed-theme] .sismed-home-hero-card h2{
    font-size:1.82rem!important;
  }
  html[data-sismed-theme] .sismed-home-hero-card p{
    font-size:1rem!important;
  }
  html[data-sismed-theme] .sismed-home-hero-card small{
    font-size:.84rem!important;
    line-height:1.42!important;
  }
  html[data-sismed-theme] .sismed-home-origin-selector{
    min-height:86px!important;
    padding:13px 15px!important;
    grid-template-columns:44px minmax(0,1fr) 34px!important;
  }
  html[data-sismed-theme] .sismed-home-origin-icon{
    width:44px!important;
    height:44px!important;
  }
  html[data-sismed-theme] .sismed-home-origin-copy small{
    font-size:.7rem!important;
  }
  html[data-sismed-theme] .sismed-home-origin-copy strong{
    font-size:1rem!important;
  }
  html[data-sismed-theme] .sismed-home-origin-copy em{
    font-size:.75rem!important;
  }
  html[data-sismed-theme] .sismed-home-module-board{
    padding:16px!important;
    border-radius:22px!important;
  }
  html[data-sismed-theme] .sismed-home-board-head h3,
  html[data-sismed-theme] .sismed-home-side-head h3{
    font-size:1.08rem!important;
  }
  html[data-sismed-theme] .sismed-home-board-head p{
    font-size:.81rem!important;
  }
  html[data-sismed-theme] .sismed-home-module-grid{
    gap:11px!important;
    margin-top:12px!important;
    grid-template-rows:repeat(2,126px)!important;
  }
  html[data-sismed-theme] .sismed-home-module-card{
    height:126px!important;
    min-height:126px!important;
    padding:15px 16px!important;
    gap:8px!important;
    border-radius:17px!important;
  }
  html[data-sismed-theme] .sismed-home-module-icon{
    width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    font-size:1rem!important;
  }
  html[data-sismed-theme] .sismed-home-module-card strong{
    font-size:1rem!important;
    line-height:1.2!important;
  }
  html[data-sismed-theme] .sismed-home-module-card small{
    font-size:.76rem!important;
    line-height:1.36!important;
  }
  html[data-sismed-theme] .sismed-home-side-card{
    padding:15px!important;
    border-radius:21px!important;
  }
  html[data-sismed-theme] .sismed-home-activity-copy strong{
    font-size:.82rem!important;
  }
  html[data-sismed-theme] .sismed-home-activity-copy small{
    font-size:.71rem!important;
  }
  html[data-sismed-theme] .sismed-home-news-copy strong{
    font-size:.84rem!important;
  }
  html[data-sismed-theme] .sismed-home-news-copy small{
    font-size:.7rem!important;
  }
  html[data-sismed-theme] .sismed-home-brand-footer{
    min-height:122px!important;
  }
  html[data-sismed-theme] .sismed-home-footer-audience,
  html[data-sismed-theme] .sismed-home-footer-security,
  html[data-sismed-theme] .sismed-home-footer-cta{
    padding:20px 22px!important;
  }
  html[data-sismed-theme] .sismed-home-brand-footer strong{
    font-size:.98rem!important;
  }
  html[data-sismed-theme] .sismed-home-brand-footer small{
    font-size:.76rem!important;
    line-height:1.4!important;
  }
  html[data-sismed-theme] .sismed-home-footer-icon,
  html[data-sismed-theme] .sismed-home-footer-arrow{
    width:52px!important;
    height:52px!important;
  }
}

@media (min-width:1600px){
  html[data-sismed-theme] .sismed-home-dashboard{
    grid-template-columns:minmax(0,1fr) 294px!important;
    gap:16px!important;
  }
  html[data-sismed-theme] .sismed-home-module-grid{
    grid-template-rows:repeat(2,134px)!important;
  }
  html[data-sismed-theme] .sismed-home-module-card{
    min-height:134px!important;
    height:134px!important;
  }
  html[data-sismed-theme] .sismed-home-brand-footer{
    min-height:128px!important;
  }
}

/* ===== Ajuste 2026-08-02 O — encaixe do perfil e rodapé informativo ===== */
@media (min-width:901px){
  html[data-sismed-theme] .main-header{
    overflow:visible!important;
  }
  html[data-sismed-theme] .header-right{
    min-width:0!important;
    max-width:min(420px,34vw)!important;
    flex:0 1 auto!important;
    gap:.55rem!important;
  }
  html[data-sismed-theme] .user-card{
    width:min(318px,31vw)!important;
    min-width:0!important;
    max-width:318px!important;
    height:54px!important;
    min-height:54px!important;
    padding:.42rem .7rem .42rem .62rem!important;
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    gap:.55rem!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  html[data-sismed-theme] .user-card-main{
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) 20px!important;
    align-items:center!important;
    gap:.58rem!important;
  }
  html[data-sismed-theme] .user-avatar{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
  }
  html[data-sismed-theme] .user-details{
    min-width:0!important;
    width:auto!important;
    overflow:hidden!important;
  }
  html[data-sismed-theme] .user-name{
    display:block!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:.84rem!important;
    line-height:1.12!important;
  }
  html[data-sismed-theme] .user-perfil{
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    min-width:0!important;
    overflow:hidden!important;
    margin-top:3px!important;
  }
  html[data-sismed-theme] .user-perfil .perfil-badge{
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:.64rem!important;
    padding:.28rem .62rem!important;
  }
  html[data-sismed-theme] .user-perfil > span:not(.perfil-badge){
    display:none!important;
  }
  html[data-sismed-theme] .user-actions{
    display:none!important;
  }
  html[data-sismed-theme] .user-menu-chevron{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:20px!important;
    height:20px!important;
    margin:0!important;
    color:var(--sm-muted)!important;
  }
  html[data-sismed-theme] .user-menu{
    right:0!important;
    left:auto!important;
    top:calc(100% + 8px)!important;
    width:min(330px,calc(100vw - 24px))!important;
    max-width:calc(100vw - 24px)!important;
  }
}

html[data-sismed-theme] .sismed-home-footer-cta{
  grid-template-columns:48px minmax(0,1fr)!important;
  background:linear-gradient(135deg,rgba(87,78,255,.11),rgba(153,57,255,.13))!important;
}
html[data-sismed-theme] .sismed-home-footer-cta .sismed-home-footer-icon{
  color:#9a7cff!important;
  background:linear-gradient(145deg,rgba(82,92,255,.18),rgba(165,61,255,.16))!important;
}
html[data-sismed-theme] .sismed-home-footer-cta strong{
  margin-top:0!important;
  font-size:.96rem!important;
}
html[data-sismed-theme] .sismed-home-footer-cta small{
  margin-top:5px!important;
}
html[data-sismed-theme] .sismed-home-footer-arrow{
  display:none!important;
}

@media (max-width:1120px) and (min-width:901px){
  html[data-sismed-theme] .header-right{
    max-width:310px!important;
  }
  html[data-sismed-theme] .user-card{
    width:280px!important;
    max-width:280px!important;
  }
  html[data-sismed-theme] .user-name{
    font-size:.8rem!important;
  }
}

/* ===== Ajuste 2026-08-02 P — rodapé compacto e perfil legível ===== */
@media (min-width:901px){
  html[data-sismed-theme] .header-right{
    min-width:0!important;
    max-width:330px!important;
    height:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    overflow:visible!important;
  }
  html[data-sismed-theme] .header-right .user-card{
    position:relative!important;
    width:286px!important;
    max-width:min(286px,calc(100vw - 150px))!important;
    min-width:230px!important;
    height:50px!important;
    min-height:50px!important;
    margin:0!important;
    padding:5px 9px!important;
    display:flex!important;
    align-items:center!important;
    gap:0!important;
    overflow:visible!important;
    border-radius:15px!important;
    background:linear-gradient(135deg,rgba(13,24,55,.98),rgba(20,18,58,.98))!important;
    border:1px solid rgba(112,105,255,.28)!important;
    box-shadow:0 10px 28px rgba(0,0,0,.18)!important;
  }
  html[data-sismed-theme="clear"] .header-right .user-card{
    background:linear-gradient(135deg,#ffffff,#f3f5ff)!important;
    border-color:rgba(91,91,214,.18)!important;
    box-shadow:0 8px 24px rgba(42,51,98,.10)!important;
  }
  html[data-sismed-theme] .header-right .user-card-main{
    flex:1 1 auto!important;
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    display:grid!important;
    grid-template-columns:36px minmax(0,1fr) 18px!important;
    align-items:center!important;
    gap:9px!important;
    padding:0!important;
  }
  html[data-sismed-theme] .header-right .user-avatar{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    border:1.5px solid rgba(255,255,255,.88)!important;
  }
  html[data-sismed-theme] .header-right .user-details{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    min-width:0!important;
    width:100%!important;
    height:40px!important;
    overflow:hidden!important;
    line-height:1!important;
  }
  html[data-sismed-theme] .header-right .user-name{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    color:#f8faff!important;
    font-size:.80rem!important;
    font-weight:900!important;
    line-height:1.08!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html[data-sismed-theme="clear"] .header-right .user-name{color:#111a36!important}
  html[data-sismed-theme] .header-right .user-perfil{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    height:20px!important;
    margin:2px 0 0!important;
    overflow:hidden!important;
  }
  html[data-sismed-theme] .header-right .user-perfil .perfil-badge{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    max-width:100%!important;
    min-height:18px!important;
    padding:2px 10px!important;
    border-radius:999px!important;
    color:#fff!important;
    background:linear-gradient(135deg,#8b5cf6,#d78cff)!important;
    font-size:.58rem!important;
    font-weight:900!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html[data-sismed-theme] .header-right .user-menu-chevron{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:18px!important;
    height:18px!important;
    margin:0!important;
    color:#cbd5ff!important;
    transform:none!important;
  }
  html[data-sismed-theme="clear"] .header-right .user-menu-chevron{color:#53607d!important}
  html[data-sismed-theme] .header-right .user-actions{display:none!important}
  html[data-sismed-theme] .header-right .user-menu{
    right:0!important;
    left:auto!important;
    top:calc(100% + 9px)!important;
    width:min(320px,calc(100vw - 20px))!important;
    max-width:calc(100vw - 20px)!important;
  }
}

html[data-sismed-theme] .sismed-home-brand-footer{
  min-height:76px!important;
  height:auto!important;
}
html[data-sismed-theme] .sismed-home-footer-audience,
html[data-sismed-theme] .sismed-home-footer-security,
html[data-sismed-theme] .sismed-home-footer-cta{
  min-height:76px!important;
  padding:10px 13px!important;
  gap:10px!important;
}
html[data-sismed-theme] .sismed-home-footer-icon{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border-radius:12px!important;
  font-size:.88rem!important;
}
html[data-sismed-theme] .sismed-home-brand-footer strong{
  font-size:.80rem!important;
  line-height:1.14!important;
}
html[data-sismed-theme] .sismed-home-brand-footer small{
  margin-top:3px!important;
  font-size:.62rem!important;
  line-height:1.25!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
html[data-sismed-theme] .sismed-home-footer-cta strong{font-size:.82rem!important}

@media (min-width:1200px) and (max-height:950px){
  html[data-sismed-theme] .sismed-home-brand-footer{min-height:68px!important}
  html[data-sismed-theme] .sismed-home-footer-audience,
  html[data-sismed-theme] .sismed-home-footer-security,
  html[data-sismed-theme] .sismed-home-footer-cta{
    min-height:68px!important;
    padding:8px 11px!important;
  }
  html[data-sismed-theme] .sismed-home-footer-icon{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
  }
  html[data-sismed-theme] .sismed-home-brand-footer strong{font-size:.75rem!important}
  html[data-sismed-theme] .sismed-home-brand-footer small{font-size:.58rem!important}
}
