/*
Prime Forms Stylesheet
Scope: Form components (containers, headers, inputs, selects, buttons, dividers)
Note: Keep component-specific overrides in component CSS; this file should remain generic and reusable.
*/
/* AVOCAT — Padrão PRIME para Formulários */
.cl-wrapper {
  max-width: 950px;
  margin: 0 auto;
  margin-top: 25px;
  margin-bottom: 45px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cl-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148,163,184,.25);
}

.cl-header { display: flex; align-items: center; gap: 12px; }
.cl-header i { font-size: 24px; color: var(--accent-1); }
.cl-header h2 { margin: 0; font-size: 1.55rem; font-weight: 800; color: #0f172a; }
.cl-sub { margin-top: 4px; color: #64748b; font-size: .93rem; }

label.form-label { font-weight: 600; margin-top: 16px; color: #1e293b; }

.form-control, .form-select {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: .95rem;
  transition: .18s;
}

.form-control:focus, .form-select:focus {
  background: #ffffff;
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 2px rgba(14,165,233,.25);
}

.btn-pill { border-radius: 999px !important; padding: 11px 22px !important; font-weight: 700 !important; font-size: .95rem !important; }
.btn-secondary { border-radius: 999px; }

.cl-divider { height: 1px; background: rgba(148,163,184,.35); margin: 18px 0 6px; }

/* AVOCAT — Clientes: listagem */
.clientes-list-page.cl-wrapper {
  max-width: 1100px;
  margin-top: 20px;
  gap: 18px;
}

.clientes-list-page .cl-card {
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(148, 163, 184, .28);
}

.clientes-list-page .cl-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.clientes-list-page .cl-header {
  margin-bottom: 2px;
}

.clientes-list-page .cl-header i {
  font-size: 22px;
}

.clientes-list-page .cl-header h2 {
  font-size: 1.45rem;
}

.clientes-list-page .cl-sub {
  margin: 0;
  font-size: .92rem;
}

.clientes-list-page .cl-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.clientes-list-page .cl-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .9rem;
  font-weight: 700;
}

.clientes-list-page .btn-filter {
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
}

.clientes-list-page .cl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.clientes-list-page .cl-col-name {
  width: 38%;
}

.clientes-list-page .cl-col-phone {
  width: 20%;
}

.clientes-list-page .cl-col-email {
  width: 30%;
}

.clientes-list-page .cl-col-actions {
  width: 12%;
}

.clientes-list-page .cl-table thead th {
  background: #0f172a;
  color: #e5e7eb;
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 12px;
  border: 0;
  white-space: nowrap;
}

.clientes-list-page .cl-table tbody tr {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
  border-radius: 10px;
}

.clientes-list-page .cl-table tbody td {
  padding: 12px;
  font-size: .92rem;
  color: #0f172a;
  vertical-align: middle;
}

.clientes-list-page .cl-table tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.clientes-list-page .cl-table tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.clientes-list-page .cl-muted {
  color: #64748b;
  font-size: .9rem;
}

.clientes-list-page .cl-actions-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 160px;
}

.clientes-list-page .cl-actions-col form {
  display: inline-flex;
  margin: 0;
}

.clientes-list-page .cl-actions-col .btn {
  border-radius: 10px;
  padding: 5px 7px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

.clientes-list-page .cl-mobile-card {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .25);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}

.clientes-list-page .cl-mobile-card .card-title {
  font-weight: 800;
  color: #0f172a;
}

.clientes-list-page .cl-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.clientes-list-page .cl-mobile-actions .btn {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .85rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .clientes-list-page .cl-card {
    padding: 18px;
  }

  .clientes-list-page .cl-table thead {
    display: none;
  }

  .clientes-list-page .cl-table tbody tr {
    display: block;
    margin-bottom: 12px;
  }

  .clientes-list-page .cl-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .clientes-list-page .cl-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #0f172a;
  }
}

/* =========================================================
   AVOCAT — PRIME PROCESSOS
   Compatibilidade para templates de processos que usam prefixo pr-*
   ========================================================= */
.pr-wrapper {
  max-width: 1040px;
  margin: 25px auto 45px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pr-hero,
.pr-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: var(--shadow-sm, 0 10px 30px rgba(15, 23, 42, .08));
  border: 1px solid rgba(148, 163, 184, .25);
}

.pr-hero {
  background: linear-gradient(135deg, rgba(14, 165, 233, .10), rgba(46, 91, 104, .08)), #ffffff;
}

.pr-titlebox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pr-titlebox i {
  font-size: 24px;
  color: var(--accent-1, #0ea5e9);
}

.pr-titlebox h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
}

.pr-sub,
.pr-help {
  color: #64748b;
  font-size: .93rem;
}

.pr-sub {
  margin: 6px 0 0;
}

.pr-help {
  margin-top: 6px;
  line-height: 1.45;
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.pr-span {
  grid-column: 1 / -1;
}

.pr-divider {
  height: 1px;
  background: rgba(148, 163, 184, .35);
  margin: 8px 0 2px;
}

.pr-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pr-actions .btn,
.pr-card .btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
}

.pr-polos {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed rgba(148, 163, 184, .65);
  border-radius: 14px;
  background: #f8fafc;
}

.pr-polos h6 {
  margin: 0 0 12px;
  font-weight: 800;
  color: #1e293b;
}

.pr-polo-item {
  margin-bottom: 12px;
}

.pr-polo-item:last-child {
  margin-bottom: 0;
}

.pr-polo-item label,
.pr-polos label {
  display: block;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.pr-card table.table {
  margin-bottom: 0;
  background: #ffffff;
}

.pr-card .table thead th {
  border-top: 0;
  color: #334155;
  font-weight: 800;
  background: #f8fafc;
}

.pr-card .table tbody td {
  vertical-align: middle;
}

/* Select2 alinhado ao padrão PRIME */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
  background: #ffffff;
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, .25);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, .35);
  background: rgba(14, 165, 233, .10);
  color: #0f172a;
  padding: 3px 8px;
}

@media (max-width: 768px) {
  .pr-wrapper {
    margin-top: 16px;
    margin-bottom: 28px;
  }

  .pr-hero,
  .pr-card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .pr-grid {
    grid-template-columns: 1fr;
  }

  .pr-actions {
    justify-content: stretch;
  }

  .pr-actions .btn {
    width: 100%;
  }
}

