/* (usa el CSS que ya hemos venido usando para dar estilo al formulario, tabla y filtros) */
.cc-form { max-width: 680px; margin: 1rem 0; }
.cc-row { margin-bottom: 12px; }
.cc-row label { display:block; font-weight:600; margin-bottom:6px; }
.cc-row input[type="text"], .cc-row input[type="email"], .cc-row textarea { width:100%; padding:10px; border:1px solid #d1d5db; border-radius:8px; box-sizing:border-box; }
.cc-btn { background:#111827; color:#fff; border:0; padding:10px 16px; border-radius:8px; cursor:pointer; }
.cc-btn:hover { opacity:.9; }
.cc-required { color:#ef4444; }
.cc-alert { padding:10px 12px; border-radius:8px; margin-bottom:12px; }
.cc-success { background:#ecfdf5; border:1px solid #10b981; }
.cc-error { background:#fef2f2; border:1px solid #ef4444; }
.cc-stats { margin: 6px 0 4px; }
.cc-pill { display:inline-block; background:#eef2ff; color:#1e3a8a; border:1px solid #c7d2fe; padding:6px 10px; border-radius:999px; font-size:13px; }
.cc-filters-wrap{ max-width:100%; margin:8px 0 12px; display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:end; }
.cc-filters{ display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:0; padding:0;}
/*... resto igual al CSS que te di anteriormente ...*/


.cc-form { max-width: 680px; margin: 1rem 0; }
.cc-row { margin-bottom: 12px; }
.cc-row label { display:block; font-weight:600; margin-bottom:6px; }
.cc-row input[type="text"], .cc-row input[type="email"], .cc-row textarea { width:100%; padding:10px; border:1px solid #d1d5db; border-radius:8px; box-sizing:border-box; }
.cc-btn { background:#111827; color:#fff; border:0; padding:10px 16px; border-radius:8px; cursor:pointer; }
.cc-btn:hover { opacity:.9; }
.cc-required { color:#ef4444; }
.cc-alert { padding:10px 12px; border-radius:8px; margin-bottom:12px; }
.cc-success { background:#ecfdf5; border:1px solid #10b981; }
.cc-error { background:#fef2f2; border:1px solid #ef4444; }

.cc-stats { margin: 6px 0 4px; }
.cc-pill { display:inline-block; background:#eef2ff; color:#1e3a8a; border:1px solid #c7d2fe; padding:6px 10px; border-radius:999px; font-size:13px; }

.cc-filters-wrap{ max-width:100%; margin:8px 0 12px; display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:end; }
.cc-filters{ display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:0; padding:0;}
.cc-field label{ display:block; font-weight:600; margin-bottom:4px;}
.cc-field input[type="date"], .cc-select{ height:38px; padding:6px 10px; border:1px solid #d1d5db; border-radius:8px; }
.cc-field-actions .cc-btn{ height:38px; line-height:1; display:inline-flex; align-items:center; padding:8px 14px; }
.cc-export{ justify-self:start; }
.cc-quick{ display:flex; gap:8px; margin-left:6px; }
.cc-chip{ display:inline-block; padding:7px 12px; border:1px solid #e5e7eb; border-radius:999px; text-decoration:none; color:#111827; font-size:13px; }
.cc-chip.active, .cc-chip:hover{ background:#f3f4f6; }

.cc-table-wrap{ margin-top:8px; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.cc-table{ width:100%; border-collapse:separate; border-spacing:0; font-size:14px; }
.cc-table thead th{ background:#f8fafc; position:sticky; top:0; z-index:1; text-align:left; padding:12px 14px; color:#111827; border-bottom:1px solid #e5e7eb; }
.cc-table tbody td{ padding:12px 14px; border-bottom:1px solid #f1f5f9; vertical-align:top; color:#111827; }
.cc-table tbody tr:hover{ background:#f8fafc; }
.cc-table .td-message{ white-space:normal; word-break:break-word; }
.cc-table .td-empty{ text-align:center; color:#6b7280; padding:20px 10px; }

.cc-badge{ display:inline-block; padding:4px 8px; border-radius:8px; font-size:12px; }
.cc-badge.ok{ background:#ecfdf5; border:1px solid #10b981; color:#065f46; }
.cc-badge.pending{ background:#fff7ed; border:1px solid #f59e0b; color:#92400e; }
.cc-check{ display:inline-flex; align-items:center; gap:8px; font-size:13px; }
.cc-toggle-form{ margin:0; }

.cc-pagination{ display:flex; gap:6px; margin:10px 0 4px; }
.cc-page{ display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 10px; border:1px solid #e5e7eb; border-radius:8px; text-decoration:none; color:#111827; }
.cc-page:hover{ background:#f3f4f6; }
.cc-page.active{ background:#111827; color:#fff; border-color:#111827; }
.cc-page.disabled{ pointer-events:none; opacity:.5; }

@media (max-width: 768px){
  .cc-filters-wrap{ grid-template-columns:1fr; }
  .cc-quick{ margin-left:0; }
  .cc-table thead{ display:none; }
  .cc-table, .cc-table tbody, .cc-table tr, .cc-table td{ display:block; width:100%; }
  .cc-table tr{ border-bottom:1px solid #e5e7eb; padding:10px 12px; }
  .cc-table td{ padding:6px 0; }
  .cc-table td::before{ content: attr(data-label) " "; font-weight:600; display:block; color:#334155; margin-bottom:2px; }
}
