*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Segoe UI', Arial, sans-serif;
      background: #f4f4f4;
      color: #222;
      min-height: 100vh;
      padding: 20px;
    }

    .container {
      max-width: 1040px;
      margin: 0 auto;
      background: #fff;
      padding: 24px 28px 32px;
      border-radius: 4px;
      box-shadow: 0 1px 6px rgba(0,0,0,0.10);
      
    }

    h1 {
      font-size: 1.3rem;
      font-weight: 700;
      color: #111;
      margin-bottom: 2px;
    }
    .subtitle {
      font-size: 0.82rem;
      color: #666;
      margin-bottom: 20px;
    }

    hr.divider {
      border: none;
      border-top: 1px solid #D9D9D9;
      margin-bottom: 20px;
      margin-top: 20px;
    }

    /* ── Search ── */
    .search-label {
      font-size: 0.82rem;
      font-weight: 600;
      color: #333;
      margin-bottom: 6px;
    }
    .search-wrap {
      display: flex;
      align-items: center;
      border: 1px solid #bbb;
      border-radius: 3px;
      height: 36px;
      width: 340px;
      padding: 0 10px;
      gap: 8px;
      margin-bottom: 18px;
    }
    .search-wrap svg {
      width: 15px;
      height: 15px;
      fill: #888;
      flex-shrink: 0;
    }
    .search-wrap input {
      border: none;
      outline: none;
      font-size: 0.85rem;
      color: #333;
      width: 100%;
      background: transparent;
    }
    .search-wrap input::placeholder { color: #aaa; }

    /* ── Top bar ── */
    .top-bar {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 14px;
      background-color: #ffffff !important;
      color: #ffffff !important;
    }

    .btn-new {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #1a5fa8;
      color: #fff;
      border: none;
      border-radius: 3px;
      padding: 0 18px;
      height: 36px;
      font-size: 0.84rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: background .2s;
    }
    .btn-new:hover { background: #154e8e; }
    .btn-new .icon-plus {
      width: 18px;
      height: 18px;
      border: 2px solid #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      line-height: 1;
      flex-shrink: 0;
    }

    /* ── Table ── */
    .table-wrapper { overflow-x: auto; }

    table.main-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.84rem;
    }

    table.main-table thead tr {
      background: #1a5fa8;
      color: #fff;
    }
    table.main-table thead th {
      padding: 10px 16px;
      text-align: left;
      font-weight: 500;
      font-size: 0.83rem;
    }
    table.main-table thead th:last-child { text-align: center; }

    table.main-table tbody tr {
      border-bottom: 1px solid #e8e8e8;
      transition: background .15s;
    }
    table.main-table tbody tr:hover { background: #f0f5fb; }

    table.main-table tbody td {
      padding: 10px 16px;
      color: #333;
      vertical-align: middle;
    }
    table.main-table tbody td.td-actions {
      text-align: center;
      white-space: nowrap;
    }

    /* Empty state */
    .empty-row td {
      padding: 28px 16px;
      text-align: center;
      color: #999;
      font-size: 0.83rem;
    }

    /* ── Action buttons in table ── */
    .act-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px 6px;
      border-radius: 3px;
      color: #1a5fa8;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background .15s;
    }
    .act-btn:hover { background: #eaf1fb; }
    .act-btn svg { width: 18px; height: 18px; fill: currentColor; }
    .act-btn.danger { color: #555; }
    .act-btn.danger:hover { background: #fbeaea; color: #c00; }

    /* ── Pagination ── */
    .pagination-bar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 14px;
      font-size: 0.82rem;
      color: #444;
      flex-wrap: wrap;
    }

    .pagination-bar .mostrar-group {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .pagination-bar select {
      border: 1px solid #bbb;
      border-radius: 3px;
      padding: 3px 6px;
      font-size: 0.82rem;
      color: #333;
      background: #fff;
      cursor: pointer;
      height: 28px;
    }

    .pagination-bar .info {
      color: #555;
    }

    .pagination-nav {
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .page-btn {
      min-width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #ddd;
      border-radius: 3px;
      background: #fff;
      color: #1a5fa8;
      font-size: 0.82rem;
      cursor: pointer;
      padding: 0 6px;
      transition: background .15s, color .15s;
      text-decoration: none;
    }
    .page-btn:hover { background: #eaf1fb; }
    .page-btn.active {
      background: #1a5fa8;
      color: #fff;
      border-color: #1a5fa8;
      cursor: default;
    }
    .page-btn.arrow {
      font-size: 0.9rem;
      color: #555;
      border-color: #ddd;
    }
    .page-btn.arrow:hover { background: #f0f0f0; }
    .page-btn.arrow:disabled,
    .page-btn.arrow[disabled] {
      color: #ccc;
      cursor: default;
      background: #fff;
    }
    .page-ellipsis {
      padding: 0 4px;
      color: #888;
      font-size: 0.82rem;
    }
    .form-group label {
      color: var(--Negro-Text, #373737);
      font-family: Roboto;
      font-size: 16px !important;
      font-style: normal;
      font-weight: 700;
      line-height: 150%;
    }
    .group-nombre-search { flex: 1 1 200px; }