/**
 * GoBilling-style table primitives.
 *
 * Everything is scoped under .gb-table-wrap so this stylesheet is inert on
 * any page that has not opted in by wrapping its table in that class.
 *
 * Loaded on a per-page basis (see pilot: list_subscribers/index.php).
 */

/* ---------- Container ---------- */
.gb-table-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    /* overflow: hidden clips row-action dropdowns. Use clip-path on the
     * wrapper's decorative corners via border-radius alone. */
    overflow: visible;
    font-size: 14px;
    color: #111827;
}
/* The inner table-body still needs to scroll horizontally when narrow;
 * the outer wrap stays visible so dropdowns can escape vertically. */
.gb-table-wrap .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

/* ---------- Toolbar above the table ---------- */
.gb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid #eef0f3;
    background: #fff;
}
.gb-toolbar-left,
.gb-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.gb-toolbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gb-toolbar-title .fa,
.gb-toolbar-title i {
    color: #6b7280;
}

/* Primary New button (dark pill, matches GoBilling) */
.gb-btn-new {
    background: #111827;
    color: #fff !important;
    border: 1px solid #111827;
    border-radius: 8px;
    padding: 7px 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}
.gb-btn-new:hover,
.gb-btn-new:focus {
    background: #000;
    color: #fff !important;
    text-decoration: none;
}

/* Secondary toolbar buttons (ghost) */
.gb-btn-ghost {
    background: #fff;
    color: #374151 !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}
.gb-btn-ghost:hover,
.gb-btn-ghost:focus {
    background: #f9fafb;
    color: #111827 !important;
    border-color: #d1d5db;
    text-decoration: none;
}

/* Icon-only square button (e.g. ⋯ menu) */
.gb-btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.gb-btn-icon:hover {
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
}

/* ---------- Table ---------- */
.gb-table-wrap .table-responsive {
    border: 0;
    margin: 0;
    overflow-x: auto;
}

.gb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: #fff;
}

/* Header row */
.gb-table > thead > tr > th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    border-top: 0;
    white-space: nowrap;
    vertical-align: middle;
}
.gb-table > thead > tr > th a {
    color: inherit;
    text-decoration: none;
}
.gb-table > thead > tr > th a:hover {
    color: #111827;
}

/* Filter row (second thead row with inputs) */
.gb-table > thead > tr.gb-filter-row > th {
    background: #fff;
    padding: 8px 16px;
    border-bottom: 1px solid #eef0f3;
    text-transform: none;
    letter-spacing: 0;
}
.gb-table > thead > tr.gb-filter-row input[type="text"],
.gb-table > thead > tr.gb-filter-row select {
    width: 100%;
    min-width: 80px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    height: auto;
    box-shadow: none;
}
.gb-table > thead > tr.gb-filter-row input[type="text"]:focus,
.gb-table > thead > tr.gb-filter-row select:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Body rows */
.gb-table > tbody > tr > td {
    padding: 14px 16px;
    border-top: 0;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    color: #111827;
    font-size: 14px;
}
.gb-table > tbody > tr:last-child > td {
    border-bottom: 0;
}
/* No border on tfoot rows — the outer .gb-table-wrap provides the bottom
 * edge. Without this, the tfoot's per-td borders can form a broken line
 * that doesn't reach the wrapper's rounded corners. */
.gb-table > tfoot > tr > td {
    border: 0;
}
.gb-table > tbody > tr:hover > td {
    background: #f9fafb;
}

/* Link cells (id, name etc.) — GoBilling uses blue) */
.gb-table a.gb-link,
.gb-table > tbody > tr > td a {
    color: #2563eb;
    text-decoration: none;
}
.gb-table a.gb-link:hover,
.gb-table > tbody > tr > td a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Append a chevron after clickable text links in body cells.
   Skip action-column icon links and links that opt out via .gb-no-chevron. */
.gb-table > tbody > tr > td:not(.gb-col-actions):not(.gb-col-check) a:not(.gb-no-chevron):not(:has(> i)):not(:has(> span.glyphicon))::after {
    content: " \203A";
    display: inline-block;
    margin-left: 4px;
    color: #9ca3af;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1;
    vertical-align: -1px;
    text-decoration: none;
}
.gb-table > tbody > tr > td:not(.gb-col-actions):not(.gb-col-check) a:not(.gb-no-chevron):not(:has(> i)):not(:has(> span.glyphicon)):hover::after {
    text-decoration: none;
}

/* Checkbox column — narrow, centered */
.gb-table > thead > tr > th.gb-col-check,
.gb-table > tbody > tr > td.gb-col-check {
    width: 40px;
    text-align: center;
    padding-right: 0;
}
.gb-table input[type="checkbox"] {
    accent-color: #2563eb;
    cursor: pointer;
}

/* Actions column — narrow, right-aligned */
.gb-table > thead > tr > th.gb-col-actions,
.gb-table > tbody > tr > td.gb-col-actions {
    width: 48px;
    text-align: right;
}

/* Empty state cell */
.gb-table > tbody > tr.gb-empty > td {
    padding: 48px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* ---------- Kebab dropdown (row actions) ---------- */
.gb-kebab.btn-group {
    position: relative;
}
.gb-kebab > .btn.dropdown-toggle {
    background: transparent;
    border: 0;
    color: #6b7280;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.gb-kebab > .btn.dropdown-toggle:hover,
.gb-kebab.open > .btn.dropdown-toggle {
    background: #f3f4f6;
    color: #111827;
}
.gb-kebab .dropdown-menu {
    min-width: 180px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-top: 4px;
}
.gb-kebab .dropdown-menu > li > a,
.gb-kebab .dropdown-menu > li > button {
    padding: 8px 14px;
    font-size: 13.5px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
}
.gb-kebab .dropdown-menu > li > a:hover,
.gb-kebab .dropdown-menu > li > button:hover {
    background: #f9fafb;
    color: #111827;
}
.gb-kebab .dropdown-menu > li > a .fa,
.gb-kebab .dropdown-menu > li > a i {
    color: #6b7280;
    width: 14px;
    text-align: center;
}

/* ---------- Status pills ---------- */
.gb-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    border-radius: 999px;
    white-space: nowrap;
    background: #f3f4f6;
    color: #374151;
}
.gb-pill--green    { background: #dcfce7; color: #166534; }
.gb-pill--blue     { background: #dbeafe; color: #1e40af; }
.gb-pill--red      { background: #fee2e2; color: #991b1b; }
.gb-pill--yellow   { background: #fef3c7; color: #92400e; }
.gb-pill--gray     { background: #f3f4f6; color: #374151; }
.gb-pill--orange   { background: #ffedd5; color: #9a3412; }

/* ---------- Bulk-action bar (above table) ---------- */
.gb-bulkbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    gap: 12px;
    flex-wrap: wrap;
}
.gb-bulkbar .bulk-selected-options {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    float: none;
    flex-wrap: wrap;
}
.gb-bulkbar .bulk-selected-options select,
.gb-lists-page .gb-bulkbar .bulk-selected-options select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 4px 28px 4px 12px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    height: 32px !important;
    min-height: 0 !important;
    min-width: 180px !important;
    width: auto !important;
    margin: 0 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px 12px !important;
    color: #111827 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.gb-bulkbar .bulk-selected-options select:focus,
.gb-lists-page .gb-bulkbar .bulk-selected-options select:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
.gb-bulkbar .bulk-selected-options #btn-run-bulk-action {
    height: 32px;
    padding: 0 14px;
    line-height: 32px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}
.gb-bulkbar .counter {
    color: #6b7280;
    font-size: 13px;
}

/* ---------- Unified native <select> styling ----------
 * Applies the modern dropdown look (rounded border, custom SVG caret,
 * blue focus ring) to every non-Select2 native <select> inside a gb-table
 * page. The toolbar search (in .box-header) is outside these scopes and
 * keeps its own styling. Select2-wrapped natives are excluded via
 * :not(.select2-hidden-accessible).
 */
.gb-table-wrap select:not(.select2-hidden-accessible),
.gb-filter-panel select:not(.select2-hidden-accessible),
.gb-footer select:not(.select2-hidden-accessible) {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 4px 28px 4px 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    height: 32px !important;
    min-height: 0 !important;
    margin: 0 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px 12px !important;
    color: #111827 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.gb-table-wrap select:not(.select2-hidden-accessible):focus,
.gb-filter-panel select:not(.select2-hidden-accessible):focus,
.gb-footer select:not(.select2-hidden-accessible):focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
/* Keep the column-filter-row and filter-panel selects span the full cell width */
.gb-table > thead > tr.gb-filter-row select:not(.select2-hidden-accessible),
.gb-filter-panel select:not(.select2-hidden-accessible) {
    width: 100% !important;
}

/* ---------- Footer (pagination) ---------- */
.gb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #eef0f3;
    background: #fff;
    gap: 12px;
    flex-wrap: wrap;
}
.gb-footer .pagination {
    margin: 0;
}
.gb-footer .pagination > li > a,
.gb-footer .pagination > li > span {
    color: #374151;
    border: 1px solid #e5e7eb;
    margin-left: 4px;
    border-radius: 6px !important;
    padding: 5px 10px;
    font-size: 13px;
    background: #fff;
}
.gb-footer .pagination > li.active > a,
.gb-footer .pagination > li.active > span,
.gb-footer .pagination > li > a:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}
.gb-footer select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    height: auto;
    background: #fff;
    color: #111827;
    box-shadow: none;
}

/* ---------- Toolbar (inside the AdminLTE .box-header) recolor ----------
 * Scoped to .gb-lists-page.
 */

/* Make the toolbar row a flex row so search + buttons line up vertically.
 * Start hidden to avoid FOUC while the layout's overflow script rebuilds
 * the dropdown; the script sets data-sw-overflow-done="1" when finished. */
.gb-lists-page .box-header .pull-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    visibility: hidden;
}
.gb-lists-page .box-header .pull-right[data-sw-overflow-done="1"] {
    visibility: visible;
}
.gb-lists-page .box-header .pull-right > * {
    margin-left: 0;
    vertical-align: middle;
}

/* Light ghost icon-only buttons: Filter, Refresh, and the ... overflow trigger.
 * Selectors include .box-header .pull-right ancestor on every form to outrank
 * AdminLTE's `body.skin-blue .content-wrapper .btn { color: white !important }`
 * which would otherwise win on specificity and hide black icons. */
.box-header .pull-right .gb-toolbar-btn,
.box-header .pull-right .btn.gb-toolbar-btn,
.box-header .pull-right .btn.sw-overflow-trigger,
.box-header .pull-right .btn.btn-primary.sw-overflow-trigger {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 14px !important;
}
.box-header .pull-right .gb-toolbar-btn:hover,
.box-header .pull-right .btn.gb-toolbar-btn:hover,
.box-header .pull-right .btn.sw-overflow-trigger:hover,
.box-header .pull-right .btn.btn-primary.sw-overflow-trigger:hover,
.box-header .pull-right .gb-toolbar-btn.active,
.box-header .pull-right .btn.sw-overflow-trigger[aria-expanded="true"] {
    background: #f9fafb !important;
    color: #000 !important;
    border-color: #d1d5db !important;
}
/* The ... trigger contains a fa-ellipsis-h icon — force its color too */
.box-header .pull-right .sw-overflow-trigger .fa,
.box-header .pull-right .sw-overflow-trigger i,
.box-header .pull-right .gb-toolbar-btn .fa,
.box-header .pull-right .gb-toolbar-btn i,
.box-header .pull-right .gb-toolbar-btn .glyphicon {
    color: #000 !important;
}
.box-header .pull-right .gb-toolbar-btn > i,
.box-header .pull-right .gb-toolbar-btn i.fa,
.box-header .pull-right .sw-overflow-trigger > i {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: inherit !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

/* Keep "+ Create new" / "+ New" prominent dark.
 * Matches both the pre-rename title ("Create new" / "Create new X") emitted by
 * GbTableHelper::newButton / Create-new-* links, and the post-rename title
 * ("New") applied by the layout's renameCreateNew script so the dark styling
 * survives the JS rename instead of flickering back to the default primary. */
.gb-lists-page .box-header .pull-right .btn.btn-primary.btn-flat[title="Create new"],
.gb-lists-page .box-header .pull-right .btn.btn-primary.btn-flat[title^="Create new "],
.gb-lists-page .box-header .pull-right .btn.btn-primary.btn-flat[title="New"],
.gb-lists-page .box-header .pull-right .btn.btn-primary.btn-flat[title^="New "] {
    background: #111827 !important;
    color: #fff !important;
    border: 1px solid #111827 !important;
    border-radius: 3px !important;
    height: 36px;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
}
.gb-lists-page .box-header .pull-right .btn.btn-primary.btn-flat[title="Create new"]:hover,
.gb-lists-page .box-header .pull-right .btn.btn-primary.btn-flat[title^="Create new "]:hover,
.gb-lists-page .box-header .pull-right .btn.btn-primary.btn-flat[title="New"]:hover,
.gb-lists-page .box-header .pull-right .btn.btn-primary.btn-flat[title^="New "]:hover {
    background: #000 !important;
    border-color: #000 !important;
}

/* Legacy ".btn-primary.btn-flat" icon-only toolbar buttons that aren't the
 * prominent "+ New X" CTA — Refresh, Info, Import, Export, etc. on pages
 * like /ip-location-services, /misc/delivery-servers-usage-logs that haven't
 * been converted to use GbTableHelper::refreshButton(). Render them as the
 * white ghost icon button matching .gb-toolbar-btn so they don't stand out
 * as big dark filled buttons. Bootstrap's tooltip plugin moves [title] to
 * [data-original-title], so we match either. */
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Refresh"],
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Info"],
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Import"],
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Export"],
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Refresh"],
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Info"],
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Import"],
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Export"] {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 0 !important; /* hide the text label; keep only the icon */
}
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Refresh"]:hover,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Info"]:hover,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Import"]:hover,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Export"]:hover,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Refresh"]:hover,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Info"]:hover,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Import"]:hover,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Export"]:hover {
    background: #f9fafb !important;
    color: #000 !important;
    border-color: #d1d5db !important;
}
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Refresh"] > i,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Refresh"] > .fa,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Refresh"] > .glyphicon,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Info"] > i,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Info"] > .fa,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Info"] > .glyphicon,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Import"] > i,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Import"] > .fa,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Import"] > .glyphicon,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Export"] > i,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Export"] > .fa,
.box-header .pull-right > .btn.btn-primary.btn-flat[title="Export"] > .glyphicon,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Refresh"] > i,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Refresh"] > .fa,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Refresh"] > .glyphicon,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Info"] > i,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Info"] > .fa,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Info"] > .glyphicon,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Import"] > i,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Import"] > .fa,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Import"] > .glyphicon,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Export"] > i,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Export"] > .fa,
.box-header .pull-right > .btn.btn-primary.btn-flat[data-original-title="Export"] > .glyphicon {
    color: #000 !important;
    font-size: 14px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* ---------- Overflow ("...") dropdown menu ----------
 * The overflow script wraps each moved button in <li>…</li> inside a
 * .sw-overflow-menu-list (bootstrap .dropdown-menu). Buttons kept their
 * .btn / .btn-primary classes, which would otherwise render them as dark
 * pill-shaped buttons with centered text. Flatten them into normal menu
 * rows: full-width, left-aligned, icon + label, light hover. */
.sw-overflow-menu-list {
    min-width: 200px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}
.sw-overflow-menu-list > li {
    list-style: none;
}
.sw-overflow-menu-list > li > .btn,
.sw-overflow-menu-list > li > a.btn,
.sw-overflow-menu-list > li > button.btn,
.sw-overflow-menu-list > li > form .btn.dropdown-toggle,
.sw-overflow-menu-list > li > .btn-group > .btn.dropdown-toggle {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    gap: 12px;
    padding: 9px 14px !important;
    margin: 0 !important;
    background: transparent !important;
    color: #111827 !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    text-align: left !important;
    font-weight: 400 !important;
    height: auto !important;
    white-space: nowrap;
}
.sw-overflow-menu-list > li > .btn:hover,
.sw-overflow-menu-list > li > a.btn:hover,
.sw-overflow-menu-list > li > button.btn:hover,
.sw-overflow-menu-list > li > .btn:focus,
.sw-overflow-menu-list > li > form .btn.dropdown-toggle:hover,
.sw-overflow-menu-list > li > form .btn.dropdown-toggle:focus,
.sw-overflow-menu-list > li > .btn-group > .btn.dropdown-toggle:hover,
.sw-overflow-menu-list > li > .btn-group > .btn.dropdown-toggle:focus {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
.sw-overflow-menu-list > li > .btn.btn-danger,
.sw-overflow-menu-list > li > a.btn.btn-danger {
    color: #b91c1c !important;
}
.sw-overflow-menu-list > li > .btn.btn-danger:hover,
.sw-overflow-menu-list > li > a.btn.btn-danger:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}
.sw-overflow-menu-list > li > .btn > i,
.sw-overflow-menu-list > li > .btn > .fa,
.sw-overflow-menu-list > li > .btn > .glyphicon,
.sw-overflow-menu-list > li > form .btn.dropdown-toggle > i,
.sw-overflow-menu-list > li > form .btn.dropdown-toggle > .fa,
.sw-overflow-menu-list > li > form .btn.dropdown-toggle > .glyphicon,
.sw-overflow-menu-list > li > .btn-group > .btn.dropdown-toggle > i,
.sw-overflow-menu-list > li > .btn-group > .btn.dropdown-toggle > .fa,
.sw-overflow-menu-list > li > .btn-group > .btn.dropdown-toggle > .glyphicon {
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex: 0 0 16px;
}
/* Nested form / btn-group wrapper (e.g. GridViewToggleColumns widget) must
 * expand to full row width so its .btn takes the whole menu row. Without
 * this the wrapper stays inline-block and the label gets clipped, leaving
 * only the icon visible in the overflow menu on pages that use the widget. */
.sw-overflow-menu-list > li > form,
.sw-overflow-menu-list > li > .btn-group {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}
/* Hide the trailing caret on dropdown-toggle buttons inside the overflow
 * menu so the label has room. */
.sw-overflow-menu-list > li .btn.dropdown-toggle > .caret {
    display: none !important;
}

/* Toggle columns (and other nested submenus) inside the overflow menu:
   on mobile the default flyout gets clipped off the viewport (the submenu
   inherits Bootstrap's left-aligned dropdown-menu, which positions it at
   negative x on a 375px screen). Render the submenu inline below its parent
   so it stays on-screen, with a max-height + scroll, and flip the indicator
   from a right-arrow to a down-caret. */
@media (max-width: 767px) {
    .sw-overflow-menu-list > li > .btn-group > .dropdown-menu {
        position: static !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        margin: 4px 0 0 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: 60vh;
        overflow-y: auto;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
        float: none !important;
    }
    .sw-overflow-menu-list > li > .btn-group > .dropdown-toggle::after {
        content: "\f107"; /* fa-angle-down */
        font-family: "FontAwesome";
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: #6b7280;
        font-weight: 400;
        line-height: 1;
    }
    .sw-overflow-menu-list > li > .btn-group.open > .dropdown-toggle::after {
        content: "\f106"; /* fa-angle-up */
        color: #111827;
    }
    .sw-overflow-menu-list > li > .btn-group > .dropdown-toggle {
        position: relative;
        padding-right: 28px !important;
    }
}

/* Inline search input inside the toolbar */
.gb-lists-page .gb-toolbar-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 36px;
}
.gb-lists-page .gb-toolbar-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}
.gb-lists-page .gb-toolbar-search-input {
    height: 36px !important;
    width: 240px;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 6px 10px 6px 30px !important;
    font-size: 13px;
    background: #fff !important;
    color: #111827 !important;
    box-shadow: none !important;
    outline: 0;
    margin: 0 !important;
    vertical-align: middle;
    line-height: 1.2;
}
.gb-lists-page .gb-toolbar-search-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

/* Icon glyphs rendered as CSS mask-image on a span — immune to any
 * HTML sanitizing or SVG rendering issues. The mask color follows
 * `currentColor` via `background-color: currentColor`. */
.gb-ico {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    background-color: #000 !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.gb-toolbar-btn:hover .gb-ico {
    background-color: #000 !important;
}
.gb-ico-filter {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/></svg>");
}
.gb-ico-upload {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>");
}
.gb-ico-refresh {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 4 23 10 17 10'/><polyline points='1 20 1 14 7 14'/><path d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 4 23 10 17 10'/><polyline points='1 20 1 14 7 14'/><path d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/></svg>");
}

/* ---------- Filter panel dropdowns ----------
 * AdminLTE applies `background-image: url(select-arr.png) !important` to ALL
 * selects, which on top of a native chevron produces the stacked-arrow look.
 * Force appearance:none + our own clean chevron, overriding the AdminLTE PNG.
 */
.gb-lists-page select,
.gb-lists-page .grid-view select,
.gb-lists-page .gb-filter-panel select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: auto;
    height: 36px !important;
    min-height: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 4px 28px 4px 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px 12px !important;
    color: #111827 !important;
    box-shadow: none !important;
}
.gb-lists-page .gb-filter-panel select {
    width: 100%;
}

/* ---------- Floating row-action menu (re-parented to <body>) ----------
 * When a row kebab is clicked, the menu is moved to <body> with position:
 * fixed so it escapes all parent overflow:hidden containers. The rules here
 * are NOT scoped under .gb-lists-page because the menu lives outside of it
 * while open. Use the unique .gb-floating-menu marker class instead.
 */
.gb-floating-menu.dropdown-menu {
    display: block !important;
    min-width: 220px;
    max-width: 280px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    background: #fff;
    list-style: none;
    margin: 0;
}
.gb-floating-menu.dropdown-menu > li {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}
.gb-floating-menu.dropdown-menu > li > a,
.gb-floating-menu.dropdown-menu > li > a.btn,
.gb-floating-menu.dropdown-menu > li > a.btn.btn-primary,
.gb-floating-menu.dropdown-menu > li > a.btn.btn-primary.btn-flat {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #111827 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: none !important;
    text-align: left !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    height: auto !important;
    min-width: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    white-space: nowrap;
}
/* Row hover: match the top overflow menu — same inset, same rounded pill.
 * Anchor is always rounded; hover just fills it with the light-gray. */
.gb-floating-menu.dropdown-menu > li {
    padding: 0 !important;
}
.gb-floating-menu.dropdown-menu > li > a,
.gb-floating-menu.dropdown-menu > li > a.btn,
.gb-floating-menu.dropdown-menu > li > a.btn.btn-primary,
.gb-floating-menu.dropdown-menu > li > a.btn.btn-primary.btn-flat {
    border-radius: 6px !important;
}
body .gb-floating-menu.dropdown-menu > li > a:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-primary:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-success:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-info:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-warning:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-default:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-primary.btn-flat:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-success.btn-flat:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-info.btn-flat:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-warning.btn-flat:hover,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-default.btn-flat:hover,
body.skin-blue .gb-floating-menu.dropdown-menu > li > a.btn.btn-primary.btn-flat:hover,
body.skin-blue .gb-floating-menu.dropdown-menu > li > a.btn.btn-success.btn-flat:hover,
body .gb-floating-menu.dropdown-menu > li > a:focus {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    border-radius: 6px !important;
}
.gb-floating-menu.dropdown-menu > li > a:hover .fa,
.gb-floating-menu.dropdown-menu > li > a:hover i,
.gb-floating-menu.dropdown-menu > li > a:hover .glyphicon,
.gb-floating-menu.dropdown-menu > li > a:hover .gb-menu-label {
    color: #111827 !important;
}
.gb-floating-menu.dropdown-menu > li > a.btn-danger:hover,
.gb-floating-menu.dropdown-menu > li > a.delete:hover {
    background: #fef2f2 !important;
}
.gb-floating-menu.dropdown-menu > li > a.btn-danger:hover .fa,
.gb-floating-menu.dropdown-menu > li > a.delete:hover .fa,
.gb-floating-menu.dropdown-menu > li > a.btn-danger:hover .glyphicon,
.gb-floating-menu.dropdown-menu > li > a.delete:hover .glyphicon,
.gb-floating-menu.dropdown-menu > li > a.btn-danger:hover .gb-menu-label,
.gb-floating-menu.dropdown-menu > li > a.delete:hover .gb-menu-label {
    color: #b91c1c !important;
}
.gb-floating-menu.dropdown-menu > li > a .fa,
.gb-floating-menu.dropdown-menu > li > a i,
.gb-floating-menu.dropdown-menu > li > a .glyphicon,
.gb-floating-menu.dropdown-menu > li > a .gb-menu-svg-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #6b7280 !important;
    box-sizing: content-box !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1 !important;
}
body .gb-floating-menu.dropdown-menu > li > a .gb-menu-label,
body .gb-floating-menu.dropdown-menu > li > a.btn .gb-menu-label,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-primary .gb-menu-label,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-primary.btn-flat .gb-menu-label,
body.skin-blue .gb-floating-menu.dropdown-menu > li > a.btn.btn-primary.btn-flat .gb-menu-label {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #111827 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    clip: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
}

/* Force parent anchor color hard enough to beat any skin rule.
 * Covers all bootstrap btn variants (btn-primary, btn-success, btn-info,
 * btn-warning, btn-default, …) so no row renders its native colored fill. */
body .gb-floating-menu.dropdown-menu > li > a,
body .gb-floating-menu.dropdown-menu > li > a.btn,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-primary,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-success,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-info,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-warning,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-default,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-primary.btn-flat,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-success.btn-flat,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-info.btn-flat,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-warning.btn-flat,
body .gb-floating-menu.dropdown-menu > li > a.btn.btn-default.btn-flat,
body.skin-blue .gb-floating-menu.dropdown-menu > li > a.btn.btn-primary.btn-flat,
body.skin-blue .gb-floating-menu.dropdown-menu > li > a.btn.btn-success.btn-flat {
    color: #111827 !important;
    background: #fff !important;
    background-color: #fff !important;
    text-shadow: none !important;
    border: 0 !important;
}
body .gb-floating-menu.dropdown-menu > li > a.delete,
body .gb-floating-menu.dropdown-menu > li > a.btn-danger,
body.skin-blue .gb-floating-menu.dropdown-menu > li > a.delete,
body.skin-blue .gb-floating-menu.dropdown-menu > li > a.btn-danger {
    color: #dc2626 !important;
}
body .gb-floating-menu.dropdown-menu > li > a.delete .gb-menu-label,
body .gb-floating-menu.dropdown-menu > li > a.btn-danger .gb-menu-label {
    color: #dc2626 !important;
}
.gb-floating-menu.dropdown-menu > li > a.btn-danger,
.gb-floating-menu.dropdown-menu > li > a.delete {
    color: #dc2626 !important;
    border-top: 1px solid #f1f3f5 !important;
    margin-top: 4px !important;
    padding-top: 11px !important;
}
.gb-floating-menu.dropdown-menu > li > a.btn-danger .fa,
.gb-floating-menu.dropdown-menu > li > a.delete .fa {
    color: #dc2626 !important;
}
body .gb-floating-menu.dropdown-menu > li > a.btn-danger:hover,
body .gb-floating-menu.dropdown-menu > li > a.delete:hover,
body.skin-blue .gb-floating-menu.dropdown-menu > li > a.delete:hover,
body.skin-blue .gb-floating-menu.dropdown-menu > li > a.btn-danger:hover {
    background: #fef2f2 !important;
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}

/* SVG icon (Heroicons-outline) swapped in for legacy FA/Glyphicon inside
 * the two dropdown menus. Uniform 20x20 column so rows align even when
 * some items still render the legacy <i> icon (unmatched in the map). */
.sw-overflow-menu-list .gb-menu-svg-icon,
.sw-overflow-menu-list .fa,
.sw-overflow-menu-list .glyphicon,
.sw-overflow-menu-list > li > .btn > i,
.sw-overflow-menu-list > li > .dropdown > .btn > i,
.sw-overflow-menu-list > li > .btn-group > .btn > i {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    stroke-width: 2;
    color: #6b7280;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-size: 15px !important;
    line-height: 1 !important;
}
.gb-floating-menu.dropdown-menu > li > a:hover .gb-menu-svg-icon,
.sw-overflow-menu-list > li > .btn:hover .gb-menu-svg-icon {
    color: #111827;
}
.gb-floating-menu.dropdown-menu > li > a.btn-danger .gb-menu-svg-icon,
.gb-floating-menu.dropdown-menu > li > a.delete .gb-menu-svg-icon {
    color: #b91c1c;
}

/* ---------- Row Options button — GoBilling-style kebab + menu ----------
 * The CGridView DropDownButtonColumn renders:
 *   td.options > .btn-group.dropup.dropdown-button-column
 *     > button.btn.btn-primary.btn-flat.dropdown-toggle  (the trigger)
 *     > ul.dropdown-menu > li > a.btn.btn-primary.btn-flat
 * We restyle the trigger as a light ghost kebab and the menu as a
 * rounded white panel with icon + label rows.
 */
.gb-lists-page .gb-cgrid td.options {
    text-align: right;
    position: relative;
    overflow: visible;
}

/* Let row-action dropdowns escape every container between the kebab and
 * the viewport — otherwise they get clipped at the bottom. */
.gb-lists-page .box,
.gb-lists-page .box-body,
.gb-lists-page .gb-table-body,
.gb-lists-page .gb-cgrid,
.gb-lists-page .gb-cgrid > tbody,
.gb-lists-page .gb-cgrid > tbody > tr {
    overflow: visible !important;
}

/* Trigger button: hide cog, show kebab, light ghost look */
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .btn.dropdown-toggle {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    position: relative;
}
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .btn.dropdown-toggle:hover,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column.open > .btn.dropdown-toggle {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #000 !important;
}
/* Hide the original cog icon and inject a kebab via mask */
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .btn.dropdown-toggle > .fa,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .btn.dropdown-toggle > i {
    display: none !important;
}
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .btn.dropdown-toggle::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #000;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><circle cx='12' cy='5' r='2'/><circle cx='12' cy='12' r='2'/><circle cx='12' cy='19' r='2'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><circle cx='12' cy='5' r='2'/><circle cx='12' cy='12' r='2'/><circle cx='12' cy='19' r='2'/></svg>");
}

/* Dropdown panel: override inline min-width/margin-left that the widget
 * sets, open downward-right (not dropup), match GoBilling rounded panel. */
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu {
    display: none;
    position: absolute;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    bottom: auto !important;
    margin: 6px 0 0 0 !important;
    min-width: 220px !important;
    width: auto !important;
    max-width: 280px;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 6px 0 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    background: #fff !important;
    z-index: 1050;
    list-style: none;
}
.gb-lists-page .gb-cgrid td.options .dropdown-button-column.open > .dropdown-menu {
    display: block;
}

/* Each item: icon + label row, override AdminLTE's .btn chrome */
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100%;
}
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.btn,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.btn-primary,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.btn.btn-primary.btn-flat {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #111827 !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: none !important;
    text-align: left !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    height: auto !important;
    min-width: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    white-space: nowrap;
}
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a:hover,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a:focus,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.btn:hover,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.btn-primary:hover {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    color: #111827 !important;
}
/* Show the icon inside the anchor (the widget renders just an icon as the
 * anchor's body). FA and glyphicon have different intrinsic widths/baselines,
 * so pin everything to a fixed 16px square box and center the glyph inside.
 * Use inline-flex on the icon so the glyph is centered horizontally inside
 * the box regardless of font metrics (e.g. glyphicon-random has wide-arrows
 * kerning that otherwise pushes the visible glyph past the box left edge). */
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a .fa,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a .glyphicon,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    color: #6b7280 !important;
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    top: 0 !important;
    left: 0 !important;
    position: static !important;
    vertical-align: middle !important;
    flex: 0 0 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0;
}
/* Glyphicons render the actual character via a ::before pseudo that has its
 * own intrinsic width (Bootstrap sets position:relative top:1px and family
 * "Glyphicons Halflings"). Force the pseudo to fill the 16px box so wide
 * glyphs (random, transfer, etc.) align with FA icons. */
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a .glyphicon::before {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    position: static !important;
}
/* The JS snippet injects a <span class="gb-menu-label"> with the readable
 * label text beside the icon. Make sure it's visible and formatted. */
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a .gb-menu-label {
    display: inline-block;
    color: inherit;
    font-weight: 500;
    font-size: 13.5px;
    white-space: nowrap;
}

/* Delete item: red (CButtonColumn renders delete with class="delete" on the anchor) */
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.btn-danger,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.delete {
    color: #dc2626 !important;
    border-top: 1px solid #f1f3f5 !important;
    margin-top: 4px !important;
    padding-top: 11px !important;
}
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.btn-danger .fa,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.delete .fa {
    color: #dc2626 !important;
}
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.btn-danger:hover,
.gb-lists-page .gb-cgrid td.options .dropdown-button-column > .dropdown-menu > li > a.delete:hover {
    background: #fef2f2 !important;
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}

/* Suppress any stray caret icons around the page-size widget */
.gb-lists-page .grid-footer-pagination .caret,
.gb-lists-page .grid-footer-pagination .fa-caret-up,
.gb-lists-page .grid-footer-pagination .fa-caret-down {
    display: none !important;
}

/* ---------- Kill double borders around the table ----------
 * .gb-table-wrap has its own rounded border; make sure the inner
 * .table-responsive, .grid-view and tfoot don't add a second one.
 */
.gb-lists-page .gb-table-wrap .table-responsive,
.gb-lists-page .gb-table-wrap .grid-view {
    border: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
/* AdminLTE's .box-body .table-responsive forces margin-bottom:15px,
 * overflow-x:scroll, and padding-top:5px — those stack under the grid and
 * produce the "double line" strip at the bottom of the card. Override. */
.gb-lists-page .gb-table-wrap .table-responsive {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
/* Match the table's bottom corners to the wrapper's rounded corners so
 * the table's square edge doesn't peek out past the rounded wrapper
 * border and create a "broken line" at the bottom corners. */
.gb-lists-page .gb-table-wrap .gb-table {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
}
.gb-lists-page .gb-table-wrap .gb-table > tbody > tr:last-child > td:first-child,
.gb-lists-page .gb-table-wrap .gb-table > tfoot > tr:last-child > td:first-child {
    border-bottom-left-radius: 10px;
}
.gb-lists-page .gb-table-wrap .gb-table > tbody > tr:last-child > td:last-child,
.gb-lists-page .gb-table-wrap .gb-table > tfoot > tr:last-child > td:last-child {
    border-bottom-right-radius: 10px;
}

/* CGridView renders a tfoot with an empty row when `footer` is set on any
 * column (the subscribers grid uses footer for pagination). That empty
 * footer row shows as a "ghost" border strip beneath the last body row. */
.gb-lists-page .gb-cgrid > tfoot,
.gb-lists-page .gb-cgrid > tfoot > tr,
.gb-lists-page .gb-cgrid > tfoot > tr > td {
    background: transparent !important;
    border: 0 !important;
}
.gb-lists-page .gb-cgrid > tfoot > tr > td {
    padding: 8px 16px !important;
}

/* Last body row: no border, so the outer container's border is the only one. */
.gb-lists-page .gb-cgrid > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.gb-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 14px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #eef0f3;
    align-items: flex-end;
}
.gb-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
    flex: 1 1 140px;
}
.gb-filter-field > label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}
.gb-filter-field input[type="text"],
.gb-filter-field select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    height: 36px;
    line-height: 1.2;
    box-shadow: none;
    margin: 0;
    box-sizing: border-box;
}
.gb-filter-field input[type="text"]:focus,
.gb-filter-field select:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.gb-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
}
.gb-filter-actions .gb-btn-ghost {
    height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
}

/* ---------- CGridView-specific adjustments ----------
 * CGridView wraps itself in a div with class "grid-view" and renders its own
 * filter row, sort links, empty message, and pager. These rules make its
 * generated markup play nicely with the .gb-table styles above.
 */
.gb-table-wrap .grid-view {
    padding: 0;
    margin: 0;
    background: transparent;
}
.gb-table-wrap .grid-view .empty {
    padding: 48px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    background: #fff;
    border-top: 1px solid #f1f3f5;
}
.gb-table-wrap .grid-view .summary {
    padding: 10px 16px;
    color: #6b7280;
    font-size: 13px;
}
/* Sort links inside headers */
.gb-cgrid > thead > tr > th a.sort-link,
.gb-cgrid > thead > tr > th a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.gb-cgrid > thead > tr > th a.asc::after { content: " ↑"; color: #111827; }
.gb-cgrid > thead > tr > th a.desc::after { content: " ↓"; color: #111827; }

/* CGridView filter row — its cells have class "filter" via filterCssClass */
.gb-cgrid > tbody > tr.filters > td,
.gb-cgrid > thead > tr.filters > td,
.gb-cgrid > tbody > tr > td.grid-filter-cell {
    background: #fff;
    padding: 8px 16px;
    border-bottom: 1px solid #eef0f3;
}
.gb-cgrid input[type="text"],
.gb-cgrid select {
    width: 100%;
    min-width: 80px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    height: auto;
    box-shadow: none;
}

/* DropDownButtonColumn (row actions) — restyle the cog-style button group
 * inside CGridView so it looks like a kebab. */
.gb-cgrid td.options .btn-group > .btn.dropdown-toggle,
.gb-cgrid td.options > .btn.dropdown-toggle {
    background: transparent;
    border: 0;
    color: #6b7280;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    box-shadow: none;
}
.gb-cgrid td.options .btn-group > .btn.dropdown-toggle:hover,
.gb-cgrid td.options .btn-group.open > .btn.dropdown-toggle {
    background: #f3f4f6;
    color: #111827;
}
.gb-cgrid td.options .btn-group .dropdown-menu {
    min-width: 180px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* CGridView pager — it renders a <ul class="pagination gb-pager"> */
.gb-table-wrap .gb-pager {
    margin: 12px 16px;
    display: inline-block;
}
.gb-table-wrap .gb-pager > li > a,
.gb-table-wrap .gb-pager > li > span {
    color: #374151;
    border: 1px solid #e5e7eb;
    margin-left: 4px;
    border-radius: 6px !important;
    padding: 5px 10px;
    font-size: 13px;
    background: #fff;
}
.gb-table-wrap .gb-pager > li.selected > a,
.gb-table-wrap .gb-pager > li.selected > span,
.gb-table-wrap .gb-pager > li > a:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

/* ---------- Small tweaks: hide old AdminLTE box chrome when inside gb-table-wrap ---------- */
.gb-table-wrap .box {
    box-shadow: none;
    border: 0;
    margin: 0;
    background: transparent;
}
.gb-table-wrap .box-header {
    display: none;
}
.gb-table-wrap .box-body {
    padding: 0;
}

/* ---------- GoBilling Select2 skin (theme: "gb") ----------
 * Applied via .gb-select opt-in class — wraps native <select> with Select2
 * so the dropdown always opens downward (or auto-flips when clipped), with
 * keyboard nav + a11y baked in. Styled to match gb-table pills.
 */
.select2-container--gb .select2-selection--single {
    height: 32px;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.select2-container--gb.select2-container--focus .select2-selection--single,
.select2-container--gb.select2-container--open .select2-selection--single {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.select2-container--gb .select2-selection--single .select2-selection__rendered {
    flex: 1;
    min-width: 0;
    line-height: 32px;
    padding: 2px 28px 0 12px;
    font-size: 13px;
    color: #111827;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}
.select2-container--gb .select2-selection--single .select2-selection__rendered > * {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
/* Specificity boosters — adminlte/skin-blue ship rules like
 * `.skin-blue .select2-selection .select2-selection--single` and
 * `.select2-container .select2-selection--single .select2-selection__rendered`
 * that win against our defaults on the backend. Re-state the gb theme on
 * .skin-blue so the modern menu wins everywhere.
 */
body.skin-blue .select2-container--gb .select2-selection--single,
body .select2-container--gb .select2-selection--single {
    height: 32px;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    padding: 0;
    color: #111827;
}
body.skin-blue .select2-container--gb .select2-selection--single .select2-selection__rendered,
body .select2-container--gb .select2-selection--single .select2-selection__rendered {
    flex: 1;
    min-width: 0;
    height: auto;
    margin-top: 0;
    line-height: 32px;
    padding: 0 28px 0 12px;
    font-size: 13px;
    color: #111827;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}
body.skin-blue .select2-container--gb .select2-selection--single .select2-selection__arrow,
body .select2-container--gb .select2-selection--single .select2-selection__arrow {
    height: 30px;
    width: 26px;
    right: 2px;
}
.select2-container--gb .select2-selection--single .select2-selection__placeholder {
    color: #6b7280;
}
.select2-container--gb .select2-selection--single .select2-selection__arrow {
    position: absolute;
    height: 30px !important;
    width: 26px !important;
    right: 2px !important;
    top: 50% !important;
    transform: translateY(-50%);
    background: transparent !important;
    pointer-events: none;
}
.select2-container--gb .select2-selection--single .select2-selection__arrow b {
    border: none !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
    transition: transform .15s ease;
}
.select2-container--gb.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: translate(-50%, -50%) rotate(180deg);
}
.select2-container--gb .select2-selection--single .select2-selection__clear {
    margin-right: 22px;
    color: #6b7280;
}

/* Dropdown panel */
.select2-container--gb .select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 6px 10px -5px rgba(0, 0, 0, 0.06);
    background: #fff;
    overflow: hidden;
    margin-top: 4px;
}
/* Cap the dropdown width on small viewports so a 425-option timezone
 * dropdown can't stretch absurdly wide. */
.select2-container--gb.select2-container--open .select2-dropdown {
    max-width: 90vw;
}
.select2-container--gb .select2-dropdown--above {
    margin-top: 0;
    margin-bottom: 4px;
}
.select2-container--gb .select2-search--dropdown {
    padding: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.select2-container--gb .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
    width: 100%;
}
.select2-container--gb .select2-search--dropdown .select2-search__field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.select2-container--gb .select2-results__options {
    padding: 4px;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide the visible scrollbar track but keep the wheel/touch scroll. */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/old Edge */
}
.select2-container--gb .select2-results__options::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}
.select2-container--gb .select2-results__option {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #111827;
    line-height: 1.3;
}
.select2-container--gb .select2-results__option--highlighted[aria-selected],
.select2-container--gb .select2-results__option--highlighted {
    background: #eff6ff;
    color: #1d4ed8;
}
.select2-container--gb .select2-results__option[aria-selected=true] {
    background: #f3f4f6;
    color: #111827;
    font-weight: 500;
}
.select2-container--gb .select2-results__option[aria-selected=true].select2-results__option--highlighted {
    background: #eff6ff;
    color: #1d4ed8;
}
.select2-container--gb .select2-results__message {
    padding: 8px 12px;
    color: #6b7280;
    font-size: 13px;
}

/* ---------- Multi-select variant ---------- */
.select2-container--gb .select2-selection--multiple,
body.skin-blue .select2-container--gb .select2-selection--multiple {
    min-height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    padding: 2px 28px 2px 4px;
    box-shadow: none;
    cursor: text;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    position: relative;
}
.select2-container--gb.select2-container--focus .select2-selection--multiple,
.select2-container--gb.select2-container--open .select2-selection--multiple {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.select2-container--gb .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    line-height: 1;
}
.select2-container--gb .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    padding: 2px 6px 2px 8px;
    font-size: 12px;
    line-height: 1.4;
    margin: 2px 0;
    max-width: 100%;
}
.select2-container--gb .select2-selection--multiple .select2-selection__choice__remove {
    color: #1d4ed8;
    margin-right: 4px;
    margin-left: 0;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}
.select2-container--gb .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #b91c1c;
    background: transparent;
}
.select2-container--gb .select2-selection--multiple .select2-search--inline {
    flex: 1;
    min-width: 60px;
}
.select2-container--gb .select2-selection--multiple .select2-search--inline .select2-search__field {
    border: 0;
    outline: 0;
    background: transparent;
    padding: 4px 6px;
    margin: 0;
    font-size: 13px;
    color: #111827;
    line-height: 1.2;
    height: 24px;
    box-shadow: none;
    width: auto !important;
    min-width: 60px;
}
.select2-container--gb .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
    color: #9ca3af;
}
/* Dropdown chevron for the multi-select trigger (so it visually matches
 * the single variant). Select2 doesn't render an arrow for multi by
 * default, so add one via pseudo-element. */
.select2-container--gb .select2-selection--multiple::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    transition: transform .15s ease;
}
.select2-container--gb.select2-container--open .select2-selection--multiple::after {
    transform: translateY(-50%) rotate(180deg);
}
.select2-container--gb .select2-selection--multiple .select2-selection__clear {
    display: none;
}

/* Hide the native chevron on selects that were promoted to Select2 */
.gb-lists-page select.gb-select.select2-hidden-accessible {
    background-image: none !important;
}

/* Bulkbar-specific sizing for the Select2 container */
.gb-bulkbar .bulk-selected-options .select2-container--gb {
    min-width: 200px;
}

/* ---------- Page heading nav-icon SVG ----------
 * IconHelper::make('nav:*') emits a stroke SVG (same set the sidebar uses) so
 * the icon beside the box title matches the left-nav entry. Size it inline
 * with the title baseline and inherit the heading color. */
.gb-lists-page .box-title .page-heading-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    display: inline-block;
    vertical-align: -4px;
    margin-right: 8px;
    color: inherit;
}

/* ---------- GoBilling confirm dialog ---------- */
/* Global (not scoped under .gb-table-wrap) because the dialog attaches to
 * <body> so it can escape any ancestor overflow. */
.gb-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10050;
    opacity: 0;
    transition: opacity 150ms ease;
    padding: 16px;
}
.gb-confirm-overlay.is-open {
    opacity: 1;
}
.gb-confirm-dialog {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 440px;
    font-size: 14px;
    color: #111827;
    transform: translateY(-8px);
    transition: transform 150ms ease;
}
.gb-confirm-overlay.is-open .gb-confirm-dialog {
    transform: translateY(0);
}
.gb-confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
}
.gb-confirm-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}
.gb-confirm-close {
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 4px;
}
.gb-confirm-close:hover {
    color: #4b5563;
}
.gb-confirm-body {
    padding: 18px;
}
.gb-confirm-message {
    margin: 0;
    line-height: 1.5;
    color: #374151;
}
.gb-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px 16px;
    border-top: 1px solid #f3f4f6;
}
.gb-confirm-footer .btn {
    border-radius: 8px;
    padding: 7px 16px;
    font-weight: 500;
}

/* Modal header/footer: white bg, black text, subtle divider.
 * `body.skin-blue` prefix matches the skin stylesheet's specificity. */
body.skin-blue .modal-info .modal-header,
body.skin-blue .modal-primary .modal-header,
body.skin-blue .modal-success .modal-header,
body.skin-blue .modal-warning .modal-header,
body.skin-blue .modal-danger .modal-header,
body.skin-blue .modal-info .modal-footer,
body.skin-blue .modal-primary .modal-footer,
body.skin-blue .modal-success .modal-footer,
body.skin-blue .modal-warning .modal-footer,
body.skin-blue .modal-danger .modal-footer {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb;
}
body.skin-blue .modal-info .modal-body,
body.skin-blue .modal-primary .modal-body,
body.skin-blue .modal-success .modal-body,
body.skin-blue .modal-warning .modal-body,
body.skin-blue .modal-danger .modal-body {
    background-color: #ffffff !important;
    color: #111827 !important;
}
body.skin-blue .modal-info .modal-header .close,
body.skin-blue .modal-primary .modal-header .close,
body.skin-blue .modal-success .modal-header .close,
body.skin-blue .modal-warning .modal-header .close,
body.skin-blue .modal-danger .modal-header .close {
    color: #111827 !important;
    text-shadow: none;
    opacity: 0.6;
}
body.skin-blue .modal-info .modal-header .close:hover,
body.skin-blue .modal-primary .modal-header .close:hover,
body.skin-blue .modal-success .modal-header .close:hover,
body.skin-blue .modal-warning .modal-header .close:hover,
body.skin-blue .modal-danger .modal-header .close:hover {
    opacity: 1;
}
