/**
 * Chat App Brasil — Admin Styles
 * Gerado automaticamente — não edite diretamente.
 * @package ChatAppBrasil
 */

#wlp-wrap { max-width: 980px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
/* Oculta o footer do WP nas páginas do plugin — evita sobreposição com position:absolute */
#wpfooter { display: none !important; }
#wlp-wrap h1 { margin: 0 0 20px; }
#wlp-wrap p  { margin: 0; }
.wlp-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 50%, #25d366 100%);
    border-radius: 12px; padding: 22px 28px; margin-bottom: 24px;
    display: flex; align-items: center; gap: 18px; color: #fff;
}
.wlp-header-icon { font-size: 44px; line-height: 1; flex-shrink: 0; }
.wlp-header h2  { margin: 0; font-size: 20px; font-weight: 600; color: #fff; }
.wlp-header p   { margin: 4px 0 0; opacity: .85; font-size: 13px; }
.wlp-header-actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }
.wlp-header-actions a {
    background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.4);
    padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
    text-decoration: none; transition: background .2s;
}
.wlp-header-actions a:hover { background: rgba(255,255,255,.35); }
/* ── Tab nav: scrollável, sem scrollbar visível ── */
.wlp-tab-nav {
    display: flex; gap: 2px; margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap; overflow-x: visible;
}
.wlp-tab-nav a {
    white-space: nowrap; flex-shrink: 0;
    padding: 8px 13px; font-size: 12px; font-weight: 500;
    color: #666; text-decoration: none; border-radius: 8px 8px 0 0;
    border: 1px solid transparent; border-bottom: none;
    transition: color .2s, background .2s; margin-bottom: -2px;
    display: flex; align-items: center; gap: 4px;
}
.wlp-tab-nav a:hover { color: #25d366; background: #f0fdf4; }
.wlp-tab-nav a.wlp-tab-active {
    color: #075e54; background: #fff; border-color: #e0e0e0;
    border-bottom-color: #fff; font-weight: 600;
}
.wlp-tab-panel { display: none; }
.wlp-tab-panel.wlp-active { display: block; }
.wlp-card {
    background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
    padding: 20px 24px; margin-bottom: 16px; transition: box-shadow .2s;
}
.wlp-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.wlp-card-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #888; margin: 0 0 16px;
    padding-bottom: 12px; border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 8px;
}
.wlp-field { margin-bottom: 14px; }
.wlp-field:last-child { margin-bottom: 0; }
.wlp-field label {
    display: block; font-size: 12px; font-weight: 600; color: #555;
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.wlp-field label .hint {
    font-weight: 400; color: #aaa; text-transform: none; letter-spacing: 0; margin-left: 4px;
}
.wlp-field input[type=text],
.wlp-field input[type=number],
.wlp-field textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 13px; color: #333; background: #fafafa;
    transition: border-color .2s, background .2s; box-sizing: border-box; font-family: inherit;
}
.wlp-field input:focus, .wlp-field textarea:focus {
    outline: none; border-color: #25d366; background: #fff;
    box-shadow: 0 0 0 3px rgba(37,211,102,.1);
}
.wlp-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.wlp-admin-number input {
    width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 13px; background: #fafafa; box-sizing: border-box; margin-bottom: 8px;
    transition: border-color .2s;
}
.wlp-admin-number input:focus { outline: none; border-color: #25d366; background: #fff; box-shadow: 0 0 0 3px rgba(37,211,102,.1); }
.wlp-img-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.wlp-img-row input[type=text] {
    flex: 1; padding: 7px 10px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 12px; background: #fafafa; box-sizing: border-box;
}
.wlp-notif-status {
    border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 10px; overflow: hidden;
}
/* Seções das abas Pagamentos/Rastreamento/Assinaturas */
.wlp-notif-section {
    border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 12px; overflow: hidden;
    background: #fff;
}
.wlp-notif-section-title {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px 10px; border-bottom: 1px solid #f0f0f0;
}
.wlp-notif-section-name {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #555; margin-bottom: 2px;
}
.wlp-notif-section-desc { font-size: 12px; color: #888; line-height: 1.5; }
.wlp-notif-section .wlp-notif-header { border-top: none; }
.wlp-notif-section .wlp-notif-body { border-top: 1px solid #f0f0f0; }
.wlp-notif-header {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    background: #fafafa; cursor: pointer; user-select: none;
    border-bottom: 1px solid transparent; transition: background .15s;
}
.wlp-notif-header:hover  { background: #f0fdf4; }
.wlp-notif-header.open   { background: #f0fdf4; border-bottom-color: #e0f0e8; }
.wlp-notif-badge {
    font-size: 18px; width: 32px; height: 32px; display: flex; align-items: center;
    justify-content: center; border-radius: 8px; background: #fff;
    border: 1px solid #e8e8e8; flex-shrink: 0;
}
.wlp-notif-info  { flex: 1; }
.wlp-notif-label { font-size: 13px; font-weight: 600; color: #333; }
.wlp-notif-desc  { font-size: 11px; color: #999; margin-top: 2px; }
.wlp-notif-filled   { font-size: 11px; color: #25d366; font-weight: 600; }
.wlp-notif-disabled { font-size: 11px; color: #ef4444; font-weight: 500; }
.wlp-ts input:disabled + .wlp-ts-slider { background: #d1d5db !important; cursor: not-allowed; }
/* Toggle switch estilo iOS */
.wlp-ts { position:relative; display:inline-block; width:40px; height:22px; flex-shrink:0; }
.wlp-ts input { opacity:0; width:0; height:0; position:absolute; }
.wlp-ts-slider {
    position:absolute; inset:0; background:#d1d5db;
    border-radius:22px; cursor:pointer; transition:background .2s;
}
.wlp-ts-slider:before {
    content:""; position:absolute;
    width:16px; height:16px; left:3px; bottom:3px;
    background:#fff; border-radius:50%;
    transition:transform .2s;
    box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.wlp-ts input:checked + .wlp-ts-slider { background:#25d366; }
.wlp-ts input:checked + .wlp-ts-slider:before { transform:translateX(18px); }
.wlp-notif-empty  { font-size: 11px; color: #bbb; }
.wlp-chevron {
    width: 16px; height: 16px; flex-shrink: 0; color: #aaa; transition: transform .25s;
}
.wlp-notif-header.open .wlp-chevron { transform: rotate(180deg); }
.wlp-notif-body { display: none; padding: 16px; }
.wlp-notif-body.open { display: block; }
.wlp-followup-card { border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.wlp-followup-header {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    background: #fafafa; cursor: pointer; transition: background .15s;
}
.wlp-followup-header:hover { background: #f0fdf4; }
.wlp-followup-num {
    width: 28px; height: 28px; background: #25d366; color: #fff; border-radius: 50%;
    font-size: 13px; font-weight: 700; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.wlp-followup-title { font-size: 13px; font-weight: 600; color: #333; flex: 1; }
.wlp-followup-body { display: none; padding: 16px; }
.wlp-followup-body.open { display: block; }
.wlp-save-bar {
    background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
    padding: 14px 20px; display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.wlp-save-bar .info { font-size: 12px; color: #aaa; }
.wlp-btn-primary, .wlp-save-bar .button-primary {
    background: #25d366 !important; border-color: #1ea855 !important;
    color: #fff !important; padding: 9px 24px !important; font-size: 13px !important;
    font-weight: 600 !important; border-radius: 8px !important; height: auto !important;
    box-shadow: 0 2px 8px rgba(37,211,102,.3) !important; cursor: pointer;
}
.wlp-btn-primary:hover { background: #1ea855 !important; }
.wlp-tags-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wlp-tags-group h4 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #888; margin: 0 0 10px;
}
.wlp-tags-list { display: flex; flex-direction: column; gap: 5px; }
.wlp-tags-list .tag-row { display: flex; align-items: baseline; gap: 8px; }
.wlp-tags-list code {
    background: #f0fdf4; color: #075e54; border: 1px solid #bbf7d0;
    border-radius: 5px; padding: 2px 7px; font-size: 11px; flex-shrink: 0;
}
.wlp-tags-list span { font-size: 12px; color: #666; }
.wlp-log-table { border-radius: 12px; overflow: hidden; border: 1px solid #e8e8e8;
    border-collapse: separate !important; margin-top: 12px; width: 100%; }
.wlp-log-table thead th {
    background: #f9fafb; padding: 10px 14px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: #888; border-bottom: 1px solid #e8e8e8;
    text-align: left;
}
.wlp-log-table tbody td { padding: 10px 14px; font-size: 12px;
    vertical-align: middle; border-bottom: 1px solid #f5f5f5; }
.wlp-log-table tbody tr:last-child td { border-bottom: none; }
.wlp-log-table tbody tr:hover { background: #fafafa; }
.log-status-ok  { color: #25d366; font-weight: 600; }
.log-status-err { color: #e74c3c; font-weight: 600; }
.log-msg-cell div { white-space: pre-wrap; word-break: break-word;
    max-height: 60px; overflow: hidden; font-size: 12px; color: #555; }
/* ── Padronização global de cards e seções ── */
#wlp-wrap { max-width: 980px !important; }
.wlp-ntab-panel { max-width: 980px; }
/* Toggle desativado quando mensagem vazia */
.wlp-ts input[disabled] + .wlp-ts-slider { opacity: .4; cursor: not-allowed; }
.wlp-ts input[disabled] + .wlp-ts-slider { background: #d1d5db !important; }
/* Aviso padrão amarelo */
.wlp-notice-warn {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
    font-size: 13px; color: #78350f; margin-bottom: 12px;
}
.wlp-notice-warn strong { color: #92400e; }
.wlp-notice-ok {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
    font-size: 13px; color: #166534; margin-bottom: 12px;
}
/* Card: fundo branco, borda, radius — padrão absoluto */
.wlp-card {
    background: #fff !important; border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
}
/* Mensagem "configure após instalar" */
.wlp-empty-state {
    padding: 24px; text-align: center;
    font-size: 13px; color: #9ca3af;
}

@media (max-width: 782px) {
    .wlp-tags-grid { grid-template-columns: 1fr; }
    .wlp-tab-nav a { white-space: nowrap; padding: 8px 10px; font-size: 12px; }
}