/* Set default font size for the entire plugin */
.w3exabe {
    font-size: 14px;
}
.boxed-layout-wcabe p {
    font-size: 14px;
    color: #676767;
}

/* Ease the grid wrapping border */

#myGrid {
    border-top: none;
    border-left: 1px solid #8080802e;
    border-right: 1px solid #8080802e;
    border-bottom: none;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Remove header backgrounds and hover */
#myGrid .slick-header-columns, #myGrid .slick-header-column, #myGrid .ui-state-hover {
    /*background: #e6e6e6 !important;*/
    /*background: #fff !important;*/
    background: #e9e9e9 !important;
}
.ui-state-hover:hover {
    background: #198fd9;
    color: #fff;
}

#myGrid .ui-state-hover:hover {
    color: inherit;
    background: none !important;
    background-image: none !important;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
    background: #198fd9;
    font-weight: bold;
}
.ui-state-hover:hover a:hover {
    color: #fff;
}
.ui-state-default {
    border-bottom: none;
}
/* Position the ID check box */
.slick-column-name input[type="checkbox"] {
    margin: -2px 0 0 2px !important;
}
/* Set Columns text to bold */
.w3exabe .slick-header-column.ui-state-default {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
    font-weight: 700;
    font-size: 14px;
    height: 24px;
    line-height: 24px;
}

.slick-cell {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
    font-size: 14px;
}

.slick-cell.selected {
    background-color: beige;
    /*background-color: #198fd926 !important;*/
}

.slick-row.odd {
    /*background: #177ae30a !important;*/
}

/* Buttons */
.button-wcabe {
    padding: 0.6em 0.8em;
    border-radius: 3px;
    background-color: #fff;
    color: #343434eb;
    text-decoration: none;
    outline: none;
    border: 1px solid #ccc;;
    transition: background-color 0.2s cubic-bezier(0.21, 0.6, 0.35, 1);
    /*box-shadow: 0 1px 3px rgba(25, 143, 217, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.05);*/
    cursor: pointer;
    font-size: inherit;
    font-weight: 600;
    line-height: normal;
}

.button-primary-wcabe {
    padding: 0.6em 0.8em;
    border-radius: 3px;
    background-color: #198fd9;
    color: #fff;
    text-decoration: none;
    outline: none;
    border: none;
    transition: background-color 0.2s cubic-bezier(0.21, 0.6, 0.35, 1);
    box-shadow: 0 1px 3px rgba(25, 143, 217, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-size: inherit;
    font-weight: 600;
    line-height: normal;
}

.button-highlight-wcabe {
    background-color: #ff4f5b;
    color: #fff;
    padding: 12px 22px;
}

.button-highlight-green-wcabe {
    background-color: #11893c;
    color: #fff;
    padding: 12px 22px;
}

.button-highlight-teal-wcabe {
    background-color: #54cedf;
    color: #fff;
    padding: 12px 22px;
}

.button-be-wcabe {
    padding: 0px 10px 2px 10px;
}

.button-warning-wcabe {
    color: #e31818;
}

#bulkdialog .custstyle-table td button.butnewattribute {
    line-height: 16px !important;
    height: 30px !important;
    margin-top: 0 !important;
}

.button-wcabe:disabled, .button-primary-wcabe:disabled, button-be-wcabe:disabled {
    border: 1px solid #b2b2b259;
    background-color: #f8f8f8;
    color: #66666669;
    cursor: auto;
    box-shadow: none;
}

.fileUpload {
    overflow: unset;
}

/* ==========================================================================
   Selection Manager Dialog Styles
   ========================================================================== */

/* Dialog Container */
#selectdialog {
    background-color: #fff;
}

/* Quick Actions Section */
#selectdialog .selquickactions {
    padding: 14px 18px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

#selectdialog .selquickactions:first-child {
    padding-top: 12px;
    padding-bottom: 8px;
}

#selectdialog .selquickactions strong {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

/* Quick action buttons - minimal pill style */
#selectdialog .sel-manager-quick-action {
    display: inline-block;
    padding: 5px 14px;
    margin: 3px 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

#selectdialog .sel-manager-quick-action:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
    color: #222;
}

#selectdialog .sel-manager-quick-action:focus {
    outline: none;
    border-color: #198fd9;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.15);
}

/* Dropdown in quick actions */
#selectdialog .selquickactions select#selectdupproducts {
    height: 30px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #444;
    margin: 3px 4px;
    vertical-align: middle;
}

#selectdialog .selquickactions select#selectdupproducts:focus {
    border-color: #198fd9;
    outline: none;
}

/* Selection Criteria Section */
#selectdialog #selectdiv {
    padding: 16px 18px;
    background-color: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#selectdialog #selectdiv select {
    height: 32px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
}

/* Specific widths for longer dropdown text */
#selectdialog #selectdiv #selectproduct {
    min-width: 175px;
}

#selectdialog #selectdiv #selectany {
    min-width: 200px;
}

#selectdialog #selectdiv select:focus {
    border-color: #198fd9;
    outline: none;
}

/* Filter Criteria Table */
#selectdialog .custstyle-table {
    width: calc(100% - 36px);
    margin: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
}

#selectdialog .custstyle-table tr {
    transition: background-color 0.1s ease;
}

#selectdialog .custstyle-table tr:hover {
    background-color: #f8f9fa;
}

#selectdialog .custstyle-table tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

#selectdialog .custstyle-table td {
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 13px;
    color: #444;
}

/* First column - field name */
#selectdialog .custstyle-table td:first-child {
    font-weight: 500;
    color: #333;
    width: 12%;
    white-space: nowrap;
}

/* Second column - condition select */
#selectdialog .custstyle-table td:nth-child(2) {
    width: 15%;
}

/* Third column - value input */
#selectdialog .custstyle-table td:nth-child(3) {
    width: 22%;
}

/* Fourth column - ignore case */
#selectdialog .custstyle-table td:nth-child(4) {
    width: 10%;
}

/* Fifth column - special options */
#selectdialog .custstyle-table td:nth-child(5) {
    width: 41%;
}

/* Uniform select styling in table */
#selectdialog .custstyle-table select {
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    min-width: 130px;
}

#selectdialog .custstyle-table select:focus {
    border-color: #198fd9;
    outline: none;
}

#selectdialog .custstyle-table select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Input styling in table */
#selectdialog .custstyle-table input[type="text"],
#selectdialog .custstyle-table textarea {
    width: 100%;
    max-width: 200px;
    height: 32px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
}

#selectdialog .custstyle-table textarea {
    min-height: 32px;
    resize: vertical;
}

#selectdialog .custstyle-table input[type="text"]:focus,
#selectdialog .custstyle-table textarea:focus {
    border-color: #198fd9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.1);
}

#selectdialog .custstyle-table input[type="text"]::placeholder {
    color: #999;
    font-style: italic;
}

/* Checkbox styling */
#selectdialog .custstyle-table input[type="checkbox"] {
    margin-right: 4px;
    vertical-align: middle;
}

#selectdialog .custstyle-table label {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
}

/* Special options (split commas/regexp) styling */
#selectdialog .custstyle-table .checkboxifspecial {
    margin-right: 6px;
}

#selectdialog .custstyle-table .selectsplit,
#selectdialog .custstyle-table .selectsplitand {
    height: 28px;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 80px;
    margin-left: 4px;
}

/* Dialog Buttons */
#selectdialog ~ .ui-dialog-buttonpane {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

#selectdialog ~ .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Remove HR styling (handled by section borders) */
#selectdialog hr {
    display: none;
}

/* ==========================================================================
   End Selection Manager Dialog Styles
   ========================================================================== */

/* Other fixes */

#pluginsettingstab-3 {
    min-height: 145px;
}

.selvars {
    background: #198fd9;
}

.customfield-fixed {
    float: left;
    padding-left: 25px;
    padding-bottom: 25px;
    padding-top: 10px;
    word-wrap: break-word;
}

.customfield, .customfield-fixed {
    width: 268px;
}

.btn-info {
    background: #198fd9;
}

/*Filters section*/
#tablesearchfilters {
    z-index: 12;
    overflow-y: auto;
    padding:7px;
    border: 1px solid #cdcdcd;
    border-radius: 3px;
    padding: 7px;
    background: white;
    margin-top: 5px;
}
#tablesearchfilters input[type=text] {
    width: 145px !important;
    height: 30px !important;
    box-sizing: border-box !important;
    padding-bottom: 3px;
}

#tablesearchfilters select, #selectdialog select, #bulkdialog select {
    height: 30px !important;
}

.customfieldtable input[type=text] {
    padding-bottom: 0px !important;
}

.imagepopup {
    background: #343434eb;
    color: #fff;
    padding: 4px 4px 0px 4px;
}

.tableviews-ext, .tableviews-ext td {
    border: none !important;
}

.viewdialog-radio-ext:checked::before {
    margin: 0.25rem !important;
}

/* ==========================================================================
   Table Views Dialog (#dialogtableviews)
   ========================================================================== */

/* Dialog Container */
#dialogtableviews {
    background-color: #fff;
}

/* Table Styling */
#dialogtableviews #tableviews {
    width: calc(100% - 36px);
    margin: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
}

#dialogtableviews #tableviews tr {
    transition: background-color 0.1s ease;
}

#dialogtableviews #tableviews tr:hover {
    background-color: #f8f9fa;
}

#dialogtableviews #tableviews tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

#dialogtableviews #tableviews td {
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 13px;
    color: #444;
}

/* Column 1: Fixed width for radio labels */
#dialogtableviews #tableviews td:first-child {
    width: 180px;
    max-width: 180px;
    font-weight: 500;
    color: #333;
}

/* Column 2: Fixed width for select in last row */
#dialogtableviews #tableviews tr:last-child td:nth-child(2) {
    width: 220px;
    max-width: 220px;
}

/* Radio Button + Label Styling */
#dialogtableviews #tableviews label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

#dialogtableviews #tableviews input[type="radio"] {
    margin-right: 8px;
}

/* Select Styling */
#dialogtableviews #tableviews select {
    height: 32px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    min-width: 200px;
}

#dialogtableviews #tableviews select:focus {
    border-color: #198fd9;
    outline: none;
}

/* Text Input Styling */
#dialogtableviews #tableviews input[type="text"] {
    height: 32px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    min-width: 200px;
    box-sizing: border-box;
}

#dialogtableviews #tableviews input[type="text"]:focus {
    border-color: #198fd9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.1);
}

#dialogtableviews #tableviews input[type="text"]::placeholder {
    color: #999;
    font-style: italic;
}

/* Button Styling (Rename/Delete) */
#dialogtableviews #buttonviewrename {
    height: 32px;
    padding: 0 14px;
    margin-left: 8px;
    font-size: 13px;
}

#dialogtableviews #buttonviewdelete {
    margin-top: 8px;
}

/* Edit Row Layout (4th row) */
#dialogtableviews #tableviews tr:last-child td:last-child {
    padding-left: 0;
}

#dialogtableviews #tableviews tr:last-child td:last-child p {
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Hide HR (use section styling instead) */
#dialogtableviews hr {
    display: none;
}

/* Dialog Button Pane */
#dialogtableviews ~ .ui-dialog-buttonpane {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

#dialogtableviews ~ .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   Export to CSV Dialog (#exportdialog)
   ========================================================================== */

/* Dialog Container */
#exportdialog {
    background-color: #fff;
    padding: 0 !important;
}

/* Warning Section */
#exportdialog .wcabe-warning-text {
    padding: 14px 18px;
    margin: 0;
    background-color: #fff8e5;
    border-bottom: 1px solid #e5e5e5;
    color: #856404;
    font-size: 12px;
    line-height: 1.5;
}

/* Hide HR elements (use section borders instead) */
#exportdialog hr {
    display: none;
}

/* Radio Button Sections */
#exportdialog .oneline-radio-container {
    padding: 14px 18px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    line-height: 1.6;
}

#exportdialog .oneline-radio-container input[type="radio"] {
    margin-right: 4px;
    vertical-align: middle;
    position: relative;
    top: 0;
}

#exportdialog .oneline-radio-container label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

/* Delimiter Section */
#exportdialog > div:nth-of-type(4) {
    padding: 14px 18px;
    background-color: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    font-size: 12px;
    color: #666;
}

#exportdialog select#exportdelimiter {
    height: 32px;
    padding: 4px 10px;
    margin-left: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    min-width: 60px;
}

#exportdialog select#exportdelimiter:focus {
    border-color: #198fd9;
    outline: none;
}

/* Checkbox Section */
#exportdialog > div:nth-of-type(5) {
    padding: 14px 18px;
    background-color: #fff;
}

#exportdialog input#userealmeta {
    margin-right: 6px;
    vertical-align: middle;
}

#exportdialog label[for="userealmeta"] {
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

/* Dialog Button Pane */
#exportdialog ~ .ui-dialog-buttonpane,
.ui-dialog[aria-describedby="exportdialog"] .ui-dialog-buttonpane {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

#exportdialog ~ .ui-dialog-buttonpane .ui-dialog-buttonset,
.ui-dialog[aria-describedby="exportdialog"] .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   Advanced Bulk Edit Dialog (#bulkdialog)
   ========================================================================== */

/* Dialog Container */
#bulkdialog {
    background-color: #fff;
    overflow-x: hidden;
}

/* Data Table */
#bulkdialog .custstyle-table {
    width: calc(100% - 36px);
    margin: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    white-space: normal !important;
}

#bulkdialog .custstyle-table tr {
    transition: background-color 0.1s ease;
}

#bulkdialog .custstyle-table tr:hover {
    background-color: #f8f9fa;
}

#bulkdialog .custstyle-table tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

#bulkdialog .custstyle-table td {
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 13px;
    color: #444;
}

/* Column 1 - Field labels */
#bulkdialog .custstyle-table td:first-child {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    width: 15%;
    min-width: 184px;
    padding-right: 0;
}

/* Column widths */
#bulkdialog .custstyle-table td:nth-child(2) { width: 20%; }
#bulkdialog .custstyle-table td:nth-child(3) { width: 25%; }
#bulkdialog .custstyle-table td:nth-child(4) { width: 40%; }

/* Select styling */
#bulkdialog .custstyle-table select {
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    min-width: 130px;
}

#bulkdialog .custstyle-table select:focus {
    border-color: #198fd9;
    outline: none;
}

#bulkdialog .custstyle-table select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Text input/textarea styling */
#bulkdialog .custstyle-table input[type="text"],
#bulkdialog .custstyle-table textarea {
    width: 100%;
    max-width: 200px;
    height: 32px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
}

#bulkdialog .custstyle-table textarea {
    min-height: 32px;
    resize: vertical;
}

#bulkdialog .custstyle-table input[type="text"]:focus,
#bulkdialog .custstyle-table textarea:focus {
    border-color: #198fd9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.1);
}

#bulkdialog .custstyle-table input[type="text"]::placeholder,
#bulkdialog .custstyle-table textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Checkbox + label styling */
#bulkdialog .custstyle-table input[type="checkbox"] {
    margin-right: 4px;
    vertical-align: middle;
}

#bulkdialog .custstyle-table label {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

/* "New" button styling */
#bulkdialog .custstyle-table .butnewattribute {
    height: 32px;
    padding: 4px 12px;
    margin-left: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    transition: all 0.15s ease;
}

#bulkdialog .custstyle-table .butnewattribute:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

/* New attribute popup styling */
#bulkdialog .divnewattribute {
    margin-top: 10px;
    padding: 12px;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

#bulkdialog .divnewattribute input[type="text"] {
    margin-bottom: 8px;
}

#bulkdialog .divnewattributeerror {
    color: #dc3545;
    font-size: 12px;
    margin-top: 8px;
}

/* "With" value container */
#bulkdialog .divwithvalue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

/* Rounding info blocks */
#bulkdialog [id$="_round_info"] {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

/* Special labels (ignore case, skip sale price, etc.) */
#bulkdialog .labelignorecase,
#bulkdialog #saleskiplabel {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

/* Dialog Button Pane */
#bulkdialog ~ .ui-dialog-buttonpane {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

#bulkdialog ~ .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   End Advanced Bulk Edit Dialog Styles
   ========================================================================== */

/* ==========================================================================
   Columns Dialog Styles (#settingsdialog)
   ========================================================================== */

/* Dialog Container */
#settingsdialog {
    background-color: #fff;
}

/* Header Section with Search */
#settingsdialog .wcabe-dlg-top-floated {
    padding: 14px 18px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#settingsdialog #searchsettings {
    height: 32px;
    width: 180px !important;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
    margin-left: 0;
}

#settingsdialog #searchsettings:focus {
    border-color: #198fd9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.1);
}

#settingsdialog #searchsettings::placeholder {
    color: #999;
    font-style: italic;
}

#settingsdialog .wcabe-dlg-top-floated .fright {
    font-size: 12px;
    color: #666;
}

#settingsdialog .wcabe-dlg-top-floated a {
    display: inline-block;
    padding: 5px 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

#settingsdialog .wcabe-dlg-top-floated a:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
    color: #222;
}

#settingsdialog .wcabe-dlg-top-floated a:focus {
    outline: none;
    border-color: #198fd9;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.15);
}

/* Hide BR elements */
#settingsdialog > br {
    display: none;
}

/* Settings Table - Override main.css black borders */
#settingsdialog .settings-table {
    width: calc(100% - 36px);
    margin: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
}

#settingsdialog .settings-table tr {
    transition: background-color 0.1s ease;
}

#settingsdialog .settings-table tr:hover {
    background-color: #f8f9fa;
}

#settingsdialog .settings-table tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

#settingsdialog .settings-table td {
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 13px;
    color: #444;
    border: none;
}

/* Checkbox column */
#settingsdialog .settings-table td:nth-child(odd) {
    width: auto;
    padding-left: 12px;
    border: none;
}

/* Tick image column */
#settingsdialog .settings-table td:nth-child(even) {
    width: 24px;
    padding: 10px 8px;
    border: none;
}

/* Checkboxes */
#settingsdialog .settings-table input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

/* Labels */
#settingsdialog .settings-table label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

/* Tick images */
#settingsdialog .settings-table img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Dialog Button Pane */
#settingsdialog ~ .ui-dialog-buttonpane {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

#settingsdialog ~ .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   End Columns Dialog Styles
   ========================================================================== */

/* ==========================================================================
   Custom Fields Dialog Styles (#customfieldsdialog)
   ========================================================================== */

/* Dialog Container */
#customfieldsdialog {
    background-color: #fff;
    padding: 0 !important;
}

/* Main Table - Reset borders */
#customfieldsdialog table,
#customfieldsdialog table tr,
#customfieldsdialog td {
    border: none !important;
}

#customfieldsdialog #customfieldstable {
    width: 100%;
    border-collapse: collapse;
}

/* Form Controls Row */
#customfieldsdialog .addcontrols {
    background-color: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

#customfieldsdialog .addcontrols td {
    padding: 16px 18px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    vertical-align: top;
}

#customfieldsdialog .addcontrols td:first-child {
    padding-left: 18px;
}

#customfieldsdialog .addcontrols td:last-child {
    padding-right: 18px;
}

/* Input Fields */
#customfieldsdialog .addcontrols input[type="text"],
#customfieldsdialog .addcontrols select {
    display: block;
    height: 32px;
    margin-top: 6px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#customfieldsdialog .addcontrols input[type="text"] {
    width: 170px;
}

#customfieldsdialog .addcontrols select {
    min-width: 140px;
    cursor: pointer;
}

#customfieldsdialog .addcontrols input[type="text"]:focus,
#customfieldsdialog .addcontrols select:focus {
    border-color: #198fd9;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.15);
    outline: none;
}

/* Existing Custom Field Rows - Name Input Styling */
#customfieldsdialog .trcustom input[type="text"] {
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#customfieldsdialog .trcustom input[type="text"]:focus {
    border-color: #198fd9;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.15);
    outline: none;
}

/* OK/Cancel Row */
#customfieldsdialog .addokcancel {
    background-color: #fff;
}

#customfieldsdialog .addokcancel td {
    padding: 14px 18px;
    vertical-align: middle;
}

#customfieldsdialog .addokcancel td:first-child {
    padding-left: 18px;
}

/* OK and Cancel Buttons */
#customfieldsdialog .addokcancel .button-wcabe {
    height: 32px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

#customfieldsdialog #addok {
    background-color: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

#customfieldsdialog #addok:hover {
    background-color: #135e96;
    border-color: #135e96;
}

#customfieldsdialog #addcancel {
    background-color: #f6f7f7;
    border: 1px solid #ddd;
    color: #333;
}

#customfieldsdialog #addcancel:hover {
    background-color: #f0f0f1;
    border-color: #c3c4c7;
}

/* Extra Info Area */
#customfieldsdialog #extracustominfo {
    font-size: 12px;
    color: #666;
}

/* Add Custom Field Button */
#customfieldsdialog #addcustomfield {
    display: block;
    margin: 16px 18px;
    height: 34px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
    background-color: #fff;
    border: 1px solid #2271b1;
    border-radius: 4px;
    color: #2271b1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#customfieldsdialog #addcustomfield:hover {
    background-color: #2271b1;
    color: #fff;
}

/* Dialog Button Pane */
#customfieldsdialog ~ .ui-dialog-buttonpane {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

#customfieldsdialog ~ .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   End Custom Fields Dialog Styles
   ========================================================================== */

/* ==========================================================================
   Find Custom Fields Dialog Styles (#findcustomfieldsdialog)
   ========================================================================== */

/* Dialog Container */
#findcustomfieldsdialog {
    background-color: #fff;
    padding: 0 !important;
}

/* Description Paragraph */
#findcustomfieldsdialog > p {
    padding: 14px 18px;
    margin: 0;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

/* Action Buttons Area */
#findcustomfieldsdialog > .button-primary-wcabe,
#findcustomfieldsdialog > .button-wcabe,
#findcustomfieldsdialog > #productid {
    margin: 14px 0 14px 18px;
    vertical-align: middle;
}

#findcustomfieldsdialog > .button-primary-wcabe:first-of-type {
    margin-left: 18px;
}

/* Primary Button (Find Custom/Meta Fields) */
#findcustomfieldsdialog #findcustomfieldsauto {
    height: 34px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
    background-color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#findcustomfieldsdialog #findcustomfieldsauto:hover {
    background-color: #135e96;
    border-color: #135e96;
}

/* Secondary Buttons */
#findcustomfieldsdialog #findcustomtaxonomies,
#findcustomfieldsdialog #findcustomfield {
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
    background-color: #f6f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

#findcustomfieldsdialog #findcustomtaxonomies:hover,
#findcustomfieldsdialog #findcustomfield:hover {
    background-color: #f0f0f1;
    border-color: #c3c4c7;
}

/* Product ID Search Input */
#findcustomfieldsdialog #productid {
    height: 32px;
    width: 240px;
    padding: 0 12px;
    font-size: 13px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#findcustomfieldsdialog #productid:focus {
    border-color: #198fd9;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.15);
    outline: none;
}

#findcustomfieldsdialog #productid::placeholder {
    color: #999;
}

/* Results Table */
#findcustomfieldsdialog .tablecustomfields {
    width: calc(100% - 36px);
    margin: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

#findcustomfieldsdialog .tablecustomfields tr {
    transition: background-color 0.1s ease;
}

#findcustomfieldsdialog .tablecustomfields tr:hover {
    background-color: #f8f9fa;
}

#findcustomfieldsdialog .tablecustomfields tr:first-child {
    font-weight: 500;
    color: #333;
    background-color: #fafafa;
}

#findcustomfieldsdialog .tablecustomfields tr:first-child:hover {
    background-color: #fafafa;
}

#findcustomfieldsdialog .tablecustomfields td {
    padding: 10px 12px;
    font-size: 13px;
    color: #444;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    vertical-align: middle;
}

#findcustomfieldsdialog .tablecustomfields tr:last-child td {
    border-bottom: none !important;
}

/* Checkbox styling in results table */
#findcustomfieldsdialog .tablecustomfields input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Results Table - Input Fields (Field Name & Field Type columns) */
#findcustomfieldsdialog .tablecustomfields input[type="text"],
#findcustomfieldsdialog .tablecustomfields select {
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
}

/* Dialog Button Pane */
#findcustomfieldsdialog ~ .ui-dialog-buttonpane {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

#findcustomfieldsdialog ~ .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   End Find Custom Fields Dialog Styles
   ========================================================================== */

#tablecsvexport {
    border: none;
}

.oneline-radio-container {
    box-sizing: border-box;
    font-family: ‘Open Sans’, sans-serif;
    font-size: 13px;
    line-height: 30px;
    margin: 0;
    outline: 0;
    overflow: hidden;
    padding: 0;
}

.oneline-radio-container input {
    box-sizing: border-box;
    margin: 0;
    outline: 0;
    padding: 0;
    position: relative;
    top: 7px;
    vertical-align: top;
}

.wcabe-warning-text {
    color: red;
    margin-bottom: 20px;
}

.wcabe-dlg-top-floated span:nth-of-type(1) {
    float: left;
}

.wcabe-dlg-top-floated span:nth-of-type(2) {
    float: right;
    vertical-align: middle;
    line-height: 27px;
    margin-right: 46px;
}

#searchsettings {
    min-height: 26px;
}

#searchsettings{
    margin-left: 38px;
}

/* WCABE General Settings section */
.wcabe-general-settings-section:first-child {
    /*margin-top: 10px;*/
}
.wcabe-general-settings-section {
    border: 1px solid #cdcdcd;
    background-color: #fff;
    border-radius: 3px;
    padding: 20px 28px;
    margin-top: 22px;
}
.wcabe-license-key-input {
    height: 30px;
    width: 450px;
}
input[type=text] {
    line-height: 3;
}

div.boxed-layout-wcabe {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
}

.check-connection-terminal {
    width: 98%;
    height: 195px;
    color: #fff !important;
    background: #131313 !important;
    padding: 12px !important;
}

/* Recommended Plugins section { */
 .box-container {
     width: 100%;
     /*max-width: 640px;*/
     margin: 20px auto;
     border: 1px solid #ddd;
     border-radius: 8px;
     overflow: hidden;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 }

.flex-container {
    display: flex;
    padding: 20px;
    align-items: center;
}

.image-column {
    flex: 0 0 80px;
    margin-right: 20px;
}

.image-column img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.content-column {
    flex: 1;
    margin-right: 20px;
}

.content-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    /*color: #333;*/
}

.content-description {
    margin: 0;
    line-height: 1.5;
    /*color: #666;*/
}

.button-column {
    flex: 0 0 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*.button-link {*/
/*    display: inline-block;*/
/*    padding: 10px 20px;*/
/*    background-color: #007bff;*/
/*    color: white;*/
/*    text-decoration: none;*/
/*    border-radius: 4px;*/
/*    transition: background-color 0.3s;*/
/*}*/

/*.button-link:hover {*/
/*    background-color: #0056b3;*/
/*}*/

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        text-align: center;
    }

    .image-column {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .content-column {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .button-column {
        width: 100%;
    }
}
/* Recommended Plugins section } */

/* Add-ons dropdown button styles */
.wcabe-dropdown {
    display: inline-block;
    /*position: relative;*/
    min-width: 118px;
}

.wcabe-dropdown button {
    height: 33px;
}

.wcabe-dropdown-content {
    display: none;
    position: absolute;
    margin-top: 1px;
    background-color: #fff;
    border: 1px solid gray;
    border-radius: 3px;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
}

.wcabe-dropdown-content a {
    color: #3c434a;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.wcabe-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.wcabe-sitewide-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.wcabe-tool-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    width: calc(33.333% - 14px);
    min-width: 250px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Top right buttons bar */
.top-help-links {
    padding: 7px;
    /*background-color: #a5b9d14d;*/
    border-radius: 3px;
}
.top-help-links a {
    text-decoration: none;
    color: #1383c8;
    opacity: 1;
}
.top-help-links a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Split Variations Dialog Styles (#split-variations-dlg)
   ========================================================================== */

/* Dialog Container */
#split-variations-dlg {
    background-color: #fff;
    padding: 0 !important;
}

/* Intro Text Section */
#split-variations-dlg > p {
    padding: 14px 18px;
    margin: 0;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

#split-variations-dlg > p:first-of-type {
    padding-bottom: 0;
}

#split-variations-dlg > p:nth-of-type(2) {
    padding: 14px 18px;
    margin: 14px;
    background-color: #fff8e5;
    border: 1px solid #d4a857;
    border-radius: 4px;
}

#split-variations-dlg > p em {
    font-size: 12px;
    color: #856404;
    font-style: normal;
}

/* Accordion Container */
#split-variations-advanced-options {
    border: none;
    background: none;
}

/* Accordion Header */
#split-variations-advanced-options h3.ui-accordion-header {
    padding: 12px 18px;
    margin: 0;
    background-color: #fafafa;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

#split-variations-advanced-options h3.ui-accordion-header:hover {
    background-color: #f5f5f5;
}

#split-variations-advanced-options h3.ui-accordion-header.ui-state-active {
    background-color: #fafafa;
}

/* Accordion Content */
#split-variations-advanced-options .ui-accordion-content {
    padding: 14px 18px;
    margin: 0;
    border: none;
    background-color: #fff;
}

#split-variations-advanced-options .ui-accordion-content p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

#split-variations-advanced-options .ui-accordion-content h4 {
    margin: 14px 0 10px 0;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

/* Custom Fields List */
#split-variations-advanced-options-parent-custom-fields {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #fafafa;
}

#split-variations-advanced-options-parent-custom-fields li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.1s ease;
}

#split-variations-advanced-options-parent-custom-fields li:last-child {
    border-bottom: none;
}

#split-variations-advanced-options-parent-custom-fields li:hover {
    background-color: #f0f0f0;
}

/* Checkbox + Label in list */
#split-variations-advanced-options-parent-custom-fields input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

#split-variations-advanced-options-parent-custom-fields label {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

/* Dialog Button Pane */
#split-variations-dlg ~ .ui-dialog-buttonpane {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

#split-variations-dlg ~ .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   End Split Variations Dialog Styles
   ========================================================================== */

/* ==========================================================================
   Quick Settings Popup Styles
   ========================================================================== */

/* Popup Container */
.quicksettingsextra {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    min-width: 440px;
}

/* Settings Table */
.quicksettingsextra .quicksettingstable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.quicksettingsextra .quicksettingstable tr {
    transition: background-color 0.1s ease;
}

.quicksettingsextra .quicksettingstable tr:hover {
    background-color: #f8f9fa;
}

.quicksettingsextra .quicksettingstable tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

.quicksettingsextra .quicksettingstable td {
    padding: 10px 14px;
    vertical-align: middle;
    font-size: 13px;
    color: #444;
}

/* Toggle Switch - Container */
.quicksettingsextra .toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Toggle Switch - Hide checkbox */
.quicksettingsextra .toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Toggle Switch - Track/Slider */
.quicksettingsextra .toggle-switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

/* Toggle Switch - Knob */
.quicksettingsextra .toggle-switch .toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Toggle Switch - Checked State */
.quicksettingsextra .toggle-switch input:checked + .toggle-slider {
    background-color: #2271b1;
}

.quicksettingsextra .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

/* Toggle Switch - Focus State */
.quicksettingsextra .toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
}

/* Toggle Label */
.quicksettingsextra .toggle-label {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    color: #333;
    vertical-align: middle;
    cursor: default;
}

/* Table cell layout for toggle rows */
.quicksettingsextra .quicksettingstable td {
    display: flex;
    align-items: center;
}

/* Quick Settings Buttons Footer - Unified Button Row */
.quicksettingsextra #divquicksettingsbuttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

.quicksettingsextra #divquicksettingsbuttons .button-wcabe {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
    line-height: 30px;
}

/* Full View Button - Slightly emphasized */
.quicksettingsextra #divquicksettingsbuttons #gofullscreen {
    font-weight: 500;
}

/* Status message when there are unsaved edits */
.quicksettingsextra #divquicksettingsbuttons .quicksettings-status {
    flex-basis: 100%;
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
}

/* ==========================================================================
   End Quick Settings Popup Styles
   ========================================================================== */

/* ==========================================================================
   Plugin Options Dialog Styles (#pluginsettings)
   ========================================================================== */

/* Dialog Container */
#pluginsettings {
    background-color: #fff;
    padding: 0 !important;
}

/* Remove wrapper div spacing */
#pluginsettings > div {
    padding: 0 !important;
    margin: 0 !important;
}

#pluginsettings > div > br {
    display: none;
}

/* jQuery UI Tabs Styling */
#pluginsettingstab {
    border: none;
    background: none;
    padding: 0;
}

/* Tab List */
#pluginsettingstab > ul.ui-tabs-nav {
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 0;
    padding: 0 18px;
    margin: 0;
}

#pluginsettingstab > ul.ui-tabs-nav li {
    margin: 0 4px -1px 0;
    border: none;
    background: none;
}

#pluginsettingstab > ul.ui-tabs-nav li a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#pluginsettingstab > ul.ui-tabs-nav li a:hover {
    color: #333;
    background-color: #f8f9fa;
}

#pluginsettingstab > ul.ui-tabs-nav li.ui-tabs-active a {
    color: #198fd9;
    border-bottom-color: #198fd9;
    background: none;
}

#pluginsettingstab > ul.ui-tabs-nav li.ui-tabs-active {
    background: none;
    border: none;
}

/* Tab Panel Container */
#pluginsettingstab .ui-tabs-panel {
    padding: 0;
    border: none;
}

/* --------------------------------
   Tab 1: Main Settings Table
   -------------------------------- */

#pluginsettingstab-1 > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

#pluginsettingstab-1 > table tr {
    transition: background-color 0.1s ease;
}

#pluginsettingstab-1 > table tr:hover {
    background-color: #f8f9fa;
}

#pluginsettingstab-1 > table tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

#pluginsettingstab-1 > table td {
    padding: 12px 18px;
    vertical-align: middle;
    font-size: 13px;
    color: #444;
}

/* Override inline padding styles */
#pluginsettingstab-1 > table td[style*="padding-top"] {
    padding-top: 12px !important;
}

/* First column - Settings labels */
#pluginsettingstab-1 > table td:first-child {
    font-weight: 500;
    color: #333;
    width: 55%;
}

/* Second column - Hints */
#pluginsettingstab-1 > table td:nth-child(2) {
    font-size: 12px;
    color: #666;
    font-style: italic;
    width: 45%;
}

/* Hide slash delimiters in hints - visual cleanup */
#pluginsettingstab-1 > table td:nth-child(2) {
    word-spacing: normal;
}

/* Style the /hint/ text - make slashes invisible */
/* Note: Since we can't hide slashes via CSS alone, they add visual context */

/* Toggle Switch - Container */
#pluginsettingstab-1 .toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Toggle Switch - Hide checkbox */
#pluginsettingstab-1 .toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Toggle Switch - Track/Slider */
#pluginsettingstab-1 .toggle-switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

/* Toggle Switch - Knob */
#pluginsettingstab-1 .toggle-switch .toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Toggle Switch - Checked State */
#pluginsettingstab-1 .toggle-switch input:checked + .toggle-slider {
    background-color: #2271b1;
}

#pluginsettingstab-1 .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

/* Toggle Switch - Focus State */
#pluginsettingstab-1 .toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
}

/* Toggle Label */
#pluginsettingstab-1 .toggle-label {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    color: #333;
    vertical-align: middle;
    cursor: default;
    font-weight: 500;
}

/* Table cell layout for toggle rows */
#pluginsettingstab-1 > table td:first-child {
    display: flex;
    align-items: center;
}

/* Text inputs - override inline width */
#pluginsettingstab-1 > table input[type="text"] {
    height: 32px;
    width: 70px !important;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#pluginsettingstab-1 > table input[type="text"]:focus {
    border-color: #198fd9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 143, 217, 0.1);
}

/* Select dropdown */
#pluginsettingstab-1 > table select {
    height: 32px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
    color: #333;
    min-width: 100px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

#pluginsettingstab-1 > table select:focus {
    border-color: #198fd9;
    outline: none;
}

/* Hint text paragraph (appears in some rows) */
#pluginsettingstab-1 > table td p {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* --------------------------------
   Tab 2: Search Settings Grid
   -------------------------------- */

#pluginsettingstab-2 {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
}

/* Override existing .customfield-fixed and .customfield float layout */
#pluginsettingstab-2 .customfield-fixed,
#pluginsettingstab-2 .customfield {
    float: none;
    width: auto;
    padding: 12px 16px;
    margin: 0;
    border-radius: 4px;
    transition: background-color 0.1s ease;
    display: flex;
    align-items: center;
}

#pluginsettingstab-2 .customfield-fixed:hover,
#pluginsettingstab-2 .customfield:hover {
    background-color: #f8f9fa;
}

/* Toggle Switch - Container */
#pluginsettingstab-2 .toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Toggle Switch - Hide checkbox */
#pluginsettingstab-2 .toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Toggle Switch - Track/Slider */
#pluginsettingstab-2 .toggle-switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

/* Toggle Switch - Knob */
#pluginsettingstab-2 .toggle-switch .toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Toggle Switch - Checked State */
#pluginsettingstab-2 .toggle-switch input:checked + .toggle-slider {
    background-color: #2271b1;
}

#pluginsettingstab-2 .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

/* Toggle Switch - Focus State */
#pluginsettingstab-2 .toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
}

/* Toggle Label */
#pluginsettingstab-2 .toggle-label {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    color: #333;
    vertical-align: middle;
    cursor: default;
}

/* --------------------------------
   Tab 3: Large Attributes
   -------------------------------- */

#pluginsettingstab-3 {
    padding: 18px;
}

/* Remove default margin-top spacer */
#pluginsettingstab-3 > div[style*="margin-top:32px"] {
    display: none;
}

/* Large attribute items - use flexbox for toggle alignment */
#pluginsettingstab-3 .largeattr {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    margin: 4px 8px 4px 0;
    border-radius: 4px;
    transition: background-color 0.1s ease;
}

#pluginsettingstab-3 .largeattr:hover {
    background-color: #f8f9fa;
}

/* Toggle Switch styles for Tab 3 */
#pluginsettingstab-3 .toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}

#pluginsettingstab-3 .toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

#pluginsettingstab-3 .toggle-switch .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

#pluginsettingstab-3 .toggle-switch .toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#pluginsettingstab-3 .toggle-switch input:checked + .toggle-slider {
    background-color: #2271b1;
}

#pluginsettingstab-3 .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

#pluginsettingstab-3 .toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.25);
}

#pluginsettingstab-3 .toggle-label {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    color: #333;
    vertical-align: middle;
    cursor: default;
}

/* Info note */
#pluginsettingstab-3 .largeattr_info {
    display: block;
    padding: 14px 18px;
    /*margin-bottom: 16px;*/
    margin: 14px;
    background-color: #fff8e5;
    border: 1px solid #d4a857;
    border-radius: 4px;
    color: #856404;
    font-size: 12px;
    line-height: 1.5;
}

/* Clear fix override */
#pluginsettingstab-3 > div[style*="clear:both"] {
    display: none;
}

/* --------------------------------
   Dialog Button Pane
   -------------------------------- */

#pluginsettings ~ .ui-dialog-buttonpane {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
}

#pluginsettings ~ .ui-dialog-buttonpane .ui-dialog-buttonset {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   End Plugin Options Dialog Styles
   ========================================================================== */
