/* Tecfast Integra — padrão visual 2026.09.28.1. Apenas apresentação em tela. */
@media screen {
body.tf-visual:not(.auth-page){font-family:'Segoe UI',Arial,sans-serif;background:#f3f5f7;background-image:none}
.tf-visual .tf-header{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;min-height:80px;height:auto;padding:14px max(24px,calc((100vw - 1480px)/2));background:#e5e8ec!important;color:#20242a!important;border-bottom:1px solid #d5d9de!important;box-shadow:0 4px 16px #18202b14;backdrop-filter:none;font-family:'Segoe UI',Arial,sans-serif;font-size:14px;line-height:1.4}
.tf-header .brand,.tf-header .brand-block{display:flex;align-items:center;flex-direction:row;gap:18px;min-width:0;color:#20242a!important;text-decoration:none;border:0;padding:0;background:transparent}
.tf-header .brand img,.tf-header .brand-logo,.tf-header .header-inner>img{width:158px!important;height:48px!important;max-width:158px!important;max-height:48px!important;object-fit:contain;flex:none}
.tf-header .brand>span,.tf-header .brand>div,.tf-header .brand-block .subtitle{display:block;margin:0;padding:0 0 0 18px;border-left:1px solid #bbc2c9;color:#20242a;font-size:16px!important;line-height:1.3;font-weight:700;letter-spacing:0}
.tf-header .brand b,.tf-header .header-actions p{font-size:16px!important;line-height:1.3;font-weight:700;letter-spacing:0;margin:0;color:#20242a}
.tf-header .brand small,.tf-header .header-actions small{font-size:12px;line-height:1.4;color:#65707a!important;font-weight:400}
.tf-header .top-actions,.tf-header .header-actions,.tf-header>nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;min-width:0}
.tf-header .top-actions,.tf-header .header-actions{margin-left:auto}
.tf-header .main-nav{flex:1;justify-content:center}
.tf-header .top-actions>a:not(.icon-action),.tf-header .top-actions>button,.tf-header .header-actions>a,.tf-header .header-actions>button,.tf-header>nav>a,.tf-header .main-nav>button,.tf-header .main-nav>a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;height:auto;margin:0;padding:9px 13px;border:1px solid #bdc5cd!important;border-radius:9px;background:#ffffffcc!important;color:#20242a!important;font:600 14px/20px 'Segoe UI',Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
.tf-header .top-actions>a:hover,.tf-header .top-actions>button:hover,.tf-header .header-actions>a:hover,.tf-header .header-actions>button:hover,.tf-header>nav>a:hover,.tf-header .main-nav>button:hover,.tf-header .main-nav>a:hover{background:#d8dde2!important;color:#20242a!important;text-decoration:none}
.tf-header .main-nav .active{background:#cdd4db!important;color:#20242a}
.tf-visual a.tf-home{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;height:auto;padding:9px 13px;border:1px solid #cfd4da;border-radius:9px;background:#fff;color:#30343a;font:600 14px/20px 'Segoe UI',Arial,sans-serif;text-decoration:none!important;white-space:nowrap}
.tf-visual a.tf-home::before{content:'\2190';font-size:18px;line-height:1}
.tf-visual a.tf-home:hover{background:#edf0f3}
.tf-header a.tf-home{border-color:#bdc5cd!important;background:#ffffff88!important;color:#20242a!important}
.tf-header a.tf-home:hover{background:#d8dde2!important}
.tf-header a:focus-visible,.tf-header button:focus-visible{outline:3px solid #ffb3c4;outline-offset:3px}
.tf-header .icon-action{flex:none;width:40px;height:40px;padding:9px;border:1px solid #bdc5cd!important;border-radius:9px;color:#20242a!important;background:#ffffffcc!important}
.tf-header .icon-action svg{width:20px;height:20px;stroke:#20242a}
.tf-header .hidden,.tf-header [hidden]{display:none!important}
.tf-header .header-stripe{display:none}
.tf-flow .tf-header{padding:0}
.tf-flow .tf-header .header-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;width:100%;max-width:none;min-height:80px;margin:0;padding:14px max(24px,calc((100vw - 1480px)/2))}
.tf-flow .tf-header .header-actions>div{display:block;text-align:left}
.tf-visual .hero{background:#e5e8ec;color:#20242a}
.tf-visual .hero p,.tf-visual .hero .kpis small{color:#5b6670}
.tf-visual .hero>div>small{background:#fff;color:#b9183b}
.tf-header .user-chip small,.tf-header .hello,.tf-header .save-status{color:#58636d}
.tf-header .nf-notify summary{border-color:#bdc5cd;color:#20242a;background:#ffffff88}
.tf-header .nf-notify-list{color:#20242a}
.tf-visual .tf-header .badge:not(.version){color:#20242a}
.tf-visual .tf-header .badge.version{display:none!important}
.tf-portal-footer{font-size:12px;color:#65707a}
/* Títulos e quadros de abertura, sem alterar valores, gráficos ou formulários. */
.tf-visual :is(.intro,.nf-title,.title,.pagehead,.admin-title){box-sizing:border-box;background:#fff;border:1px solid #e3e6ea;border-radius:14px;padding:22px 24px;gap:18px;box-shadow:0 4px 16px #18202b06}
.tf-visual :is(.intro,.nf-title,.title,.pagehead,.admin-title,.hero) h1{font-family:'Segoe UI',Arial,sans-serif;font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.025em;margin:4px 0 8px}
.tf-visual :is(.intro,.nf-title,.title,.pagehead,.admin-title)>div>p{font-size:14px;line-height:1.5;color:#69717c;margin:5px 0 0}
.tf-visual :is(.card,.panel,.admin-card,.table-card,.table-wrap){border-radius:14px}
.tf-visual :is(.section-title,.section-title-row,.section-head,.section-heading,.report-head,.table-title) :is(h1,h2,h3){font-family:'Segoe UI',Arial,sans-serif;font-size:19px;line-height:1.3;font-weight:700;letter-spacing:-.015em}
.tf-visual .eyebrow{font-family:'Segoe UI',Arial,sans-serif;font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.1em}
/* Página inicial: mais confortável que a versão compacta, com fundo liso. */
.tf-homepage .portal{width:min(1480px,calc(100% - 48px))}
.tf-homepage .portal .welcome{padding:24px 0 18px;gap:20px;align-items:center}
.tf-homepage .portal .welcome h1{font-size:clamp(28px,2.7vw,38px);line-height:1.15;font-weight:700;letter-spacing:-.03em}
.tf-homepage .portal .welcome p{font-size:16px;line-height:1.4;margin:7px 0 0}
.tf-homepage .portal .date-block small{font-size:11px}
.tf-homepage .portal .date-block strong{font-size:14px}
.tf-homepage .portal .systems-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-bottom:14px}
.tf-homepage .portal .system-card{min-height:clamp(160px,calc((100svh - 288px)/3),250px);padding:22px 24px;border-radius:15px;box-shadow:0 6px 20px #18202b0d}
.tf-homepage .portal .system-icon{width:48px;height:48px;border-radius:12px}
.tf-homepage .portal .system-icon svg{width:26px;height:26px}
.tf-homepage .portal .status{padding:6px 9px;font-size:12px}
.tf-homepage .portal .card-copy{margin:16px 0 0}
.tf-homepage .portal .card-copy h2{font-size:20px;line-height:1.25;margin:0 0 6px;font-weight:700}
.tf-homepage .portal .card-copy p{font-size:15px;line-height:1.4;margin:0}
.tf-homepage .portal+footer{padding:4px 20px 14px;font-size:12px;line-height:1.4}
@media(min-width:901px) and (max-height:740px){
.tf-homepage .portal .welcome{padding:16px 0 12px}
.tf-homepage .portal .welcome h1{font-size:28px}
.tf-homepage .portal .system-card{padding:13px 17px;min-height:clamp(132px,calc((100svh - 260px)/3),175px)}
.tf-homepage .portal .system-icon{width:36px;height:36px}
.tf-homepage .portal .system-icon svg{width:21px;height:21px}
.tf-homepage .portal .card-copy{margin-top:9px}
.tf-homepage .portal .card-copy h2{font-size:17px;margin-bottom:5px}
.tf-homepage .portal .card-copy p{font-size:13px;line-height:1.3}
}
@media(max-width:1250px){.tf-header .main-nav{flex-basis:100%;order:3;flex-wrap:wrap;justify-content:flex-start}.tf-header .top-actions{flex-wrap:wrap}}
@media(max-width:900px){.tf-homepage .portal .systems-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-homepage .portal .system-card{min-height:200px}}
@media(max-width:720px){
.tf-visual .tf-header,.tf-flow .tf-header .header-inner{padding:12px 16px;gap:12px;min-height:80px}
.tf-flow .tf-header{padding:0}
.tf-header .brand>span,.tf-header .brand>div,.tf-header .brand-block .subtitle{font-size:14px!important;padding-left:12px}
.tf-header .brand,.tf-header .brand-block{gap:12px}
.tf-header .brand img,.tf-header .brand-logo,.tf-header .header-inner>img{width:128px!important;height:39px!important;max-width:128px!important;max-height:39px!important}
.tf-header .top-actions,.tf-header .header-actions,.tf-header>nav{margin-left:0;flex-wrap:wrap;max-width:100%}
.tf-visual :is(.intro,.nf-title,.title,.pagehead,.admin-title){padding:18px;flex-wrap:wrap;align-items:flex-start}
.tf-visual :is(.intro,.nf-title,.title,.pagehead,.admin-title,.hero) h1{font-size:25px}
.tf-header .brand-block .subtitle{display:block}
}
@media(max-width:620px){
.tf-homepage .portal{width:calc(100% - 24px)}
.tf-homepage .portal .welcome{align-items:flex-start;gap:12px;padding:24px 0 18px}
.tf-homepage .portal .welcome h1{font-size:28px}
.tf-homepage .portal .systems-grid{grid-template-columns:minmax(0,1fr)}
.tf-homepage .portal .system-card{min-height:190px}
.tf-homepage .portal .date-block{min-width:0}
}
}
@media print{.tf-header,a.tf-home{display:none!important}}
/* Identificação do usuário no canto direito dos módulos. */
@media screen {
.tf-header .tf-user-chip{display:inline-flex;align-items:center;gap:9px;flex:none;order:99;margin-left:8px;color:#20242a;white-space:nowrap}
.tf-header .tf-user-avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#d8264f;color:#fff;font-size:13px;font-weight:800}
.tf-header .tf-user-label{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.tf-header .tf-user-label small{font-size:11px;color:#5c6570;font-weight:400}
.tf-header .tf-user-label strong{font-size:13px;font-weight:750;color:#20242a}
.tf-flow .tf-flow-brand{display:flex;align-items:center;gap:18px;min-width:0}
.tf-flow .tf-flow-brand img{width:158px;height:48px;max-width:158px;max-height:48px;object-fit:contain;flex:none}
.tf-flow .tf-flow-brand span{border-left:1px solid #bbc2c9;padding-left:18px;color:#20242a;font-size:16px;font-weight:700;line-height:1.3}
.tf-flow .tf-header .header-actions{margin-left:auto}
@media(min-width:1081px){
.tf-header.tf-finance-header{flex-wrap:nowrap!important;gap:8px!important}
.tf-finance-header .brand-block{gap:10px;flex:none}
.tf-finance-header .brand-logo{width:124px!important;max-width:124px!important;height:40px!important;max-height:40px!important}
.tf-finance-header .brand-block .subtitle{font-size:14px!important;padding-left:10px;white-space:nowrap}
.tf-finance-header .main-nav{flex:1 1 auto!important;flex-basis:auto!important;order:0!important;justify-content:center;flex-wrap:nowrap!important;gap:5px;min-width:0}
.tf-finance-header .top-actions{flex:none;flex-wrap:nowrap!important;gap:5px;margin-left:0}
.tf-finance-header .main-nav>button,.tf-finance-header .main-nav>a,.tf-finance-header .top-actions>a{font-size:12px!important;padding:7px 8px!important;min-height:36px!important}
.tf-finance-header .tf-user-chip{margin-left:4px}
}
@media(max-width:1080px){.tf-header.tf-finance-header .main-nav{flex-basis:100%;order:3}.tf-header.tf-finance-header .top-actions{margin-left:auto}}
@media(max-width:720px){.tf-header .tf-user-chip{margin-left:auto}.tf-header .tf-user-label{display:none}.tf-flow .tf-flow-brand img{width:128px;height:39px;max-width:128px;max-height:39px}.tf-flow .tf-flow-brand span{padding-left:12px;font-size:14px}}
}
/* Logo dos módulos na dimensão do Painel Financeiro. */
@media screen {
.tf-visual:not(.tf-homepage) .tf-header .brand img,
.tf-visual:not(.tf-homepage) .tf-header .brand-logo,
.tf-visual:not(.tf-homepage) .tf-header .header-inner>img,
.tf-visual.tf-flow .tf-header .tf-flow-brand img{width:124px!important;height:40px!important;max-width:124px!important;max-height:40px!important;object-fit:contain}
}
/* Página inicial com o mesmo logo dos módulos. */
@media screen {
.tf-homepage .tf-header .brand img{width:124px!important;height:40px!important;max-width:124px!important;max-height:40px!important;object-fit:contain}
}

/* Retorno por símbolo, mantendo o texto acessível e o mesmo destino. */
@media screen{body.tf-visual .tf-header a.tf-home{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:10px!important;font-size:0!important;gap:0!important;flex:none}body.tf-visual .tf-header a.tf-home::before{content:''!important;width:20px;height:20px;display:block;background:center/20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330343a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E")}}

.tf-header .tf-header-tools{display:inline-flex;align-items:center;gap:8px;order:99;margin-left:auto;flex:none}.tf-header .tf-header-tools .tf-user-chip{margin-left:0}.tf-header .tf-header-tools .tf-search-wrap{order:0}.tf-header .tf-header-tools .tf-home{order:1}.tf-header .tf-header-tools .tf-user-chip{order:2}
