/* Chamados de suporte (migracao 054) - cliente (Minha conta -> Ajuda e chamados) e atendimento (Minha conta -> Atendimento e console
   da plataforma -> Chamados). Padrao do painel: azul-marinho (#07111f / #111f35 -> #0b1628) + dourado (#e8c66a / #c9972b). */
.sch{color:#f7f8fa;font-family:Inter,"Segoe UI",Arial,sans-serif}
.sch-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.sch-title{margin:0;font-size:19px;line-height:1.3;color:#f7f8fa}
.sch-h3{margin:22px 0 10px;font-size:15px;color:#e8c66a}
.sch-sub{color:#aeb7c5;font-size:12.5px;margin-top:5px;line-height:1.5;max-width:640px}
.sch-note{color:#aeb7c5;font-size:13px;margin:8px 0}
.sch-muted{color:#7f8ca0}
.sch-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.sch-btn{height:42px;padding:0 16px;border:0;border-radius:9px;background:linear-gradient(135deg,#e8c66a,#c9972b);color:#101827;font:700 14px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer;white-space:nowrap}
.sch-btn.sec{background:#111f35;color:#f7f8fa;border:1px solid rgba(201,151,43,.35)}
.sch-btn.sec:hover{border-color:#e8c66a}
.sch-btn.small{height:34px;padding:0 12px;font-size:13px}
.sch-btn:disabled{opacity:.5;cursor:not-allowed}
.sch-btn:focus-visible,.sch-back:focus-visible,.sch-card:focus-visible,.sch-file:focus-visible,.sch-seg button:focus-visible,.sch-table tr:focus-visible{outline:2px solid #f1c75b;outline-offset:2px}
.sch-back{background:none;border:0;color:#e8c66a;font:600 13.5px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer;padding:4px 0;margin-bottom:10px}
.sch-panel{background:linear-gradient(145deg,#111f35 0%,#0b1628 100%);border:1px solid rgba(201,151,43,.22);border-radius:14px;padding:18px}
.sch-seg{display:inline-flex;background:#0b1628;border:1px solid rgba(201,151,43,.22);border-radius:10px;padding:3px}
.sch-seg button{background:none;border:0;color:#aeb7c5;font:600 13px Inter,"Segoe UI",Arial,sans-serif;padding:8px 12px;border-radius:8px;cursor:pointer}
.sch-seg button[aria-selected="true"]{background:linear-gradient(135deg,#e8c66a,#c9972b);color:#101827}
.sch-cards{display:grid;gap:10px}
.sch-card{display:block;width:100%;text-align:left;background:linear-gradient(145deg,#111f35 0%,#0b1628 100%);border:1px solid rgba(201,151,43,.22);border-radius:12px;padding:14px 16px;color:#f7f8fa;cursor:pointer}
.sch-card:hover{border-color:#e8c66a}
.sch-card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;font-size:14.5px}
.sch-card-meta{display:block;color:#aeb7c5;font-size:12.5px;margin-top:6px}
.sch-empty{background:#0b1628;border:1px dashed rgba(201,151,43,.35);border-radius:12px;padding:26px;text-align:center;color:#aeb7c5}
.sch-empty b{display:block;color:#f7f8fa;margin-bottom:6px}
.sch-pill{display:inline-block;font-size:11.5px;font-weight:800;padding:4px 9px;border-radius:999px;white-space:nowrap;background:rgba(174,183,197,.14);color:#d6dce6}
.sch-st-aberto{background:rgba(232,198,106,.16);color:#e8c66a}
.sch-st-em_atendimento{background:rgba(96,165,250,.16);color:#93c5fd}
.sch-st-aguardando_cliente{background:rgba(251,146,60,.16);color:#fdba74}
.sch-st-resolvido{background:rgba(74,222,128,.14);color:#86efac}
.sch-st-fechado_automatico{background:rgba(174,183,197,.14);color:#aeb7c5}
.sch-internal{background:rgba(232,198,106,.18);color:#e8c66a}
.sch-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.sch-form .wide{grid-column:1/-1}
.sch-form label,.sch-reply label,.sch-controls label{display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:#aeb7c5;font-weight:600}
.sch input[type=text],.sch input:not([type]),.sch input[type=email],.sch input[type=search],.sch select,.sch textarea{background:#0b1628;border:1px solid rgba(201,151,43,.28);border-radius:9px;color:#f7f8fa;padding:10px 12px;font:400 14px Inter,"Segoe UI",Arial,sans-serif;box-sizing:border-box;width:100%}
.sch textarea{resize:vertical;min-height:90px;line-height:1.5}
.sch input[type=file]{color:#aeb7c5;font-size:13px}
.sch input:focus,.sch select:focus,.sch textarea:focus{outline:none;border-color:#e8c66a;box-shadow:0 0 0 2px rgba(232,198,106,.18)}
.sch-row-end{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:6px}
.sch-chips{display:flex;gap:6px;flex-wrap:wrap}
.sch-chip{background:#0b1628;border:1px solid rgba(201,151,43,.22);border-radius:999px;padding:4px 10px;font-size:12px;color:#d6dce6}
.sch-msg{font-size:13px;min-height:0}
.sch-msg:empty{display:none}
.sch-msg.ok{color:#86efac;background:rgba(74,222,128,.08);border:1px solid rgba(74,222,128,.25);border-radius:9px;padding:9px 12px;margin:10px 0}
.sch-msg.err{color:#fca5a5;background:rgba(248,113,113,.08);border:1px solid rgba(248,113,113,.3);border-radius:9px;padding:9px 12px;margin:10px 0}
.sch-callout{background:rgba(251,146,60,.1);border:1px solid rgba(251,146,60,.3);color:#fdba74;border-radius:10px;padding:10px 12px;font-size:13px;margin:12px 0}
.sch-code{background:#07111f;border:1px solid rgba(201,151,43,.35);border-radius:6px;padding:2px 8px;color:#e8c66a;font:700 14px ui-monospace,Consolas,monospace;user-select:all}
.sch-thread-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-bottom:10px}
.sch-thread{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.sch-bubble{max-width:82%;border-radius:12px;padding:11px 14px;border:1px solid rgba(201,151,43,.18);background:#0b1628}
.sch-bubble header{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12.5px;margin-bottom:6px;color:#d6dce6}
.sch-bubble header time{color:#7f8ca0;margin-left:auto}
.sch-bubble.cliente{align-self:flex-start}
.sch-bubble.suporte{align-self:flex-end;background:#132544;border-color:rgba(232,198,106,.32)}
.sch-bubble.suporte.interna{background:rgba(232,198,106,.07);border:1px dashed rgba(232,198,106,.55)}
.sch-bubble.sistema{align-self:center;max-width:92%;background:transparent;border:1px dashed rgba(174,183,197,.3);color:#aeb7c5;font-size:13px}
.sch-text{font-size:14px;line-height:1.55;color:#f7f8fa;overflow-wrap:anywhere}
.sch-bubble.sistema .sch-text{color:#aeb7c5}
.sch-files{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.sch-file{background:#07111f;border:1px solid rgba(201,151,43,.35);border-radius:8px;color:#e8c66a;padding:6px 10px;font:600 12.5px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}
.sch-file small{color:#aeb7c5;font-weight:400}
.sch-file-err{border-color:#f87171;color:#fca5a5}
.sch-reply{display:grid;gap:10px;border-top:1px solid rgba(201,151,43,.18);padding-top:14px}
.sch-reply.interna textarea{border-style:dashed;border-color:#e8c66a;background:rgba(232,198,106,.05)}
.sch-reply-opts{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end}
.sch-reply-opts label{min-width:200px}
.sch-check{flex-direction:row!important;align-items:center;gap:8px!important;color:#f7f8fa!important;font-size:13.5px!important;min-width:0!important}
.sch-check input{width:18px;height:18px;accent-color:#c9972b}
.sch-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;background:#0b1628;border:1px solid rgba(201,151,43,.18);border-radius:11px;padding:12px;margin:10px 0}
.sch-controls label{min-width:210px}
.sch-history{margin-top:14px;color:#aeb7c5;font-size:13px}
.sch-history summary{cursor:pointer;color:#e8c66a;font-weight:700}
.sch-history ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:6px}
.sch-history time{color:#7f8ca0;margin-right:6px}
.sch-counters{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:14px}
.sch-counter{background:linear-gradient(145deg,#111f35 0%,#0b1628 100%);border:1px solid rgba(201,151,43,.22);border-radius:11px;padding:12px}
.sch-counter span{display:block;color:#aeb7c5;font-size:11.5px;margin-bottom:6px}
.sch-counter b{font-size:20px;color:#f7f8fa}
.sch-counter.gold b{color:#e8c66a}
.sch-counter.warn b{color:#fdba74}
.sch-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.sch-filters > select{width:150px}
.sch-filters .sefp-picker{width:150px;flex:0 0 auto}
.sch-search{width:180px!important;height:44px}
.sch-filterbar{display:flex;justify-content:flex-end;margin:0 0 14px}
.sch input[type=file]::file-selector-button{background:#111f35;color:#e8c66a;border:1px solid rgba(201,151,43,.45);border-radius:8px;padding:7px 12px;margin-right:10px;font:600 13px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}
.sch-table-wrap{overflow-x:auto;border:1px solid rgba(201,151,43,.22);border-radius:12px}
.sch-table{width:100%;border-collapse:collapse;min-width:760px;font-size:13.5px}
.sch-table th{background:#0b1628;color:#aeb7c5;text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.03em;padding:10px 12px;border-bottom:1px solid rgba(201,151,43,.22)}
.sch-table td{padding:11px 12px;border-bottom:1px solid rgba(201,151,43,.1);color:#f7f8fa;vertical-align:top}
.sch-table td small{display:block;color:#7f8ca0;font-size:12px;margin-top:3px}
.sch-table tbody tr[data-id]{cursor:pointer}
.sch-table tbody tr[data-id]:hover{background:rgba(232,198,106,.06)}
#atendimentoNavBadge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:999px;background:#e6bd60;color:#142036;font-size:11px;font-weight:900;line-height:1}
#atendimentoNavBadge[hidden]{display:none}
#scpTab .sch-support{margin-top:4px}
@media(max-width:1100px){.sch-counters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
  .sch-form{grid-template-columns:1fr}
  .sch-counters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sch-bubble{max-width:100%}
  .sch-filters > select,.sch-filters .sefp-picker,.sch-search{width:100%!important}
  .sch-actions{width:100%;justify-content:flex-start}
  .sch-controls label,.sch-reply-opts label{min-width:0;width:100%}
}
/* anexos: botao no padrao do painel (o input nativo fica acessivel, so invisivel; o label abre o seletor) */
.sch-anexo{position:relative;display:inline-flex;align-items:center;margin-top:6px}
.sch-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}
.sch-file-btn{cursor:pointer;display:inline-flex;align-items:center}
.sch-file-input:focus-visible + .sch-file-btn{outline:2px solid #e8c66a;outline-offset:2px}
