.container {
  display: flex;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 560px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(241, 248, 255, 1) 0%, rgba(246, 250, 255, 1) 100%);
}

.leftPanel {
  flex: 1.15;
  min-width: 560px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rightPanel {
  flex: 1;
  min-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topTabs {
  padding: 6px 14px 0;

  :global {
    .ant-tabs-nav {
      margin: 0;
    }

    .ant-tabs-tab {
      padding: 12px 2px 10px;
      font-weight: 600;
      color: rgba(15, 23, 42, 0.65);
    }

    .ant-tabs-tab-active {
      .ant-tabs-tab-btn {
        color: rgba(15, 23, 42, 0.95);
      }
    }
  }
}

.placeholder {
  padding: 18px 16px;
  color: rgba(15, 23, 42, 0.55);
}

.leftToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
}

.leftToolbarLeft {
  display: flex;
  align-items: center;
}

.leftToolbarRight {
  display: flex;
  align-items: center;
}

.counterText {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}

.primaryBtn {
  height: 32px !important;
  border-radius: 999px !important;
  padding: 0 16px !important;
  box-shadow: none !important;
  background-color: rgba(72, 81, 255, 1);

  :global {
    .ant-btn-icon {
      margin-right: 6px;
    }
  }
}

.ghostBtn {
  height: 32px !important;
  border-radius: 999px !important;
  padding: 0 16px !important;
  border: 1px solid #e7eaf2 !important;
  background: #fff !important;
  color: #5b6070 !important;
  box-shadow: none !important;
}

.listWrap {
  padding: 0 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.paginationBar {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
}

.rowActive {
  :global {
    td {
      background: rgba(72, 81, 255, 0.06) !important;
    }
  }
}

.ruleNameCell {
  color: rgba(15, 23, 42, 0.9);
}

:global {
  .ant-table {
    border-radius: 10px;
    overflow: hidden;
  }

  .ant-table-thead > tr > th {
    background: #f7f8fb;
    color: #6d7383;
    font-weight: 500;
  }

  .ant-table-tbody > tr > td {
    color: #2b2f3a;
  }

  .ant-table-tbody > tr:hover > td {
    background: #fafbff;
  }
}

.rightHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}

.rightTitle {
  font-size: 16px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.95);
}

.editBtn {
  padding: 0 4px !important;
}

.detailBody {
  padding: 12px 16px 16px;
  overflow: auto;
}

.detailForm {
  :global {
    .ant-form-item {
      margin-bottom: 14px;
    }

    .ant-form-item-label > label {
      color: rgba(15, 23, 42, 0.65);
      font-weight: 500;
    }

    .ant-input,
    .ant-input-affix-wrapper,
    .ant-select-selector {
      border-radius: 8px !important;
    }
  }
}

.divider {
  margin: 8px 0 12px !important;
}

.sectionTitle {
  font-size: 13px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.85);
  margin: 0 0 10px;
}

.paramList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paramRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.paramLabel {
  width: 52px;
  color: rgba(15, 23, 42, 0.55);
}

.paramCompact {
  flex: 1;
}

.paramSelect {
  width: 160px;
}

.paramNumber {
  width: 90px;
}

@media (max-width: 1200px) {
  .container {
    flex-direction: column;
  }

  .leftPanel,
  .rightPanel {
    min-width: 0;
  }
}
