/* Ajuda e suporte — versão interna (support.html), no padrão de Relatórios */
.sup-page { max-width: 980px; }
.sup-search { position: relative; display: flex; align-items: center; margin: 4px 0 20px; }
.sup-search > .ico, .sup-search > svg { position: absolute; left: 14px; color: var(--fg-3); pointer-events: none; }
.sup-search input { width: 100%; height: 46px; padding: 0 44px 0 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--fg); font: inherit; font-size: 14.5px; outline: none; }
.sup-search input:focus { border-color: var(--accent); }
.sup-search input::-webkit-search-cancel-button { display: none; }
.sup-search button { position: absolute; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-3); cursor: pointer; display: grid; place-items: center; }
.sup-search button:hover { background: var(--bg-2); color: var(--fg); }

.sup-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.sup-cat { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg); text-align: left; cursor: pointer; font: inherit; min-width: 0; transition: border-color .15s; }
.sup-cat:hover { border-color: var(--accent); }
.sup-cat.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.sup-cat--skel { min-height: 62px; cursor: default; }
.sup-cat-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-2); color: var(--fg-2); display: grid; place-items: center; flex: none; }
.sup-cat:hover .sup-cat-ic, .sup-cat.on .sup-cat-ic { color: var(--accent); }
.sup-cat-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sup-cat-txt b { font-size: 13.5px; font-weight: 600; }
.sup-cat-txt small { font-size: 11.5px; color: var(--fg-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sup-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: var(--fg-3); }
.sup-link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; }
.sup-link:hover { text-decoration: underline; }

.sup-sec { margin-bottom: 26px; scroll-margin-top: 80px; }
.sup-sec h2 { font-size: 16px; font-weight: 600; color: var(--fg); margin: 0 0 10px; }
.sup-q { border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-bottom: 6px; }
.sup-q-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.sup-q-head > :last-child { color: var(--fg-3); flex: none; transition: transform .2s; }
.sup-q.open .sup-q-head > :last-child { transform: rotate(180deg); }
.sup-q-body { padding: 0 16px 16px; color: var(--fg-2); font-size: 13.5px; line-height: 1.65; }
.sup-q-body p + p, .sup-q-body p + ol, .sup-q-body ol + p, .sup-q-body p + ul, .sup-q-body ul + p { margin-top: 8px; }
.sup-q-body ol, .sup-q-body ul { padding-left: 20px; margin: 0; }
.sup-q-body li + li { margin-top: 3px; }
.sup-q-body b { color: var(--fg); font-weight: 600; }
.sup-q-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.sup-empty { text-align: center; color: var(--fg-3); font-size: 13.5px; padding: 28px 0; }

.sup-contact { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 22px; margin: 10px 0 40px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--card); }
.sup-contact h2 { font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--fg); }
.sup-contact p { margin: 0; font-size: 13px; color: var(--fg-3); line-height: 1.55; max-width: 560px; }
.sup-contact-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sup-contact-btns .btn-primary { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sup-btn { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); color: var(--fg); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.sup-btn:hover { background: var(--bg-2); }

@media (max-width: 1000px) { .sup-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .sup-cats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sup-cat { padding: 10px; gap: 9px; }
  .sup-cat-txt small { display: none; }
  .sup-cat-txt b { font-size: 13px; }
  .sup-search input { font-size: 16px; }
  .sup-contact-btns { width: 100%; }
}

/* ── Chamado de suporte (formulário) ── */
.sup-page .page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sup-head-btn, .sup-contact-btns .btn-primary, .sup-modal-foot .btn-primary { display: inline-flex; align-items: center; gap: 6px; }
.btn-primary:disabled { opacity: .5; cursor: default; }
.sup-ov { position: fixed; inset: 0; z-index: 10050; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; }
.sup-modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; }
.sup-modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sup-modal-head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sup-modal-head b { font-size: 15px; font-weight: 600; }
.sup-modal-head small { font-size: 12px; color: var(--fg-3); }
.sup-modal-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-3); cursor: pointer; display: grid; place-items: center; }
.sup-modal-x:hover { background: var(--bg-2); color: var(--fg); }
.sup-modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sup-field { display: flex; flex-direction: column; gap: 5px; }
.sup-field > span { font-size: 12px; color: var(--fg-3); font-weight: 500; }
.sup-field > span em { font-style: normal; color: var(--fg-4); font-weight: 400; }
.sup-field input, .sup-field select, .sup-field textarea { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg-1); color: var(--fg); font: inherit; font-size: 13.5px; outline: none; }
.sup-field input, .sup-field select { height: 38px; padding-top: 0; padding-bottom: 0; }
.sup-field textarea { resize: vertical; line-height: 1.5; }
.sup-field input:focus, .sup-field select:focus, .sup-field textarea:focus { border-color: var(--accent); }
.sup-drop { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 1px dashed var(--line-strong); border-radius: 8px; background: transparent; color: var(--fg-3); font: inherit; font-size: 13px; cursor: pointer; }
.sup-drop:hover { border-color: var(--accent); color: var(--accent); }
.sup-file { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.sup-file img { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; }
.sup-file-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-modal-note { font-size: 12px; color: var(--fg-4); line-height: 1.5; }
.sup-err { font-size: 12.5px; color: var(--danger); }
.sup-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.sup-done { align-items: center; text-align: center; padding: 26px 20px 18px; }
.sup-done p { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.55; max-width: 380px; }
.sup-done-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.sup-done .sup-modal-foot { justify-content: center; margin-top: 8px; }

.sup-tickets { border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.sup-ticket { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.sup-ticket + .sup-ticket { border-top: 1px solid var(--line); }
.sup-ticket-num { font-size: 12px; color: var(--fg-4); font-variant-numeric: tabular-nums; min-width: 34px; }
.sup-ticket-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sup-ticket-main b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-ticket-main small { font-size: 11.5px; color: var(--fg-4); }
.sup-ticket-st { font-size: 12px; font-weight: 500; color: var(--fg-3); white-space: nowrap; }
.sup-ticket-st--open { color: var(--accent); }
.sup-ticket-st--closed { color: var(--success); }
@media (max-width: 760px) {
  .sup-field input, .sup-field select, .sup-field textarea { font-size: 16px; }
  .sup-head-btn { width: 100%; justify-content: center; }
}

/* Meus chamados — conversa */
button.sup-ticket { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.sup-ticket:hover { background: var(--bg-2); }
.sup-ticket.unread .sup-ticket-main b { color: var(--accent); }
.sup-ticket-new { font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.sup-msg { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; }
.sup-msg small { display: block; font-size: 11.5px; color: var(--fg-4); margin-bottom: 4px; }
.sup-msg p { margin: 0; white-space: pre-wrap; color: var(--fg); }
.sup-msg--user { margin-right: 28px; background: var(--bg-1); }
.sup-msg--support { margin-left: 28px; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
