/* Chamados TI – componentes de gerenciamento e anexos */
.metric-action{display:block;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;position:relative;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.metric-action:hover{transform:translateY(-3px);box-shadow:0 12px 28px #005b2823;border-color:#afcbbb}
.metric-action:focus-visible{outline:3px solid #007c42;outline-offset:3px}
.metric-action .metric-link{display:block;margin-top:10px;font-size:12px;font-weight:700;color:#005b28}
.users-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0 0 22px}
.users-summary .card{padding:19px 22px}
.users-summary .card small{display:block;color:#64756c;font-size:12px;margin-bottom:7px}
.users-summary .card strong{font-size:29px;color:#173c28}
.users-table td{vertical-align:middle}
.users-table .user-role{min-width:140px;width:100%;padding:10px;border:1px solid #d3e2d8;border-radius:9px;background:#fff;color:#173728;font:inherit;font-size:13px}
.users-table tr[hidden]{display:none}
.user-tag{display:inline-block;background:#e8f4ec;color:#07552a;border-radius:99px;padding:5px 10px;font-size:11px;font-weight:750}
.user-tag.test{color:#805311;background:#fff1d4}
.user-enable{display:inline-flex;gap:8px;align-items:center;font-size:13px;white-space:nowrap}
.user-enable input{accent-color:#005b28;width:18px;height:18px}
.user-actions{display:flex;gap:7px;flex-wrap:wrap}
.user-actions button{font-size:12px;padding:9px 11px}
.test-user-panel{margin-bottom:20px}
.test-user-panel[hidden]{display:none}
.file-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px;border:1px dashed #bfd7c5;background:#f7faf8;border-radius:12px;min-height:65px}
.file-native{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.file-picker-button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #005b28;background:#005b28;color:#fff!important;font-size:13px!important;font-weight:750!important;padding:12px 16px;white-space:nowrap;transition:background .15s ease,transform .15s ease}
.file-picker-button:hover{background:#00743a;transform:translateY(-1px)}
.file-native:focus-visible+.file-picker-button{outline:3px solid #52a975;outline-offset:3px}
.file-picker-count{font-size:12px;color:#526d5a;flex:1;min-width:110px;overflow-wrap:anywhere}
.file-picker-count.file-error{color:#ba3030;font-weight:700}
@media(max-width:1000px){.users-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.users-table{min-width:810px}}
@media(max-width:760px){.users-summary{grid-template-columns:1fr 1fr;gap:9px}.users-summary .card{padding:14px}.users-summary .card strong{font-size:24px}.file-picker{align-items:stretch}.file-picker-button{width:100%}.file-picker-count{width:100%}}

/* Chamados - espaçamento consistente e painel de atendimento */
.main{min-width:0}
.card{min-width:0}
.ticket-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,.9fr);align-items:start;gap:22px;margin-top:26px}
.ticket-main,.ticket-aside{min-width:0;display:flex;flex-direction:column;gap:22px}
.ticket-section{margin:0!important}
.ticket-section>h2{margin:0 0 20px}
.ticket-section .ticket-heading{margin-bottom:22px}
.ticket-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:8px 0 16px}
.ticket-meta{margin:16px 0 0}
.ticket-section .timeline{margin-bottom:15px}
.ticket-manage-form{border-top:1px solid #e1ece5;margin-top:24px;padding-top:20px;display:flex;flex-direction:column;gap:15px}
.ticket-manage-form h3{margin:0;font-size:15px;color:#173b27}
.ticket-manage-form .btnrow{margin:2px 0 0}
.attendee{padding:14px 0;border-bottom:1px solid #e5eee7;display:flex;flex-direction:column;gap:5px}
.attendee:first-of-type{padding-top:3px}
.attendee-label{font-size:12px;text-transform:uppercase;letter-spacing:.6px;font-weight:700;color:#6b8073}
.attendee-name{font-size:15px;line-height:1.45;color:#1f3829;overflow-wrap:anywhere}
.attendee small{font-size:12px;color:#87988c}
.ticket-section .field{gap:8px}
.ticket-section .btnrow{margin-top:10px}
.ticket-section .muted{line-height:1.6}
.reply-field{margin-top:20px}
.shared-team{display:flex;flex-direction:column;gap:10px;margin:15px 0}
.shared-person{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid #e2ece5;border-radius:10px}
.shared-person strong{display:block;font-size:13px;overflow-wrap:anywhere}
.shared-person small{display:block;color:#6d8072;margin-top:4px;font-size:11px}
.shared-person button{flex-shrink:0}
.share-form{border-top:1px solid #e6eee8;padding-top:17px;margin-top:18px;display:flex;flex-direction:column;gap:12px}
.share-form button{align-self:flex-start}
.dashboard-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:12px 0 20px}
.dashboard-toolbar .field{min-width:210px}
.dashboard-toolbar p{max-width:520px;margin:0;font-size:12px;line-height:1.6}
.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}
.dashboard-kpis .metric{min-width:0}
.dashboard-kpis .metric .num{overflow-wrap:anywhere}
.dashboard-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:22px;margin-bottom:22px}
.dashboard-columns>.card{margin:0;min-width:0}
.dashboard-section{margin:0 0 22px}
.dashboard-section .table-wrap{max-width:100%}
.analyst-table{min-width:850px}
.analyst-table th,.analyst-table td{padding:14px 12px}
.dashboard-note{font-size:12px;color:#6e8173;line-height:1.7;margin:17px 0 0}
.aging-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.aging-grid>div{background:#f4f9f5;border:1px solid #e1ede4;border-radius:12px;padding:18px 12px;text-align:center}
.aging-grid strong{display:block;font-size:28px;color:#005b28}
.aging-grid span{display:block;color:#536b59;font-size:12px;margin-top:5px}
@media(max-width:1150px){.ticket-layout{grid-template-columns:minmax(0,1.4fr) minmax(275px,.9fr)}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.ticket-layout{grid-template-columns:1fr}.dashboard-columns{grid-template-columns:1fr}.dashboard-toolbar{align-items:stretch;flex-direction:column}.dashboard-toolbar .field{min-width:0}}
@media(max-width:550px){.dashboard-kpis{gap:10px}.dashboard-kpis .card{padding:14px}.dashboard-kpis .metric .num{font-size:25px}.aging-grid{gap:5px}.aging-grid>div{padding:12px 6px}.aging-grid strong{font-size:23px}}

/* Filtros globais do dashboard administrativo */
.dashboard-filterbar{background:#fff;border:1px solid #e2ebe5;border-radius:18px;padding:21px 24px;margin:8px 0 24px;box-shadow:0 8px 28px rgba(24,58,37,.035)}
.dashboard-filterhead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:17px}
.dashboard-filterhead h2{font-size:17px;margin:0 0 6px;color:#183c29}
.dashboard-filterhead p{font-size:12px;margin:0;line-height:1.5}
.dashboard-filterhead button{white-space:nowrap}
.dashboard-filtergrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.dashboard-filtergrid .field{min-width:0;display:flex;flex-direction:column;gap:7px}
.dashboard-filtergrid label{font-size:12px;font-weight:750;color:#47614f}
.dashboard-filtergrid select{width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}
.dashboard-filterhint{font-size:12px;line-height:1.5;margin:15px 0 0;color:#788b7d}
@media(max-width:1350px){.dashboard-filtergrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.dashboard-filterbar{padding:16px}.dashboard-filterhead{align-items:stretch;flex-direction:column}.dashboard-filterhead button{align-self:flex-start}.dashboard-filtergrid{grid-template-columns:1fr}}

/* Telas de chamados compactas, sem centralização vertical e sem rolagem horizontal global. */
.layout{width:100%;max-width:100%;min-width:0;align-items:stretch}
.sidebar{flex:0 0 254px}
.main{flex:1 1 0%;min-width:0;width:auto;max-width:none;margin:0;padding:24px 28px 28px;align-self:stretch}
.main>.top{margin-bottom:20px;align-items:center}
.main .top h1{font-size:28px}
.ticket-list-card{padding:17px 20px}
.ticket-list-card .filters{margin-bottom:10px}
.ticket-list-card .table-wrap{max-width:100%}
.ticket-list-card table{width:100%}
.ticket-list-card td{padding-top:12px;padding-bottom:12px}
.new-ticket-card{width:100%;max-width:1000px;padding:21px 24px}
.new-ticket-card .form-grid{column-gap:18px;row-gap:14px}
.new-ticket-card .field{gap:5px}
.new-ticket-card .field input,.new-ticket-card .field select{padding:10px 12px;min-height:44px}
.new-ticket-card .field textarea{min-height:90px;max-height:240px;padding:10px 12px}
.new-ticket-card .btnrow{margin-top:2px}
.new-ticket-card .file-picker,.ticket-section .file-picker{min-height:0;gap:9px;padding:7px 10px;border-radius:9px;flex-wrap:wrap}
.new-ticket-card .file-picker-button,.ticket-section .file-picker-button{width:auto;min-height:36px;padding:8px 12px;font-size:12px!important;border-radius:8px;flex:0 0 auto;transform:none}
.new-ticket-card .file-picker-count,.ticket-section .file-picker-count{font-size:12px;line-height:1.35}
.new-ticket-card .file-picker-button:hover,.ticket-section .file-picker-button:hover{transform:none}
@media(max-width:1000px){.main{padding:20px 20px 26px}.sidebar{flex-basis:230px}.new-ticket-card{padding:18px 20px}}
@media(max-width:760px){.layout{display:block}.sidebar{width:100%;height:auto;position:static}.main{width:100%;padding:18px 14px 24px}.main>.top{margin-bottom:16px}.new-ticket-card{padding:16px}.new-ticket-card .form-grid{grid-template-columns:1fr;gap:12px}.new-ticket-card .field.wide{grid-column:1}.new-ticket-card .file-picker-button{width:auto}.ticket-list-card{padding:14px}}

/* Campo de senha com ação de visibilidade acessível. */
.password-control{position:relative;display:flex;align-items:center;min-width:0}
.password-control>input{width:100%;padding-right:48px!important;font-weight:400}
.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;box-sizing:border-box;border:0;border-radius:7px;background:transparent;padding:0;color:#005b28;box-shadow:none;cursor:pointer}
.password-toggle:hover,.password-toggle:focus-visible{background:transparent;outline-offset:1px}
.password-eye{font-size:15px;line-height:1}

/* Notificações globais e transitórias, sem alterar nem limpar formulários. */
.app-toast{position:fixed;top:20px;right:20px;z-index:9999;display:flex;align-items:center;gap:12px;max-width:min(450px,calc(100vw - 32px));padding:13px 14px;border-radius:11px;border:1px solid;box-shadow:0 14px 40px rgba(0,0,0,.14);font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.toast-error{background:#fff0ef;border-color:#e8a7a0;color:#9c2424}
.toast-success{background:#e7f6eb;border-color:#9acaad;color:#155b30}
.toast-symbol{border:2px solid currentColor;width:23px;height:23px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;flex:0 0 23px;font-weight:900}
.toast-content{flex:1}
.toast-close{border:0;background:transparent;color:inherit;font-size:20px;line-height:1;padding:4px 6px;border-radius:6px;cursor:pointer}
.toast-close:hover{background:#0000000a}
@media(max-width:600px){.app-toast{top:12px;right:12px;left:12px;max-width:none}}

/* Empresa identificada por nome fantasia e código, sem expandir a página. */
.ticket-company{font-size:12px;line-height:1.4;max-width:200px;overflow-wrap:anywhere}
.ticket-list-card .filters #companyFilter{max-width:300px;min-width:190px}
.ticket-list-card .table-wrap{overflow-x:auto;max-width:100%}
.ticket-list-card table{min-width:960px}
@media(max-width:1100px){.ticket-list-card table{min-width:930px}}

/* Credenciais exibidas somente no momento da criacao ou redefinicao de contas de teste. */
.test-credentials{margin:0 0 18px;border:1px solid #a4cdb1;background:#f3faf5}
.test-credentials h3{font-size:18px;color:#075b2b;margin-bottom:8px}
.test-credentials p{color:#526d5d;font-size:13px;line-height:1.6}
.test-credential-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.test-credential-fields>div{background:#fff;border:1px solid #d7e9dc;border-radius:10px;padding:12px;min-width:0}
.test-credential-fields small{display:block;color:#657e6c;margin-bottom:7px}
.test-credential-fields strong{display:block;font-size:15px;overflow-wrap:anywhere;color:#17432b}
.test-credentials>button{margin-right:10px;margin-top:5px}
@media(max-width:600px){.test-credential-fields{grid-template-columns:1fr}}

/* Avaliações pendentes e conversa interna para equipe de TI. */
.nav-count{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#f0ca5f;color:#203522;font-size:11px;font-weight:800}
.review-notice{display:flex;flex-direction:column;gap:6px;width:100%;text-align:left;padding:15px 18px;border:1px solid #e0eae3;background:#fbfdfb;border-radius:10px;margin-top:10px;cursor:pointer;font:inherit;color:inherit}
.review-notice:hover{border-color:#9cc7aa;background:#f0f9f2}
.review-notice strong{font-size:14px;color:#173a25}
.review-notice span,.review-notice em{font-size:12px;color:#597263;font-style:normal}
.review-notice small{font-size:11px;color:#057036;font-weight:700}
.event-internal{background:#fff8e7;border-left:4px solid #c69338;border-radius:8px;padding:12px 14px;margin:8px 0}
.event-internal>.muted,.event-internal span.muted{color:#89611d}
.reply-recipient{border:1px solid #e1e9e3;border-radius:10px;background:#f8fbf8;padding:12px 14px;margin-top:18px}
.reply-recipient select{width:100%}
.reply-recipient small{font-size:11px;line-height:1.5;color:#687f70}
.ticket-review{margin-top:0}
.ticket-review h2{margin:0 0 14px}
.ticket-review form{display:grid;gap:14px}
.review-meta{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 16px;font-size:12px;color:#58705f}
.review-meta span{background:#f0f7f2;border-radius:9px;padding:9px 12px}
.review-meta strong{color:#17422b}
.review-result{padding:16px;border:1px solid #d6e8d9;background:#f4faf5;border-radius:10px}
.review-result p{margin:0 0 7px;color:#315740}
.review-result p:first-child,.review-result p:nth-child(2),.review-result p:nth-child(3){color:#bd8b24;font-size:15px}
.review-result small{color:#728475;font-size:11px}
.solution-summary{margin-top:18px;border-left:4px solid #0c793d;padding:13px 15px;background:#f1f9f3;border-radius:0 8px 8px 0}
.solution-summary strong{font-size:12px;color:#005b28}
.solution-summary p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
#resolutionField[hidden]{display:none}
@media(max-width:650px){.review-meta{flex-direction:column}.nav-count{margin-left:8px}}

.dashboard-review-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 22px}
.dashboard-review-kpis .card{padding:17px 20px;min-width:0}
.dashboard-review-kpis strong{font-size:26px;color:#005b28;display:block;margin-top:8px}
@media(max-width:900px){.dashboard-review-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.dashboard-review-kpis{gap:9px}.dashboard-review-kpis .card{padding:12px}.dashboard-review-kpis strong{font-size:20px}}

/* Avaliação: estrelas reais, selecionáveis com mouse, toque ou teclado. */
.star-rating{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:5px;max-width:max-content;padding:5px 0}
.star-option{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin:0!important;line-height:1}
.star-option input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0;z-index:1}
.star-option span{font-size:34px;line-height:1.2;color:#c9d6cc;transition:color .15s ease,transform .15s ease;user-select:none}
.star-option:has(input:checked) span,.star-option:has(input:checked) ~ .star-option span{color:#e9ad26}
.star-rating:hover .star-option span{color:#c9d6cc}
.star-option:hover span,.star-option:hover ~ .star-option span{color:#e9ad26!important;transform:scale(1.08)}
.star-option:has(input:focus-visible) span{outline:2px solid #005b28;outline-offset:3px;border-radius:4px}
@media(max-width:400px){.star-option span{font-size:30px}}

/* Prioridade de cada chamado sem confundir com status. */
.priority-label{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:7px;font-size:11px;font-weight:800;letter-spacing:.1px;white-space:nowrap}
.priority-BAIXA{background:#eff3f0;color:#566d5d}
.priority-NORMAL{background:#e8f5eb;color:#116335}
.priority-ALTA{background:#fff0d8;color:#915a0b}
.priority-CRITICA{background:#fce8e6;color:#a6221e}
.priority-label:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor}
.ticket-subtitle{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:5px}
.ticket-row td:first-child{border-left:4px solid transparent}
.ticket-row.priority-row-BAIXA td:first-child{border-left-color:#b7c9bb}
.ticket-row.priority-row-NORMAL td:first-child{border-left-color:#3a965c}
.ticket-row.priority-row-ALTA td:first-child{border-left-color:#dd9324}
.ticket-row.priority-row-CRITICA td:first-child{border-left-color:#c7352d}
.ticket-section.priority-detail-BAIXA{border-top:4px solid #b7c9bb}
.ticket-section.priority-detail-NORMAL{border-top:4px solid #3a965c}
.ticket-section.priority-detail-ALTA{border-top:4px solid #dd9324}
.ticket-section.priority-detail-CRITICA{border-top:4px solid #c7352d}
.priority-caption{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#536a59}
.ticket-filter-total{font-size:12px;color:#6e8072;padding:0 3px 9px}

/* Combobox múltiplo com checkboxes de seleção simultânea. */
.ticket-list-card .multi-filters{display:grid;grid-template-columns:minmax(180px,1.45fr) repeat(3,minmax(130px,1fr)) auto;gap:10px;align-items:start}
.ticket-list-card .multi-filters>input{max-width:none;min-height:44px}
.multi-filter{position:relative;min-width:0;max-width:100%}
.multi-filter-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;border:1px solid #d6e5da;border-radius:10px;background:#fff;padding:10px 13px;cursor:pointer;font-size:13px;color:#264530}
.multi-filter-summary::-webkit-details-marker{display:none}
.multi-filter-summary:focus-visible{outline:2px solid #005b28;outline-offset:2px}
.multi-filter-chevron{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;color:#55735c;transition:transform .15s ease}
.multi-filter[open] .multi-filter-chevron{transform:rotate(180deg)}
.multi-filter-options{position:absolute;left:0;right:0;top:calc(100% + 5px);max-height:290px;overflow-y:auto;z-index:30;border:1px solid #cbded1;background:#fff;border-radius:11px;box-shadow:0 12px 24px rgba(15,60,32,.14);padding:7px}
.multi-filter-actions{display:flex;gap:8px;padding:5px 4px 9px;border-bottom:1px solid #e4eee6;margin-bottom:5px}
.multi-filter-actions button{flex:1;background:#eff7f1;border:0;color:#005b28;border-radius:6px;font-weight:700;font-size:11px;padding:7px}
.multi-filter-option{display:flex;align-items:flex-start;gap:9px;padding:9px 7px;font-size:12px;color:#314d39;line-height:1.35;border-radius:7px;cursor:pointer}
.multi-filter-option:hover{background:#f1f8f3}
.multi-filter-option input{width:16px;height:16px;min-width:16px;margin:0;accent-color:#005b28;cursor:pointer}
.multi-filter-option span{overflow-wrap:anywhere}
.clear-ticket-filters{white-space:nowrap;min-height:44px}
@media(max-width:1150px){.ticket-list-card .multi-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ticket-list-card .multi-filters>input{grid-column:1/-1}}
@media(max-width:760px){.ticket-list-card .multi-filters{grid-template-columns:minmax(0,1fr)}.ticket-list-card .multi-filters>input{grid-column:auto}.multi-filter-options{position:static;max-height:240px;margin-top:5px;box-shadow:none}.ticket-list-card .multi-filter{max-width:none}}

/* Especificidade: não aplicar o estilo de campo de texto aos checkboxes. */
.ticket-list-card .multi-filters .multi-filter-option input[type="checkbox"]{box-sizing:content-box!important;display:block!important;flex:0 0 16px!important;min-width:16px!important;max-width:16px!important;width:16px!important;height:16px!important;padding:0!important;border:0!important;border-radius:3px!important;background:transparent!important;box-shadow:none!important}
.ticket-list-card .multi-filters .multi-filter-option{font-weight:500}
.ticket-list-card .multi-filter-options{overflow-x:hidden}
.ticket-list-card .multi-filter-actions button{min-width:0}

/* Navegação: avaliações discretas e contador junto ao título, nunca em linha isolada. */
.sidebar .nav[data-go="notifications"]{display:flex;align-items:center;gap:7px;min-height:43px;white-space:nowrap;font-size:13px;font-weight:500}
.sidebar .nav[data-go="notifications"].active{font-weight:700}
.nav-bell{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;color:inherit}
.sidebar .nav[data-go="notifications"] .nav-count{margin:0 0 0 2px;min-width:17px;width:auto;height:17px;padding:0 5px;font-size:10px;line-height:17px;color:#164b28;background:#d6f0de;box-shadow:none;flex:0 0 auto}
@media(max-width:760px){.sidebar .nav[data-go="notifications"]{white-space:nowrap!important;font-size:13px}.sidebar .nav[data-go="notifications"] .nav-count{margin-left:4px}}

/* Gestão de usuários: título à esquerda e filtros alinhados na mesma linha. */
.users-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;min-width:0}
.users-list-toolbar h2{margin:0;flex:1 1 auto;white-space:nowrap}
.users-list-filters{display:grid;grid-template-columns:minmax(210px,300px) minmax(155px,210px);gap:10px;align-items:center;flex:0 1 auto;min-width:0}
.users-list-filters input,.users-list-filters select{box-sizing:border-box;width:100%;min-width:0;max-width:none;height:44px;border:1px solid #d6e6db;border-radius:10px;padding:10px 12px;background:#fff;color:#214530;font:inherit;font-size:13px;outline:none}
.users-list-filters input:focus,.users-list-filters select:focus{border-color:#08743c;box-shadow:0 0 0 3px #08743c1a}
@media(max-width:950px){.users-list-toolbar{flex-direction:column;align-items:stretch}.users-list-filters{flex:1 1 auto;grid-template-columns:1fr 1fr}}
@media(max-width:600px){.users-list-filters{grid-template-columns:1fr}.users-list-toolbar h2{white-space:normal}}

/* A mesma seta SVG é usada em todos os filtros múltiplos, sem glifo da fonte. */
.multi-filter-summary .multi-filter-chevron svg{display:block;flex:none;width:16px;height:16px;stroke:currentColor}
@media(min-width:1151px) and (max-width:1390px){.ticket-list-card .multi-filters{grid-template-columns:minmax(210px,1.3fr) repeat(3,minmax(118px,1fr)) auto;gap:8px}}

/* Chamados compartilhados: identificação visível sem abrir cada ticket. */
.sidebar .shared-nav{display:flex;align-items:center;gap:7px;font-size:13px;white-space:normal}
.sidebar .shared-nav-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;flex:0 0 16px;font-size:18px;line-height:1}
.sidebar .shared-nav-count{display:inline-flex;justify-content:center;align-items:center;margin-left:auto;min-width:21px;height:21px;padding:0 6px;border-radius:99px;background:#d7f1df;color:#075b2d;font-size:11px;font-weight:800;flex-shrink:0}
.shared-ticket-tag{display:inline-flex;align-items:center;background:#e8f2fb;color:#254d70;border:1px solid #c9deef;border-radius:7px;padding:4px 7px;font-size:10px;font-weight:750;white-space:nowrap}
.shared-ticket-tag:before{content:"⇄";font-size:13px;margin-right:4px}
.shared-home-card{margin:0 0 20px;border:1px solid #c4decf}
.shared-home-card .sectionhead{display:flex;align-items:center;justify-content:space-between;gap:14px}
.shared-home-card .sectionhead h2,.shared-list-card .sectionhead h2{margin:0 0 5px}
.shared-home-card .sectionhead .muted{font-size:12px;line-height:1.5;margin:0}
.shared-home-card .table-wrap,.shared-list-card .table-wrap{max-width:100%;overflow-x:auto}
.shared-list-card{margin:0 0 20px}
.shared-list-card>.muted{font-size:12px;margin:6px 0 18px}
.shared-heading-count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 7px;border-radius:99px;background:#e3f3e8;color:#075b2d;font-size:12px;font-weight:800;vertical-align:middle}
.shared-empty{padding:20px 15px;text-align:center;background:#f7fbf8;border-radius:9px;color:#59715f;font-size:13px}
@media(max-width:760px){
 .sidebar .shared-nav{font-size:13px;min-height:46px}
 .shared-home-card .sectionhead{align-items:flex-start;flex-wrap:wrap}
 .shared-home-card .sectionhead button{flex-shrink:0}
 .shared-home-card,.shared-list-card{padding:15px}
}

/* A categoria permanece em sua própria linha; a prioridade sempre vem abaixo. */
.ticket-subtitle{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;margin-top:5px}
.ticket-subtitle .ticket-category{display:block;line-height:1.4}
.ticket-priority-line{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.ticket-company{overflow-wrap:anywhere}

/* Confirmação acessível e opcional de anexos antes de abrir o chamado. */
.attachment-reminder{width:min(460px,calc(100vw - 30px));max-width:460px;max-height:calc(100dvh - 38px);overflow:auto;box-sizing:border-box;padding:0;border:1px solid #cfe4d4;border-radius:17px;background:#fff;color:#173b28;box-shadow:0 18px 54px rgba(3,37,18,.24)}
.attachment-reminder::backdrop{background:rgba(0,26,12,.58);backdrop-filter:blur(2px)}
.attachment-reminder-body{padding:28px;display:flex;flex-direction:column;align-items:stretch;gap:13px}
.attachment-reminder-icon{display:flex;align-items:center;justify-content:center;width:51px;height:51px;border-radius:13px;background:#e5f5e9;font-size:25px}
.attachment-reminder h2{font-size:23px;line-height:1.25;color:#064b25;margin:0}
.attachment-reminder p{font-size:14px;line-height:1.6;color:#425c49;margin:0}
.attachment-reminder .attachment-reminder-note{font-size:12px;color:#687e6d;background:#f5faf6;border-radius:8px;padding:10px 12px}
.attachment-reminder-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:6px}
.attachment-reminder-actions button{min-width:0;width:100%;padding:12px 10px;font-size:13px;white-space:normal}
.attachment-reminder-back{align-self:center;border:0;background:transparent;color:#276a43;font-weight:700;font-size:12px;padding:9px;cursor:pointer}
.attachment-reminder-back:hover{text-decoration:underline}
@media(max-width:480px){.attachment-reminder-body{padding:22px 18px}.attachment-reminder-actions{grid-template-columns:1fr}.attachment-reminder-actions button{min-height:45px}}

/* Navegação do Chamados TI: ícones vetoriais e tipografia uniforme. */
.sidebar{min-width:0}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.sidebar-heading .brand{min-width:0;flex:1 1 auto;padding:8px 2px}
.sidebar-heading .brand-image{display:block;width:100%;max-width:165px;height:auto;object-fit:contain}
.desktop-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:36px;border:1px solid #ffffff34;border-radius:9px;color:#e2f4e7;background:#ffffff12;cursor:pointer}
.desktop-sidebar-toggle:hover,.desktop-sidebar-toggle:focus-visible{background:#ffffff2a;outline-offset:2px}
.desktop-sidebar-toggle svg{width:19px;height:19px}
.sidebar .navs{display:flex;flex-direction:column;gap:4px;min-width:0}
.sidebar .nav,.sidebar .nav[data-go="notifications"],.sidebar .shared-nav{display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:45px;padding:11px 12px;margin:0;text-align:left;line-height:1.35;font-size:14px;font-weight:500;letter-spacing:0;white-space:normal}
.sidebar .nav.active{font-weight:650}
.sidebar .nav-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;color:inherit}
.sidebar .nav-icon svg{display:block;width:19px;height:19px}
.sidebar .nav-label{min-width:0;flex:1 1 auto;overflow-wrap:break-word}
.sidebar .nav-count,.sidebar .shared-nav-count,.sidebar .nav[data-go="notifications"] .nav-count{flex:0 0 auto;margin-left:auto;font-size:10px}
.sidebar .side-bottom .nav{margin-top:12px}
@media(min-width:761px){
 .layout .sidebar{transition:flex-basis .18s ease,width .18s ease,padding .18s ease}
 .layout.sidebar-collapsed .sidebar{width:72px;flex:0 0 72px;padding:19px 10px;gap:15px}
 .layout.sidebar-collapsed .sidebar-heading{justify-content:center}
 .layout.sidebar-collapsed .sidebar-heading .brand{display:none}
 .layout.sidebar-collapsed .desktop-sidebar-toggle{width:44px;height:44px;flex:0 0 44px}
 .layout.sidebar-collapsed .sidebar .nav,.layout.sidebar-collapsed .sidebar .nav[data-go="notifications"],.layout.sidebar-collapsed .sidebar .shared-nav{width:52px;min-width:0;height:48px;min-height:48px;padding:0;justify-content:center;gap:0;margin:0;position:relative}
 .layout.sidebar-collapsed .sidebar .nav-label{display:none}
 .layout.sidebar-collapsed .sidebar .nav-icon{flex:0 0 22px;width:22px;height:22px}
 .layout.sidebar-collapsed .sidebar .nav-count,.layout.sidebar-collapsed .sidebar .shared-nav-count,.layout.sidebar-collapsed .sidebar .nav[data-go="notifications"] .nav-count{position:absolute;top:1px;right:0;min-width:16px;height:16px;line-height:16px;padding:0 3px;margin:0;font-size:9px;border:1px solid #005b28}
 .layout.sidebar-collapsed .sidebar .side-bottom{padding-top:12px}
 .layout.sidebar-collapsed .sidebar .side-bottom>div{display:none}
 .layout.sidebar-collapsed .sidebar .side-bottom #logout{margin-top:0}
}
@media(max-width:760px){
 .desktop-sidebar-toggle{display:none!important}
 .sidebar-heading{display:block}
 .sidebar-heading .brand{display:flex}
 .sidebar .nav,.sidebar .nav[data-go="notifications"],.sidebar .shared-nav{font-size:14px!important;gap:11px!important;min-height:46px!important}
 .sidebar .nav-icon{flex:0 0 20px}
}
@media(prefers-reduced-motion:reduce){.layout .sidebar{transition:none!important}}

/* Automatização do andamento ao enviar mensagens públicas. */
.await-reply-choice{display:flex;align-items:flex-start;gap:10px;margin:12px 0 0;padding:13px 14px;border:1px solid #cce5d1;border-radius:10px;background:#f3faf5;cursor:pointer;color:#1b492b}
.await-reply-choice input[type="checkbox"]{appearance:auto!important;accent-color:#005b28!important;width:18px!important;height:18px!important;min-width:18px!important;margin:1px 0 0!important;padding:0!important;flex:0 0 18px}
.await-reply-choice span{display:flex;flex-direction:column;gap:4px;min-width:0;line-height:1.45}
.await-reply-choice strong{font-size:13px;font-weight:750}
.await-reply-choice small{font-size:12px;color:#637e68;line-height:1.45}
.await-reply-choice[hidden]{display:none!important}

/*
 * Correção estrutural: a largura disponível deve ser dividida entre
 * navegação e conteúdo, não somada à largura intrínseca dos cards.
 * Evita o scroll horizontal da página com menu expandido ou recolhido.
 */
@media(min-width:761px){
 .layout{display:grid!important;grid-template-columns:254px minmax(0,1fr);width:100%;max-width:100%;min-width:0;align-items:start}
 .layout.sidebar-collapsed{grid-template-columns:72px minmax(0,1fr)}
 .layout>.sidebar{width:100%;min-width:0;max-width:100%;flex:none;position:sticky;top:0;align-self:start;height:100dvh}
 .layout>.main{width:100%;min-width:0;max-width:100%;margin:0;flex:none;align-self:start;box-sizing:border-box}
}
@media(min-width:761px) and (max-width:1000px){
 .layout{grid-template-columns:230px minmax(0,1fr)}
 .layout.sidebar-collapsed{grid-template-columns:72px minmax(0,1fr)}
}
/* Frações flexíveis: nenhum card deve impor largura mínima ao dashboard. */
.main>.ticket-layout,.ticket-layout{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,1.7fr) minmax(0,.85fr)}
.ticket-layout>.ticket-main,.ticket-layout>.ticket-aside{width:100%;min-width:0;max-width:100%}
.ticket-layout .card,.ticket-layout form,.ticket-layout .field,
.ticket-layout input,.ticket-layout select,.ticket-layout textarea,
.ticket-layout .timeline,.ticket-layout .event,.ticket-layout .filelist,
.ticket-layout .file-picker{max-width:100%;min-width:0}
.ticket-layout .event p,.ticket-layout .event strong,.ticket-layout .event span,
.ticket-layout .ticket-description,.ticket-layout .attendee-name{overflow-wrap:anywhere}
.ticket-layout .ticket-heading,.ticket-layout .ticket-meta{min-width:0}
.ticket-layout .ticket-heading>*{min-width:0}
.ticket-layout .ticket-heading h2{overflow-wrap:anywhere}
/* Antes a barra horizontal era causada pelo crescimento da grade além da coluna principal. */
@media(min-width:761px) and (max-width:1120px){
 .ticket-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
 .ticket-layout{grid-template-columns:minmax(0,1fr)!important}
 .layout>.main{max-width:100%;min-width:0}
}
/* A página rola apenas verticalmente; tabelas amplas mantêm rolagem restrita à tabela. */
html,body,#root{max-width:100%;overflow-x:clip}

/* Aviso de anexos: clipe e título lado a lado, com quebra apenas se faltar espaço. */
.attachment-reminder-heading{display:flex;align-items:center;gap:14px;min-width:0}
.attachment-reminder-heading .attachment-reminder-icon{flex:0 0 51px}
.attachment-reminder-heading h2{flex:1 1 auto;min-width:0;margin:0;font-size:22px;line-height:1.2;overflow-wrap:anywhere}
@media(max-width:370px){.attachment-reminder-heading{gap:10px}.attachment-reminder-heading h2{font-size:19px}}

/* Filtro de período e cabeçalhos ordenáveis — gerenciamento de chamados */
.ticket-list-card .multi-filters{grid-template-columns:minmax(210px,1.3fr) repeat(3,minmax(125px,1fr)) minmax(160px,.85fr) auto;gap:10px;align-items:end}
.ticket-period-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.ticket-period-field label{font-size:11px;font-weight:700;color:#56705c;line-height:1}
.ticket-period-field select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:44px;border:1px solid #d6e5da;border-radius:10px;background:#fff;color:#264530;padding:9px 10px;font-size:12px}
.ticket-period-field select:focus-visible{outline:2px solid #08743c;outline-offset:1px}
.ticket-list-card .multi-filters>input,.ticket-list-card .multi-filters>.multi-filter,.ticket-list-card .multi-filters>.clear-ticket-filters{align-self:end}
.ticket-sort-btn{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%;padding:5px 0;background:transparent;border:0;font:inherit;font-weight:750;font-size:11px;letter-spacing:.03em;color:#637d6b;text-align:left;cursor:pointer}
.ticket-sort-btn:hover,.ticket-sort-btn:focus-visible{color:#005b28}
.ticket-sort-btn:focus-visible{outline:2px solid #005b28;outline-offset:2px;border-radius:3px}
.ticket-sort-indicator{display:inline-block;flex:0 0 auto;font-size:12px;color:#94a79a}
th[aria-sort="ascending"] .ticket-sort-btn,th[aria-sort="descending"] .ticket-sort-btn{color:#005b28}
th[aria-sort="ascending"] .ticket-sort-indicator,th[aria-sort="descending"] .ticket-sort-indicator{color:#005b28}
@media(max-width:1540px){
 .ticket-list-card .multi-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .ticket-list-card .multi-filters>input{grid-column:1/3;min-width:0}
 .ticket-list-card .multi-filters>.clear-ticket-filters{justify-self:start;grid-column:3}
}
@media(max-width:900px){
 .ticket-list-card .multi-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ticket-list-card .multi-filters>input{grid-column:1/-1}
 .ticket-list-card .multi-filters>.clear-ticket-filters{grid-column:auto}
}
@media(max-width:760px){
 .ticket-list-card .multi-filters{grid-template-columns:1fr}
 .ticket-list-card .multi-filters>input,.ticket-list-card .multi-filters>.clear-ticket-filters{grid-column:auto;width:100%}
 .ticket-period-field label{font-size:12px}
}

/* Barra de filtros de chamados: duas linhas intencionais e alinhadas.
   Linha 1: pesquisa + limpar; linha 2: os quatro filtros proporcionais. */
.ticket-list-card .filters.multi-filters{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 grid-template-areas:"search search search clear" "companies status priority period";
 column-gap:10px;row-gap:10px;align-items:stretch;
 margin-bottom:12px;
}
.ticket-list-card .filters.multi-filters>input#search{
 grid-area:search;grid-column:1 / 4;display:block;width:100%;min-width:0;
 box-sizing:border-box;height:44px;min-height:44px;align-self:stretch;
}
.ticket-list-card .filters.multi-filters>#clearTicketFilters{
 grid-area:clear;grid-column:4 / 5;justify-self:stretch;align-self:stretch;
 width:100%;min-width:0;height:44px;min-height:44px;white-space:nowrap;
}
.ticket-list-card .filters.multi-filters>#companyFilter{grid-area:companies;align-self:stretch}
.ticket-list-card .filters.multi-filters>#statusFilter{grid-area:status;align-self:stretch}
.ticket-list-card .filters.multi-filters>#priorityFilter{grid-area:priority;align-self:stretch}
.ticket-list-card .filters.multi-filters>.ticket-period-field{grid-area:period;align-self:stretch}
.ticket-list-card .filters.multi-filters .ticket-period-field label{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;
 overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.ticket-list-card .filters.multi-filters .ticket-period-field select{height:44px;font-size:13px}
.ticket-list-card .filters.multi-filters .multi-filter-summary{height:44px;box-sizing:border-box}
@media(max-width:900px){
 .ticket-list-card .filters.multi-filters{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-areas:"search clear" "companies status" "priority period";
 }
 .ticket-list-card .filters.multi-filters>input#search{grid-column:1 / 2}
 .ticket-list-card .filters.multi-filters>#clearTicketFilters{grid-column:2 / 3}
}
@media(max-width:560px){
 .ticket-list-card .filters.multi-filters{
  grid-template-columns:1fr;
  grid-template-areas:"search" "companies" "status" "priority" "period" "clear";
 }
 .ticket-list-card .filters.multi-filters>input#search,
 .ticket-list-card .filters.multi-filters>#clearTicketFilters{grid-column:1 / -1}
}

/* Indicadores Turin — layout inspirado no mockup aprovado, com dados reais. */
.dashboard-filterbar-compact{margin:8px 0 14px;padding:17px 20px}
.dashboard-filterbar-compact .dashboard-filterhead{margin-bottom:11px}
.dashboard-filterbar-compact .dashboard-filterhead h2{font-size:15px;margin-bottom:2px}
.dashboard-filterbar-compact .dashboard-filtergrid{gap:10px}
.dashboard-filterbar-compact .dashboard-filterhint{margin:10px 0 0;font-size:11px}
.dash-icon{flex:none;width:21px;height:21px;color:#07592e}
.dash-summary-band{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));background:linear-gradient(100deg,#f1f8f3,#eaf4ee);border:1px solid #d5e9dc;border-radius:17px;margin-bottom:16px;overflow:hidden;box-shadow:0 7px 25px #003b1311}
.dash-summary-item{display:flex;align-items:flex-start;gap:10px;position:relative;min-width:0;padding:17px 13px}
.dash-summary-item:not(:last-child):after{position:absolute;content:"";right:0;top:20px;bottom:20px;width:1px;background:#cee1d4}
.dash-summary-item .dash-icon{margin-top:3px;width:23px;height:23px}
.dash-summary-item>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.dash-summary-item span{color:#4d6657;font-size:11px;font-weight:700;line-height:1.35}
.dash-summary-item strong{color:#004e28;font-size:26px;font-weight:800;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
.dash-chart-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch;margin-bottom:15px}
.dash-chart-card{padding:19px 18px!important;margin:0;min-width:0}
.dash-section-title{display:flex;align-items:center;gap:9px;min-width:0;margin:0 0 16px}
.dash-section-title h2{font-size:17px;line-height:1.25;margin:0;color:#153d27}
.dash-chart-card .indicator-bar-row{margin-bottom:16px}
.indicator-bar-row{margin:0 0 14px;min-width:0}
.indicator-bar-row:last-child{margin-bottom:0}
.indicator-bar-info{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;color:#264333;font-size:12px;line-height:1.4;margin-bottom:6px}
.indicator-bar-info>span{min-width:0;overflow-wrap:anywhere}
.indicator-bar-info strong{font-size:12px;white-space:nowrap;color:#163c2a;font-weight:750}
.indicator-bar-info small{font-size:11px;color:#7a8e80;font-weight:500}
.indicator-bar-track{width:100%;height:9px;border-radius:99px;background:#e6ece8;overflow:hidden}
.indicator-bar-fill{height:100%;border-radius:inherit;background:var(--bar-color,#06743a);min-width:0;transition:width .25s ease}
.dashboard-sparkline{display:block;width:100%;max-height:215px;margin-top:6px}
.dash-chart-card .aging-grid{gap:8px}
.dash-chart-card .aging-grid>div{padding:18px 7px;border-radius:10px;background:#f1f7f2}
.dash-chart-card .aging-grid strong{font-size:27px}
.dash-chart-card .aging-grid span{font-size:11px;line-height:1.3}
.dash-chart-card .dashboard-note{font-size:11px;margin-top:12px}
.dash-bottom-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(275px,.85fr);gap:15px;align-items:start;margin-bottom:20px}
.dash-bottom-main,.dash-bottom-side{display:flex;flex-direction:column;gap:15px;min-width:0}
.dash-bottom-main>.card,.dash-bottom-side>.card{margin:0}
.dash-analysts{padding:19px 18px}
.dash-analysts>.muted{margin:-7px 0 16px;font-size:12px;line-height:1.5}
.dash-analysts .table-wrap{max-width:100%;overflow-x:auto}
.dash-analysts .analyst-table{min-width:1050px;border-collapse:collapse}
.dash-analysts .analyst-table th{font-size:10px;letter-spacing:.02em;line-height:1.3;color:#63786a;text-align:left}
.dash-analysts .analyst-table th,.dash-analysts .analyst-table td{padding:12px 9px;vertical-align:middle}
.dash-analysts .analyst-table td{font-size:12px;line-height:1.45}
.dash-analysts .analyst-table td:first-child{min-width:155px}
.dash-analysts .analyst-table td>small{display:block;color:#798c80;font-size:10px;font-weight:500;line-height:1.3;margin-top:3px}
.dash-analysts .analyst-table .dash-highlight-col{background:#edf8f1;border-left:1px solid #e2f0e6;border-right:1px solid #e2f0e6;text-align:center;min-width:104px}
.dash-analysts .analyst-table .dash-highlight-col strong{font-size:13px;color:#00642f}
.dash-analysts .dashboard-note{font-size:11px;margin:12px 0 0}
.dash-insights{background:linear-gradient(115deg,#f7fcf8,#eef9f0);border-color:#d5e8db}
.dash-insight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.dash-insight-grid>div{padding:8px 15px;min-width:0;border-right:1px solid #cfe4d6;display:flex;flex-direction:column;gap:5px}
.dash-insight-grid>div:first-child{padding-left:0}
.dash-insight-grid>div:last-child{border-right:0}
.dash-insight-grid small{font-size:11px;color:#5b7864;font-weight:700}
.dash-insight-grid strong{font-size:22px;color:#066637;line-height:1.2}
.dash-insight-grid span{color:#718677;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.dashboard-feedback{padding:18px 20px}
.feedback-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.feedback-values>div{background:#f4faf6;border-radius:9px;padding:12px;min-width:0}
.feedback-values small{font-size:11px;color:#5b7564;display:block;margin-bottom:7px}
.feedback-values strong{font-size:19px;color:#075c30;white-space:nowrap}
@media(max-width:1500px){
 .dash-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dash-summary-band{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dash-summary-item:nth-child(3):after{display:none}
 .dash-summary-item:nth-child(-n+3){border-bottom:1px solid #d5e9dc}
 .dash-bottom-grid{grid-template-columns:minmax(0,1.45fr) minmax(270px,1fr)}
}
@media(max-width:1100px){
 .dash-bottom-grid{grid-template-columns:1fr}
 .dash-bottom-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .dash-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 0}
 .dash-insight-grid>div:nth-child(2){border-right:0}
}
@media(max-width:760px){
 .dash-chart-grid,.dash-bottom-side{grid-template-columns:1fr}
 .dash-summary-band{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dash-summary-item:nth-child(3):after{display:block}
 .dash-summary-item:nth-child(even):after{display:none}
 .dash-summary-item:nth-child(-n+4){border-bottom:1px solid #d5e9dc}
 .dash-summary-item{padding:12px;gap:8px}
 .dash-summary-item strong{font-size:23px}
 .dash-summary-item span{font-size:10px}
 .dash-summary-item .dash-icon{width:19px;height:19px}
 .dash-chart-card{padding:16px!important}
 .dash-analysts{padding:14px}
 .dash-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .feedback-values{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.indicator-bar-fill{transition:none}}

/* Indicadores: fidelidade ao layout aprovado e tabela de desempenho em largura total. */
.dash-analysts-full{display:block;width:100%;min-width:0;margin:0 0 16px}
.dash-analysts-full>.dash-analysts{width:100%;margin:0;min-width:0}
.dash-analysts-full .table-wrap{width:100%;max-width:100%;overflow-x:visible}
.dash-analysts-full .analyst-table{table-layout:fixed;width:100%;min-width:0}
.dash-analysts-full .analyst-table th,.dash-analysts-full .analyst-table td{
 padding:12px 7px;font-size:11px;overflow-wrap:anywhere;word-break:normal
}
.dash-analysts-full .analyst-table th{font-size:10px;letter-spacing:0;line-height:1.35}
.dash-analysts-full .analyst-table td:first-child{min-width:0;width:19%}
.dash-analysts-full .analyst-table th:first-child{width:19%}
.dash-analysts-full .analyst-table th:nth-child(6){width:13%}
.dash-analysts-full .analyst-table td>small{overflow-wrap:anywhere}
.dash-chart-card .indicator-bar-track{position:relative;height:9px;background-color:#e7ece8}
.dash-chart-card .indicator-bar-fill{display:block;position:relative;max-width:100%;height:100%;border-radius:99px;flex:none}
.dash-bottom-side .indicator-bar-track{position:relative;height:9px;background-color:#e7ece8}
.dash-bottom-side .indicator-bar-fill{display:block;position:relative;max-width:100%;height:100%;border-radius:99px}
@media(min-width:1150px){
 .dash-chart-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
 .dash-summary-band{grid-template-columns:repeat(6,minmax(0,1fr))}
 .dash-summary-item:nth-child(-n+3){border-bottom:0}
 .dash-summary-item:nth-child(3):after{display:block}
 .dash-summary-item{padding:16px 11px}
 .dash-summary-item strong{font-size:24px}
 .dash-bottom-grid{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr)}
}
@media(max-width:1149px){
 .dash-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dash-summary-band{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dash-analysts-full .analyst-table{min-width:0}
 .dash-analysts-full .analyst-table th,.dash-analysts-full .analyst-table td{font-size:10px;padding:10px 4px}
}
@media(max-width:900px){
 .dash-analysts-full .analyst-table,
 .dash-analysts-full .analyst-table tbody,
 .dash-analysts-full .analyst-table tr{display:block;width:100%}
 .dash-analysts-full .analyst-table thead{display:none}
 .dash-analysts-full .analyst-table tr{padding:12px 0;border-bottom:1px solid #e1ece4}
 .dash-analysts-full .analyst-table td{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%!important;min-width:0!important;padding:7px 5px;border:0;text-align:right}
 .dash-analysts-full .analyst-table td:first-child{display:block;text-align:left;font-size:13px;border-bottom:1px solid #edf3ee;margin-bottom:8px}
 .dash-analysts-full .analyst-table td:not(:first-child):before{display:block;min-width:0;text-align:left;font-size:11px;font-weight:700;color:#617a68}
 .dash-analysts-full .analyst-table td:nth-child(2):before{content:"Atribuídos"}
 .dash-analysts-full .analyst-table td:nth-child(3):before{content:"Ativos"}
 .dash-analysts-full .analyst-table td:nth-child(4):before{content:"Resolvidos"}
 .dash-analysts-full .analyst-table td:nth-child(5):before{content:"Taxa resolução"}
 .dash-analysts-full .analyst-table td:nth-child(6):before{content:"Compartilhados / contribuições"}
 .dash-analysts-full .analyst-table td:nth-child(7):before{content:"Primeira resposta"}
 .dash-analysts-full .analyst-table td:nth-child(8):before{content:"Resolução média"}
 .dash-analysts-full .analyst-table td:nth-child(9):before{content:"Nota atendimento"}
 .dash-analysts-full .analyst-table td:nth-child(10):before{content:"Solução"}
 .dash-analysts-full .analyst-table td:nth-child(11):before{content:"Tempo"}
 .dash-analysts-full .analyst-table .dash-highlight-col{min-width:0;flex:1;background:#edf8f1}
 .dash-bottom-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
 .dash-chart-grid{grid-template-columns:1fr}
 .dash-summary-band{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Barras dos indicadores: <progress> respeita CSP (style-src 'self').
   O preenchimento representa a parcela real de cada grupo no total
   daquele gráfico, não a maior categoria como 100%. */
.indicator-progress{
 display:block;box-sizing:border-box;width:100%;height:10px;max-width:100%;
 margin:0;padding:0;border:0;border-radius:999px;
 appearance:none;-webkit-appearance:none;-moz-appearance:none;
 overflow:hidden;background:#e7eee9;color:#147c47;
 --progress-color:#147c47
}
.indicator-progress::-webkit-progress-bar{background:#e7eee9;border-radius:999px}
.indicator-progress::-webkit-progress-value{background:var(--progress-color);border-radius:999px;transition:width .3s ease}
.indicator-progress::-moz-progress-bar{background:var(--progress-color);border-radius:999px;transition:width .3s ease}
.indicator-progress.priority-BAIXA{--progress-color:#869a8b;color:#869a8b}
.indicator-progress.priority-NORMAL{--progress-color:#198651;color:#198651}
.indicator-progress.priority-ALTA{--progress-color:#d78b1d;color:#d78b1d}
.indicator-progress.priority-CRITICA{--progress-color:#c7352d;color:#c7352d}
.indicator-progress.status-ABERTO{--progress-color:#2459a1;color:#2459a1}
.indicator-progress.status-EM_ATENDIMENTO{--progress-color:#006b62;color:#006b62}
.indicator-progress.status-AGUARDANDO_USUARIO{--progress-color:#d3a130;color:#d3a130}
.indicator-progress.status-RESOLVIDO{--progress-color:#16934e;color:#16934e}
.indicator-progress.status-CANCELADO{--progress-color:#76818a;color:#76818a}
.indicator-progress.series-0{--progress-color:#08763e;color:#08763e}
.indicator-progress.series-1{--progress-color:#2f9772;color:#2f9772}
.indicator-progress.series-2{--progress-color:#5c9f8d;color:#5c9f8d}
.indicator-progress.series-3{--progress-color:#6b8878;color:#6b8878}
.indicator-progress.series-4{--progress-color:#a3b68d;color:#a3b68d}
@media(prefers-reduced-motion:reduce){
 .indicator-progress::-webkit-progress-value,.indicator-progress::-moz-progress-bar{transition:none}
}

/* Evolução diária: gráfico maior, escala proporcional e datas legíveis. */
.dash-daily-card .dashboard-sparkline{
 display:block;width:100%;height:auto;min-height:215px;max-height:none;
 margin:8px auto 0;
}
.dash-daily-card{display:flex;flex-direction:column}
.dash-daily-card .dash-section-title{margin-bottom:8px}
@media(min-width:1150px){
 .dash-daily-card .dashboard-sparkline{min-height:215px;max-height:270px}
}
@media(max-width:760px){
 .dash-daily-card .dashboard-sparkline{min-height:225px}
}
/* Reabertura pelo solicitante: disponível somente para ticket resolvido dentro do prazo. */
.ticket-reopen{border:1px solid #d7e8dd;background:#fbfefb}
.reopen-title{display:flex;align-items:flex-start;gap:13px;margin-bottom:15px}
.reopen-title h2{font-size:18px;margin:0 0 6px;color:#124c2b}
.reopen-title p{color:#5c7363;font-size:13px;line-height:1.5;margin:0}
.reopen-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;height:42px;border-radius:12px;background:#e4f4e8;color:#00642f;font-size:28px;font-weight:600}
.ticket-reopen .field textarea{min-height:95px;resize:vertical}
.ticket-reopen .reopen-button{border-color:#9dc9ab;color:#005b28}

/* Indicadores: os dois cards da coluna esquerda acompanham a altura total da direita. */
@media(min-width:1101px){
 .dash-bottom-grid{align-items:stretch}
 .dash-bottom-grid>.dash-bottom-main,
 .dash-bottom-grid>.dash-bottom-side{height:100%;min-height:0}
 .dash-bottom-grid>.dash-bottom-main,
 .dash-bottom-grid>.dash-bottom-side{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:15px;align-items:stretch}
 .dash-bottom-grid>.dash-bottom-main>.card,
 .dash-bottom-grid>.dash-bottom-side>.card{height:100%;min-height:0;box-sizing:border-box}
 .dash-bottom-grid>.dash-bottom-main>.card{display:flex;flex-direction:column;justify-content:center}
 .dash-bottom-grid>.dash-bottom-main>.dash-insights .dash-insight-grid,
 .dash-bottom-grid>.dash-bottom-main>.dashboard-feedback .feedback-values{width:100%}
}
@media(max-width:1100px){
 .dash-bottom-grid{align-items:start}
 .dash-bottom-grid>.dash-bottom-main>.card{height:auto;min-height:0}
}
/* Preenche o card de idade com números maiores e caixas mais espaçosas. */
.dash-chart-grid>.dash-chart-card:has(.aging-grid){display:flex;flex-direction:column}
.dash-chart-grid>.dash-chart-card .aging-grid{flex:1 1 auto;min-height:0;align-items:stretch;gap:10px}
.dash-chart-grid>.dash-chart-card .aging-grid>div{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:8px;min-height:158px;padding:18px 8px;
}
.dash-chart-grid>.dash-chart-card .aging-grid strong{font-size:clamp(30px,2.5vw,43px);line-height:1.1}
.dash-chart-grid>.dash-chart-card .aging-grid span{font-size:clamp(11px,1vw,13px);line-height:1.4;margin:0}
@media(max-width:760px){
 .dash-chart-grid>.dash-chart-card .aging-grid>div{min-height:135px;padding:14px 5px}
 .dash-chart-grid>.dash-chart-card .aging-grid strong{font-size:32px}
 .dash-chart-grid>.dash-chart-card .aging-grid span{font-size:11px}
}

/* Conteúdo dos cards inferiores: ampliar os indicadores juntamente com os cards. */
@media(min-width:1101px){
 .dash-bottom-grid>.dash-bottom-main>.card{padding:25px 27px!important;justify-content:space-evenly}
 .dash-bottom-grid>.dash-bottom-main .dash-section-title{margin-bottom:16px;gap:12px}
 .dash-bottom-grid>.dash-bottom-main .dash-section-title h2{font-size:20px;line-height:1.25}
 .dash-bottom-grid>.dash-bottom-main .dash-section-title .dash-icon{width:25px;height:25px}
 .dash-bottom-grid>.dash-bottom-main .dash-insight-grid,
 .dash-bottom-grid>.dash-bottom-main .feedback-values{flex:1;align-items:stretch;align-content:center}
 .dash-bottom-grid>.dash-bottom-main .dash-insight-grid>div{
  min-height:135px;padding:18px 17px;justify-content:center;gap:11px
 }
 .dash-bottom-grid>.dash-bottom-main .dash-insight-grid small{font-size:13px;line-height:1.35}
 .dash-bottom-grid>.dash-bottom-main .dash-insight-grid strong{font-size:clamp(28px,2.1vw,37px);line-height:1.1}
 .dash-bottom-grid>.dash-bottom-main .dash-insight-grid span{font-size:12px;line-height:1.45}
 .dash-bottom-grid>.dash-bottom-main .feedback-values{gap:14px}
 .dash-bottom-grid>.dash-bottom-main .feedback-values>div{
  display:flex;flex-direction:column;justify-content:center;gap:13px;
  min-height:135px;padding:18px 15px
 }
 .dash-bottom-grid>.dash-bottom-main .feedback-values small{font-size:13px;line-height:1.3;margin:0}
 .dash-bottom-grid>.dash-bottom-main .feedback-values strong{
  font-size:clamp(24px,1.9vw,34px);line-height:1.1
 }
}
@media(min-width:761px) and (max-width:1100px){
 .dash-bottom-main .dash-insight-grid strong{font-size:27px}
 .dash-bottom-main .feedback-values strong{font-size:25px}
 .dash-bottom-main .feedback-values>div{padding:18px}
}

/* Analistas visualizam o responsável; apenas administradores podem trocá-lo. */
.analyst-assignee-readonly{
 box-sizing:border-box;width:100%;min-height:44px;display:flex;align-items:center;
 padding:10px 13px;margin:0;border:1px solid #d9e8dd;border-radius:10px;
 background:#f4f9f5;color:#184a2e;font-size:13px;font-weight:700;
 overflow-wrap:anywhere
}
.ticket-manage-form .field:has(.analyst-assignee-readonly)>small{
 display:block;margin-top:7px;font-size:12px;line-height:1.45;color:#697f6f
}

/* Convite de funcionário: largura controlada por CSS externo, compatível com CSP. */
.invite-card{width:100%;max-width:none;min-width:0;box-sizing:border-box}

/* Formulários desktop: recuperam a largura da área principal após correção do grid.
   Mantêm margens e espaçamento responsivos sem provocar rolagem horizontal. */
@media(min-width:1001px){
 .main>.new-ticket-card{width:100%;max-width:none;min-width:0}
 .main>.invite-card{width:100%;max-width:none;min-width:0}
}
@media(min-width:761px) and (max-width:1000px){
 .main>.new-ticket-card,.main>.invite-card{width:100%;max-width:100%;min-width:0}
}

.password-toggle .password-eye{display:block;width:18px;height:18px;flex:none;pointer-events:none}
.password-toggle:hover{background:transparent;transform:translateY(-50%)}
