/* Plugin-specific admin overrides for nnax WC Withdrawal. */

#toplevel_page_nnax-withdrawal-new .wp-menu-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#toplevel_page_nnax-withdrawal-new .wp-menu-image img {
  padding: 0 !important;
}

/* Keep core admin notices visually separated from the plugin header. */
.nnaxadmin-wrap .notice,
.nnaxadmin-wrap .updated,
.nnaxadmin-wrap .error {
  margin-top: 0;
}

.nnax-withdrawal-page p {
  line-height: 1.6;
}

.nnax-withdrawal-page select.nnax-input,
.nnax-withdrawal-page .nnax-card select.nnax-input,
.nnax-withdrawal-page select.nnax-input.nnax-input--sm {
  font-size: 12px !important;
}

/* Toolbar settings: keep remove icon compact and inline with fields */
.nnaxadmin-sidebar-link-section,
.nnaxadmin-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nnaxadmin-sidebar-link-section > input,
.nnaxadmin-sidebar-link-section > select,
.nnaxadmin-link-row > input,
.nnaxadmin-link-row > select {
  flex: 1 1 220px;
  min-width: 180px;
}

.nnaxadmin-sidebar-link-section > div {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

/* Keep semantic page title for assistive tech while hiding it visually. */
h1.nnax-page-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Plugin-specific compact pagination on small screens (keeps global UI untouched). */
@media (max-width: 640px) {
  .nnax-withdrawal-page .nnax-pagination {
    gap: 4px;
    margin-top: 6px;
  }

  .nnax-withdrawal-page .nnax-pagination li a {
    min-width: 30px;
    padding: 4px 8px;
    font-size: 12px;
  }
}

.nnax-role-visibility-row {
  margin-bottom: 1.25rem;
}

body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal #submitdiv,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal .row-actions .inline,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal .row-actions .trash,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal .row-actions .edit,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal .page-title-action,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal #bulk-action-selector-top,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal #bulk-action-selector-bottom,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal #doaction,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal #doaction2 {
  display: none !important;
}

body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal input,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal select,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal textarea,
body.nnax-withdrawal-readonly-cpt.post-type-nnax_withdrawal button {
  pointer-events: none !important;
}

body.nnax-withdrawal-readonly-settings.woocommerce_page_wc-settings p.submit {
  display: none !important;
}

input.nnax-withdrawal-recipient-email {
  min-width: 350px;
}

.nnax-settings-fields {
  margin-top: 18px;
      gap: 12px;
      margin-bottom: 12px;
}

.nnax-activity-field {
  flex: 1 1 260px;
  min-width: 220px;
}

.nnax-status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  font-size: 18px;
  vertical-align: middle;
}

.nnax-status-indicator.is-active {
  color: #1f9d55;
}

.nnax-status-indicator.is-pending {
  color: #d18b00;
}

.nnax-card h2 .nnax-status-indicator {
  transform: translateY(2px);
}

.nnax-card--secondary * {
  color: #fff !important;
}

.nnax-withdrawal-page a.nnax-export-link,
.nnax-withdrawal-page a.nnax-export-link:visited {
  color: #fff;
}

.nnax-withdrawal-page a.nnax-export-link:hover,
.nnax-withdrawal-page a.nnax-export-link:focus-visible,
.nnax-withdrawal-page a.nnax-export-link:active {
  color: #fff;
  text-decoration: none;
}
