
.destination-does-not-exist {
	background-color: #ff000045;
}

.exclude-pages-page-type {
	font-style: italic;
}
.exclude-pages-cell {
	vertical-align: top;
}

.closeable-ul {
	box-sizing: border-box;
	max-height: 12em;
	overflow: auto;
}
/* Style the list (remove margins and bullets, etc) */
.closeable-ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Style the list items */
.closeable-ul li {
  border: 1px solid #ddd;
  margin-top: -1px; /* Prevent double borders */
  background-color: #f6f6f6;
  text-decoration: none;
  font-size: 1.2em;
  color: black;
  display: block;
  position: relative;
}

/* Add a light grey background color on hover */
.closeable-ul li:hover {
  background-color: #eee;
}

/* Style the close button (span) */
.closeable-ul .close {
	background: #eee;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 0%;
  padding: 0px 16px;
  transform: translate(0%, -50%);
}

.closeable-ul .close:hover {background: #bbb;}


.hide-when-true {
	display: none;
}

/* Make the pagination links easier to click for steveraven */
.pagination-link {
	border-radius: 0 3px 3px 0;
    border-style: solid;
    border-width: 1px;
    box-sizing: border-box;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 3px;
    text-decoration-line: none;
}

.displaying-num {
    padding-left: 10px;
}

/* This is for the redirect page search dropdown. */
.indent-depth-0.ui-menu-item {
    padding-left: 10px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-1.ui-menu-item {
    padding-left: 20px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-2.ui-menu-item {
    padding-left: 30px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-3.ui-menu-item {
    padding-left: 40px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-4.ui-menu-item {
    padding-left: 50px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-5.ui-menu-item {
    padding-left: 60px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-6.ui-menu-item {
    padding-left: 70px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-7.ui-menu-item {
    padding-left: 80px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-8.ui-menu-item {
    padding-left: 90px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-9.ui-menu-item {
    padding-left: 100px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.ui-autocomplete li {
    font-family: Arial,Helvetica,sans-serif;
    font-size: 1em;
    padding: 0px 10px;
    max-height: 400px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    padding-left: 0px;
}
ul .ui-autocomplete-category {
    font-weight: bold;
    margin: .8em 0 .2em;
    line-height: 1.5;

    /** custom **/
    display: flex;
    color: gray;
    font-weight: normal;
    padding-left: 0px;
}

/* This hides the last empty element when the data is truncated and the final element is added only
    so that the final category will be added. */
.hide-me-please {
    display: none;
}
ul .ui-autocomplete-category.data-overflow-category {
    color: black;
    font-weight: bold;
    font-style: italic;        
}

/* -- - - - - -- - - - - - -- - - - - - - - - - - - - - -*/
.lefty-tooltip {
    position: relative;
    border-bottom: 1px dotted black;
}

.lefty-tooltip .lefty-tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 15px;

    /* Position the tooltip */
    position: absolute;
    width: 350px;
    top: 100%;
    left: -200px;
    margin-left: -60px;
    z-index: 1;
}

.lefty-tooltip:hover .lefty-tooltiptext {
    visibility: visible;
}
/* -- - - - - -- - - - - - -- - - - - - - - - - - - - - -*/

/* Include a space after the apply button so that the Trash button isn't right next to it. */
#captured_404s_bulk_apply {
    margin-right: 10px;
}

/* -- - - - - -- - - - - - -- - - - - - - - - - - - - - -*/
.ui-autocomplete {
    max-height: 400px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
  }

/* ============================================
   Options Page Accordion
   ============================================ */

/* Accordion controls (Expand All button and Save Settings) */
.abj404-accordion-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px 0;
    padding: 12px 0;
}

/* Make accordion controls sticky on larger screens */
@media (min-width: 783px) {
    .abj404-accordion-controls {
        position: sticky;
        top: 75px;
        z-index: 100;
        background: #f0f0f1;
        padding: 12px 16px;
        margin: 0 -16px 20px -16px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* Dark theme background for sticky controls */
    html[data-theme="neon"] .abj404-accordion-controls,
    html[data-theme="obsidian"] .abj404-accordion-controls {
        background: var(--abj-bg-primary);
    }
}

/* Accordion section container */
.abj404-accordion-section {
    margin-bottom: 16px;
}

/* Accordion header (clickable) */
.abj404-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 14px 16px;
    background: var(--abj404-surface, #fff);
    border: 1px solid var(--abj404-border, #ccd0d4);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.abj404-accordion-header:hover {
    background: var(--abj404-surface-hover, #f6f7f7);
    border-color: var(--abj404-primary, #2271b1);
}

.abj404-accordion-header:focus-visible {
    outline: 2px solid var(--abj404-primary, #2271b1);
    outline-offset: 2px;
}

/* Accordion header text */
.abj404-accordion-header > span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--abj404-text, #2c3338);
}

/* Accordion toggle arrow */
.abj404-accordion-toggle {
    font-size: 12px;
    color: var(--abj404-text-muted, #646970);
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Rotate arrow when expanded */
.abj404-accordion-header[aria-expanded="true"] .abj404-accordion-toggle {
    transform: rotate(180deg);
}

/* Accordion content */
.abj404-accordion-content {
    margin-top: -1px; /* Overlap border with header */
}

.abj404-accordion-content .postbox {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Mobile adjustments */
@media (max-width: 782px) {
    .abj404-accordion-header {
        padding: 12px 14px;
    }

    .abj404-accordion-controls {
        flex-wrap: wrap;
    }

    .abj404-accordion-controls input[type="submit"] {
        width: 100%;
    }
}

/* ============================================
   Save Loading Overlay
   ============================================ */

/* Overlay backdrop */
.abj404-save-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay content box */
.abj404-save-overlay-content {
    background: var(--abj404-surface, #fff);
    padding: 32px 48px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
}

/* WordPress-style spinner */
.abj404-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid var(--abj404-border, #ddd);
    border-top-color: var(--abj404-accent, #2271b1);
    border-radius: 50%;
    animation: abj404-spin 0.8s linear infinite;
}

@keyframes abj404-spin {
    to { transform: rotate(360deg); }
}

/* Save message text */
.abj404-save-message {
    margin: 0;
    font-size: 16px;
    color: var(--abj404-text, #2c3338);
    font-weight: 500;
}

/* Error state */
.abj404-save-overlay.error .abj404-spinner {
    display: none;
}

.abj404-save-overlay.error .abj404-save-overlay-content {
    border-left: 4px solid #d63638;
}

.abj404-save-overlay.error .abj404-save-message {
    color: #d63638;
}

/* ============================================
   Hiding Header (Scroll Direction)
   ============================================ */

/* Add spacing for fixed tabs so they don't cover page header */
.wrap {
    padding-top: 50px; /* Space for fixed nav-tab-wrapper */
}

/* WordPress plugin tabs - smooth transition */
.nav-tab-wrapper {
    position: fixed;
    top: var(--admin-bar-height, 32px); /* Calculated dynamically by JavaScript */
    left: 160px; /* WordPress admin menu width */
    right: 0;
    z-index: 101; /* Above chips (100) and content */
    background: #f0f0f1;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

/* Hide tabs when scrolling down */
.nav-tab-wrapper.tabs-hidden {
    transform: translateY(-100%);
}

/* Mobile admin bar and folded menu */
@media screen and (max-width: 960px) {
    .nav-tab-wrapper {
        left: 36px; /* Folded menu width */
    }
}

@media screen and (max-width: 782px) {
    .nav-tab-wrapper {
        left: 0;
    }
}
