/* SISTERMI RED / FLOW 07 — interface suave, movimento contínuo e bordas luminosas.
   Camada exclusivamente visual. Não altera permissões, regras, dados ou links. */
@property --sred-flow-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root { --sred-flow-accent:#ed6075; --sred-flow-soft:#f29aaa; --sred-flow-border:rgba(239,128,149,.20); --sred-flow-panel:rgba(20,22,30,.83); }
@keyframes sred-flow-border-turn { to { --sred-flow-angle:360deg; } }
@keyframes sred-flow-soft-drift { 0% {background-position:12% 15%,86% 65%,center,center} 100% {background-position:78% 52%,20% 18%,center,center} }
@keyframes sred-flow-light-move { 0% {background-position:50% 0} 100% {background-position:50% 200%} }
@keyframes sred-flow-mist { 0% {transform:translate3d(-3%,-2%,0) scale(1)} 100% {transform:translate3d(4%,3%,0) scale(1.1)} }
@keyframes sred-flow-rise { from {opacity:0;transform:translateY(12px)} to {opacity:1;transform:translateY(0)} }
html body.sred-ui { font-family:Inter,'Segoe UI Variable','Segoe UI',Arial,sans-serif; --sred-red:#e9677e; --sred-line:rgba(237,105,131,.19); --sred-glow:rgba(217,75,102,.09); }
html body.sred-ui :is(button,input,select,textarea,a) { -webkit-tap-highlight-color:transparent; }
/* MENU: formas orgânicas e contraste elegante, sem o aspecto agressivo de interface gamer. */
html body.sred-ui .menu-lateral {
  width:312px!important;
  border-radius:0 25px 25px 0!important;
  border-right:1px solid rgba(240,127,150,.23)!important;
  background:linear-gradient(168deg,rgba(24,25,34,.98),rgba(13,16,23,.98) 55%,rgba(20,15,24,.98))!important;
  box-shadow:16px 0 58px rgba(0,0,0,.35),3px 0 22px rgba(189,54,85,.06)!important;
  backdrop-filter:blur(25px);
}
html body.sred-ui .menu-lateral::before {
  z-index:-1!important;inset:-30% -40%!important;
  background:radial-gradient(ellipse at 30% 22%,rgba(201,79,107,.12),transparent 42%),radial-gradient(ellipse at 70% 75%,rgba(114,58,98,.10),transparent 44%)!important;
  background-size:170% 170%;animation:sred-flow-mist 22s ease-in-out infinite alternate!important;
}
html body.sred-ui .menu-lateral::after {
  content:'';position:absolute;top:0;right:0;left:auto;width:2px;height:100%;
  background:linear-gradient(180deg,transparent 10%,rgba(245,128,151,.05) 27%,rgba(248,141,164,.75) 50%,rgba(245,128,151,.06) 75%,transparent 95%);
  background-size:100% 200%;animation:sred-flow-light-move 10s linear infinite;
  filter:drop-shadow(0 0 7px rgba(224,77,112,.25));opacity:.68;
}
html body.sred-ui .menu-logo {
  min-height:122px!important;padding:23px 20px 21px!important;
  background:linear-gradient(125deg,rgba(177,60,90,.10),rgba(22,20,30,.55))!important;
  border-bottom:1px solid rgba(248,145,166,.12)!important;
}
html body.sred-ui .menu-logo::after { content:''!important; }
html body.sred-ui .sred-logo-emblem {
  clip-path:none!important;border-radius:19px!important;
  background:linear-gradient(140deg,rgba(232,106,132,.19),rgba(76,30,52,.20))!important;
  border:1px solid rgba(248,159,176,.36)!important;
  color:#fbe9ed!important;text-shadow:none!important;box-shadow:inset 0 1px rgba(255,255,255,.06),0 8px 22px rgba(0,0,0,.13)!important;
}
html body.sred-ui .sred-logo-copy strong {font-family:Inter,'Segoe UI Variable','Segoe UI',sans-serif!important;font-weight:730!important;letter-spacing:-.4px!important;}
html body.sred-ui .sred-logo-copy strong em {color:#ee8da0!important;text-shadow:none!important;}
html body.sred-ui .sred-logo-copy small,
html body.sred-ui .sred-logo-tag,
html body.sred-ui .sred-nav-label,
html body.sred-ui .sred-menu-footer {font-family:Inter,'Segoe UI',sans-serif!important;letter-spacing:.6px!important;}
html body.sred-ui .sred-nav-label::after {content:'';}
html body.sred-ui .menu-usuario {background:rgba(255,255,255,.016)!important;border-bottom:1px solid rgba(240,141,161,.10)!important;}
html body.sred-ui .menu-usuario-avatar {border-radius:15px!important;background:linear-gradient(140deg,#783f56,#352332)!important;}
html body.sred-ui .menu-usuario-perfil {border-radius:999px!important;}
html body.sred-ui .menu-links {gap:7px!important;padding:17px 13px 28px!important;}
html body.sred-ui :is(.menu-link,.menu-sublink,.menu-inventario,.menu-indicadores,.menu-inspecao,#linkInicio,#linkAdministracao) {
  border-radius:14px!important;color:#c7bec7!important;letter-spacing:0!important;
  transition:background .28s ease,color .28s ease,border-color .28s ease,transform .28s ease,box-shadow .28s ease!important;
}
html body.sred-ui :is(.menu-link,.menu-sublink,.menu-inventario,.menu-indicadores,.menu-inspecao,#linkInicio,#linkAdministracao):hover {
  background:linear-gradient(100deg,rgba(223,96,126,.12),rgba(255,255,255,.018))!important;
  border-color:rgba(242,137,157,.17)!important;box-shadow:none!important;
  transform:translateX(2px)!important;color:#fff!important;
}
html body.sred-ui :is(.menu-link,.menu-sublink,#linkInicio,#linkAdministracao).ativo {
  background:linear-gradient(100deg,rgba(206,81,110,.22),rgba(201,88,120,.055))!important;
  border-color:rgba(244,136,159,.24)!important;box-shadow:inset 2px 0 rgba(246,144,164,.7)!important;
}
html body.sred-ui .sred-menu-icon,
html body.sred-ui .menu-sublink .sred-menu-icon {border-radius:11px!important;background:rgba(234,113,140,.07)!important;border-color:rgba(236,135,154,.09)!important;color:#db9bab!important;}
html body.sred-ui .menu-rodape {background:rgba(255,255,255,.012)!important;border-color:rgba(243,151,167,.11)!important;}
html body.sred-ui .menu-sair {border-radius:14px!important;background:rgba(222,109,133,.07)!important;}
html body.sred-ui .botao-menu,
html body.sred-ui.pagina-inicial .botao-menu {
  width:46px!important;height:46px!important;border-radius:16px!important;
  background:rgba(29,28,37,.92)!important;border:1px solid rgba(245,144,163,.28)!important;
  box-shadow:0 9px 25px rgba(0,0,0,.28),0 0 15px rgba(231,103,132,.06)!important;
}
html body.sred-ui .botao-menu:hover {background:#38303b!important;border-color:rgba(250,172,189,.55)!important;}
html body.sred-ui .sred-hamburger i {box-shadow:none!important;background:#f4d7df!important;}
/* PÁGINAS INTERNAS: luz ambiente em movimento, preservando as fotos existentes. */
html body.sred-ui.mc-modulo {
  background-color:#0c1018!important;
  background-image:
    radial-gradient(ellipse 56% 45% at 15% 12%,rgba(166,64,93,.22),transparent 74%),
    radial-gradient(ellipse 50% 48% at 88% 68%,rgba(118,70,107,.16),transparent 78%),
    linear-gradient(180deg,rgba(10,13,20,.80),rgba(11,14,21,.86) 48%,rgba(10,13,19,.92)),
    var(--mc-foto-pagina,url('../assets/master-control-backdrop.svg'))!important;
  background-size:165% 165%,160% 160%,cover,cover!important;
  background-position:12% 15%,86% 65%,center,center!important;
  background-repeat:no-repeat!important;background-attachment:fixed!important;
  animation:sred-flow-soft-drift 28s ease-in-out infinite alternate;
}
html body.sred-ui.mc-modulo .mc-hero {
  position:relative;border-radius:28px!important;
  border:1px solid rgba(242,142,161,.18)!important;
  background:linear-gradient(120deg,rgba(24,24,34,.90),rgba(39,24,38,.65))!important;
  backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);
  box-shadow:0 22px 55px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.05)!important;
}
html body.sred-ui.mc-modulo .mc-hero::before {background:radial-gradient(ellipse at 80% 40%,rgba(221,92,124,.15),transparent 60%)!important;z-index:-1!important;}
html body.sred-ui.mc-modulo .mc-hero::after {
  content:'';position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;
  padding:1px;background:conic-gradient(from var(--sred-flow-angle),transparent 0 55%,rgba(255,176,194,.02) 64%,rgba(251,155,175,.64) 76%,rgba(255,173,191,.06) 86%,transparent 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;
  animation:sred-flow-border-turn 11s linear infinite;opacity:.78;
}
html body.sred-ui.mc-modulo .mc-hero__kicker {color:#edacba!important;letter-spacing:1.2px!important;}
html body.sred-ui.mc-modulo .mc-hero__titulo {font-weight:720!important;letter-spacing:-.9px!important;}
html body.sred-ui.mc-modulo .mc-hero__subtitulo {color:#c3b9c4!important;}
html body.sred-ui.mc-modulo .mc-hero__selo {border-radius:999px!important;background:rgba(230,124,148,.08)!important;}
html body.sred-ui.mc-modulo :is(.card,.card-indicador,.card-principal,.info-card,.grafico-card,.card-resumo,.painel-filtros,.painel-tabela) {
  border-radius:22px!important;border-color:rgba(241,139,162,.17)!important;
  background-color:rgba(22,23,32,.86)!important;
  box-shadow:0 13px 35px rgba(0,0,0,.14),inset 0 1px rgba(255,255,255,.035)!important;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
html body.sred-ui.mc-modulo :is(.tabela-container,.tabela-wrapper,.tabela-scroll,.tabela-wrap,.modal-conteudo) {border-radius:19px!important;border-color:rgba(241,139,162,.15)!important;}
html body.sred-ui.mc-modulo :is(.card,.card-indicador,.card-principal,.grafico-card,.card-resumo):hover {border-color:rgba(243,149,171,.36)!important;box-shadow:0 17px 40px rgba(0,0,0,.19),0 0 26px rgba(231,100,128,.055)!important;}
html body.sred-ui :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {border-radius:12px!important;}
html body.sred-ui :is(.btn-principal,.btn-primary,.btn-azul,.btn-adicionar,.btn-secundario,.btn-secondary,.btn-cinza,button.primary) {border-radius:13px!important;}
html body.sred-ui.mc-modulo :is(.btn-principal,.btn-primary,.btn-azul,.btn-adicionar,button.primary) {background:linear-gradient(120deg,#bb4966,#8e3b55)!important;border-color:rgba(255,178,195,.24)!important;box-shadow:0 9px 24px rgba(117,29,56,.14)!important;}
html body.sred-ui.mc-modulo :is(.btn-principal,.btn-primary,.btn-azul,.btn-adicionar,button.primary):hover {background:linear-gradient(120deg,#cf5a78,#a24762)!important;box-shadow:0 12px 28px rgba(117,29,56,.20)!important;}
html body.sred-ui.mc-modulo :is(.btn-secundario,.btn-secondary,.btn-cinza) {background:#2c2935!important;border-color:rgba(246,152,172,.16)!important;}
html body.sred-ui .ids-tabs button,
html body.sred-ui [role='tablist'] button {border-radius:13px 13px 7px 7px!important;}
html body.sred-ui:not(.mc-modulo):not(.pagina-inicial):not(.mc-login) {
  background-color:#0c0e15!important;
  background-image:radial-gradient(ellipse at 10% 15%,rgba(158,61,90,.17),transparent 55%),radial-gradient(ellipse at 90% 75%,rgba(119,67,101,.13),transparent 58%),linear-gradient(#0b0e15,#0c0e16)!important;
  background-size:165% 165%,170% 170%,cover!important;
  animation:sred-flow-soft-drift 28s ease-in-out infinite alternate;
}
html body.sred-ui:not(.mc-modulo):not(.pagina-inicial):not(.mc-login) :is(.panel,.card,.red-painel,.red-tabela-wrap) {border-radius:22px!important;background-color:rgba(23,23,32,.88)!important;}
html body.sred-ui.mc-login {background:radial-gradient(ellipse at 15% 25%,rgba(172,64,93,.24),transparent 55%),linear-gradient(130deg,rgba(11,13,21,.93),rgba(23,16,27,.89)),url('../assets/master-control-backdrop.svg') center / cover fixed!important;}
html body.sred-ui.mc-login .login-card {border-radius:27px!important;border-color:rgba(244,146,165,.26)!important;background:rgba(23,23,32,.91)!important;box-shadow:0 25px 70px rgba(0,0,0,.35)!important;}
/* Usuários com preferência por menos movimento mantêm a interface estática. */
@media(prefers-reduced-motion:reduce){
  html body.sred-ui .menu-lateral::before,html body.sred-ui .menu-lateral::after,
  html body.sred-ui.mc-modulo,html body.sred-ui.mc-modulo .mc-hero::after,
  html body.sred-ui:not(.mc-modulo):not(.pagina-inicial):not(.mc-login) {animation:none!important;}
}
@media(max-width:640px){html body.sred-ui .menu-lateral{border-radius:0 19px 19px 0!important}html body.sred-ui.mc-modulo .mc-hero{border-radius:21px!important}}
/* Inputs e filtros seguem o mesmo grafite, sem blocos azuis destoantes. */
html body.sred-ui.mc-modulo :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  background-color:rgba(35,37,49,.88)!important;
  border-color:rgba(243,151,170,.16)!important;
  color:#f3eaf0!important;
}
html body.sred-ui.mc-modulo :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus {
  border-color:rgba(245,159,178,.58)!important;
  box-shadow:0 0 0 3px rgba(231,113,141,.09)!important;
}
@keyframes sred-flow-tab-light {from{background-position:0% 50%}to{background-position:100% 50%}}
html body.sred-ui :is(.ids-tabs button.active,[role='tablist'] [aria-selected='true'],[role='tablist'] button.active) {
  background-image:linear-gradient(110deg,rgba(137,60,87,.82),rgba(91,54,80,.88),rgba(160,73,103,.82))!important;
  background-size:220% 100%!important;
  animation:sred-flow-tab-light 7s ease-in-out infinite alternate;
  border-color:rgba(245,154,174,.42)!important;
  box-shadow:inset 0 -2px rgba(245,160,179,.62),0 7px 20px rgba(138,59,87,.10)!important;
}
@media(prefers-reduced-motion:reduce){html body.sred-ui :is(.ids-tabs button.active,[role='tablist'] [aria-selected='true'],[role='tablist'] button.active){animation:none!important;}}
