/**
 * 文件职责：次卡主抽屉与二级抽屉样式。
 */
.mpc-editor-drawer {
  .ant-drawer-header {
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid #f0f0f0;
  }

  .ant-drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
  }

  .ant-drawer-body {
    padding: 14px 16px 12px;
  }

  .ant-drawer-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
  }

  .ant-input,
  .ant-input-number,
  .ant-picker,
  .ant-select-selector {
    border-radius: 6px !important;
  }

  .mpc-editor-form .ant-form-item {
    margin-bottom: 14px;
  }

  .mpc-inline-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mpc-inline-row .ant-form-item:last-child {
    grid-column: span 2;
  }

  .mpc-inline-fields {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    color: #4b5563;
  }

  .mpc-inline-fields .ant-input-number {
    width: 110px;
  }

  .mpc-range-picker {
    width: 100%;
    margin-top: 8px;
  }

  .mpc-form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
  }

  .mpc-cover-uploader {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .mpc-cover-preview {
    width: 108px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgb(0 0 0 / 10%);
  }

  .mpc-section-divider {
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(
      90deg,
      rgb(229 231 235 / 0%) 0%,
      rgb(229 231 235 / 100%) 16%,
      rgb(229 231 235 / 100%) 84%,
      rgb(229 231 235 / 0%) 100%
    );
  }

  .mpc-notify-pills {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .mpc-notify-pill {
    height: 30px;
    padding: 0 14px;
    font-size: 12px;
    color: #4b5563;
    cursor: pointer;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.2s;
  }

  .mpc-notify-pill:hover {
    color: #1677ff;
    border-color: #91caff;
  }

  .mpc-notify-pill.checked {
    color: #1677ff;
    background: #e8f3ff;
    border-color: #91caff;
  }

  .mpc-selected-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .mpc-selected-product {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    font-size: 12px;
    color: #4b5563;
    background: #f5f5f5;
    border-radius: 6px;
  }

  .mpc-selected-product-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mpc-selected-product-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 4px;
  }

  .mpc-selected-product-remove:hover {
    color: #ef4444;
    background: #fef2f2;
  }

  .mpc-drawer-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
  }
}

.mpc-picker-drawer {
  .ant-drawer-header {
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid #f0f0f0;
  }

  .ant-drawer-body {
    padding: 14px 16px 12px;
  }

  .ant-drawer-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
  }

  .mpc-picker-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
  }

  .mpc-picker-toolbar .ant-input {
    width: 240px;
  }

  .mpc-picker-category {
    width: 180px;
  }

  .mpc-picker-count {
    margin-left: auto;
    font-size: 12px;
    color: #9ca3af;
  }

  .mpc-picker-empty {
    padding: 24px 0;
  }

  .mpc-picker-table-wrap {
    max-height: 460px;
    overflow: auto;
    border: 1px solid #eceef2;
    border-radius: 10px;
  }

  .mpc-picker-table {
    width: 100%;
    border-collapse: collapse;
  }

  .mpc-picker-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    text-align: left;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
  }

  .mpc-picker-table tbody td {
    padding: 10px 8px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
  }

  .mpc-picker-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .mpc-picker-table tbody tr:hover {
    background: #f8fbff;
  }

  .mpc-picker-table tbody tr.checked {
    background: #eef6ff;
  }

  .mpc-picker-col-check {
    width: 42px;
  }

  .mpc-picker-col-price {
    width: 100px;
  }

  .mpc-picker-col-status {
    width: 90px;
  }

  .mpc-picker-product-name {
    font-weight: 500;
    color: #1f2937;
  }

  .mpc-picker-product-spu {
    margin-top: 2px;
    font-size: 12px;
    color: #94a3b8;
  }

  .mpc-picker-product-status {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    font-size: 11px;
    border-radius: 999px;
  }

  .mpc-picker-product-status.is-green {
    color: #166534;
    background: #dcfce7;
  }

  .mpc-picker-product-status.is-orange {
    color: #d97706;
    background: #fef3c7;
  }

  .mpc-picker-product-status.is-gray {
    color: #475569;
    background: #e2e8f0;
  }

  .mpc-picker-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
  }

  .mpc-picker-footer-info {
    font-size: 12px;
    color: #6b7280;
  }

  .mpc-picker-footer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }
}
