/* Portal de Chamados Microtech — complementos sobre o styles.css do Portal de Projetos.
   Usa os mesmos tokens (:root) e o mesmo vocabulário visual. */

/* KPIs: 6 cards no resumo de tickets (igual ao Tiflux) */
.kpi-row.six{grid-template-columns:repeat(6,minmax(150px,1fr))}
.kpi-row.six .kpi-card{grid-template-columns:52px 1fr;gap:14px;padding:16px}
.kpi-row.six .kpi-icon{width:50px;height:50px}.kpi-row.six .kpi-icon svg{width:24px;height:24px}
.kpi-row.three{grid-template-columns:repeat(3,minmax(180px,1fr))}
.kpi-card.kpi-click{cursor:pointer;transition:.16s}
.kpi-card.kpi-click:hover{border-color:#e9c94a;transform:translateY(-1px)}
.kpi-card.on{border-color:var(--yellow);box-shadow:0 0 0 3px rgba(246,201,0,.18),var(--soft-shadow)}

/* Grade do dashboard de chamados */
.tk-dash{display:grid;grid-template-columns:1.05fr 1.05fr 1fr;gap:18px;align-items:start}
.tk-dash .table-card{grid-column:span 2}
@media(max-width:1380px){.tk-dash{grid-template-columns:1fr 1fr}.tk-dash .alerts-card{grid-column:1/-1}.tk-dash .table-card{grid-column:1/-1}.kpi-row.six{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.tk-dash{grid-template-columns:1fr}.kpi-row.six,.kpi-row.three{grid-template-columns:1fr}}

/* Alternador (Por responsável / mesa / cliente) */
.seg-pill{display:inline-flex;background:#f1f5f9;border:1px solid var(--line);border-radius:12px;padding:3px;gap:2px;flex:none}
.seg-pill button{height:32px;padding:0 12px;border-radius:9px;background:transparent;color:#475569;font-weight:800;font-size:12.5px}
.seg-pill button.on{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(15,23,42,.08)}

/* Barras por responsável no mesmo padrão das barras de prioridade */
.rank-bars{grid-template-columns:repeat(var(--n),1fr)!important;gap:18px!important;padding:0 18px 30px!important}
.rank-bars .bar-item{cursor:pointer}
.rank-bars .bar-item i{width:min(58px,100%)}
.rank-bars .bar-item span{white-space:nowrap;font-weight:700}
.rank-bars .bar-item:hover i{filter:brightness(.95)}
.rank-bars::before,.rank-bars::after{left:18px!important;right:18px!important}

.legend-row-click{background:transparent;text-align:left;padding:4px 0;color:inherit;font-size:14px}

/* Barra de abas de tickets abertos (como no Tiflux) */
.open-tabs{display:flex;gap:8px;margin:-8px 0 22px;overflow-x:auto;padding-bottom:2px}
.open-tab{height:40px;display:flex;align-items:center;gap:10px;padding:0 10px 0 14px;background:#fff;border:1px solid var(--line);border-radius:12px;color:#475569;font-weight:700;font-size:13px;white-space:nowrap;max-width:300px;box-shadow:0 4px 12px rgba(15,23,42,.035);cursor:pointer}
.open-tab span{overflow:hidden;text-overflow:ellipsis}
.open-tab b{color:var(--ink)}
.open-tab.on{border-color:var(--yellow);background:#fffbea;color:var(--ink)}
.open-tab .x{width:22px;height:22px;border-radius:7px;background:transparent;color:#94a3b8;display:grid;place-items:center;flex:none}
.open-tab .x:hover{background:#fee2e2;color:#ef4444}
.open-tab .x svg{width:14px;height:14px;stroke-width:2.6}
.open-tab.home svg{width:17px;height:17px}

/* Filtros rápidos */
.quick-chips{display:flex;gap:8px;flex-wrap:wrap;margin:-6px 0 18px}
.chip{height:36px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:800;font-size:12.5px;color:#475569;display:inline-flex;align-items:center;gap:8px}
.chip i{font-style:normal;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;display:grid;place-items:center}
.chip:hover{border-color:#cbd5e1}
.chip.on{background:#0f172a;color:#fff;border-color:#0f172a}
.chip.on i{background:var(--yellow);color:#111827}

/* Tabela de tickets */
.tk-table table{min-width:1180px}
.tk-table td.subject{white-space:normal;min-width:340px;max-width:520px}
.tk-table td.subject strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}
.tk-id{font-weight:900;color:#0f172a}
.sla-cell strong{display:block;font-size:13px}
.sla-cell small{display:block;font-size:11.5px;font-weight:800;margin-top:3px}
.sla-ok{color:#16a34a}.sla-warn{color:#f97316}.sla-late{color:#ef4444}.sla-pause,.sla-done{color:#667085}
.muted{color:var(--muted)}

/* Cabeçalho do ticket */
.tk-head{padding:24px 28px 0;margin-bottom:18px}
.tk-head-top{display:grid;grid-template-columns:6px 1fr auto;gap:18px;align-items:start}
.tk-head-top .modal-title-line{height:56px}
.tk-head h2{margin:0;font-size:24px;letter-spacing:-.03em;line-height:1.25}
.tk-head h2 .num{color:#94a3b8;font-weight:800}
.tk-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-weight:600}
.tk-meta .sep{width:4px;height:4px;border-radius:50%;background:#cbd5e1}
.tk-actions{display:flex;gap:10px;align-items:center}
.tk-actions .btn-primary,.tk-actions .btn-outline{height:46px}
.tk-tabs{display:flex;gap:28px;margin-top:22px;border-top:1px solid var(--line-2);overflow-x:auto}
.tk-tabs button{height:54px;background:transparent;color:#667085;font-weight:800;font-size:14.5px;position:relative;white-space:nowrap;display:flex;align-items:center;gap:8px}
.tk-tabs button:hover{color:var(--ink)}
.tk-tabs button.on{color:var(--ink)}
.tk-tabs button.on::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--yellow)}
.tk-tabs .n{min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;display:grid;place-items:center}
.tk-tabs button.on .n{background:var(--yellow);color:#111827}

/* Menu Ações do ticket */
.actions-wrap{position:relative}
.tk-dd{position:absolute;right:0;top:calc(100% + 8px);width:240px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 22px 55px rgba(15,23,42,.16);padding:6px;display:none;z-index:40}
.actions-wrap.on .tk-dd{display:block}
.tk-dd button{width:100%;height:40px;border-radius:9px;background:transparent;display:flex;align-items:center;gap:10px;padding:0 12px;font-weight:700;color:#1f2937;text-align:left}
.tk-dd button svg{width:17px;height:17px;color:#64748b}
.tk-dd button:hover{background:#f8fafc}
.tk-dd hr{border:0;border-top:1px solid var(--line-2);margin:5px 4px}

/* Informações gerais: 3 colunas */
.tk-grid{display:grid;grid-template-columns:320px 1fr 340px;gap:18px;align-items:start}
@media(max-width:1380px){.tk-grid{grid-template-columns:1fr 1fr}.tk-grid>.tk-desc{grid-column:1/-1;order:-1}}
@media(max-width:820px){.tk-grid{grid-template-columns:1fr}}
.stack{display:grid;gap:18px;align-content:start}
.card-body{padding:18px 24px 22px}
.info-list{display:grid;gap:14px}
.info-row small{display:block;font-size:12px;font-weight:800;color:#667085;margin-bottom:5px}
.info-row strong{display:block;font-size:14px}
.info-row .sub{display:block;color:#667085;font-size:13px;margin-top:2px}
.info-row .badge{display:inline-flex}
.info-links{display:grid;gap:9px;margin-top:4px}
.info-links button{background:transparent;color:#0b66d8;font-weight:800;padding:0;text-align:left;display:flex;gap:8px;align-items:center}
.info-links svg{width:16px;height:16px}
.desc-text{white-space:pre-wrap;line-height:1.65;color:#334155;font-size:14.5px}
.desc-foot{margin-top:22px;padding-top:16px;border-top:1px solid var(--line-2);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#667085;font-size:13px}
.side-form{display:grid;gap:13px}
.side-form label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#344054}
.side-form select{width:100%}
.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.followers{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.avatar.sm{width:28px;height:28px;font-size:10.5px}
.avatar.xs{width:24px;height:24px;font-size:9.5px}
.add-link{background:transparent;color:#0b66d8;font-weight:800;padding:0;font-size:13px}

/* SLA */
.sla-box{padding:16px 24px 22px;display:grid;gap:12px}
.sla-line{display:flex;justify-content:space-between;gap:10px;font-size:13px}
.sla-line span{color:#667085;font-weight:700}
.sla-line b{font-weight:850}
.sla-track{height:8px;background:#e8edf4;border-radius:999px;overflow:hidden}
.sla-track i{display:block;height:100%;border-radius:999px}

/* Lista simples (últimos tickets) */
.mini-list{padding:8px 0}
.mini-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 24px;border-top:1px solid var(--line-2);cursor:pointer;background:#fff;text-align:left;width:100%}
.mini-item:first-child{border-top:0}
.mini-item:hover{background:#fffdf0}
.mini-item strong{display:block;font-size:13.5px;line-height:1.35}
.mini-item small{display:block;color:#667085;font-size:12px;margin-top:3px}

/* Comunicação */
.seg-tabs{display:inline-flex;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.seg-tabs button{height:42px;padding:0 20px;background:#fff;color:#334155;font-weight:800}
.seg-tabs button+button{border-left:1px solid var(--line)}
.seg-tabs button.on{background:#0f172a;color:#fff}
.seg-tabs button.on.int{background:#a16207}
.composer{padding:22px 24px 24px}
.composer h4{margin:18px 0 10px;font-size:16px}
.composer textarea{width:100%;min-height:150px;font-size:14px;line-height:1.55}
.composer.int textarea{background:#fffdf3;border-color:#f3dc8a}
.composer-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;flex-wrap:wrap}
.composer-foot .hint{margin-right:auto;color:#667085;font-size:13px;display:flex;align-items:center;gap:8px;font-weight:600}
.composer-foot .hint input{width:18px;height:18px}
.composer-foot .btn-primary,.composer-foot .btn-outline{height:44px}
.thread{padding:6px 0}
.msg{display:grid;grid-template-columns:40px 1fr;gap:14px;padding:18px 24px;border-top:1px solid var(--line-2)}
.msg:first-child{border-top:0}
.msg.int{background:#fffcf0}
.msg-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.msg-head strong{font-size:14px}
.msg-head time{color:#667085;font-size:12px}
.msg-tag{height:22px;padding:0 9px;border-radius:999px;font-size:11px;font-weight:850;display:inline-flex;align-items:center}
.msg-tag.mt{background:#e2e8f0;color:#334155}
.msg-tag.cli{background:#dbeafe;color:#2563eb}
.msg-tag.int{background:#fff1bf;color:#a16207}
.msg-text{margin-top:7px;white-space:pre-wrap;line-height:1.6;color:#334155}
.empty-box{padding:46px 24px;text-align:center;color:#94a3b8;display:grid;justify-items:center;gap:10px;font-weight:600}
.empty-box svg{width:38px;height:38px;color:#cbd5e1;stroke-width:1.5}

/* Formulário em linha (apontamento, compromisso) */
.inline-form{padding:18px 24px 22px;display:grid;grid-template-columns:var(--cols);gap:14px;align-items:end}
.inline-form label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#344054}
.inline-form input,.inline-form select{width:100%}
.inline-form .btn-primary{height:42px}
@media(max-width:1100px){.inline-form{grid-template-columns:1fr 1fr}}
.total-pill{height:32px;padding:0 12px;border-radius:999px;background:#fff1bf;color:#8a5a00;font-weight:900;display:inline-flex;align-items:center;gap:6px}
.total-pill svg{width:16px;height:16px}
.icon-btn{width:36px;height:36px;border-radius:10px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:#64748b}
.icon-btn:hover{border-color:#fecaca;color:#ef4444;background:#fef2f2}
.icon-btn svg{width:16px;height:16px}
.btn-sm{height:36px!important;padding:0 12px!important;font-size:12.5px;border-radius:10px!important}
.done-row td{opacity:.55}

/* Histórico */
.timeline{padding:14px 24px 22px}
.tl-item{display:grid;grid-template-columns:150px 18px 1fr;gap:12px;align-items:start;padding:10px 0}
.tl-item time{color:#667085;font-size:12.5px;font-weight:700;padding-top:1px}
.tl-dot{width:10px;height:10px;border-radius:50%;background:#cbd5e1;margin-top:5px;position:relative}
.tl-item:not(:last-child) .tl-dot::after{content:"";position:absolute;left:4px;top:14px;width:2px;height:30px;background:#eef2f7}
.tl-item p{margin:0;color:#334155;line-height:1.45}

/* Agenda */
.when{display:grid;grid-template-columns:52px 1fr;gap:12px;align-items:center}
.when .next-date{background:#fff7d6;border-radius:12px;padding:6px 0;font-size:18px}

/* Modal de novo ticket */
.ticket-modal{width:min(880px,calc(100vw - 42px))}
.ticket-modal form{height:auto;max-height:calc(100vh - 38px)}
.err-line{color:#ef4444;font-weight:700;font-size:13px;display:none}

/* Portal do cliente */
body.client .quick .staff-only,body.client .staff-only{display:none!important}
.hero-client{background:linear-gradient(135deg,#0b1628,#172438);color:#fff;border-radius:18px;padding:28px 30px;display:flex;align-items:center;gap:22px;margin-bottom:22px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero-client::after{content:"";position:absolute;right:-40px;top:-60px;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(246,201,0,.16),transparent 65%)}
.hero-client h2{margin:0;font-size:26px;letter-spacing:-.03em}
.hero-client p{margin:6px 0 0;color:#cfd9e6}
.hero-client .btn-primary{margin-left:auto;position:relative;z-index:1}
.rate-box{padding:20px 24px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:16px;margin-bottom:18px}
.rate-box strong{display:block;font-size:15px}
.stars{display:flex;gap:6px;margin-top:10px}
.stars button{width:40px;height:40px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:20px;color:#cbd5e1}
.stars button:hover{color:#f6c900;border-color:#f6c900}
.client-grid{display:grid;grid-template-columns:1fr 340px;gap:18px;align-items:start}
@media(max-width:1100px){.client-grid{grid-template-columns:1fr}}
.contact-line{margin-top:18px;color:#667085;font-size:13px}

/* Modo de visualização (equipe / cliente) */
.mode-switch{display:grid;grid-template-columns:1fr 1fr;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:4px;margin:0 0 18px}
.mode-switch button{height:36px;border-radius:9px;background:transparent;color:#c8d3e2;font-weight:800;font-size:13px}
.mode-switch button.on{background:var(--yellow);color:#0f172a}
.client-select{width:100%;height:38px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:10px;font-size:12.5px;margin-top:8px}
.client-select option{color:#0f172a}
.profile select.user-select{background:transparent;border:0;color:#c8d3e2;height:auto;padding:0;font-size:12px;margin-top:3px;cursor:pointer;max-width:150px}
.profile select.user-select option{color:#0f172a}
.reset-link{background:transparent;color:#7f8fa5;font-size:11.5px;text-decoration:underline;padding:0;margin-top:10px}
.kpi-gray{background:#eef2f6;color:#64748b}
.nav-item .nav-count{margin-left:auto;font-style:normal;min-width:28px;height:24px;padding:0 8px;border-radius:999px;background:rgba(255,255,255,.1);color:#d3deee;font-size:12px;font-weight:800;display:grid;place-items:center}
.nav-item.active .nav-count{background:var(--yellow);color:#0f172a}

.kpi-row.five{grid-template-columns:repeat(5,minmax(150px,1fr))}
.kpi-row.six .kpi-card>div>span,.kpi-row.five .kpi-card>div>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.kpi-row.six .kpi-card small,.kpi-row.five .kpi-card small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.kpi-row.six .kpi-card>div,.kpi-row.five .kpi-card>div{min-width:0}
.kpi-row.five .kpi-card{grid-template-columns:52px 1fr;gap:14px;padding:16px}
.kpi-row.five .kpi-icon{width:50px;height:50px}.kpi-row.five .kpi-icon svg{width:24px;height:24px}
@media(max-width:1380px){.kpi-row.five{grid-template-columns:repeat(3,1fr)}}
/* dashboard: colunas e cards */
.tk-dash>.table-card{grid-column:span 2}
.tk-dash>.next-card{grid-column:auto;min-height:0}
.tk-dash .donut-wrap{grid-template-columns:150px 1fr;gap:18px;padding:22px 24px}
.tk-dash .legend-row span{white-space:nowrap}
.tk-dash .donut{width:150px;height:150px}.tk-dash .donut::after{width:88px;height:88px}.tk-dash .donut span{font-size:28px}
.tk-dash .legend-row{font-size:13px;grid-template-columns:11px 1fr auto}
.tk-dash .tk-table table{min-width:760px}
.tk-dash .tk-table td.subject{min-width:240px}
.tk-dash .alerts-list{gap:16px}
@media(max-width:1380px){.tk-dash>.table-card,.tk-dash>.next-card{grid-column:1/-1}}

.chart-tools{padding:14px 24px 0}
.tk-dash .tk-table table{min-width:640px}
.kpi-row.six .kpi-card{grid-template-columns:44px 1fr;gap:12px}
.kpi-row.six .kpi-icon{width:44px;height:44px}.kpi-row.six .kpi-icon svg{width:22px;height:22px}
.kpi-row.six .kpi-card>div>span{font-size:12.5px}
.bar-av{font-style:normal;width:30px;height:30px;border-radius:50%;background:#344054;color:#fff;font-size:11px;font-weight:900;display:grid;place-items:center;margin-top:-6px}
.bar-av.none{background:#fff;border:1.5px dashed #cbd5e1;color:#94a3b8}
.rank-bars .bar-item span{bottom:-30px!important}
.rank-bars{padding-bottom:40px!important}
.tk-dash .legend-row b{white-space:nowrap}

/* Apontamento com play/stop */
.btn-stop{display:inline-flex;align-items:center;gap:9px;height:46px;padding:0 16px;border-radius:12px;background:#ef4444;color:#fff;font-weight:850;box-shadow:0 12px 24px rgba(239,68,68,.25);white-space:nowrap}
.btn-stop svg{width:16px;height:16px}
.btn-stop b{font-variant-numeric:tabular-nums;background:rgba(255,255,255,.18);padding:4px 8px;border-radius:8px;font-size:13.5px;letter-spacing:.02em}
.btn-stop.big{height:50px;padding:0 20px}
.btn-stop:hover{filter:brightness(.96)}
.timer-pill{height:52px;display:inline-flex;align-items:center;gap:10px;padding:0 16px;border-radius:14px;background:#fff;border:1px solid #fecaca;box-shadow:var(--soft-shadow);color:#0f172a;font-weight:700}
.timer-pill i,.timer-dot{width:10px;height:10px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 0 rgba(239,68,68,.5);animation:pulse 1.6s infinite;flex:none}
.timer-pill b[data-clock]{font-variant-numeric:tabular-nums;color:#ef4444;font-weight:900}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(239,68,68,.45)}70%{box-shadow:0 0 0 9px rgba(239,68,68,0)}100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}}
@media (prefers-reduced-motion:reduce){.timer-pill i,.timer-dot{animation:none}}
.timer-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;margin-bottom:18px}
.timer-card.on{border-color:#fecaca;background:linear-gradient(90deg,#fff5f5,#fff 60%)}
.timer-main{display:flex;align-items:center;gap:16px}
.timer-main small{display:block;font-size:12px;font-weight:800;color:#667085}
.timer-main strong{display:block;font-size:34px;font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin:3px 0}
.timer-main span:not(.kpi-icon):not(.timer-dot){display:block;color:#667085;font-size:13px}
.timer-main .timer-dot{width:14px;height:14px}
.timer-other{display:flex;align-items:center;gap:10px;margin:-6px 0 18px;padding:12px 16px;border-radius:12px;background:#fff;border:1px dashed #fecaca;color:#475569;font-weight:600}
.timer-other b{color:#ef4444;font-variant-numeric:tabular-nums}
.manual-form{border-top:1px solid var(--line-2);margin-top:16px;background:#fbfcfe}
.finish-modal{width:min(760px,calc(100vw - 42px))}
.finish-sum{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.finish-sum>div{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#f8fafc}
.finish-sum small{display:block;font-size:12px;font-weight:800;color:#667085;margin-bottom:6px}
.finish-sum strong{font-size:16px}
.finish-sum .big-time{font-size:28px;font-weight:900;font-variant-numeric:tabular-nums}
#timerSlot:empty{display:none}
.head-actions:has(.timer-pill) .global-search{width:min(300px,22vw)}
.head-actions{flex-wrap:nowrap}
.timer-pill{white-space:nowrap}

/* Finalizar ticket */
.btn-finish{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 16px;border-radius:12px;background:#16a34a;color:#fff;font-weight:850;white-space:nowrap;box-shadow:0 12px 24px rgba(22,163,74,.22)}
.btn-finish svg{width:18px;height:18px;stroke-width:2.6}
.btn-finish:hover{filter:brightness(.96)}
.fz-warn{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-weight:700;margin-bottom:16px}
.fz-warn svg{width:18px;height:18px;flex:none}
.check-line{display:flex!important;align-items:center;gap:10px;font-size:13.5px!important;font-weight:700!important}
.check-line input{width:18px;height:18px}
.fz-label{display:block;font-size:12px;font-weight:800;color:#344054;margin-bottom:8px}
.fz-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fz-opt{display:flex!important;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:14px;padding:14px;cursor:pointer;background:#fff}
.fz-opt:has(input:checked){border-color:var(--yellow);background:#fffbea;box-shadow:0 0 0 3px rgba(246,201,0,.15)}
.fz-opt input{width:18px;height:18px;margin-top:2px;flex:none}
.fz-opt strong{display:block;font-size:14px}
.fz-opt small{display:block;color:#667085;font-size:12.5px;font-weight:500;margin-top:3px;line-height:1.4}
.solution-box{margin-top:20px;padding:16px 18px;border-radius:14px;background:#f0fdf4;border:1px solid #bbf7d0}
.solution-box small{display:flex;align-items:center;gap:6px;font-weight:850;color:#16a34a;margin-bottom:6px;font-size:12.5px}
.solution-box small svg{width:15px;height:15px;stroke-width:2.6}
@media(max-width:760px){.fz-options{grid-template-columns:1fr}}

/* Aviso vermelho: não pode finalizar */
.block-alert{display:grid;grid-template-columns:44px 1fr auto;gap:14px;align-items:center;padding:16px 18px;margin:-4px 0 18px;border-radius:16px;background:#fef2f2;border:1.5px solid #fca5a5;box-shadow:0 10px 26px rgba(239,68,68,.12)}
.block-alert .ba-icon{width:44px;height:44px;border-radius:50%;background:#ef4444;color:#fff;display:grid;place-items:center}
.block-alert .ba-icon svg{width:22px;height:22px;stroke-width:2.4}
.block-alert strong{display:block;color:#b91c1c;font-size:15.5px}
.block-alert p{margin:3px 0 0;color:#7f1d1d;font-weight:600;line-height:1.45}
.ba-actions{display:flex;align-items:center;gap:8px}
.ba-actions .btn-danger{height:40px!important}
.ba-x{width:34px;height:34px;border-radius:10px;background:transparent;color:#b91c1c;display:grid;place-items:center}
.ba-x:hover{background:#fee2e2}
.ba-x svg{width:16px;height:16px;stroke-width:2.6}
.block-alert.shake{animation:ba-shake .45s ease}
@keyframes ba-shake{0%,100%{transform:none}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@media (prefers-reduced-motion:reduce){.block-alert.shake{animation:none}}
@media(max-width:760px){.block-alert{grid-template-columns:44px 1fr}.ba-actions{grid-column:1/-1}}

/* Perfis */
.nav-sep{font-size:11px;color:#7f8fa5;font-weight:800;letter-spacing:.08em;padding:14px 18px 2px}
.role-tag{display:inline-block!important;margin-top:4px!important;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.12);color:#e5edf7!important;font-size:10.5px!important;font-weight:800;letter-spacing:.03em}
.role-tag.adm{background:var(--yellow);color:#0f172a!important}
.ro-tag{height:46px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border-radius:12px;background:#f1f5f9;border:1px solid var(--line);color:#475569;font-weight:800;font-size:13px}
.ro-tag svg{width:17px;height:17px}
select:disabled{background:#f8fafc;color:#475569;cursor:not-allowed}
/* Clientes */
.contacts{display:grid;gap:10px}
.contact-row{display:grid;grid-template-columns:1fr 1.3fr 36px;gap:10px;align-items:center}
.contact-row input{width:100%}
.contact-row .icon-btn{height:42px;width:36px}
.icon-action span{font-size:10px}
/* Relatórios */
.rel-period{display:grid;gap:6px}
.rel-period>span{font-size:12px;font-weight:700;color:#344054}
.profile strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
.profile select.user-select{display:block;max-width:160px;color:#9babc0;font-size:11.5px}

/* Relatórios: abas */
.rel-tabs{margin-bottom:18px}
.rel-tabs button{height:40px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;font-size:13.5px}
.rel-tabs svg{width:17px;height:17px}
.ex-filters input[type=date]{min-width:170px}
/* Extrato — prévia em folhas A4 */
.ex-wrap{display:grid;gap:22px;justify-items:center;padding:8px 0 30px}
.ex-page{width:794px;min-height:1123px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);padding:44px 48px 70px;position:relative;font-size:12px;color:#475467}
.ex-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:3px solid var(--yellow);padding-bottom:10px}
.ex-head h1{margin:0;font-size:22px;color:#061326;letter-spacing:-.01em;line-height:1.2}
.ex-head h1 span{color:#061326}
.ex-brand{display:flex;align-items:center;gap:8px;flex:none}
.ex-brand img{width:44px;height:44px;object-fit:contain}
.ex-brand b{display:block;font-size:17px;color:#061326;letter-spacing:.06em}
.ex-brand small{display:block;font-size:10.5px;color:#667085}
.ex-sub{display:flex;justify-content:space-between;font-size:10.5px;color:#667085;margin-top:6px}
.ex-cli{text-align:center;color:#061326;font-size:21px;margin:34px 0 22px}
.ex-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:34px}
.ex-kpi{background:#f1f4f8;border-left:4px solid var(--yellow);padding:12px 14px}
.ex-kpi b{display:block;font-size:22px;color:#061326}
.ex-kpi small{display:block;font-size:9.5px;color:#667085;margin-top:4px;letter-spacing:.04em}
.ex-h3{text-align:center;color:#061326;font-size:15px;margin:26px 0 12px}
.ex-table{width:100%;border-collapse:collapse;min-width:0!important;font-size:11px}
.ex-table th{height:auto;background:#d6dbe2;color:#344054;font-size:10px;letter-spacing:.02em;text-transform:none;padding:8px 10px;font-weight:800;border:0}
.ex-table td{height:auto;padding:8px 10px;white-space:normal;border-bottom:1px solid #eef2f7;color:#475467}
.ex-table .r{text-align:right}
.ex-table tr.tot td{font-weight:800;color:#0f172a}
.ex-tk{margin-bottom:16px;break-inside:avoid}
.ex-tk-h{display:flex;justify-content:space-between;gap:14px;background:#d6dbe2;color:#0f172a;padding:8px 10px;font-size:10.5px}
.ex-table.det th{background:#fff;border-bottom:1px solid #e1e7ef}
.ex-table.det tr.desc td{color:#344054;padding-bottom:12px;border-bottom:1px solid #e1e7ef}
.ex-foot{position:absolute;left:48px;right:48px;bottom:26px;display:flex;justify-content:space-between;font-size:9.5px;color:#98a2b3;border-top:1px solid #eef2f7;padding-top:8px}
@media(max-width:1100px){.ex-page{width:100%;min-height:0;padding:28px 22px 60px}.ex-kpis{grid-template-columns:1fr 1fr}}
.ex-table.det{table-layout:fixed}
.ex-table.det th:nth-child(1){width:12%}.ex-table.det th:nth-child(2),.ex-table.det th:nth-child(3){width:11%}
.ex-table.det th:nth-child(4){width:10%}.ex-table.det th:nth-child(5){width:12%}.ex-table.det th:nth-child(6){width:19%}
.ex-head h1{max-width:520px}

/* Marca */
.brand{height:auto!important;margin-bottom:22px!important;padding:4px 6px!important}
.brand-full{display:grid;gap:8px}
.brand-full img{width:230px;max-width:100%;height:auto;display:block}
.brand-full span{font-size:11.5px;letter-spacing:.22em;text-transform:uppercase;color:#9babc0;font-weight:700;padding-left:58px}
.ex-brand img{width:190px;height:auto}
/* Agenda estilo Outlook */
.ol{display:grid;grid-template-columns:268px 1fr;gap:18px;align-items:start;position:relative}
.ol:has(.ev-detail){grid-template-columns:268px 1fr 300px}
.ol-side{display:grid;gap:14px}
.ol-new{width:100%;height:46px!important}
.ol-box{padding:14px 16px}
.ol-sec{font-size:12px;font-weight:800;color:#344054;margin-bottom:8px}
.ol-cal{display:flex;align-items:center;gap:10px;padding:6px 0;font-weight:600;font-size:13.5px;cursor:pointer}
.ol-cal input{appearance:none;width:18px;height:18px;border-radius:5px;border:2px solid var(--c);background:#fff;flex:none;padding:0;cursor:pointer}
.ol-cal input:checked{background:var(--c);box-shadow:inset 0 0 0 2px #fff}
.ol-cal em{margin-left:auto;font-style:normal;font-size:11px;color:#667085;font-weight:800}
.ol-links{display:flex;gap:14px;margin-top:8px}
.ol-leg{display:grid;gap:8px;font-size:13px;color:#475569}
.ol-leg span{display:flex;align-items:center;gap:10px}
.ev-mark{width:22px;height:12px;border-radius:3px;background:#dbeafe;border-left:3px solid #2563eb;display:inline-block}
.ev-mark.pres{background:repeating-linear-gradient(135deg,#ede9fe 0 4px,#f5f3ff 4px 8px);border-left-color:#8b5cf6}
.ev-mark.done{opacity:.45}
.mini-cal .mc-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.mini-cal .mc-h strong{font-size:13.5px}
.mini-cal .mc-h button{width:28px;height:28px;border-radius:8px;background:transparent;color:#475569;display:inline-grid;place-items:center}
.mini-cal .mc-h button:hover{background:#f1f5f9}
.mini-cal .mc-h svg{width:15px;height:15px}
.mc-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.mc-g>span{font-size:10.5px;font-weight:800;color:#94a3b8;padding:3px 0}
.mc-d{height:30px;border-radius:8px;background:transparent;font-size:12.5px;font-weight:600;color:#1f2937;position:relative}
.mc-d:hover{background:#f1f5f9}
.mc-d.out{color:#cbd5e1}
.mc-d.inr{background:#fff7cc}
.mc-d.today{background:#0f172a;color:#fff}
.mc-d.sel:not(.today){box-shadow:inset 0 0 0 1.5px #caa600}
.mc-d i{position:absolute;left:50%;bottom:3px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#caa600}
.mc-d.today i{background:var(--yellow)}
.ol-main{overflow:hidden}
.ol-bar{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.ol-bar h3{margin:0;font-size:18px;letter-spacing:-.02em}
.ol-nav{display:flex;gap:6px}
.ol-nav .icon-btn:hover{border-color:#cbd5e1;color:#0f172a;background:#f8fafc}
.wk{--n:5}
.wk-head{display:grid;grid-template-columns:60px repeat(var(--n),1fr);border-bottom:1px solid var(--line);background:#fff}
.wk-day{padding:10px 12px;border-left:1px solid var(--line-2);cursor:pointer}
.wk-day small{display:block;font-size:11.5px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.05em}
.wk-day b{font-size:22px;line-height:1.1}
.wk-day.today small{color:#a16207}
.wk-day.today b{display:inline-grid;place-items:center;min-width:34px;height:34px;border-radius:50%;background:var(--yellow);color:#0f172a;font-size:17px;margin-top:2px}
.wk-body{display:grid;grid-template-columns:60px repeat(var(--n),1fr);max-height:640px;overflow:auto;position:relative}
.wk-hours span{display:block;font-size:11px;color:#94a3b8;font-weight:700;text-align:right;padding-right:8px;transform:translateY(-7px)}
.wk-hours span:first-child{transform:none}
.wk-col{position:relative;border-left:1px solid var(--line-2)}
.wk-col.today{background:#fffdf3}
.wk-slot{height:26px;border-top:1px solid #eef2f7;cursor:pointer}
.wk-slot.half{border-top:1px dashed #f3f5f8}
.wk-slot:hover{background:rgba(246,201,0,.08)}
.cal-ev{position:absolute;border-radius:7px;background:color-mix(in srgb,var(--c) 14%,#fff);border:1px solid color-mix(in srgb,var(--c) 35%,#fff);border-left:4px solid var(--c);padding:4px 7px;text-align:left;overflow:hidden;color:#0f172a;font-size:12px;line-height:1.3;box-shadow:0 2px 6px rgba(15,23,42,.06);z-index:2}
.cal-ev b{display:block;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-ev small{display:block;color:#475569;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-ev:hover{box-shadow:0 6px 16px rgba(15,23,42,.14);z-index:3}
.cal-ev.sel{box-shadow:0 0 0 2px #0f172a;z-index:4}
.cal-ev.done{opacity:.5}
.cal-ev.done b{text-decoration:line-through}
.now-line{position:absolute;left:0;right:0;height:2px;background:#ef4444;z-index:5}
.now-line::before{content:"";position:absolute;left:-5px;top:-4px;width:10px;height:10px;border-radius:50%;background:#ef4444}
.mo-head{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid var(--line)}
.mo-head span{padding:10px 12px;font-size:11.5px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.05em}
.mo-body{display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:118px}
.mo-cell{border-right:1px solid var(--line-2);border-bottom:1px solid var(--line-2);padding:6px;display:flex;flex-direction:column;gap:3px;cursor:pointer;overflow:hidden}
.mo-cell:hover{background:#fffdf3}
.mo-cell.out{background:#fafbfc}
.mo-cell.out .mo-n{color:#cbd5e1}
.mo-n{font-size:12.5px;font-weight:800;align-self:flex-start;min-width:24px;height:24px;border-radius:50%;display:grid;place-items:center}
.mo-cell.today .mo-n{background:var(--yellow)}
.mo-ev{display:flex;align-items:center;gap:6px;background:color-mix(in srgb,var(--c) 12%,#fff);border-radius:6px;padding:3px 6px;font-size:11.5px;font-weight:700;color:#1f2937;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mo-ev i{width:7px;height:7px;border-radius:50%;background:var(--c);flex:none}
.mo-ev.done{opacity:.5}
.mo-more{background:transparent;color:#0b66d8;font-weight:800;font-size:11.5px;text-align:left;padding:0 6px}
.ev-detail{position:sticky;top:20px;overflow:hidden}
.evd-bar{height:6px}
.evd-top{display:flex;justify-content:space-between;align-items:center}
.ev-detail h3{margin:12px 0 0;font-size:18px;letter-spacing:-.02em}
.evd-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
@media(max-width:1380px){.ol,.ol:has(.ev-detail){grid-template-columns:240px 1fr}.ev-detail{grid-column:1/-1;position:static}}
@media(max-width:900px){.ol,.ol:has(.ev-detail){grid-template-columns:1fr}}
/* Padrão de tabelas */
table th{white-space:nowrap}
.table-scroll td.num,.table-scroll th.num{text-align:right}

.brand-full span{padding-left:0!important;white-space:nowrap;letter-spacing:.2em!important;font-size:10.5px!important}
.brand-full img{width:236px!important}
.ol:has(.ev-detail){grid-template-columns:268px 1fr}
.ev-detail{position:static}
.ev-detail h3{font-size:16px}
.cal-ev.pres{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--c) 16%,#fff) 0 6px,color-mix(in srgb,var(--c) 8%,#fff) 6px 12px)}
@media(max-width:1380px){.ol:has(.ev-detail){grid-template-columns:240px 1fr}.ev-detail{grid-column:auto}}

/* =====================================================
   Escala tipográfica única + menu mais compacto + recolhível
   ===================================================== */
body{font-size:14px}
.sidebar{width:248px;padding:22px 14px 18px;transition:width .2s ease}
.main{margin-left:248px;padding:28px 32px 40px;transition:margin-left .2s ease}
.brand{position:relative}
.brand-full .logo-mini{display:none;width:40px;height:40px}
.brand-full img.logo-full{width:196px!important}
.brand-full span{font-size:10px!important}
.side-toggle{position:absolute;right:-27px;top:8px;width:26px;height:26px;border-radius:8px;background:#fff;border:1px solid var(--line);color:#334155;display:grid;place-items:center;box-shadow:0 4px 12px rgba(15,23,42,.12);z-index:40}
.side-toggle svg{width:15px;height:15px;transition:transform .2s}
.side-toggle:hover{border-color:var(--yellow);color:#0f172a}
.mode-switch{margin-bottom:14px}
.mode-switch button{height:32px;font-size:12.5px}
.nav{gap:4px!important}
.nav-item{height:44px!important;font-size:14px!important;font-weight:600!important;gap:12px!important;padding:0 14px!important;border-radius:10px!important}
.nav-item svg{width:19px!important;height:19px!important}
.nav-item.active::after{top:9px!important;height:26px!important}
.nav-item .nav-count{height:22px;min-width:26px;font-size:11.5px}
.nav-sep{padding:12px 14px 2px;font-size:10.5px}
.quick{margin-top:18px!important;padding-top:16px!important;gap:4px!important}
.quick p{font-size:10.5px!important;margin:0 0 6px!important}
.quick a{height:36px!important;font-size:13.5px!important;grid-template-columns:22px 1fr 16px!important;gap:10px!important}
.quick a svg{width:17px;height:17px}
.side-bottom{padding-bottom:12px!important}
.updated span{font-size:11px!important}.updated strong{font-size:12px!important;margin-top:4px!important}
.side-refresh{width:36px!important;height:36px!important}
.profile{height:auto!important;min-height:62px;padding:10px!important;margin-top:12px!important;border-radius:14px!important}
.profile .avatar{width:34px;height:34px}
.profile strong{font-size:13px}
/* recolhido */
body.side-min .sidebar{width:76px;padding:22px 10px 18px}
body.side-min .main{margin-left:76px}
body.side-min .brand-full .logo-full,body.side-min .brand-full span{display:none}
body.side-min .brand-full .logo-mini{display:block;margin:0 auto}
body.side-min .side-toggle svg{transform:rotate(180deg)}
body.side-min .mode-switch{grid-template-columns:1fr;gap:3px;padding:3px}
body.side-min .mode-switch button{font-size:0;height:22px}
body.side-min .mode-switch button::before{content:attr(data-mode);font-size:9.5px;text-transform:uppercase;letter-spacing:.02em}
body.side-min .nav-item{justify-content:center;padding:0!important}
body.side-min .nav-item span,body.side-min .nav-sep{display:none}
body.side-min .nav-item .nav-count{position:absolute;top:3px;right:3px;height:17px;min-width:17px;padding:0 4px;font-size:9.5px}
body.side-min .quick p,body.side-min .quick a span,body.side-min .quick a b{display:none}
body.side-min .quick a{grid-template-columns:1fr!important;justify-items:center}
body.side-min .updated{display:none}
body.side-min .side-bottom{justify-content:center}
body.side-min .profile{justify-content:center;padding:8px!important}
body.side-min .profile>div,body.side-min .client-select{display:none}
/* cabeçalho de página */
.page-head{margin-bottom:20px!important;align-items:center!important}
.page-head h1{font-size:28px!important;letter-spacing:-.03em!important;margin:0 0 4px!important}
.page-head p{font-size:14px!important}
.global-search{height:44px!important;border-radius:12px!important}
.bell{width:44px!important;height:44px!important;border-radius:12px!important}
.btn-primary,.btn-outline,.btn-danger,.btn-delete{height:42px!important;font-size:13.5px!important;font-weight:800!important;border-radius:11px!important;padding:0 16px!important}
.timer-pill{height:44px}
.open-tabs{margin:-4px 0 18px}
.open-tab{height:36px;font-size:12.5px}
/* cards */
.card-title{padding:18px 20px 0!important}
.card-title h3{font-size:16px!important;font-weight:750!important;letter-spacing:-.01em}
.card-title p{font-size:13px!important;margin-top:4px!important}
.card-body{padding:16px 20px 20px}
.card-link,.table-link{height:46px!important;font-size:13px!important;padding:0 20px!important}
/* KPIs */
.kpi-row{gap:14px!important;margin-bottom:18px!important}
.kpi-card{height:96px!important;padding:16px!important;border-radius:14px!important}
.kpi-card>div>span{font-size:12.5px!important;font-weight:700!important;color:#475467!important}
.kpi-card strong{font-size:26px!important;margin:4px 0 2px!important;letter-spacing:-.02em}
.kpi-card small{font-size:12px!important}
/* tabelas */
th{height:42px!important;font-size:10.5px!important;padding:0 16px!important;letter-spacing:.06em!important}
td{height:auto!important;padding:12px 16px!important;font-size:13.5px}
.project-name strong{font-size:13.5px}.project-name small{font-size:12px}
.badge{height:24px!important;font-size:11.5px!important;padding:0 9px!important}
.client-avatar{width:30px!important;height:30px!important;border-radius:9px!important;font-size:12px}
.owner .avatar.sm{width:26px;height:26px}
.owner strong{font-size:13.5px;font-weight:600}
.table-footer{height:54px!important;font-size:13px}
.tk-head h2{font-size:21px}
.tk-tabs button{height:48px;font-size:14px}
/* Dashboard: grade alinhada, cards da mesma altura */
.tk-dash{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:16px!important}
.tk-dash>.card{display:flex;flex-direction:column;min-height:0!important}
.tk-dash>.card>.card-link,.tk-dash>.card>.table-link,.tk-dash>.card>.soft-btn{margin-top:auto}
.tk-dash>.table-card{grid-column:span 2!important}
.tk-dash .donut-wrap{flex:1;align-content:center;grid-template-columns:150px 1fr!important;padding:18px 20px!important}
.tk-dash .legend{gap:10px}
.tk-dash .legend-row{font-size:13px!important;font-weight:700!important}
.tk-dash .rank-bars{height:210px!important;margin:12px 20px 0!important;flex:none}
.tk-dash .rank-bars .bar-item i{width:min(44px,100%)!important}
.tk-dash .chart-tools{padding:12px 20px 0}
.tk-dash .alerts-list{padding:16px 20px!important;gap:14px!important;flex:1}
.tk-dash .alert-item{grid-template-columns:36px 1fr auto!important;gap:12px!important}
.tk-dash .alert-icon{width:36px!important;height:36px!important}
.tk-dash .alert-icon svg{width:18px!important;height:18px!important}
.tk-dash .alert-item strong{font-size:13px!important}
.tk-dash .next-actions{padding:16px 20px!important;flex:1}
.tk-dash .soft-btn{margin:6px 20px 18px!important;width:calc(100% - 40px)!important;height:40px!important}
.seg-pill button{height:30px;font-size:12.5px}
@media(max-width:1380px){.tk-dash{grid-template-columns:1fr 1fr!important}.tk-dash>.alerts-card,.tk-dash>.table-card,.tk-dash>.next-card{grid-column:1/-1!important}}
@media(max-width:760px){.tk-dash{grid-template-columns:1fr!important}}
@media(max-width:920px){.side-toggle{display:none}}


/* Colunas arrastáveis */
table.dragcols th{cursor:grab;user-select:none;position:relative}
table.dragcols th .grip{color:#cbd5e1;margin-right:6px;letter-spacing:-2px;font-size:11px}
table.dragcols th:hover .grip{color:#94a3b8}
table.dragcols th.dragging{opacity:.4}
table.dragcols th.drop-l{box-shadow:inset 3px 0 0 var(--yellow)}
table.dragcols th.drop-r{box-shadow:inset -3px 0 0 var(--yellow)}
.cols-wrap{position:relative}
.cols-dd{position:absolute;right:0;top:calc(100% + 8px);width:280px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 22px 55px rgba(15,23,42,.16);padding:14px;display:none;z-index:40}
.cols-dd.on{display:block}
.cols-h{display:flex;justify-content:space-between;align-items:center}
.cols-dd p{font-size:12px;margin:6px 0 10px;line-height:1.4}
.cols-opt{display:flex!important;align-items:center;gap:10px;padding:6px 2px;font-size:13.5px!important;font-weight:600!important;color:#1f2937!important;cursor:pointer}
.cols-opt input{width:16px;height:16px}

/* ===== Sistema real: perfil logado, sair, usuários ===== */
.profile{position:relative}
.profile .me-mail{display:block;color:#9babc0;font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.profile .logout-btn{margin-left:auto;flex:none;background:rgba(255,255,255,.08);border:0;color:#c8d3e2;width:32px;height:32px;border-radius:8px;display:grid;place-items:center;cursor:pointer}
.profile .logout-btn:hover{background:rgba(255,255,255,.16);color:#fff}
.profile .logout-btn svg{width:16px;height:16px}
body.side-min .profile .logout-btn,body.side-min .profile .me-mail{display:none}
td .role-tag{background:#eef2f7;color:#334155!important;margin-top:0!important}
td .role-tag.adm{background:var(--yellow);color:#0f172a!important}

/* ===== Triagem de e-mails ===== */
.tri-card{padding:18px 20px;margin-bottom:14px}
.tri-head strong{display:block;font-size:15px}
.tri-head small{color:var(--muted,#64748b);font-size:12.5px}
.tri-body{white-space:pre-wrap;font-family:inherit;font-size:13px;background:#f8fafc;border:1px solid #e5e9f0;border-radius:10px;padding:12px 14px;margin:12px 0;max-height:220px;overflow:auto}
.tri-actions{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:flex-end}
.tri-actions label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700}
.tri-actions select{min-width:220px}
.tri-actions .tri-check{flex-direction:row;align-items:center;gap:8px;font-weight:500;font-size:12.5px}
.tri-btns{margin-left:auto;display:flex;gap:8px}

/* ===== Importação do Tiflux ===== */
.tf-prev{padding:18px 22px;margin-bottom:16px;border:2px solid var(--yellow)}
.tf-prev h3{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:16px}
.tf-prev h3 svg{width:18px;height:18px}
.tf-prev ul{margin:0 0 10px;padding-left:18px;font-size:13.5px;line-height:1.7}
.tf-warn{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:10px;padding:10px 12px;font-size:12.5px;line-height:1.6}
.tf-btns{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}

/* ===== Agrupar chamados ===== */
.ag-lista{display:flex;flex-direction:column;gap:8px;max-height:340px;overflow:auto}
.ag-item{display:flex;gap:12px;align-items:flex-start;border:1px solid #e5e9f0;border-radius:10px;padding:10px 12px;cursor:pointer}
.ag-item:hover{background:#f8fafc}
.ag-item input{margin-top:3px}
.ag-item strong{display:block;font-size:13.5px}
.ag-item small{color:#64748b;font-size:12px}
.agr-note{display:flex;align-items:center;gap:10px;background:#eef4ff;border:1px solid #c7d7fe;color:#1e3a8a;border-radius:12px;padding:10px 14px;margin:0 0 14px;font-size:13.5px}
.agr-note svg{width:18px;height:18px;flex:none}
.agr-note button{margin-left:auto}

/* ===== Chamados em andamento (pizza + resumo, padrão Tiflux) ===== */
.tk-dash .and-card{grid-column:span 1;padding-bottom:6px}
.and-tabs{display:flex;flex-wrap:wrap;gap:4px 18px;border-bottom:1px solid #e5e9f0;padding:0 22px;margin-top:6px}
.and-tabs button{background:none;border:0;padding:10px 0 12px;font:inherit;font-size:14px;color:#334155;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.and-tabs button.on{color:#0f172a;font-weight:700;border-bottom-color:var(--yellow)}
.and-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,210px);gap:14px;align-items:center;padding:14px 18px 16px}
.and-pie{width:100%;max-width:240px;justify-self:center}
.and-pie .pie-slice{cursor:pointer}
.and-pie .pie-slice path{stroke:#fff;stroke-width:1.5;transition:opacity .15s}
.and-pie .pie-slice:hover path{opacity:.85}
.and-pie text{fill:#fff;font-size:15px;font-weight:700;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.and-resumo h4{margin:0 0 6px;font-size:15px;font-weight:600;padding-bottom:10px;border-bottom:1px solid #eef1f5}
.and-list{max-height:250px;overflow:auto;padding-right:6px}
.and-row{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;padding:8px 4px;text-align:left;cursor:pointer;border-radius:8px;font:inherit}
.and-row:hover{background:#f8fafc}
.and-av{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;font-size:16px;flex:none}
.and-row strong{display:block;font-size:13.5px;font-weight:600;color:#0f172a}
.and-row small{font-size:12px;color:#64748b}
@media(max-width:1380px){.tk-dash .and-card{grid-column:1/-1}}
@media(max-width:760px){.and-body{grid-template-columns:1fr}}
.tk-dash svg.and-pie{width:100%!important;height:auto!important;max-width:240px;aspect-ratio:1}
.tk-dash .alerts-list{align-content:start}
.tk-dash .legend-row b{white-space:nowrap}
.tk-dash .donut-wrap{grid-template-columns:1fr!important;justify-items:center;gap:18px!important;padding:20px 24px!important}
.tk-dash .donut-wrap .legend{width:100%}
.and-pie text{stroke:none!important;fill:#fff!important}
.and-pie path{stroke:#fff!important;stroke-width:1.5!important}

.tk-dash>.next-card{align-self:stretch}
@media(max-width:1380px){.tk-dash .and-card{grid-column:1/-1}}

/* ===== Fotos e destaques ===== */
img.av-foto{object-fit:cover;padding:0;background:#e5e7eb}
img.and-av{object-fit:cover}
.me-foto{background:none;border:0;padding:0;cursor:pointer;border-radius:50%;flex:none}
.me-foto:hover{filter:brightness(1.08)}
.us-foto{grid-column:1/-1;display:flex;align-items:center;gap:14px}
.us-foto-prev{width:64px;height:64px;border-radius:50%;background:#eef2f7;display:grid;place-items:center;overflow:hidden;color:#94a3b8}
.us-foto-prev img{width:100%;height:100%;object-fit:cover}
.us-foto-prev svg{width:28px;height:28px}
.dq-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 18px 0}
.dq{display:flex;align-items:center;gap:12px;border-radius:14px;padding:10px 12px;cursor:pointer;border:1px solid #eef1f5;transition:transform .15s}
.dq:hover{transform:translateY(-1px)}
.dq-ouro{background:linear-gradient(135deg,#fff8d6,#fff3b0);border-color:#f6d860}
.dq-fila{background:#f6f8fb}
.dq-foto{position:relative;width:54px;height:54px;flex:none}
.dq-foto img,.dq-foto span{width:54px;height:54px;border-radius:50%;object-fit:cover;display:grid;place-items:center;color:#fff;font-weight:800;font-size:17px;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--c)}
.dq-ouro .dq-foto img,.dq-ouro .dq-foto span{box-shadow:0 0 0 3px #fff,0 0 0 5px #f6c900}
.dq-foto i{position:absolute;right:-4px;bottom:-4px;width:22px;height:22px;border-radius:50%;background:#0f172a;color:#f6c900;display:grid;place-items:center;box-shadow:0 0 0 2px #fff}
.dq-fila .dq-foto i{background:#64748b;color:#fff}
.dq-foto i svg{width:12px;height:12px}
.dq-txt small{display:block;font-size:11px;font-weight:700;color:#92740a;text-transform:none}
.dq-fila .dq-txt small{color:#64748b}
.dq-txt strong{display:block;font-size:16px;line-height:1.2;color:#0f172a}
.dq-txt span{font-size:12px;color:#475569}
.dq-txt b{font-size:14px;color:#0f172a}

/* ===== Lado descontraído ===== */
.fun-row{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin:0 0 18px}
.fun-row.so-meta{grid-template-columns:1fr}
@media(max-width:1100px){.fun-row{grid-template-columns:1fr}}
/* Meu dia */
.meu-dia{padding:18px 22px;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"head nums" "selos selos";gap:14px 26px;align-items:center}
.md-head{grid-area:head;display:flex;align-items:center;gap:14px}
.md-foto img,.md-foto span{width:56px;height:56px;border-radius:50%;object-fit:cover;display:grid;place-items:center;color:#fff;font-weight:800;font-size:18px;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--c)}
.md-head strong{font-size:18px;display:block}
.md-head p{margin:2px 0 0;color:#475569;font-size:13px;max-width:280px}
.md-nums{grid-area:nums;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.md-nums>*{background:#f6f8fb;border:1px solid #eef1f5;border-radius:12px;padding:10px 12px;text-align:left;font:inherit;display:flex;flex-direction:column;gap:2px}
.md-nums button{cursor:pointer}.md-nums button:hover{background:#eef3fa}
.md-nums b{font-size:22px;font-weight:800;color:#0f172a;line-height:1.1}
.md-nums span{font-size:12px;color:#64748b}
.md-nums em{color:#dc2626;font-style:normal;font-weight:700}
.md-horas i{display:block;height:6px;background:#e5e9f0;border-radius:99px;margin-top:6px;overflow:hidden}
.md-horas u{display:block;height:100%;background:linear-gradient(90deg,#22a35a,#f6c900);border-radius:99px;text-decoration:none}
.md-timer{background:#fff7d6!important;border-color:#f6d860!important}
.md-selos{grid-area:selos;border-top:1px solid #eef1f5;padding-top:12px}
.md-selos small{display:block;font-size:11.5px;font-weight:700;color:#64748b;margin-bottom:8px}
.md-selos>div{display:flex;flex-wrap:wrap;gap:8px}
.selo{display:inline-flex;align-items:center;gap:6px;padding:6px 11px 6px 7px;border-radius:99px;background:#f1f4f8;color:#94a3b8;font-size:12px;font-weight:600;cursor:default;filter:grayscale(1)}
.selo svg{width:18px;height:18px;padding:3px;border-radius:50%;background:#e2e8f0;box-sizing:content-box}
.selo em{font-style:normal}
.selo.on{background:linear-gradient(135deg,#fff3b0,#ffe066);color:#5c4a00;filter:none;box-shadow:0 4px 12px rgba(246,201,0,.25)}
.selo.on svg{background:#0f172a;color:#f6c900}
@media(max-width:1300px){.meu-dia{grid-template-columns:1fr;grid-template-areas:"head" "nums" "selos"}}
/* Meta da equipe */
.meta-card{padding:18px 22px;display:flex;flex-direction:column;justify-content:center}
.meta-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.meta-top small{font-size:11.5px;font-weight:700;color:#64748b}
.meta-top strong{display:block;font-size:30px;font-weight:900;line-height:1.1}
.meta-top strong span{font-size:16px;color:#94a3b8;font-weight:700}
.meta-top p{margin:0;font-size:12.5px;color:#64748b}
.meta-bar{position:relative;height:14px;background:#eef1f5;border-radius:99px;margin:14px 0 8px;overflow:hidden}
.meta-bar i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#0f2742,#2563eb);border-radius:99px;transition:width .6s}
.meta-bar b{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:10px;color:#0f172a}
.meta-msg{margin:0;font-size:13px;font-weight:600;color:#334155}
.meta-card.batida{background:linear-gradient(135deg,#fffbe6,#fff3b0);border-color:#f6d860}
.meta-card.batida .meta-bar i{background:linear-gradient(90deg,#f6c900,#22a35a)}
/* Pódio */
.podio-box{padding:14px 18px 0}
.podio-tit strong{font-size:14px}.podio-tit small{margin-left:8px;font-size:12px;color:#64748b}
.podio{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:10px;margin-top:10px}
.pod{display:flex;flex-direction:column;align-items:center;cursor:pointer;text-align:center}
.pod.vazio{cursor:default;opacity:.55}
.pod-foto{position:relative;margin-bottom:6px}
.pod-foto img,.pod-foto span{width:52px;height:52px;border-radius:50%;object-fit:cover;display:grid;place-items:center;color:#fff;font-weight:800;font-size:16px;background:#cbd5e1;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--c,#cbd5e1)}
.pod-1 .pod-foto img,.pod-1 .pod-foto span{width:66px;height:66px;font-size:20px;box-shadow:0 0 0 3px #fff,0 0 0 6px #f6c900}
.pod-coroa{position:absolute;top:-12px;left:50%;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;background:#0f172a;color:#f6c900;display:grid;place-items:center;box-shadow:0 0 0 2px #fff}
.pod-coroa svg{width:13px;height:13px}
.pod strong{font-size:13.5px}.pod small{font-size:11.5px;color:#64748b}
.pod-base{width:100%;margin-top:6px;border-radius:10px 10px 0 0;display:grid;place-items:center;color:#fff;font-weight:900}
.pod-1 .pod-base{height:46px;background:linear-gradient(180deg,#f6c900,#e0b400);color:#0f172a}
.pod-2 .pod-base{height:32px;background:linear-gradient(180deg,#cbd5e1,#94a3b8)}
.pod-3 .pod-base{height:22px;background:linear-gradient(180deg,#e7a46a,#c2733a)}
.pod:not(.vazio):hover .pod-foto{transform:translateY(-2px)}
.fila-tag{display:flex;align-items:center;gap:8px;margin:10px 0 0;padding:7px 10px;border-radius:10px;background:#f6f8fb;font-size:12.5px;color:#475569;cursor:pointer}
.fila-tag .mini{width:24px;height:24px;border-radius:50%;object-fit:cover;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:800}
canvas.confete{position:fixed;inset:0;pointer-events:none;z-index:9999}

/* ===== Meu dia compacto (v2) ===== */
.fun-row{display:flex;flex-wrap:wrap;gap:14px;grid-template-columns:none}
.fun-row>.meu-dia{flex:3 1 640px;min-width:0}
.fun-row>.meta-card{flex:1 1 260px;min-width:240px}
.meu-dia{display:flex!important;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:12px 16px}
.md-head{flex:0 0 auto;gap:10px}
.md-foto img,.md-foto span{width:40px;height:40px;font-size:14px;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--c)}
.md-head strong{font-size:14.5px}
.md-head p{font-size:12px;max-width:210px}
.md-nums{flex:1 1 360px;display:flex;gap:8px}
.md-nums>*{flex:1 1 0;padding:6px 10px;border-radius:10px;min-width:0}
.md-nums b{font-size:16px}
.md-nums span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-horas i{height:4px;margin-top:4px}
.md-selos{flex:0 0 auto;border-top:0;padding-top:0;border-left:1px solid #eef1f5;padding-left:14px}
.md-selos small{font-size:10.5px;margin-bottom:5px}
.md-selos>div{gap:5px;flex-wrap:nowrap}
.selo{padding:0;width:30px;height:30px;justify-content:center;border-radius:50%;cursor:help}
.selo em{display:none}
.selo svg{width:16px;height:16px;padding:0;background:none}
.selo.on svg{background:none;color:#5c4a00}
.meta-card{padding:12px 16px}
.meta-top strong{font-size:22px}.meta-top strong span{font-size:13px}
.meta-bar{height:10px;margin:8px 0 6px}
.meta-msg{font-size:12px}
@media(max-width:1300px){.meu-dia{grid-template-areas:none}}

/* ===== Layout v3: destaques da equipe no lugar dos compromissos ===== */
.tk-dash>.table-card{grid-column:span 1!important;min-width:0}
.tk-dash .table-card .tk-table table{min-width:0!important;width:100%}
.tk-dash .table-card .tk-table td.subject{min-width:0!important}
.tk-dash .table-card .tk-table th:nth-child(4),.tk-dash .table-card .tk-table td:nth-child(4){display:none}
.tk-dash .table-card .tk-table th,.tk-dash .table-card .tk-table td{padding-left:10px;padding-right:10px}
.tk-dash .table-card .project-name small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.eq-card{padding-bottom:14px}
.eq-card .podio-box{padding:4px 20px 0}
.eq-card .podio-tit{margin-top:4px}
.md-mini{margin:14px 20px 0;padding:12px 14px;border:1px solid #eef1f5;border-radius:12px;background:#fbfcfe}
.md-mini-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.md-mini-top .mini{width:26px;height:26px;border-radius:50%;object-fit:cover;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:800}
.md-mini-top strong{font-size:13.5px}
.md-mini-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.md-mini-nums>*{background:#fff;border:1px solid #eef1f5;border-radius:10px;padding:7px 10px;text-align:left;font:inherit;display:flex;flex-direction:column;gap:1px;min-width:0}
.md-mini-nums button{cursor:pointer}.md-mini-nums button:hover{background:#eef3fa}
.md-mini-nums b{font-size:17px;font-weight:800;color:#0f172a}
.md-mini-nums span{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-mini-nums em{color:#dc2626;font-style:normal;font-weight:700}
.md-mini-selos{margin-top:10px}
.md-mini-selos small{display:block;font-size:10.5px;font-weight:700;color:#64748b;margin-bottom:6px}
.md-mini-selos>div{display:flex;gap:6px}
.md-mini-selos .selo{padding:0;width:30px;height:30px;justify-content:center;border-radius:50%;cursor:help}
.md-mini-selos .selo svg{width:16px;height:16px;padding:0;background:none}
.md-mini-selos .selo.on svg{background:none;color:#5c4a00}
.eq-card .meta-card{margin:10px 20px 0;padding:10px 14px;border:1px solid #eef1f5;border-radius:12px;box-shadow:none;background:#fbfcfe}
.eq-card .meta-top strong{font-size:20px}.eq-card .meta-top strong span{font-size:12px}
.eq-card .meta-top p{font-size:11.5px}
.eq-card .meta-bar{height:8px;margin:6px 0 4px}
.eq-card .meta-msg{font-size:11.5px}
.eq-card .btn-sm{padding:4px 8px;font-size:11.5px}
@media(max-width:1380px){.tk-dash>.table-card{grid-column:1/-1!important}.tk-dash>.eq-card{grid-column:auto}}
.tk-dash .table-card .tk-table td:last-child,.tk-dash .table-card .tk-table th:last-child{white-space:nowrap;font-size:11.5px;padding-right:16px}
.tk-dash .table-card .tk-table td:nth-child(3){white-space:nowrap;font-size:12.5px}
.tk-dash .table-card .tk-table td.subject strong{font-size:13px}
.tk-dash .table-card .project-name small{max-width:220px}
/* Resumo compacto */
.and-list{max-height:none!important;overflow:visible!important;padding-right:0!important}
.and-row{gap:9px!important;padding:5px 4px!important}
.and-row .and-av{width:26px!important;height:26px!important;font-size:11px!important;flex:none}
.and-row .and-nm{flex:1;min-width:0;font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.and-row .and-n{font-size:13px;font-weight:800;color:#0f172a}
/* Status: rosca menor + vencidos por responsável */
.venc-resp{margin:8px 24px 12px;padding-top:12px;border-top:1px solid #eef1f5}
.venc-resp h4{margin:0 0 8px;font-size:13.5px;font-weight:700}
.vr-row{display:grid;grid-template-columns:110px 1fr 32px;align-items:center;gap:10px;width:100%;background:none;border:0;padding:4px 2px;font:inherit;cursor:pointer;border-radius:6px}
.vr-row:hover{background:#f8fafc}
.vr-nm{font-size:12.5px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#334155}
.vr-row i{height:8px;background:#f1f4f8;border-radius:99px;overflow:hidden;display:block}
.vr-row u{display:block;height:100%;border-radius:99px;text-decoration:none}
.vr-row b{font-size:12.5px;color:#dc2626;text-align:right}
.vr-row{grid-template-columns:150px 1fr 32px}
/* Proporção dos gráficos (pizza x rosca) */
.tk-dash svg.and-pie{max-width:280px!important}
.tk-dash .and-body{grid-template-columns:minmax(0,1fr) minmax(180px,220px)!important;padding:22px 20px!important;flex:1;align-content:center}
.tk-dash .chart-card .donut{width:240px!important;height:240px!important}
.tk-dash .chart-card .donut::after{width:150px!important;height:150px!important}
.tk-dash .chart-card .donut span{font-size:40px!important}
.tk-dash .chart-card .donut span small{font-size:13px!important}
.tk-dash .chart-card .donut-wrap{flex:1!important;align-content:center!important;gap:26px!important;padding:22px 32px!important}
.tk-dash .chart-card .legend{gap:12px!important}
/* ===== Pódio v2 (troféu e medalhas) ===== */
.eq-head{align-items:center!important}
.eq-head h3{display:flex;align-items:center;gap:8px}
.eq-head h3 svg{width:20px;height:20px;color:#2563eb}
.mes-sel{display:inline-flex;align-items:center;gap:6px;border:1px solid #dbe3ee;border-radius:10px;padding:5px 8px 5px 10px;background:#fff;cursor:pointer}
.mes-sel svg{width:16px;height:16px;color:#0f2742}
.mes-sel select{border:0;background:transparent;font:inherit;font-size:13px;font-weight:600;color:#0f172a;cursor:pointer;outline:0;padding-right:2px}
.eq-card .podio-box{padding:10px 20px 0}
.eq-card .podio{display:grid;grid-template-columns:1fr 1.12fr 1fr;align-items:end;gap:10px;margin-top:0}
.eq-card .pod{display:flex;flex-direction:column;align-items:center;cursor:pointer}
.eq-card .pod.vazio{cursor:default}
.pod-ic{display:flex;align-items:flex-end;justify-content:center;gap:2px;height:58px;margin-bottom:-2px;position:relative;z-index:1}
.pod-ic .louro{width:14px;height:24px;color:#cbd5e1;margin-bottom:6px}
.pod-ic .louro:last-child{transform:scaleX(-1)}
.pod-1 .pod-ic .louro{color:#f6d860;width:16px;height:28px}
.pod-3 .pod-ic .louro{color:#f2c6a0}
.pod-ic .medalha{width:36px;height:44px}
.pod-ic .trofeu{width:52px;height:52px}
.pod-card{width:100%;border-radius:14px;padding:12px 8px 14px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid transparent;transition:transform .15s}
.pod:not(.vazio):hover .pod-card{transform:translateY(-2px)}
.pod-2 .pod-card{background:linear-gradient(180deg,#eef3fb,#dde6f5);border-color:#d3def0}
.pod-1 .pod-card{background:linear-gradient(180deg,#fff8d6,#ffeea0);border:2px solid #f6c900;padding:18px 8px 20px;box-shadow:0 8px 22px rgba(246,201,0,.25)}
.pod-3 .pod-card{background:linear-gradient(180deg,#fdf0e6,#f9dcc7);border-color:#f3d2ba}
.pod-pos{font-size:15px;font-weight:900;padding:2px 14px;border-radius:99px;color:#0f172a}
.pod-2 .pod-pos{background:#d7e0ee}.pod-1 .pod-pos{background:#f6d860;font-size:17px}.pod-3 .pod-pos{background:#f3c9a5}
.pod-card strong{font-size:14px;line-height:1.2;color:#0f172a;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pod-1 .pod-card strong{font-size:15.5px}
.pod-card small{font-size:12px;color:#475569}
.pod.vazio .pod-card{opacity:.6}
.podio-leg{margin:8px 0 0;text-align:center;font-size:11.5px;color:#94a3b8}
.pod-ic{height:66px}.pod-ic .medalha{width:44px;height:54px}.pod-ic .trofeu{width:60px;height:60px}
.pod-ic .louro{width:16px;height:28px}.pod-1 .pod-ic .louro{width:18px;height:32px}

/* ===== Timer esquecido ===== */
.te-banner{display:flex;align-items:center;gap:14px;padding:12px 16px;margin:0 0 16px;border-radius:14px;background:#fff7ed;border:1px solid #fdba74;box-shadow:0 6px 18px rgba(234,88,12,.12)}
.te-banner .te-ic{width:38px;height:38px;border-radius:50%;background:#ffedd5;color:#c2410c;display:grid;place-items:center;flex:none}
.te-banner .te-ic svg{width:20px;height:20px}
.te-banner>div:nth-child(2){flex:1;min-width:0}
.te-banner strong{font-size:14px;color:#7c2d12}.te-banner strong b{font-variant-numeric:tabular-nums}
.te-banner p{margin:2px 0 0;font-size:12.5px;color:#9a3412}
.te-act{display:flex;gap:8px;flex-wrap:wrap}
.te-equipe{background:#f8fafc;border-color:#e2e8f0;box-shadow:none}
.te-equipe .te-ic{background:#e2e8f0;color:#334155}.te-equipe strong{color:#0f172a}.te-equipe p{color:#475569}
/* ===== Relatório do analista ===== */
.rl-wrap{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.rl-head{padding:18px 22px}
.rl-who{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.rl-who .rl-foto{width:54px;height:54px;border-radius:50%;object-fit:cover;display:grid;place-items:center;color:#fff;font-weight:800;font-size:18px;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--c)}
.rl-who h2{margin:0;font-size:20px}.rl-who p{margin:2px 0 0;color:#64748b;font-size:13px}
.rl-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
@media(max-width:1300px){.rl-kpis{grid-template-columns:repeat(4,1fr)}}
.rl-kpi{background:#f6f8fb;border:1px solid #eef1f5;border-left:3px solid #f6c900;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.rl-kpi b{font-size:21px;font-weight:800;color:#0f172a}.rl-kpi span{font-size:12px;color:#475569}.rl-kpi small{font-size:11px;color:#94a3b8}
.rl-kpi.warn{border-left-color:#dc2626}
.rl-dias .card-title p{margin:2px 0 0}
.rl-bars{display:flex;align-items:flex-end;gap:4px;height:150px;padding:10px 20px 18px}
.rl-bar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;min-width:0}
.rl-bar i{display:block;width:100%;max-width:22px;background:linear-gradient(180deg,#2563eb,#0f2742);border-radius:4px 4px 0 0;min-height:2px}
.rl-bar.fds i{background:#cbd5e1}
.rl-bar small{font-size:9.5px;color:#94a3b8}
.rl-cols{display:grid;grid-template-columns:1.3fr 1fr;gap:16px}
@media(max-width:1100px){.rl-cols{grid-template-columns:1fr}}
.rl-table{width:100%;border-collapse:collapse;font-size:13px}
.rl-table th{text-align:left;font-size:11px;color:#64748b;font-weight:700;padding:9px 14px;background:#f8fafc;border-bottom:1px solid #eef1f5}
.rl-table td{padding:9px 14px;border-bottom:1px solid #f1f4f8}
.rl-table .r{text-align:right}
.rl-sla{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:99px}.rl-sla.ok{background:#dcfce7;color:#15803d}.rl-sla.no{background:#fee2e2;color:#b91c1c}
.rl-av{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:99px}
.rl-av.n3{background:#dcfce7;color:#15803d}.rl-av.n2{background:#fef3c7;color:#b45309}.rl-av.n1{background:#fee2e2;color:#b91c1c}
.rl-notas{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 20px 4px}
.rl-nota{border-radius:12px;padding:12px;text-align:center}.rl-nota b{display:block;font-size:24px;font-weight:900}.rl-nota span{font-size:12px;font-weight:700}
.rl-nota.n3{background:#f0fdf4;color:#15803d}.rl-nota.n2{background:#fffbeb;color:#b45309}.rl-nota.n1{background:#fef2f2;color:#b91c1c}
.rl-coms{padding:10px 20px 16px;display:flex;flex-direction:column;gap:8px}
.rl-com{border-left:3px solid #cbd5e1;padding:6px 10px;background:#f8fafc;border-radius:0 8px 8px 0;cursor:pointer}
.rl-com.n3{border-color:#16a34a}.rl-com.n2{border-color:#d97706}.rl-com.n1{border-color:#dc2626}
.rl-com b{font-size:12px}.rl-com p{margin:2px 0 0;font-size:12.5px;color:#334155}
/* ===== Avaliação no chamado ===== */
.aval-box{margin-top:12px;padding:12px 14px;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;display:flex;flex-direction:column;gap:3px}
.aval-box small{font-size:11.5px;font-weight:700;color:#64748b}
.aval-box strong{font-size:16px}.aval-box p{margin:0;font-size:13px;color:#334155}.aval-box span{font-size:11.5px;color:#94a3b8}
.aval-box.n3{background:#f0fdf4;border-color:#bbf7d0}.aval-box.n3 strong{color:#15803d}
.aval-box.n2{background:#fffbeb;border-color:#fde68a}.aval-box.n2 strong{color:#b45309}
.aval-box.n1{background:#fef2f2;border-color:#fecaca}.aval-box.n1 strong{color:#b91c1c}
.aval-box.pend span{color:#64748b;font-size:12.5px}
/* ===== Logs ===== */
.lg-filtros .lg-q{flex:1;min-width:220px}.lg-filtros .lg-q input{width:100%}
.lg-table{width:100%;border-collapse:collapse;font-size:12.5px}
.lg-table th{text-align:left;font-size:11px;color:#64748b;font-weight:700;padding:10px 12px;background:#f8fafc;border-bottom:1px solid #eef1f5;position:sticky;top:0}
.lg-table td{padding:8px 12px;border-bottom:1px solid #f1f4f8;vertical-align:top}
.lg-table .nw{white-space:nowrap}
.lg-table .lg-det{color:#334155;max-width:520px;word-break:break-word}
.lg-acao{display:inline-block;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:99px;background:#eef2f7;color:#334155}
.lg-acao.login,.lg-acao.logout{background:#e0e7ff;color:#3730a3}
.lg-acao.fechou,.lg-acao.cliente{background:#dcfce7;color:#15803d}
.lg-acao.abriu,.lg-acao.email{background:#dbeafe;color:#1d4ed8}
.lg-acao.removeu,.lg-acao.excluiu,.lg-acao.inativou,.lg-acao.falha{background:#fee2e2;color:#b91c1c}
.lg-acao.iniciou,.lg-acao.parou,.lg-acao.lancou{background:#fef3c7;color:#92400e}
.lg-acao.abriu,.lg-acao.visualizou{background:#e0f2fe;color:#0369a1}
.lg-acao.clicou,.lg-acao.filtrou,.lg-acao.buscou,.lg-acao.saiu,.lg-acao.voltou{background:#f1f5f9;color:#475569}
.lg-acao.gerou,.lg-acao.exportou,.lg-acao.consultou{background:#ede9fe;color:#6d28d9}
.lg-table td.lg-det{max-width:640px;white-space:normal;overflow-wrap:anywhere}

/* ===== Colunas ajustáveis (arrastar a borda do cabeçalho) ===== */
table.rszcols{table-layout:fixed;width:100%}
table.rszcols th{position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
table.rszcols td{overflow:hidden;text-overflow:ellipsis}
table.rszcols td .project-name strong,table.rszcols td .project-name small,table.rszcols td .client-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
table.rszcols td .client-cell{display:flex}
.col-rs{position:absolute;top:0;right:0;width:9px;height:100%;cursor:col-resize;z-index:2}
.col-rs::after{content:"";position:absolute;top:28%;bottom:28%;right:3px;width:2px;border-radius:2px;background:#dbe3ee;transition:background .12s}
th:hover .col-rs::after,.col-resizing .col-rs::after{background:#94a3b8}
.col-resizing,.col-resizing *{cursor:col-resize!important;user-select:none!important}
/* ===== Agrupado por status ===== */
.grp-row td{background:#f8fafc;font-weight:700;font-size:13.5px;color:#334155;cursor:pointer;padding:10px 14px!important;border-top:1px solid #eef1f5}
.grp-row td .legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 8px 0 4px;vertical-align:1px}
.grp-row .grp-ic svg{width:15px;height:15px;vertical-align:-3px;transition:transform .15s}
.grp-row.off .grp-ic svg{transform:rotate(-90deg)}
.grp-row:hover td{background:#eef3fa}
/* ===== Números dos indicadores mais leves ===== */
.kpi-card strong{font-weight:400!important;font-size:26px!important;letter-spacing:-.01em!important;font-variant-numeric:tabular-nums}
.kpi-card:has(.kpi-blue) strong{color:#2563eb}
.kpi-card:has(.kpi-green) strong{color:#16a34a}
.kpi-card:has(.kpi-yellow) strong{color:#b77900}
.kpi-card:has(.kpi-purple) strong{color:#7c3aed}
.kpi-card:has(.kpi-gray) strong{color:#64748b}
.kpi-card:has(.kpi-red) strong{color:#dc2626}
.kpi-card span{font-weight:600!important}

/* ===== Indicadores no padrão Tiflux: rótulo em cima, ícone + número na cor, traço leve ===== */
.kpi-row.six,.kpi-row.five{gap:0!important;background:#fff;border:1px solid #e9edf3;border-radius:14px;padding:14px 8px!important;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.kpi-row.six .kpi-card,.kpi-row.five .kpi-card{background:none!important;border:0!important;box-shadow:none!important;border-radius:10px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px!important;padding:6px 8px!important;min-height:0!important;text-align:center}
.kpi-row.six .kpi-card+.kpi-card,.kpi-row.five .kpi-card+.kpi-card{border-left:0!important}
.kpi-row.six .kpi-card.kpi-click:hover,.kpi-row.five .kpi-card.kpi-click:hover{background:#f6f8fb!important;transform:none!important}
.kpi-row.six .kpi-card.on,.kpi-row.five .kpi-card.on{background:#f6f8fb!important}
.kpi-row.six .kpi-card>div,.kpi-row.five .kpi-card>div{display:contents}
.kpi-row.six .kpi-card>div>span,.kpi-row.five .kpi-card>div>span{order:1;font-size:15px!important;font-weight:400!important;color:#3f4a5a!important;letter-spacing:0;white-space:nowrap}
.kpi-row.six .kpi-icon,.kpi-row.five .kpi-icon{order:2;background:none!important;width:auto!important;height:auto!important;border-radius:0!important;display:inline-flex!important;margin:0!important}
.kpi-row.six .kpi-icon svg,.kpi-row.five .kpi-icon svg{width:20px!important;height:20px!important;stroke-width:2}
.kpi-row.six .kpi-card strong,.kpi-row.five .kpi-card strong{order:2;font-size:22px!important;font-weight:400!important;line-height:1!important;margin:0!important}
.kpi-row.six .kpi-card small,.kpi-row.five .kpi-card small{display:none!important}
/* ícone e número lado a lado */
.kpi-row.six .kpi-card,.kpi-row.five .kpi-card{display:grid!important;grid-template-columns:auto auto;grid-template-areas:"lbl lbl" "ic num";justify-content:center;align-items:center;column-gap:8px!important;row-gap:8px!important}
.kpi-row.six .kpi-card>div>span,.kpi-row.five .kpi-card>div>span{grid-area:lbl;text-align:center}
.kpi-row.six .kpi-icon,.kpi-row.five .kpi-icon{grid-area:ic}
.kpi-row.six .kpi-card strong,.kpi-row.five .kpi-card strong{grid-area:num}
.kpi-row.six .kpi-blue{color:#16a34a!important}
.kpi-row.six .kpi-card:has(.kpi-blue) strong{color:#16a34a}
.kpi-row.six .kpi-yellow{color:#0d9488!important}.kpi-row.six .kpi-card:has(.kpi-yellow) strong{color:#0d9488}
.kpi-row.six .kpi-purple{color:#6366f1!important}.kpi-row.six .kpi-card:has(.kpi-purple) strong{color:#6366f1}
.kpi-row.six .kpi-green{color:#15803d!important}.kpi-row.six .kpi-card:has(.kpi-green) strong{color:#15803d}
.kpi-row.six .kpi-gray{color:#f59e0b!important}.kpi-row.six .kpi-card:has(.kpi-gray) strong{color:#f59e0b}
.kpi-row.six .kpi-red{color:#ef4444!important}.kpi-row.six .kpi-card:has(.kpi-red) strong{color:#ef4444}
@media(max-width:1380px){.kpi-row.six,.kpi-row.five{row-gap:10px!important}}
.kpi-row.six .kpi-card,.kpi-row.five .kpi-card{grid-template-columns:1fr 1fr!important;width:100%}
.kpi-row.six .kpi-icon,.kpi-row.five .kpi-icon{justify-self:end}
.kpi-row.six .kpi-card strong,.kpi-row.five .kpi-card strong{justify-self:start}
.kpi-row.five .kpi-blue{color:#2563eb!important}.kpi-row.five .kpi-green{color:#16a34a!important}.kpi-row.five .kpi-yellow{color:#b77900!important}.kpi-row.five .kpi-purple{color:#7c3aed!important}.kpi-row.five .kpi-red{color:#dc2626!important}

/* ===== Lista de chamados no padrão Tiflux ===== */
.tf-card{padding:0!important;overflow:hidden}
.tf-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-bottom:1px solid #eceff3;background:#fafbfc;min-height:46px}
.tf-bar-t{font-size:14px;color:#3f4a5a}
.tf-agr{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:#3f4a5a;font-weight:400}
.tf-agr svg{width:16px;height:16px}
.tf-agr select{border:0;background:transparent;font:inherit;color:#1f2937;cursor:pointer;padding:2px 4px;height:auto;min-height:0;box-shadow:none}
table.tf-table{font-size:14.5px;color:#2b3442;border-collapse:collapse}
table.tf-table thead th{background:#f5f6f8!important;color:#1f2937!important;font-size:14.5px!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;padding:11px 12px!important;border-bottom:1px solid #e6e9ee!important;border-right:1px solid #eceff3}
table.tf-table thead th .grip{display:none}
.tf-sort{float:right;margin-left:6px;opacity:.55}.tf-sort svg{width:9px;height:13px;vertical-align:-1px}.tf-sort path{fill:#64748b}
th.sorted .tf-sort{opacity:1}th.sorted.asc .tf-sort .up,th.sorted.desc .tf-sort .dn{fill:#0f9d9a}th.sorted.asc .tf-sort .dn,th.sorted.desc .tf-sort .up{fill:#cbd5e1}
th.sorted{background:#eef1f5!important}
table.tf-table tbody td{padding:10px 12px!important;border-bottom:1px solid #eef1f4!important;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;height:41px}
table.tf-table tbody tr.project-row:hover td{background:#f7f9fb}
td.tf-num{color:#0f9d9a!important;font-weight:400}
td.tf-tit{color:#2b3442}
td.tf-sla{font-size:13.5px}
td.tf-sla.sla-late{color:#dc2626}td.tf-sla.sla-warn{color:#d97706}td.tf-sla.sla-ok{color:#16a34a}
.tf-prio{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;line-height:1;padding:4px 8px;border-radius:4px;border:1px solid;background:#fff}
.tf-prio svg{width:11px;height:11px}.tf-prio path{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}
.tf-baixa{color:#16a34a;border-color:#86efac;background:#f0fdf4}
.tf-media{color:#b45309;border-color:#fcd34d;background:#fffbeb}
.tf-alta{color:#ea580c;border-color:#fdba74;background:#fff7ed}
.tf-critica{color:#dc2626;border-color:#fca5a5;background:#fef2f2}
table.tf-table .grp-row td{background:#fff!important;font-weight:400!important;font-size:14.5px!important;color:#2b3442!important;padding:10px 14px!important;border-bottom:1px solid #e6e9ee!important;height:auto}
.grp-sign{display:inline-block;width:18px;color:#475467;font-size:15px}
table.tf-table .grp-row:hover td{background:#f7f9fb!important}

/* =====================================================================
   Tipografia no padrão Tiflux (revisão geral, todas as telas)
   Texto: Inter 14–14.5px, peso 400, cor #2b3442. Títulos: 600.
   Rótulos: 400/500 cinza. Negrito (700+) só em números de destaque.
   ===================================================================== */
:root{--tf-ink:#2b3442;--tf-ink2:#3f4a5a;--tf-muted:#667085;--tf-head:#1f2937}
body{font-size:14.5px;color:var(--tf-ink);-webkit-font-smoothing:antialiased}
.main{color:var(--tf-ink)}
/* cabeçalho da página */
.page-head h1{font-size:24px!important;font-weight:600!important;letter-spacing:-.01em!important;color:var(--tf-head)}
.page-head p,#pageSubtitle{font-size:14px!important;font-weight:400!important;color:var(--tf-muted)!important}
.crumb,.breadcrumb,.page-crumb{font-weight:500!important}
/* menu lateral */
.nav-item{font-weight:400!important;font-size:14.5px!important}
.nav-item.active{font-weight:500!important}
.nav-sep,.quick p{font-weight:600!important;letter-spacing:.06em}
.quick a span{font-weight:400!important}
#profile strong{font-weight:500!important}
/* cartões */
.card-title h3,.card h3{font-size:16px!important;font-weight:600!important;color:var(--tf-head);letter-spacing:0}
.card-title p{font-size:13.5px!important;font-weight:400!important;color:var(--tf-muted)}
/* botões, chips, abas */
.btn-primary,.btn-outline,.btn-danger,.btn-finish,.soft-btn,.table-link,.card-link,.link{font-weight:500!important}
.chip{font-weight:400!important;font-size:14px!important;color:var(--tf-ink2)!important}
.chip.on{font-weight:500!important;color:#fff!important}
.chip i{font-weight:500!important;font-style:normal}
.and-tabs button,.tk-tabs button,.seg-pill button,.rel-tabs button{font-weight:400!important;font-size:14px!important}
.and-tabs button.on,.tk-tabs button.on,.seg-pill button.on,.rel-tabs button.on{font-weight:500!important}
/* formulários */
.projects-filters label,.form-grid label,.ex-filters label,label{font-weight:500!important;color:var(--tf-ink2)}
input,select,textarea{font-weight:400!important;font-size:14px;color:var(--tf-ink)}
/* selos */
.badge{font-weight:500!important;font-size:12.5px!important}
/* tabelas em geral */
table th{font-weight:600!important;text-transform:none!important;letter-spacing:0!important;font-size:13.5px!important;color:var(--tf-head)!important}
table td{font-weight:400}
table td strong,table td b{font-weight:500}
.project-name strong{font-weight:500!important}
.owner strong,.and-row .and-nm,.alert-item strong,.next-item strong{font-weight:500!important}
.tk-id{font-weight:400!important;color:#0f9d9a!important}
/* listas do dashboard */
.alert-item small,.next-item span{font-weight:400!important;color:var(--tf-muted)}
.legend-row span{font-weight:400!important}.legend-row b{font-weight:500!important}
.and-resumo h4,.venc-resp h4{font-weight:600!important}
.and-row .and-n{font-weight:500!important}
/* chamado aberto */
.tk-head h2{font-size:20px!important;font-weight:600!important;color:var(--tf-head)}
.tk-head h2 .num{font-weight:600!important;color:#0f9d9a}
.tk-meta{font-weight:400!important}
.info-row small{font-weight:400!important;color:var(--tf-muted)!important}
.info-row strong{font-weight:500!important}
.desc-text,.msg-text,.comm-text{font-weight:400!important;font-size:14.5px!important;color:var(--tf-ink)}
/* destaques e meu dia */
.pod-card strong,.md-mini-top strong{font-weight:600!important}
.md-mini-nums b{font-weight:500!important}
.rl-kpi b{font-weight:500!important}
.rl-who h2{font-weight:600!important}
/* números grandes: leves */
.kpi-card strong,.horas-kpi strong,.meta-top strong,.rl-nota b{font-weight:400!important}
/* pesos: 500 para destaques discretos */
.open-tab,.open-tab b,.mode-switch button,.seg-pill button.on,.seg-tabs button.on,.pagination button,.calendar-mode button,.ol-sec,.week-head span,.wk-day small,.mo-head span,
.info-links button,.link,.add-link,.ticket-count,.timer-pill,.timer-main strong,.tk-dd button,.icon-action,.btn-mini,.ro-tag,.role-tag,.msg-tag,.err-line,.fz-warn,
.legend-row,.tk-dash .legend-row,.bar-item b,.rank-bars .bar-item span,.lg-acao,.rl-av,.rl-sla,.rl-nota span,.pod-pos,.pod-base,.next-date,.solution-box small,.aval-box small,
.sla-line b,.sla-cell small,.finish-sum small,.fz-label,.total-pill,.check-line,.tri-actions label,.side-form label,.inline-form label,.rel-period>span,
.md-mini-selos small,.md-selos small,.meta-top small,.md-mini-nums em,.md-nums em,.selo,.agenda-item time,.tl-item time,.week-event time,.cal-ev b,.mo-ev,.mo-more,.more-events,.event,
.kpi-card span,.kpi-card>div>span,.day-number,.mo-n,.ol-cal em,.timer-pill b[data-clock],.and-pie text,.client-avatar,.avatar,.avatar-mini,.bar-av,.fila-tag .mini,.md-mini-top .mini,.empty-box{font-weight:500!important}
.seg-pill button,.seg-tabs button,.calendar-toolbar label{font-weight:400!important}
.week-day>header span,.wk-hours span,.sla-line span{font-weight:400!important}
.donut span{font-weight:600!important}.donut span small{font-weight:400!important}
.ex-wrap *{font-weight:revert}  /* a prévia do extrato segue o modelo do PDF */
.ex-wrap .ex-head h1,.ex-wrap .ex-cli,.ex-wrap .ex-h3,.ex-wrap .ex-kpi b,.ex-wrap .ex-table th,.ex-wrap .ex-table tr.tot td,.ex-wrap .ex-tk-h b{font-weight:700!important}
/* listas laterais (últimos chamados do cliente etc.) */
.mini-list strong,.side-list strong,.last-list strong,.tk-side strong,.rel-list strong{font-weight:500!important}
.empty-box{color:#8a94a6!important}
/* cor do texto de apoio */
small{color:var(--tf-muted)}
.rank-bars .bar-item{min-width:0}
.rank-bars .bar-item span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400!important}

/* ===== Atalhos e barra de filtro no padrão Tiflux ===== */
.tf-atalhos{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.tf-at{display:inline-flex;align-items:center;gap:9px;height:40px;padding:0 16px;background:#fff;border:1px solid #e4e7ec;border-radius:8px;font:inherit;font-size:14.5px;font-weight:400!important;color:#2b3442;cursor:pointer}
.tf-at:hover{background:#f7f9fb;border-color:#d0d5dd}
.tf-at i{font-style:normal;font-size:12px;font-weight:500;background:#fee2e2;color:#b91c1c;border-radius:99px;padding:1px 7px}
.tf-at-ic{display:inline-flex}.tf-at-ic svg{width:17px;height:17px}
.tf-at-ic.red{color:#dc2626}.tf-at-ic.yellow{color:#d97706}.tf-at-ic.blue{color:#4f46e5}.tf-at-ic.green{color:#16a34a}
.tf-flt{display:flex;align-items:center;gap:10px}
.tf-flt b{font-size:14.5px;font-weight:600;color:#1f2937}
.tf-ativo{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px;border-radius:4px;background:#0f9d9a;color:#fff;border:0;font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.tf-ativo svg{width:12px;height:12px;stroke-width:3}
.tf-nf{font-size:13px;color:#0f9d9a}
.tf-reset{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;border-radius:4px;background:#fff;border:1px solid #d0d5dd;font:inherit;font-size:13px;color:#1f2937;cursor:pointer}
.tf-reset svg{width:13px;height:13px}.tf-reset:hover{background:#f7f9fb}
table.tf-table .grp-row td{padding:12px 14px!important}
.grp-sign{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-right:12px;color:#475467;font-size:14px;line-height:1}
.tf-right{display:flex;align-items:center;gap:10px}
.tf-right .cols-wrap{position:relative;margin:0!important}
.tf-fbtn em{font-style:normal;background:#0f9d9a;color:#fff;border-radius:99px;padding:0 6px;font-size:11.5px;margin-left:2px}
.tf-fbtn.on{border-color:#0f9d9a;color:#0f9d9a}
.tf-filtros{display:flex;flex-wrap:wrap;gap:12px 16px;padding:12px 18px 14px;border-bottom:1px solid #eceff3;background:#fff}
.tf-filtros label{display:grid;gap:5px;font-size:13px;min-width:200px}
.tf-filtros select{height:36px;border:1px solid #d0d5dd;border-radius:6px;padding:0 10px;background:#fff}
.tf-at em{font-style:normal;font-size:12.5px;color:#667085;margin-left:2px}
.tf-at.on{border-color:#0f9d9a;background:#f0fbfa;color:#0b6f6d}
.tf-at.on em{color:#0b6f6d}
.tf-at-ic.dark{color:#1f2937}
.tf-card{overflow:visible!important}.tf-bar{border-radius:14px 14px 0 0;position:relative;z-index:5}.tf-right .cols-menu,.tf-right [class*="cols-menu"]{z-index:50}

/* ===== Chamado aberto no padrão Tiflux ===== */
:root{--teal:#0f9d9a;--teal-d:#0b7f7c}
.tf-head{padding:18px 22px 0!important}
.tf-head-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.tf-head h2{margin:0;font-size:21px!important;font-weight:500!important;color:#1f2937!important;display:flex;align-items:center;gap:10px;flex-wrap:wrap;line-height:1.3}
.tf-st{display:inline-flex;align-items:center;height:22px;padding:0 7px;border-radius:4px;font-size:12.5px;font-weight:500;border:1px solid;line-height:1}
.tf-st.st-green{color:#16a34a;border-color:#86efac;background:#f0fdf4}.tf-st.st-blue{color:#2563eb;border-color:#93c5fd;background:#eff6ff}
.tf-st.st-gray{color:#475467;border-color:#d0d5dd;background:#f8fafc}.tf-st.st-orange,.tf-st.st-yellow{color:#c2410c;border-color:#fdba74;background:#fff7ed}
.tf-st.st-purple{color:#7c3aed;border-color:#c4b5fd;background:#f5f3ff}.tf-st.st-red{color:#dc2626;border-color:#fca5a5;background:#fef2f2}
.tf-head .tk-actions{display:flex;align-items:center;gap:10px}
.tf-btn-teal{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 16px;border-radius:4px;border:0;background:var(--teal);color:#fff;font:inherit;font-size:14.5px;font-weight:500;cursor:pointer}
.tf-btn-teal:hover{background:var(--teal-d)}.tf-btn-teal svg{width:16px;height:16px}
.tf-btn-o{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px;border-radius:4px;border:1px solid #d0d5dd;background:#fff;color:#1f2937;font:inherit;font-size:14.5px;font-weight:400;cursor:pointer}
.tf-btn-o:hover{background:#f7f9fb}.tf-btn-o svg{width:15px;height:15px}.tf-btn-o.btn-sm{height:28px;font-size:13px;padding:0 10px}
.tf-btn-fechar{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px;border-radius:4px;border:1px solid #86efac;background:#f0fdf4;color:#15803d;font:inherit;font-size:14.5px;font-weight:500;cursor:pointer}
.tf-btn-fechar svg{width:15px;height:15px}
.tf-head .btn-stop{height:34px;border-radius:4px}
.tf-tabs{margin-top:14px!important;border-top:0!important;gap:4px!important;padding:0!important}
.tf-tabs button{font-size:14.5px!important;font-weight:400!important;color:#2b3442!important;padding:12px 14px!important;border-bottom:2px solid transparent!important}
.tf-tabs button.on{color:var(--teal)!important;border-bottom-color:var(--teal)!important;font-weight:400!important}
.tf-tabs button.on::after{display:none!important}
.tf-tabs .n{background:#ef4444!important;color:#fff!important;font-size:10.5px!important;min-width:16px;height:16px;border-radius:99px;display:inline-grid;place-items:center;margin-left:4px;padding:0 4px}
.tf-grid{display:grid!important;grid-template-columns:minmax(280px,1fr) minmax(0,1.9fr) minmax(280px,1.15fr)!important;gap:16px!important;align-items:start}
@media(max-width:1300px){.tf-grid{grid-template-columns:1fr 1.6fr!important}.tf-grid>.tf-side{grid-column:1/-1}}
.tf-box{padding:16px 18px!important}
.tf-box-t{margin:0 0 14px!important;font-size:16px!important;font-weight:500!important;color:#1f2937}
.tf-box-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.tf-box-h .tf-box-t{margin:0!important}
.tf-sec{margin-bottom:16px}.tf-sec:last-child{margin-bottom:0}
.tf-sec h4,.tf-side h4,.tf-2 h4{margin:0 0 8px;font-size:14.5px;font-weight:600;color:#1f2937}
.tf-line{display:flex;align-items:flex-start;gap:10px;font-size:14.5px;color:#2b3442;margin:0 0 7px;line-height:1.4}
.tf-line svg{width:15px;height:15px;color:var(--teal);flex:none;margin-top:2px}
.tf-line.tf-teal span{color:var(--teal)}
.tf-add{display:inline-flex;align-items:center;gap:7px;margin-top:6px;border:0;background:none;padding:0;font:inherit;font-size:14.5px;color:var(--teal);cursor:pointer}
.tf-add svg{width:15px;height:15px}
.tf-coll{padding:0!important}
.tf-coll summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;font-size:16px;font-weight:500;color:#1f2937;cursor:pointer}
.tf-coll summary::-webkit-details-marker{display:none}
.tf-coll summary svg{width:18px;height:18px;transition:transform .15s;margin-left:auto}
.tf-coll summary .badge{margin-left:8px}
.tf-coll:not([open]) summary svg{transform:rotate(-90deg)}
.tf-coll>div{padding:0 18px 14px}
.tf-ult{display:flex;flex-direction:column}
.tf-ult-i{display:grid;grid-template-columns:62px 1fr auto;gap:10px;align-items:center;padding:9px 0;border:0;border-top:1px solid #f1f4f8;background:none;font:inherit;font-size:14px;text-align:left;cursor:pointer;color:#2b3442}
.tf-ult-i:hover .tf-ult-t{color:var(--teal)}
.tf-num-s{color:var(--teal)}.tf-ult-t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tf-ult-s{font-size:12.5px;color:#667085;white-space:nowrap}
.tk-desc .desc-text{font-size:14.5px!important;line-height:1.6;color:#2b3442}
.tk-desc .desc-foot{margin-top:18px;padding-top:12px;border-top:1px solid #eef1f4;display:flex;justify-content:space-between;gap:12px;font-size:13.5px;color:#667085}
.tk-desc .desc-foot .link{color:var(--teal)!important}
.tf-side label{display:grid;gap:7px;margin:0 0 16px;font-size:14.5px!important;font-weight:600!important;color:#1f2937!important}
.tf-side select{height:34px;border:1px solid #d9dee5;border-radius:4px;padding:0 10px;font-size:14.5px;font-weight:400;color:#2b3442;background:#fff}
.tf-resp{display:flex;align-items:center;gap:10px}.tf-resp select{flex:1}
.tf-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:4px}
.tf-line.tf-teal-ic span{font-size:14px}
/* comunicação */
.composer .seg-tabs{display:inline-flex!important;border:1px solid #d9dee5;border-radius:4px;overflow:hidden;gap:0!important;background:#fff!important;padding:0!important}
.composer .seg-tabs button,.seg-tabs button{border-radius:0!important;height:32px;padding:0 14px!important;font-size:14.5px!important;font-weight:400!important;color:#2b3442!important;background:#fff!important;border:0!important;border-right:1px solid #d9dee5!important;box-shadow:none!important}
.seg-tabs button:last-child{border-right:0!important}
.seg-tabs button.on{background:var(--teal)!important;color:#fff!important}
.composer h4{font-size:16px!important;font-weight:500!important;color:#1f2937;margin:16px 0 10px!important}
.composer textarea{border:1px solid #d9dee5!important;border-radius:4px!important;font-size:14.5px!important;min-height:200px}
.composer .btn-primary{background:var(--teal)!important;color:#fff!important;box-shadow:none!important;border-radius:4px!important;height:34px!important}
.composer .btn-outline{border-radius:4px!important;height:34px!important}
.composer-foot .hint{font-size:14.5px!important;color:#2b3442!important}
/* gaveta de compromisso */
.tf-drawer-bg{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:80}
.tf-drawer{position:fixed;top:0;right:0;bottom:0;width:min(560px,92vw);background:#fff;z-index:81;display:flex;flex-direction:column;box-shadow:-12px 0 40px rgba(15,23,42,.18);animation:tfIn .18s ease-out}
@keyframes tfIn{from{transform:translateX(30px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.tf-drawer{animation:none}}
.tf-drawer header{display:flex;align-items:center;gap:12px;padding:16px 20px}
.tf-drawer header h3{margin:0;font-size:16px;font-weight:500}
.tf-x{border:0;background:none;padding:2px;cursor:pointer;color:#1f2937}.tf-x svg{width:18px;height:18px}
.tf-dr-body{flex:1;overflow:auto;padding:4px 20px 20px;display:flex;flex-direction:column;gap:16px}
.tf-dr-body label{display:grid;gap:6px;font-size:14.5px!important;font-weight:600!important;color:#1f2937!important}
.tf-dr-body label.req::after{content:""}
.tf-dr-body label.req{position:relative}
.tf-dr-body input,.tf-dr-body select,.tf-dr-body textarea{height:34px;border:1px solid #d9dee5;border-radius:4px;padding:0 10px;font:inherit;font-size:14.5px;font-weight:400;color:#2b3442;background:#fff;width:100%}
.tf-dr-body textarea{height:auto;padding:8px 10px;resize:vertical}
.tf-dr-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.tf-dt{display:grid;grid-template-columns:1fr 110px;gap:0}.tf-dt input:first-child{border-radius:4px 0 0 4px}.tf-dt input:last-child{border-radius:0 4px 4px 0;border-left:0}
.tf-drawer footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #eef1f4}
.empty-box .link{color:var(--teal)!important;font-weight:400!important}
.toast{pointer-events:none}
.tf-dr-2>label{min-width:0}.tf-dt{grid-template-columns:minmax(0,1fr) 104px!important}.tf-dt input{min-width:0;padding:0 8px!important}

/* ===== Resumo + Todos os compromissos lado a lado ===== */
.kpi-wrap{display:grid;grid-template-columns:minmax(0,1fr) 520px;gap:16px;margin-bottom:18px;align-items:stretch}
.kpi-wrap.sem-cp{grid-template-columns:1fr}
.kpi-wrap>.kpi-row{margin:0!important}
@media(max-width:1500px){.kpi-wrap{grid-template-columns:1fr}}
.cp-card{padding:0!important;display:flex;flex-direction:column}
.cp-card h3{margin:0;padding:12px 20px;font-size:15px!important;font-weight:500!important;color:#3f4a5a!important;border-bottom:1px solid #eef1f4}
.cp-row{flex:1;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;padding:6px 8px}
.cp-k{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;font:inherit;cursor:pointer;padding:8px 4px;border-radius:10px}
.cp-k:hover{background:#f6f8fb}
.cp-k span{font-size:15px;font-weight:400;color:#3f4a5a}
.cp-k b{display:inline-flex;align-items:center;gap:6px;font-size:22px;font-weight:400;line-height:1}
.cp-k b svg{width:20px;height:20px}
.c-dark b{color:#134e4a}.c-orange b{color:#f59e0b}.c-indigo b{color:#6366f1}.c-teal b{color:#14b8a6}
.kpi-row.six{padding:10px 8px!important}
/* compromissos alinhado à 3ª coluna (mesma largura de Destaques da equipe) */
.kpi-wrap{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
.kpi-wrap>.kpi-row{grid-column:span 2}
.kpi-wrap.sem-cp>.kpi-row{grid-column:1/-1}
.cp-k b{font-size:24px}.cp-k span{font-size:15.5px}
@media(max-width:1380px){.kpi-wrap{grid-template-columns:1fr!important}.kpi-wrap>.kpi-row{grid-column:auto}}
@media(min-width:1381px) and (max-width:1500px){.kpi-wrap{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* menu lateral: em telas baixas o menu rola e o perfil fica sempre visível */
.sidebar{overflow:hidden}
.sidebar>.nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent;margin-right:-6px;padding-right:6px}
.sidebar>.nav::-webkit-scrollbar{width:6px}.sidebar>.nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:6px}
.sidebar>.brand,.sidebar>.quick,.sidebar>.side-bottom,.sidebar>.profile{flex:none}
@media (max-height:900px){.sidebar .nav-item{height:38px!important}.sidebar .nav-sep{padding:8px 14px 2px}.sidebar>.brand{margin-bottom:14px}.sidebar>.quick{margin-top:10px!important;padding-top:10px!important}.sidebar .quick a{height:32px!important}}
@media (max-width:760px){.sidebar>.nav{overflow-y:visible;margin-right:0;padding-right:0}}
/* menu no tamanho do Tiflux: linhas de 44px, texto 15px normal, ícone pequeno, faixa inteira no item ativo */
.sidebar .nav{gap:0!important}
.sidebar .nav-item{height:44px!important;font-size:15px!important;font-weight:400!important;gap:10px!important;padding:0 14px!important;border-radius:0!important;margin:0 -14px;width:calc(100% + 28px)}
.sidebar .nav-item svg{width:16px!important;height:16px!important}
.sidebar .nav-item.active{font-weight:400!important;background:rgba(255,255,255,.07)!important}
.sidebar .nav-item.active::after{display:none!important}
.sidebar .nav-item .nav-count{height:20px;min-width:24px;font-size:11px;font-weight:600}
.sidebar .nav-sep{padding:14px 0 6px!important;font-size:10.5px}
body.side-min .sidebar .nav-item{margin:0 -10px;width:calc(100% + 20px)}
@media (max-height:900px){.sidebar .nav-item{height:40px!important}}
/* logo mais alto, sem "Atualizado em" e sem barra de rolagem visível */
.sidebar{padding-top:12px!important}
.sidebar>.brand{height:auto!important;margin-bottom:12px!important;padding-top:0!important}
.sidebar>.side-bottom{display:none!important}
.sidebar>.nav{scrollbar-width:none!important;margin-right:0!important;padding-right:0!important}
.sidebar>.nav::-webkit-scrollbar{display:none}
@media (max-height:900px){.sidebar .nav-item{height:38px!important}.sidebar .nav-sep{padding:10px 0 4px!important}}
@media (max-height:800px){.sidebar .nav-item{height:33px!important;font-size:14.5px!important}.sidebar .nav-sep{padding:8px 0 2px!important}.sidebar>.quick{margin-top:8px!important;padding-top:8px!important}.sidebar .quick a{height:30px!important}.sidebar>.quick p{margin-bottom:2px!important}.sidebar>.profile{min-height:52px;margin-top:8px!important}}
.vercomo-bar{display:flex;align-items:center;gap:10px;background:#fff7e6;border:1px solid #fcd38d;color:#7a4a00;border-radius:6px;padding:8px 12px;margin-bottom:14px;font-size:14px}
.vercomo-bar svg{width:17px;height:17px;flex:none}
.vercomo-bar button{margin-left:auto;border:1px solid #f5b54a;background:#fff;color:#7a4a00;border-radius:4px;height:28px;padding:0 10px;font:inherit;font-size:13px;cursor:pointer}
