.dsp-cc-wrapper {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dsp-cc-wrapper h2 {
    margin: 0 0 16px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #222;
}

/* Área de busca */
.dsp-cc-search {
    margin-bottom: 16px;
}

.dsp-cc-search label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.dsp-cc-search-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dsp-cc-search-input input[type="text"] {
    flex: 1;
}

.dsp-cc-search small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.75rem;
}

/* Grid de resultados */
.dsp-cc-grid {
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    max-height: 260px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.dsp-cc-grid table {
    width: 100%;
    border-collapse: collapse;
}

.dsp-cc-grid thead {
    background: #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 1;
}

.dsp-cc-grid th,
.dsp-cc-grid td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.dsp-cc-grid tr:hover {
    background: #f9fafb;
    cursor: pointer;
}

/* Separador */
.dsp-cc-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Formulário */
.dsp-cc-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
}

.dsp-cc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dsp-cc-field-full {
    grid-column: 1 / -1;
}

.dsp-cc-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.dsp-cc-field input,
.dsp-cc-field textarea {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.dsp-cc-field input:focus,
.dsp-cc-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

/* Ações / botões */
.dsp-cc-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.dsp-cc-btn {
    border-radius: 6px;
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.dsp-cc-btn-primary {
    background: #2563eb;
    color: #fff;
}

.dsp-cc-btn-primary:hover {
    background: #1d4ed8;
}

.dsp-cc-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.dsp-cc-btn-secondary:hover {
    background: #d1d5db;
}

.dsp-cc-status {
    font-size: 0.85rem;
    color: #374151;
}

/* Mobile */
@media (max-width: 768px) {
    .dsp-cc-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .dsp-cc-form-grid {
        grid-template-columns: 1fr;
    }

    .dsp-cc-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dsp-cc-actions .dsp-cc-btn {
        width: 100%;
        justify-content: center;
    }
}
