/* ==========================================================================
   Admin Page General Styles
   ========================================================================== */

.wrap.otm-admin-page h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.wrap.otm-admin-page h1 img {
    height: 40px;
    width: 40px;
}

/* ==========================================================================
   Layout and Cards
   ========================================================================== */

.otm-admin-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

.otm-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.otm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.otm-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    margin-bottom: 20px;
}

.otm-card:last-child {
    margin-bottom: 0;
}

.otm-card .otm-card-header {
    padding: 12px 20px;
    border-bottom: 1px solid #ccd0d4;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.otm-card .otm-card-body {
    padding: 20px;
}

.otm-card .otm-card-body p.description {
    font-size: 13px;
    color: #646970;
    margin-top: 0;
    /* Add this */
}

.otm-card .otm-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #ccd0d4;
    background: #f6f7f7;
    text-align: right;
}

.otm-card .otm-subheading {
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 10px;
    padding: 0;
}

.otm-card .otm-subheading:first-child {
    margin-top: 0;
}

/* ==========================================================================
   Forms and Controls
   ========================================================================== */

.otm-form-group {
    margin-bottom: 20px;
}

.otm-form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.otm-form-group .regular-text {
    width: 100%;
}

.otm-license-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#otm-license-spinner {
    margin-left: 5px;
}

.otm-license-status {
    margin-top: 10px;
    font-weight: 600;
}

.otm-license-status .active {
    color: #2271b1;
}

.otm-license-status .inactive {
    color: #d63638;
}

/* ==========================================================================
   OTM Admin Page Theme (nav tabs, cards, sortable, buttons)
   ========================================================================== */

/* Main nav tabs: Manager Settings, Users, Order Blocker, etc. */
.wrap.otm-admin-page .nav-tab-wrapper {
    margin-bottom: 24px;
    border-bottom: 1px solid #b6d4fe;
    padding-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.wrap.otm-admin-page .nav-tab {
    padding: 8px 12px;
    margin-bottom: -1px;
    background: #e8f4fc;
    border: 1px solid #b6d4fe;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: #0a58ca;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(13, 110, 253, 0.06);
}

.wrap.otm-admin-page .nav-tab:hover {
    background: #cfe2ff;
    border-color: #9ec5fe;
    color: #084298;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.12);
}

.wrap.otm-admin-page .nav-tab-active {
    background: #0d6efd;
    border-color: #0d6efd;
    border-bottom: 1px solid #fff;
    color: #fff;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.wrap.otm-admin-page .nav-tab-active:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.35);
}

/* Cards: subtle blue-tinted border and header */
.wrap.otm-admin-page .otm-card {
    border-color: #b6d4fe;
    box-shadow: 0 1px 3px rgba(13, 110, 253, 0.06);
}

.wrap.otm-admin-page .otm-card .otm-card-header {
    background: #e8f4fc;
    border-bottom-color: #b6d4fe;
    color: #0a58ca;
}

.wrap.otm-admin-page .otm-card .otm-card-footer {
    background: #f0f6ff;
    border-top-color: #b6d4fe;
}

/* Sortable lists (Tab Settings, columns, etc.) */
.wrap.otm-admin-page .otm-sortable-list,
.wrap.otm-admin-page .otm-unified-list {
    border-color: #9ec5fe;
    background: #f8fbff;
    border-radius: 6px;
}

.wrap.otm-admin-page .otm-sortable-list li,
.wrap.otm-admin-page .otm-unified-list li {
    border-color: #b6d4fe;
    background: #fff;
    box-shadow: 0 1px 2px rgba(13, 110, 253, 0.08);
}

.wrap.otm-admin-page .otm-sortable-list li:hover,
.wrap.otm-admin-page .otm-unified-list li:hover {
    background: #e8f4fc;
    border-color: #9ec5fe;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.12);
}

.wrap.otm-admin-page .otm-sortable-list li .edit-column-icon,
.wrap.otm-admin-page .otm-unified-list li .edit-column-icon {
    color: #0d6efd;
}

.wrap.otm-admin-page .otm-sortable-list li .edit-column-icon:hover,
.wrap.otm-admin-page .otm-unified-list li .edit-column-icon:hover {
    color: #0b5ed7;
}

.wrap.otm-admin-page .otm-sortable-list li .drag-handle .dashicons,
.wrap.otm-admin-page .otm-unified-list li .drag-handle .dashicons {
    color: #0a58ca;
}

.wrap.otm-admin-page .otm-sortable-list li .drag-handle:hover .dashicons,
.wrap.otm-admin-page .otm-unified-list li .drag-handle:hover .dashicons {
    color: #0d6efd;
}

/* All-items box (e.g. "Select all" area) */
.wrap.otm-admin-page .otm-all-items {
    background: #f8fbff;
    border-color: #b6d4fe;
    border-radius: 6px;
}

/* Primary buttons on admin page */
.wrap.otm-admin-page .button-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 0px 12px;
    border-radius: 5px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wrap.otm-admin-page .button-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
}

/* Reset / Danger buttons (all admin pages) */
.wrap.otm-admin-page .button-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 5px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wrap.otm-admin-page .button-danger:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
    color: #fff;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.wrap.otm-admin-page .button-danger:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(220, 53, 69, 0.5);
}

/* Default / secondary actions: .button (Apply, Create New Status, Upload Logo, Check Balances, etc.) */
.wrap.otm-admin-page .button:not(.button-primary):not(.button-danger) {
    background: #fff;
    border: 1px solid #b6d4fe;
    color: #0a58ca;
    font-weight: 500;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 5px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wrap.otm-admin-page .button:not(.button-primary):not(.button-danger):hover {
    background: #e8f4fc;
    border-color: #0d6efd;
    color: #084298;
    box-shadow: 0 1px 3px rgba(13, 110, 253, 0.15);
}

.wrap.otm-admin-page .button:not(.button-primary):not(.button-danger):focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(13, 110, 253, 0.4);
}

.wrap.otm-admin-page .button:not(.button-primary):not(.button-danger):disabled,
.wrap.otm-admin-page .button:not(.button-primary)[disabled] {
    background: #f0f0f1;
    border-color: #c3c4c7;
    color: #a7aaad;
    cursor: not-allowed;
    box-shadow: none;
}

.wrap.otm-admin-page .button-primary:disabled,
.wrap.otm-admin-page .button-primary[disabled] {
    background: #8cb3f7;
    border-color: #8cb3f7;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.85;
}

/* Explicit secondary (e.g. Authenticate & Fetch Stores) – same as default for consistency */
.wrap.otm-admin-page .button-secondary {
    background: #fff;
    border: 1px solid #b6d4fe;
    color: #0a58ca;
}

.wrap.otm-admin-page .button-secondary:hover {
    background: #e8f4fc;
    border-color: #0d6efd;
    color: #084298;
}

/* Small buttons (Edit, Delete in lists, bulk actions in tables) */
.wrap.otm-admin-page .button-small {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

.wrap.otm-admin-page .button-small.button-danger {
    padding: 4px 10px;
    font-size: 12px;
}

/* Large primary (e.g. Save All Settings full width) – only slightly larger than default */
.wrap.otm-admin-page .button-large {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 5px;
}

.wrap.otm-admin-page .button-primary.button-large:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

/* Modal close (×) on admin page */
.wrap.otm-admin-page .otm-modal-close {
    color: #0a58ca;
    background: #e8f4fc;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.wrap.otm-admin-page .otm-modal-close:hover {
    color: #084298;
    background: #cfe2ff;
}

.wrap.otm-admin-page .otm-form-group label {
    color: #1d2327;
}

.wrap.otm-admin-page .otm-edit-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 1px #0d6efd;
}

/* Accordion card headers (e.g. SMS tab) */
.wrap.otm-admin-page .otm-accordion-card .otm-card-header.active {
    background: #e8f4fc;
    border-bottom-color: #b6d4fe;
}

.wrap.otm-admin-page .otm-accordion-card .otm-card-header.active .otm-accordion-arrow {
    color: #0a58ca;
}

/* Inner tab links (e.g. SMS: Order Notifications / Abandoned Cart) */
.wrap.otm-admin-page .otm-tab-link {
    color: #0a58ca;
    border-color: transparent;
}

.wrap.otm-admin-page .otm-tab-link:hover {
    color: #084298;
    background: #e8f4fc;
}

.wrap.otm-admin-page .otm-tab-link.active {
    color: #0d6efd;
    font-weight: 600;
    background: #fff;
    border-color: #b6d4fe;
    border-bottom-color: #fff;
}

/* ==========================================================================
   Tabs and Sortables (base)
   ========================================================================== */

.nav-tab-wrapper {
    margin-bottom: 20px;
}

.otm-all-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #fcfcfc;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 15px;
}

.otm-all-items label {
    display: flex;
    align-items: center;
    gap: 5px;
    width: calc(33.33% - 10px);
}

.otm-sortable-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 50px;
    border: 1px dashed #ccd0d4;
    background: #fff;
    border-radius: 4px;
}

.otm-sortable-list li {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #dcdcde;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
    box-shadow: 0px 1px 3px 0px rgba(23, 57, 97, 0.3);
    border-radius: 5px;
    justify-content: space-between;
}

.otm-sortable-list li:hover {
    background: #e9e9e9;
}

.otm-sortable-list li .drag-handle {
    cursor: move;
    color: #000000;
}

.otm-sortable-list li .column-label {
    flex-grow: 1;
}

.otm-sortable-list li .edit-column-icon {
    cursor: pointer;
    color: #2271b1;
    margin-left: 5px;
}

.otm-sortable-list li .dashicons {
    font-size: 20px;
    line-height: 1;
}

.otm-sortable-list li .drag-handle:hover,
.otm-sortable-list li .edit-column-icon:hover {
    opacity: 0.7;
}

.otm-edit-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #8c8f94;
    border-radius: 2px;
    box-shadow: 0 0 0 1px transparent;
    transition: box-shadow 0.1s ease-in-out;
}

.otm-edit-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* ==========================================================================
   Toggle Switch Styles
   ========================================================================== */

.otm-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.otm-toggle-switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
}

.otm-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.otm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.otm-slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

input:checked+.otm-slider {
    background-color: #0d6efd;
}

input:focus+.otm-slider {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.4);
}

input:checked+.otm-slider:before {
    transform: translateX(14px);
}

/* ==========================================================================
   Unified List Styles for Tabs & Columns
   ========================================================================== */

.otm-unified-list {
    /* Re-establish the wrapping flexbox layout */
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 50px;
    border: 1px dashed #ccd0d4;
    background: #fff;
    border-radius: 4px;
}

.otm-unified-list li {
    /* Keep the inner flexbox for ordering */
    gap: 5px;
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #dcdcde;
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
    box-shadow: 0px 1px 3px 0px rgba(23, 57, 97, 0.3);
    border-radius: 5px;
    width: 250px;
}

.otm-unified-list li .drag-handle {
    order: 1;
    cursor: move;
    color: #000000;
    display: flex;
    align-items: center;
}

.otm-unified-list li .otm-toggle-switch {
    order: 2;
    flex-shrink: 0;
}

.otm-unified-list li .edit-column-icon {
    order: 3;
    cursor: pointer;
    color: #2271b1;
}

.otm-unified-list li .otm-item-label {
    order: 4;
    flex-grow: 1;
    /* Allow label to take up space */
    margin-left: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.otm-unified-list li .column-label-text {
    flex: 1;
}

.otm-unified-list li .otm-profit-loss-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #2271b1;
    background: #e7f1ff;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: help;
    white-space: nowrap;
    line-height: 1.4;
}

.otm-bulk-actions {
    margin-bottom: 15px;
    padding-left: 5px;
    margin-top: 15px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 960px) {
    .otm-admin-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 782px) {
    .otm-all-items label {
        width: calc(50% - 10px);
    }
}

.otm-toggle-container strong {
    font-size: 16px;
}



/* Custom Order Statuses section */
.otm-custom-status-creator {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.otm-custom-status-input {
    width: 260px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.otm-custom-status-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.otm-custom-status-list {
    margin-top: 4px;
}

.otm-custom-status-empty {
    text-align: center;
    padding: 32px 20px;
    background: #f6f7f7;
    border: 1px dashed #c3c4c7;
    border-radius: 4px;
    color: #646970;
}

.otm-custom-status-empty-icon {
    display: block;
    font-size: 32px;
    line-height: 1;
    color: #c3c4c7;
    margin-bottom: 10px;
}

.otm-custom-status-empty p {
    margin: 0;
    font-size: 14px;
}

.otm-custom-status-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.otm-custom-status-table thead {
    background: #f6f7f7;
}

.otm-custom-status-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #50575e;
    border-bottom: 1px solid #dcdcde;
}

.otm-custom-status-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.otm-custom-status-table tbody tr:last-child td {
    border-bottom: none;
}

.otm-custom-status-table tbody tr:hover {
    background: #f9f9f9;
}

.otm-custom-status-table .otm-custom-status-name {
    font-weight: 500;
    color: #1d2327;
}

.otm-custom-status-table .otm-custom-status-slug-cell code {
    font-size: 12px;
    padding: 4px 8px;
    background: #f0f0f1;
    border-radius: 3px;
    color: #50575e;
}

.otm-custom-status-actions-cell {
    white-space: nowrap;
}

.otm-custom-status-actions-cell .button {
    margin-right: 6px;
    margin-bottom: 0;
}

.otm-custom-status-actions-cell .button:last-child {
    margin-right: 0;
}

.otm-custom-status-actions-cell .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
}

.otm-custom-status-actions-cell .otm-delete-custom-status {
    color: #b32d2e;
    border-color: #b32d2e;
}

.otm-custom-status-actions-cell .otm-delete-custom-status:hover {
    color: #fff;
    background: #b32d2e;
    border-color: #b32d2e;
}

@media screen and (max-width: 782px) {
    .otm-custom-status-creator {
        flex-direction: column;
        align-items: stretch;
    }

    .otm-custom-status-input {
        width: 100%;
    }

    #otm-create-custom-status {
        width: 100%;
    }

    .otm-custom-status-table {
        display: block;
    }

    .otm-custom-status-table thead {
        display: none;
    }

    .otm-custom-status-table tbody tr {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid #dcdcde;
    }

    .otm-custom-status-table tbody tr.otm-custom-status-item td {
        display: block;
        padding: 4px 0;
        border: none;
    }

    .otm-custom-status-table tbody tr.otm-custom-status-item td:first-child {
        padding-top: 0;
        font-weight: 600;
    }

    .otm-custom-status-table tbody tr.otm-custom-status-item td:nth-child(2)::before {
        content: "Slug: ";
        color: #646970;
        font-size: 12px;
    }

    .otm-custom-status-table tbody tr.otm-custom-status-item .otm-custom-status-actions-cell {
        padding-top: 10px;
        padding-bottom: 0;
        border-top: 1px solid #eee;
        margin-top: 4px;
    }
}

.otm-color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.otm-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.otm-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
    transition: all 0.2s;
}

.otm-color-swatch:hover,
.otm-color-swatch.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px #0d6efd;
}

.otm-color-manual {
    display: flex;
    align-items: center;
    gap: 10px;
}

.otm-color-preview {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.otm-hex-input {
    width: 100px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Appearance section: grid + group cards */
.otm-appearance-intro {
    margin-bottom: 16px !important;
}

.otm-appearance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
    /* prevent collapsed cards from stretching when a sibling is expanded */
}

@media (max-width: 1024px) {
    .otm-appearance-grid {
        grid-template-columns: 1fr;
    }
}

.otm-appearance-group {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
}

.otm-appearance-group-head {
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #dcdcde;
}

.otm-appearance-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

.otm-appearance-group-body {
    padding: 12px;
}

.otm-appearance-group-body .color-picker-group {
    margin-bottom: 12px;
}

.otm-appearance-group-body .color-picker-group:last-child {
    margin-bottom: 0;
}

/* Collapsible group head */
.otm-appearance-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.otm-appearance-group-head:hover {
    background: #f6f7f7;
}

.otm-appearance-group-title {
    flex: 1;
}

.otm-appearance-group-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #1d2327;
    transition: transform 0.2s ease;
}

.otm-appearance-group:not(.otm-appearance-group-collapsed) .otm-appearance-group-arrow {
    transform: rotate(180deg);
}

.otm-appearance-group-collapsed .otm-appearance-group-body {
    display: none;
}

.otm-appearance-group-reset {
    font-size: 12px;
    padding: 2px 6px;
    margin: 0;
    border: none;
    background: none;
    color: #2271b1;
    cursor: pointer;
}

.otm-appearance-group-reset:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Modal Styles */
.otm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.otm-modal-content {
    background: #fff;
    padding: 24px;
    padding-top: 48px;
    border: 1px solid #b6d4fe;
    border-radius: 8px;
    width: 300px;
    position: relative;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.1), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.otm-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.otm-modal-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #b6d4fe;
    text-align: right;
}

/* Color Picker Trigger */
.otm-color-picker-trigger .otm-color-preview {
    cursor: pointer;
    border: 1px solid #ccc;
    width: 40px;
    height: 28px;
    border-radius: 4px;
}

/* ==========================================================================
   NEW: Order Blocker Redesign Styles
   ========================================================================== */

.otm-blocker-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
}

.otm-blocker-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.otm-blocker-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.otm-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Blocklist Management: full card body (search, bulk actions, table) */
.otm-blocklist-management-body {
    background: #f8fbff;
    border: 1px solid #b6d4fe;
    border-radius: 6px;
    padding: 20px;
    min-height: 120px;
}

.otm-blocklist-management-body .otm-list-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    margin-bottom: 16px;
}

.otm-blocklist-management-body .otm-list-controls .regular-text {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #b6d4fe;
    padding: 10px 12px;
}

.otm-blocklist-management-body .otm-list-controls .regular-text:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 1px #0d6efd;
    outline: none;
}

.otm-blocklist-management-body .otm-list-controls select {
    border-radius: 6px;
    border: 1px solid #b6d4fe;
}

.otm-blocklist-management-body .otm-list-controls .button {
    border-radius: 6px;
}

.otm-blocklist-management-body table.widefat {
    border: 1px solid #b6d4fe;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(13, 110, 253, 0.08);
}

.otm-blocklist-management-body table.widefat thead th {
    background: #e8f4fc;
    color: #0a58ca;
    border-color: #b6d4fe;
    font-weight: 600;
}

.otm-blocklist-management-body table.widefat tbody tr:hover {
    background: #e8f4fc;
}

.otm-blocklist-management-body table.widefat td,
.otm-blocklist-management-body table.widefat th {
    border-color: #b6d4fe;
}

.otm-list-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    margin-bottom: 15px;
}

.otm-list-controls .regular-text {
    width: 100%;
}

#otm-add-blocked-modal .otm-modal-content {
    width: 400px;
    max-width: calc(100vw - 32px);
}

#otm-add-blocked-modal .otm-modal-content h3 {
    margin-top: 0;
    color: #0a58ca;
    font-size: 1.1em;
}

#otm-add-blocked-modal textarea {
    min-height: 80px;
    resize: vertical;
    border-radius: 5px;
    border: 1px solid #b6d4fe;
}

#otm-add-blocked-modal textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 1px #0d6efd;
    outline: none;
}

.otm-blocker-sidebar .regular-text,
.otm-blocker-sidebar .widefat {
    width: 100%;
    box-sizing: border-box;
}

/* Fix for column editor layout shift */
.otm-unified-list li .otm-edit-input {
    flex-grow: 1;
    order: 4;
    margin-left: 5px;
}

@media screen and (max-width: 1200px) {
    .otm-blocker-layout {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 782px) {

    .otm-list-controls,
    .otm-blocklist-management-body .otm-list-controls {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Pagination for Admin Tables
   ========================================================================== */

.otm-blocker-main .pagination {
    margin-top: 15px;
    text-align: right;
}

.otm-blocker-main .page-button {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    color: #0073aa;
    background: #f3f5f6;
    border: 1px solid #0073aa;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.otm-blocker-main .page-button:hover {
    background: #f0f0f1;
    border-color: #0073aa;
    color: #0073aa;
}

.otm-blocker-main .page-button.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.otm-blocker-main .page-button.disabled {
    color: #a0a5aa;
    border-color: #dcdcde;
    background: #f6f7f7;
    cursor: default;
}

.otm-blocker-main .pagination .ellipsis {
    padding: 5px 12px;
    margin: 0 3px;
}

/* ==========================================================================
   NEW: SMS Tab Redesign Styles
   ========================================================================== */
.otm-accordion-card .otm-card-header {
    cursor: pointer;
    position: relative;
    font-size: 1.1em;
}

.otm-accordion-card .otm-card-header.active {
    background-color: #f6f7f7;
}

.otm-accordion-arrow {
    margin-right: 8px;
    transition: transform 0.2s ease-in-out;
}

.otm-accordion-card .otm-card-header.active .otm-accordion-arrow {
    transform: rotate(90deg);
}

#otm-sms-settings-wrapper.otm-disabled-section {
    opacity: 0.6;
    pointer-events: none;
}

.otm-status-template-card {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.otm-template-group {
    margin-bottom: 20px;
}

.otm-template-group:last-child {
    margin-bottom: 0;
}

.otm-template-group textarea {
    margin-top: 10px;
    display: none;
    /* Hidden by default, JS will show it */
}

/* ==========================================================================
   START: SMS Tab Redesign Styles V2
   ========================================================================== */

/* Balance Display */
.otm-balance-display {
    display: block;
    align-items: center;
    gap: 15px;
}

.otm-balance-label {
    font-weight: 600;
}

.otm-balance-value {
    font-size: 15px;
    font-weight: bold;
    color: #2271b1;
    border-radius: 4px;
}

/* Tabs */
.otm-tabs-wrapper {
    padding: 0;
}

.otm-tabs-nav {
    display: flex;
    border-bottom: 1px solid #ccd0d4;
    padding-left: 20px;
    padding-right: 20px;
}

.otm-tab-link {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: 0;
    margin-bottom: -1px;
    text-decoration: none;
    color: #50575e;
    font-weight: 600;
}

.otm-tab-link.active {
    background-color: #fff;
    border-color: #ccd0d4;
    border-bottom-color: #fff;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.otm-tabs-content {
    padding: 20px;
}

.otm-tab-pane {
    display: none;
}

.otm-tab-pane.active {
    display: block;
}

/* Placeholders */
.otm-placeholders-wrapper {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f6f7f7;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.otm-placeholder-tag {
    display: inline-block;
    background-color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
    font-size: 13px;
    transition: background-color 0.2s;
}

.otm-placeholder-tag:hover {
    background-color: #d0d0d0;
}

/* Status Table */
.otm-sms-status-table {
    margin-top: 20px;
}

.otm-sms-status-table th,
.otm-sms-status-table td {
    vertical-align: top;
    padding: 15px;
}

.otm-sms-status-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.otm-sms-status-table .otm-template-group .otm-toggle-container {
    margin-bottom: 10px;
    justify-content: space-between;
}

.otm-sms-status-table .otm-template-group .otm-toggle-container span {
    font-weight: 600;
}

.otm-admin-template-cell {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.otm-admin-template-cell.is-active {
    opacity: 1;
}

/* SMS Counter */
.otm-sms-counter {
    margin-top: 5px;
    font-size: 12px;
    color: #646970;
    text-align: right;
}

/* General SMS settings disabled state */
#otm-sms-settings-form[data-master-enabled="false"] .otm-tabs-content {
    opacity: 0.6;
    pointer-events: none;
}

/* Abandoned Cart: SMS Reminder Settings disabled when toggle is off */
#otm-abandoned-cart-settings-form[data-sms-reminders-enabled="false"] .otm-abandoned-cart-sms-settings-content {
    opacity: 0.6;
    pointer-events: none;
}

/* Allow placeholder tags to remain clickable (copy) even when section is disabled */
#otm-abandoned-cart-settings-form[data-sms-reminders-enabled="false"] .otm-abandoned-cart-sms-settings-content .otm-placeholders-wrapper {
    pointer-events: auto;
}

/* Individual template disabled state */
.otm-template-group.is-disabled {
    opacity: 0.6;
}

/* Tutorial Link */
.otm-tutorial-link {
    color: #0067ff !important;
    text-decoration: none;
    font-size: 17px;
    margin-left: 8px;
    transition: color 0.2s ease-in-out;
}

/* ==========================================================================
   Sohag Online OrderTracker Pro Dashboard Styles
   ========================================================================== */

/* Main Container & Layout */
.soom-admin-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    padding: 10px 20px 40px 0;
    max-width: 1400px;
    color: #0f172a;
}

/* Header Section */
.soom-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 24px 32px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 28px;
    border: 1px solid #cbd5e1;
    position: relative;
    overflow: hidden;
}
.soom-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(124,58,237,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.soom-logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.soom-logo-area .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #7c3aed;
    background: #f5f3ff;
    padding: 10px;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.soom-logo-area h1 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.3px;
}

.soom-version {
    background: #f3e8ff;
    border: 1px solid #d8b4fe;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #6d28d9;
    position: relative;
    z-index: 1;
}

/* Modern Pill Tabs Navigation */
.soom-nav-tabs {
    border-bottom: none !important;
    margin-bottom: 24px !important;
    padding: 5px !important;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px !important;
    display: inline-flex !important;
    gap: 4px !important;
    flex-wrap: wrap;
}

.soom-nav-tabs .nav-tab {
    background: transparent !important;
    border: none !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    border-radius: 10px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none;
}

.soom-nav-tabs .nav-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin: 0;
}

.soom-nav-tabs .nav-tab:hover {
    color: #6d28d9 !important;
    background: #f5f3ff !important;
}

.soom-nav-tabs .nav-tab-active,
.soom-nav-tabs .nav-tab-active:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(124,58,237,0.2);
}

/* Welcome Banner */
.soom-welcome-banner {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.soom-welcome-text h2 {
    margin: 0 0 6px 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a;
}

.soom-welcome-text p {
    margin: 0 !important;
    color: #64748b;
    font-size: 14px;
}

.soom-welcome-time {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* KPI Cards Layout */
.soom-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.soom-metric-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.soom-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.soom-metric-card .soom-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: none;
    padding: 0;
    background: transparent;
}

.soom-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.soom-icon-box .dashicons {
    color: #ffffff;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.soom-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.soom-card-body {
    padding: 0;
}

.soom-card-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.soom-card-desc {
    font-size: 12px;
    color: #94a3b8;
}

/* Card Borders & Colors */
.border-purple { border-left: 4px solid #9537FF; }
.border-blue { border-left: 4px solid #3b82f6; }
.border-orange { border-left: 4px solid #f97316; }
.border-green { border-left: 4px solid #10b981; }
.border-red { border-left: 4px solid #ef4444; }

.bg-purple { background: #9537FF; }
.bg-blue { background: #3b82f6; }
.bg-orange { background: #f97316; }
.bg-green { background: #10b981; }
.bg-red { background: #ef4444; }

.text-purple { color: #9537FF; }
.text-blue { color: #3b82f6; }
.text-orange { color: #f97316; }
.text-green { color: #10b981; }
.text-red { color: #ef4444; }

/* Split Charts and Tables */
.soom-dashboard-split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .soom-dashboard-split {
        grid-template-columns: 1fr;
    }
}

.soom-chart-card,
.soom-recent-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.soom-split-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 20px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.soom-split-title .dashicons {
    color: #9537FF;
}

/* Recent Orders Mini Table */
.soom-mini-table {
    width: 100%;
    border-collapse: collapse;
}

.soom-mini-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.soom-mini-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
}

.soom-mini-table tbody tr:hover td {
    background: #f8fafc;
}

/* Status Badges */
.soom-badge-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.soom-badge-status.status-processing { background: #dbeafe; color: #1e40af; }
.soom-badge-status.status-completed { background: #d1fae5; color: #065f46; }
.soom-badge-status.status-pending { background: #fef3c7; color: #92400e; }
.soom-badge-status.status-cancelled,
.soom-badge-status.status-failed { background: #fee2e2; color: #991b1b; }

.text-profit-green { color: #10b981; }
.text-loss-red { color: #ef4444; }

/* General Cards & Tables under other tabs */
.soom-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.soom-card h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.soom-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.soom-data-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    font-size: 13px;
}

.soom-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
}

.soom-data-table tbody tr:hover td {
    background: #f8fafc;
}

/* Modals & Popups styling */
.soom-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.soom-modal {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 24px !important;
    position: relative !important;
    animation: soomModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes soomModalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


.soom-modal-header h3 {
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* Forms controls matching Inter theme */
.soom-input,
.soom-select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #334155 !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

.soom-input:focus,
.soom-select:focus {
    border-color: #9537FF !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(149, 55, 255, 0.1) !important;
}

.soom-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer;
}

.soom-btn-primary {
    background: #9537FF !important;
    border-color: #9537FF !important;
    color: #ffffff !important;
}

.soom-btn-primary:hover {
    background: #7a22e0 !important;
    border-color: #7a22e0 !important;
}

/* Dashboard Summary Grid and Big Count Cards */
.soot-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 20px;
}

.soot-big-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    z-index: 1;
}

.soot-big-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 25px -5px rgba(149, 55, 255, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(149, 55, 255, 0.2) !important;
}

.soot-big-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(149,55,255,0.02) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.soot-big-card:hover::before {
    opacity: 1;
}

.soot-big-card .soom-icon-box {
    width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
    margin-bottom: 20px;
}

.soot-big-card .soom-icon-box .dashicons {
    font-size: 26px !important;
    width: 26px !important;
    height: 26px !important;
}

.soot-big-card .soom-card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #475569 !important;
}

.soot-big-card .soom-card-value {
    font-size: 42px !important;
    font-weight: 900 !important;
    letter-spacing: -1px;
    margin-bottom: 12px !important;
}

.soot-big-card .soom-card-desc {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500;
}

/* Dynamic Status Select Dropdowns */
.soom-order-status-select {
    padding: 6px 10px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border: none !important;
    cursor: pointer !important;
    width: 130px !important;
    text-align: center !important;
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.soom-status-select-processing { background: #dbeafe !important; color: #1e40af !important; }
.soom-status-select-completed  { background: #d1fae5 !important; color: #065f46 !important; }
.soom-status-select-pending    { background: #fef3c7 !important; color: #92400e !important; }
.soom-status-select-on-hold    { background: #ffe4e6 !important; color: #9f1239 !important; }
.soom-status-select-cancelled  { background: #fee2e2 !important; color: #991b1b !important; }
.soom-status-select-failed     { background: #f1f5f9 !important; color: #334155 !important; }
.soom-status-select-refunded   { background: #f3e8ff !important; color: #6b21a8 !important; }

/* Table Action Buttons Enhancement */
.soom-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding: 0 !important;
}
.soom-action-btn:hover {
    background: #9537FF !important;
    border-color: #9537FF !important;
    color: #ffffff !important;
    transform: scale(1.1);
    box-shadow: 0 4px 6px -1px rgba(149, 55, 255, 0.2);
}
.soom-action-btn .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* Ratio Badges container */
.soom-ratio-badge-container span {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}
.soom-ratio-badge-container span:hover {
    transform: scale(1.05);
}