.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .modal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }
  
  .modal h2 {
    margin-top: 0;
  }
  
  .modal input[type="text"] {
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .action-fields input[type="text"] {
    margin-bottom: 0;
    width: auto;
  }
  
  .modal button {
    padding: 6px 12px;
    margin-right: 8px;
  }

  /* Painel de Atalhos em Grid (2 Colunas) */
  .chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
  }

  .chip-group-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
  }

  .chip-group-label {
    font-size: 0.72rem;
    font-weight: bold;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .chip-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    height: 26px;
  }

  .chip-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    padding: 0 5px;
    height: 26px;
    line-height: 24px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    vertical-align: middle;
  }

  .chip-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
  }

  .chip-btn.op-chip {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
  }

  .chip-btn.op-chip:hover {
    background: #2563eb;
    color: #ffffff;
  }

  .chip-select {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: bold;
    height: 26px;
    line-height: 24px;
    margin: 0 !important;
    padding: 0 4px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    display: block;
  }

  .chip-select:hover {
    border-color: #0284c7;
    background: #e0f2fe;
  }
  