// .actionpanel-admin {
//   display: flex;
//   flex-direction: column;
//   gap: 12px;
//   padding: 12px;
// }

// .actionpanel-toolbar {
//   display: flex;
//   align-items: center;
//   gap: 12px;

//   h2 {
//     margin: 0;
//     flex: 1;
//   }
// }

// .actionpanel-layout {
//   display: flex;
//   gap: 16px;
// }

// .actionpanel-list-panel {
//   flex: 1;
//   min-width: 320px;
// }

// .actionpanel-detail-panel {
//   flex: 1;
// }

// .actionpanel-list {
//   width: 100%;
//   border-collapse: collapse;

//   th, td {
//     padding: 6px 8px;
//     text-align: left;
//     border-bottom: 1px solid var(--border-default, #ddd);
//   }

//   tr.selected {
//     background: var(--action-primary-subtle, #eef2ff);
//   }

//   tr td:nth-child(1), tr td:nth-child(2) {
//     cursor: pointer;
//   }
// }
.actionpanel-layout {
  display: flex;
  gap: 16px;
  margin-top: 15px;
}

.actionpanel-list-panel {
  flex: 1;
  min-width: 320px;

  table {
    margin-top: 0;
  }
}

.actionpanel-detail-panel {
  flex: 1;
  min-width: 320px;
}

.detail-fieldset {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px 16px;

  h3 {
    margin: 12px 0 8px;
    font-size: 14px;
    color: #333;

    &:first-child {
      margin-top: 0;
    }
  }
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;

  label {
    font-size: 12px;
    color: #555;
    font-weight: 500;
  }

  input,
  select,
  textarea {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
  }

  textarea {
    min-height: 50px;
    resize: vertical;
  }
}

.checkbox-row label {
  flex-direction: row;
  align-items: center;
  gap: 6px;

  input {
    width: auto;
  }
}

.formbuttons {
  margin-right: 8px;
  padding: 0 14px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.addbutton {
  background-color: var(--button-primary-bg-default);
  color: var(--button-primary-text-default);
  border: 1px solid var(--button-primary-bg-default);
  box-shadow: 0 1px 3px #00000026;
}

.addbutton:hover {
  opacity: 0.9;
  box-shadow: 0 2px 5px #00000030;
}

.refreshbutton {
  background-color: #ffffff;
  color: #4f46a5;
  border: 1px solid #c7c4e8;
  box-shadow: 0 1px 2px #0000001a;
}

.refreshbutton:hover {
  background-color: #f5f4ff;
  border-color: #4f46a5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 14px;
}

thead {
  background: #f5f5f5;
}

th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ddd;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e5e5;
  color: #444;
}

/* Row hover */
tbody tr:hover {
  background: #f8f9fa;
  cursor: pointer;
}

/* Selected row */
tbody tr.selected {
  background: #eeeaff;
}

tbody tr.selected td {
  color: #4f46a5;
  font-weight: 500;
}

/* Menu Id and Sort alignment */
th:first-child,
td:first-child,
th:nth-child(4),
td:nth-child(4) {
  text-align: center;
}

/* Delete button */
td:last-child {
  text-align: center;
}

td:last-child button {
  padding: 6px 12px;
  border: 1px solid #dc3545;
  border-radius: 4px;
  background: #fff;
  color: #dc3545;
  cursor: pointer;
  font-size: 13px;
}

td:last-child button:hover {
  background: #dc3545;
  color: #fff;
}
