/* Base Wizard Container */
.onepay-wizard-container {
	max-width: 1000px;
	background: #fff;
	padding: 30px;
	border: none;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-top: 20px;
}
.onepay-wizard-container .form-table {
	table-layout: fixed;
	width: 100%;
}
.onepay-wizard-tabs {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap; /* allow wrapping on small screens */
	border-bottom: 2px solid #f0f0f1;
	margin-bottom: 30px;
    justify-content: space-between;
}
.onepay-wizard-tabs li {
	padding: 12px 15px;
	cursor: pointer;
	color: #94a3b8;
	font-weight: 600;
	margin-bottom: -2px;
	border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
    flex: 1;
}
.onepay-wizard-tabs li.active {
	color: #6366f1;
	border-bottom: 2px solid #6366f1;
}
.onepay-wizard-tabs li:hover:not(.active) {
    color: #4f46e5;
    border-bottom: 2px solid #e2e8f0;
}

/* Wizard Steps */
.wizard-step {
	display: none;
	animation: slideUp 0.4s ease-out;
}
.wizard-step.active {
	display: block;
}

/* readonly */
.readonly-bg {
	background: #f8fafc;
}

/* Responsive Layout Utilities */
.onepay-container {
    padding: 15px;
    box-sizing: border-box;
}

/* Base Responsive Table Wrapper */
.op-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
}

/* Premium Buttons */
.button-primary, .button-secondary, .button {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 24px !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.button-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    color: white !important;
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4) !important;
}

/* Mobile Screens (up to 782px - WP Breakpoint) */
@media screen and (max-width: 782px) {
    .onepay-wizard-container {
        padding: 15px;
    }

    /* Stack Form Tables */
    .form-table, .form-table td, .form-table th {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .form-table th {
        padding: 15px 0 5px 0 !important;
        font-weight: 700;
    }
    .form-table td {
        padding: 5px 0 15px 0 !important;
    }
    .form-table input.regular-text, 
    .form-table select, 
    .form-table textarea {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 6px;
    }

    /* Improved Responsive Wizard Tabs */
    .onepay-wizard-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        border-bottom: none;
    }
    .onepay-wizard-tabs li {
        font-size: 13px;
        padding: 12px 10px;
        text-align: center;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 0;
        background: #f8fafc;
    }
    .onepay-wizard-tabs li.active {
        background: #0073aa;
        color: white;
        border-color: #0073aa;
        box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
    }

    /* Wrap Lists and Flex Grids */
    .op-grid, .flex-row {
        display: block !important;
    }
    .op-card, .postbox {
        margin-bottom: 20px !important;
        border-radius: 10px !important;
    }
    
    /* Responsive Wrapper for WP Lists */
    .wp-list-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
    }
}

/* Status Badges - Global */
.status-active, .status-tag.active {
	background: #ecfdf5;
	color: #059669;
	padding: 4px 10px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 11px;
    display: inline-block;
}
.status-inactive, .status-pending, .status-tag.pending {
	background: #fffbeb;
	color: #d97706;
	padding: 4px 10px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 11px;
    display: inline-block;
}
.status-rejected, .status-tag.rejected {
	background: #fef2f2;
	color: #dc2626;
	padding: 4px 10px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 11px;
    display: inline-block;
}

/* Tablet / Smaller Desktop (783px to 1024px) */
@media screen and (min-width: 783px) and (max-width: 1024px) {
    .onepay-wizard-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Grid and Form Layouts */
.op-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    margin-bottom: 30px;
}

.op-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.op-form-group label {
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.op-form-group .dashicons {
    color: #64748b;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.op-form-group input, 
.op-form-group select {
    width: 100% !important;
    max-width: 100% !important;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.op-form-group input:focus, 
.op-form-group select:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Plan Summary Card */
.op-summary-card {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    border-left: 5px solid #0073aa;
}

.op-summary-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.op-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.op-summary-item {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.op-summary-item span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.op-summary-item strong {
    font-size: 16px;
    color: #0f172a;
}

.op-summary-item.highlight strong {
    color: #0073aa;
    font-size: 18px;
}

@media screen and (max-width: 782px) {
    .op-form-grid {
        grid-template-columns: 1fr;
    }
    .op-summary-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Global OnePay UI System --- */

/* Generic Card */
.op-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

/* Dashboard Stat Cards */
.op-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
}

.op-stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.op-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.op-stat-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.op-stat-card .value {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0 0;
}

.op-stat-card.primary .value { color: #0073aa; }
.op-stat-card.success .value { color: #1e8e3e; }
.op-stat-card.warning .value { color: #dba617; }
.op-stat-card.danger .value { color: #d63638; }

/* Filter Bar */
.op-filter-bar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.op-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.op-filter-bar input[type="text"], 
.op-filter-bar select {
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px;
    background: #f8fafc;
}

/* Alert Cards */
.op-alert-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0073aa;
}

.op-alert-card.warning { border-left-color: #dba617; }
.op-alert-card.danger { border-left-color: #d63638; }
.op-alert-card.success { border-left-color: #1e8e3e; }

/* Table Wrapper */
.op-table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.op-table-card .widefat {
    border: none;
    box-shadow: none;
}

.op-table-card thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
    padding: 15px;
    border-bottom: 2px solid #f1f5f9;
}

/* Form Layouts */
.op-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 782px) {
    .op-form-grid { grid-template-columns: 1fr; }
}

.op-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.op-input-group label {
    font-weight: 600;
    color: #475569;
    font-size: 13px;
}

.op-input-group input, 
.op-input-group select, 
.op-input-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

/* Wizard Navigation */
.op-wizard-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.op-wizard-nav li {
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
}

.op-wizard-nav li.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.op-img-preview {
    margin-top: 10px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background: #f8fafc;
}
