/* Painel de relatorios dos clientes (usa a base do app.css) */
textarea { font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .6rem; width: 100%; resize: vertical; }
.rel-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; align-items: start; }
.rel-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.rel-help { margin: 0; flex: 1 1 300px; }
@media (max-width: 900px) { .rel-layout { grid-template-columns: 1fr; } }

.client-list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.client-list li { display: flex; align-items: center; gap: .4rem; padding: .45rem .5rem; border-radius: 8px; cursor: pointer; }
.client-list li:hover { background: var(--bar-bg); }
.client-list li.active { background: var(--tint); color: var(--navy); font-weight: 600; }
.client-list li.off { opacity: .55; }
.client-list .cname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-list .badge { background: var(--warn); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 .45rem; font-weight: 600; }
.client-list .edit { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 .2rem; font-size: .9rem; }

.pill.novo { color: var(--warn); } .pill.aprovado { color: var(--accent); } .pill.enviado { color: var(--ok); }
.rep-row { cursor: pointer; } .rep-row:hover td { background: var(--bar-bg); }

.ed-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.ed-title { display: flex; flex-direction: column; }
.ed-files { display: flex; gap: .4rem; flex-wrap: wrap; }
.ed-files a { font-size: .82rem; }
.ed-sent { margin: 0 0 .8rem; }
.ed-grid { display: grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ed-left { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 1000px) { .ed-grid { grid-template-columns: 1fr; } }
.ed-preview { position: sticky; top: .8rem; padding: .7rem; }
.ed-preview iframe { width: 100%; height: calc(100vh - 170px); min-height: 500px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ed-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.ed-tabs .btn.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

.sec { display: flex; flex-direction: column; gap: .5rem; }
.sec h2 { margin: 0; }
.sec .hint-line { margin: 0; }
.sugs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.sugs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: start; font-size: .86rem;
  padding: .4rem .5rem; border-radius: 8px; background: var(--bar-bg); }
.sugs li.ia { background: rgb(58 168 160 / .12); }
.sugs li b { font-weight: 600; }
.sugs li .p1 { color: var(--bad); font-weight: 600; }
.sugs-head { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: .3rem; }
details.sug-box summary { cursor: pointer; font-size: .85rem; color: var(--accent); }
.ia-card textarea { margin: .2rem 0 .5rem; }

.token-box { border: 1px dashed var(--accent); border-radius: 8px; padding: .7rem .8rem; background: var(--bar-bg); }
.token-box p { margin: 0 0 .4rem; }
.token-box code { display: block; font-size: .95rem; word-break: break-all; padding: .4rem; background: var(--panel); border-radius: 6px; margin-bottom: .4rem; user-select: all; }
