/**
 * SS Representantes – style.css
 * Todas as classes prefixadas com .ss-rep- para evitar conflitos.
 */

.ss-rep-wrap { font-family: inherit; background: #fff; width: 100%; box-sizing: border-box; }
.ss-rep-wrap *, .ss-rep-wrap *::before, .ss-rep-wrap *::after { box-sizing: border-box; }

/* ── Busca + Contador ───────────────────────── */
.ss-rep-search-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ss-rep-search-wrap { position: relative; flex: 1; min-width: 220px; max-width: 440px; }
.ss-rep-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #bbb; font-size: 14px; pointer-events: none; line-height: 1; }
.ss-rep-search-input { width: 100%; background: #fff; border: 1px solid #d0d0d0; border-top: 2px solid #ccc; color: #111; font-family: inherit; font-size: 14px; padding: 10px 16px 10px 42px; outline: none; border-radius: 0; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.ss-rep-search-input:focus { border-color: #CC1111; border-top-color: #CC1111; }
.ss-rep-search-input::placeholder { color: #aaa; }
.ss-count { font-size: 13px; color: #999; white-space: nowrap; }
.ss-rep-counter { color: #CC1111; font-weight: 700; }

/* ── Tabs de Região ─────────────────────────── */
.ss-rep-region-tabs { display: flex; border-bottom: 2px solid #e5e5e5; margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.ss-rep-region-tabs::-webkit-scrollbar { display: none; }
.ss-rep-rtab { font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 12px 18px; color: #aaa; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s; line-height: 1; }
.ss-rep-rtab:hover { color: #111111 !important; background: none !important; }
.ss-rep-rtab.active { color: #CC1111 !important; border-bottom-color: #CC1111 !important; background: none !important; }

/* ── Bloco de Estado ────────────────────────── */
.ss-rep-state-block { margin-bottom: 40px; }
.ss-rep-state-block[hidden] { display: none !important; }
.ss-rep-state-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #e5e5e5; flex-wrap: wrap; }
.ss-rep-state-code { background: #CC1111; color: #fff; font-family: inherit; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; flex-shrink: 0; }
.ss-rep-state-name { font-family: inherit; font-weight: 700; font-size: 20px; color: #111; }
.ss-rep-state-count { font-size: 12px; color: #bbb; margin-left: auto; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }

/* ── Grid ───────────────────────────────────── */
.ss-rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* ── Card ───────────────────────────────────── */
.ss-rep-card { background: #fff; border: 1px solid #e5e5e5; border-left: 3px solid #e5e5e5; padding: 18px 20px; transition: border-left-color .2s, box-shadow .2s; }
.ss-rep-card:hover { border-left-color: #CC1111; box-shadow: 0 2px 12px rgba(204,17,17,.08); }
.ss-rep-card[hidden] { display: none !important; }
.ss-rep-name { font-family: inherit; font-weight: 700; font-size: 16px; color: #111; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.ss-rep-name::before { content: ''; display: inline-block; width: 6px; height: 6px; min-width: 6px; background: #CC1111; border-radius: 50%; flex-shrink: 0; }
.ss-rep-contacts { display: flex; flex-direction: column; gap: 7px; }
.ss-rep-row { display: flex; align-items: center; gap: 8px; }
.ss-rep-ico { width: 28px; height: 28px; min-width: 28px; background: rgba(204,17,17,.06); border: 1px solid rgba(204,17,17,.15); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.ss-rep-val { font-size: 13px; color: #666; line-height: 1.4; word-break: break-all; }
.ss-rep-val a { color: #666; text-decoration: none; transition: color .2s; }
.ss-rep-val a:hover { color: #CC1111; }
.ss-rep-wa-pill { display: inline-flex; align-items: center; justify-content: center; background: #25D366; width: 28px; height: 28px; text-decoration: none !important; transition: background .2s, transform .15s; margin-left: 6px; border-radius: 50%; vertical-align: middle; flex-shrink: 0; }
.ss-rep-wa-pill:hover { background: #1da851 !important; transform: scale(1.1); }
.ss-rep-wa-icon { display: block; }

/* ── Sem Resultados ─────────────────────────── */
.ss-rep-no-results { text-align: center; padding: 60px 20px; }
.ss-rep-no-results p { font-size: 16px; color: #ccc; margin: 0; }

/* ── Responsivo ─────────────────────────────── */
@media (max-width: 1024px) {
    .ss-rep-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ss-rep-grid { grid-template-columns: 1fr; }
    .ss-rep-rtab { padding: 10px 12px; font-size: 12px; }
    .ss-rep-search-wrap { max-width: 100%; min-width: 100%; }
    .ss-rep-search-bar { flex-direction: column; align-items: flex-start; }
}
