/**
 * ManageMore Registration - Account Page Styles
 *
 * Emulates Ultimate Member's fat rounded left tabs design
 *
 * @package ManageMore_Registration
 * @since 1.1.0
 */

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.mmh-account-page {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   Header
   ========================================================================== */

.mmh-account-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.mmh-account-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mmh-avatar-initials {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #3ba1da;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s ease;
}

.mmh-avatar-initials:hover {
    opacity: 0.9;
}

/* Avatar Wrapper */
.mmh-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

/* Color Picker Dropdown */
.mmh-avatar-color-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 100;
    width: 200px;
}

.mmh-avatar-color-picker::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    transform: rotate(45deg);
}

.mmh-color-picker-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.mmh-color-swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.mmh-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.mmh-color-swatch:hover {
    transform: scale(1.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.mmh-color-swatch.mmh-swatch-active {
    border-color: #333;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

.mmh-color-swatch .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #fff;
}

.mmh-account-header-info {
    flex: 1;
}

.mmh-account-header-name {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.mmh-account-header-email {
    margin: 0 0 3px 0;
    font-size: 14px;
    color: #666;
}

.mmh-account-header-number {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* ==========================================================================
   Body Layout
   ========================================================================== */

.mmh-account-body {
    display: flex;
    min-height: 500px;
}

/* ==========================================================================
   Navigation Sidebar
   ========================================================================== */

.mmh-account-nav {
    width: 220px;
    padding: 20px;
    border-right: 1px solid #eee;
    flex-shrink: 0;
    background: #fafafa;
}

.mmh-account-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmh-account-nav-item-wrapper {
    margin-bottom: 8px;
}

.mmh-account-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 12px;
}

.mmh-account-nav-item:hover {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.mmh-account-nav-item.active {
    background: #3ba1da;
    color: #fff;
}

.mmh-account-nav-item .dashicons {
    font-size: 18px;
    width: 20px;
    height: 20px;
}

.mmh-nav-text {
    flex: 1;
}

/* Powered by ManageMore */
.mmh-powered-by {
    max-width: 1200px;
    margin: 15px auto 0;
    text-align: center;
}

.mmh-powered-by a {
    font-size: 11px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mmh-powered-by a:hover {
    color: #666;
    text-decoration: none;
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.mmh-account-content {
    flex: 1;
    padding: 30px;
    overflow: hidden;
}

.mmh-tab-title {
    margin: 0 0 25px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.mmh-tab-body {
    color: #333;
}

/* ==========================================================================
   Dashboard Tab
   ========================================================================== */

.mmh-dashboard-welcome {
    margin-bottom: 30px;
}

.mmh-dashboard-welcome h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.mmh-dashboard-welcome p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Dashboard Warning */
.mmh-dashboard-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.mmh-dashboard-warning > .dashicons {
    flex-shrink: 0;
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.mmh-warning-content {
    flex: 1;
}

.mmh-warning-content strong {
    display: block;
    margin-bottom: 4px;
}

.mmh-warning-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.mmh-warning-link {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.mmh-warning-link:hover {
    text-decoration: underline;
}

/* License Expired Warning - Red theme */
.mmh-license-expired-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.mmh-license-expired-warning > .dashicons {
    color: #dc2626;
}

.mmh-license-expired-warning .mmh-warning-content strong {
    color: #991b1b;
}

.mmh-license-expired-warning .mmh-warning-content p {
    color: #7f1d1d;
}

.mmh-license-expired-warning .mmh-warning-link {
    color: #dc2626;
}

/* Pending Account Notice - Blue/Informational theme (not a warning) */
.mmh-dashboard-pending-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.mmh-dashboard-pending-notice > .dashicons {
    flex-shrink: 0;
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: #3b82f6;
}

.mmh-pending-notice-content {
    flex: 1;
}

.mmh-pending-notice-content strong {
    display: block;
    margin-bottom: 4px;
    color: #1e40af;
}

.mmh-pending-notice-content p {
    margin: 0;
    font-size: 14px;
    color: #1e3a8a;
}

/* Stats Cards */
.mmh-dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mmh-stat-wrap {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mmh-stat-card {
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
}

.mmh-stat-icon {
    font-size: 32px;
    color: #3ba1da;
}

.mmh-stat-content {
    display: flex;
    flex-direction: column;
}

.mmh-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.mmh-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

/* Sub-text below a stat card */
.mmh-stat-sub {
    font-size: 11px;
    color: #999;
    padding: 0 4px;
    text-align: center;
}

/* Pay Balance wrap - right-justified in stats row */
.mmh-pay-balance-wrap {
    margin-left: auto;
}

/* Pay Balance card - full width of its wrap */
.mmh-pay-balance-card {
    text-decoration: none;
    cursor: pointer;
}

.mmh-pay-balance-active {
    background: #27ae60;
    color: #fff;
    transition: background 0.2s ease;
}

.mmh-pay-balance-active .mmh-stat-icon {
    color: #fff;
}

.mmh-pay-balance-active .mmh-stat-value {
    color: #fff;
}

.mmh-pay-balance-active .mmh-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.mmh-pay-balance-active:hover {
    background: #219a52;
    text-decoration: none;
}

/* Payment Pending card - muted/disabled */
.mmh-pay-balance-pending {
    background: #f0f0f0;
    color: #888;
    cursor: default;
}

.mmh-pay-balance-pending .mmh-stat-icon {
    color: #aaa;
}

.mmh-pay-balance-pending .mmh-stat-value {
    color: #888;
}

.mmh-pay-balance-pending .mmh-stat-label {
    color: #aaa;
}

/* Recent Orders */
.mmh-dashboard-recent-orders {
    margin-bottom: 30px;
}

.mmh-dashboard-recent-orders h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.mmh-no-orders {
    color: #666;
    font-style: italic;
}

/* Dashboard Recent Orders Links */
.mmh-dashboard-recent-orders .mmh-orders-table a {
    color: var(--mmh-order-primary);
    font-weight: 600;
    text-decoration: none;
}

.mmh-dashboard-recent-orders .mmh-orders-table a:hover {
    color: var(--mmh-order-primary-dark);
    text-decoration: underline;
}

/* Orders Table - Base Styles */
.mmh-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.mmh-orders-table th,
.mmh-orders-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.mmh-orders-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Mini Orders Table */
.mmh-orders-mini {
    border: 1px solid var(--mmh-order-border, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.mmh-orders-mini thead tr {
    background: var(--mmh-order-bg-light, #f8f9fa);
}

.mmh-orders-mini th {
    color: #555;
    border-bottom: 2px solid var(--mmh-order-border, #e0e0e0);
}

.mmh-orders-mini th:nth-child(1) { width: 22%; }
.mmh-orders-mini th:nth-child(2) { width: 28%; }
.mmh-orders-mini th:nth-child(3) { width: 28%; }
.mmh-orders-mini th:nth-child(4) { width: 22%; text-align: right; }
.mmh-orders-mini td:nth-child(4) { text-align: right; }

.mmh-orders-mini td {
    border-bottom: 1px solid var(--mmh-order-border, #e0e0e0);
}

.mmh-orders-mini tbody tr:last-child td {
    border-bottom: none;
}

.mmh-orders-mini tbody tr:hover {
    background: var(--mmh-order-bg-light, #f8f9fa);
}

.mmh-view-all {
    margin-top: 15px;
}

.mmh-view-all a {
    color: #3ba1da;
    text-decoration: none;
    font-weight: 500;
}

.mmh-view-all a:hover {
    text-decoration: underline;
}

/* Quick Links */
.mmh-dashboard-quick-links h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.mmh-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.mmh-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mmh-quick-link:hover {
    background: #3ba1da;
    color: #fff;
    text-decoration: none;
}

.mmh-quick-link .dashicons {
    font-size: 20px;
}

/* Quick Link with Badge */
.mmh-quick-link-has-badge {
    position: relative;
}

.mmh-quick-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #dc2626;
    border-radius: 9px;
    margin-left: auto;
}

.mmh-quick-link:hover .mmh-quick-link-badge {
    background: #fff;
    color: #3ba1da;
}

/* ==========================================================================
   MMR Account Page - Order View Styles
   Color Scheme: Light Blue (#e3f2fd) / Dark Blue (#1565c0)
   
   These styles replace the existing order styles in account-page.css
   ========================================================================== */

/* ==========================================================================
   Orders Tab - Color Variables
   ========================================================================== */

:root {
    /* Orders - Blue Theme */
    --mmh-order-primary: #1565c0;
    --mmh-order-primary-light: #1976d2;
    --mmh-order-primary-dark: #0d47a1;
    --mmh-order-bg-light: #e3f2fd;
    --mmh-order-bg-medium: #bbdefb;
    --mmh-order-border: #90caf9;
    --mmh-order-text: #0d47a1;
    
    /* Invoices - Green Theme */
    --mmh-invoice-primary: #2e7d32;
    --mmh-invoice-primary-light: #388e3c;
    --mmh-invoice-primary-dark: #1b5e20;
    --mmh-invoice-bg-light: #f1f8e9;
    --mmh-invoice-bg-medium: #c8e6c9;
    --mmh-invoice-border: #a5d6a7;
    --mmh-invoice-text: #1b5e20;
}

/* ==========================================================================
   Orders Filter
   ========================================================================== */

.mmh-orders-filter {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--mmh-order-bg-light) 0%, #f5f9ff 100%);
    border: 1px solid var(--mmh-order-border);
    border-radius: 8px;
}

.mmh-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mmh-filter-form label {
    font-weight: 500;
    color: var(--mmh-order-primary-dark);
    font-size: 14px;
}

.mmh-status-select {
    padding: 8px 12px;
    border: 1px solid var(--mmh-order-border);
    border-radius: 6px;
    font-size: 14px;
    min-width: 160px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mmh-status-select:focus {
    outline: none;
    border-color: var(--mmh-order-primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.mmh-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
}

.mmh-filter-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mmh-btn-text {
    background: transparent;
    color: var(--mmh-order-primary);
    padding: 8px 12px;
    border: none;
}

.mmh-btn-text:hover {
    background: rgba(21, 101, 192, 0.08);
    color: var(--mmh-order-primary-dark);
}

.mmh-clear-filter {
    font-size: 13px;
}

.mmh-filter-summary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--mmh-order-border);
    font-size: 13px;
    color: #666;
}

/* --- Order Empty States --- */
.mmh-no-orders-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.mmh-no-orders-message .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--mmh-order-border);
    margin-bottom: 15px;
}

.mmh-no-orders-message p {
    font-size: 15px;
    margin-bottom: 20px;
}

.mmh-no-filtered-orders {
    background: var(--mmh-order-bg-light);
    border: 1px solid var(--mmh-order-border);
    border-radius: 8px;
}

.mmh-no-filtered-orders .dashicons {
    color: var(--mmh-order-primary);
}

.mmh-no-filtered-orders p {
    color: var(--mmh-order-primary-dark);
}

/* ==========================================================================
   Orders List Table - Enhanced Blue Theme
   ========================================================================== */

.mmh-orders-list-table {
    border: 1px solid var(--mmh-order-border);
    border-radius: 8px;
    overflow: hidden;
}

.mmh-orders-list-table thead tr {
    background: linear-gradient(135deg, var(--mmh-order-primary) 0%, var(--mmh-order-primary-light) 100%);
}

.mmh-orders-list-table th {
    background: transparent;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 14px 15px;
    border-bottom: none;
}

.mmh-orders-list-table tbody tr {
    transition: background-color 0.2s ease;
}

.mmh-orders-list-table tbody tr:nth-child(even) {
    background: var(--mmh-order-bg-light);
}

.mmh-orders-list-table tbody tr:hover {
    background: var(--mmh-order-bg-medium);
}

.mmh-orders-list-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--mmh-order-border);
    vertical-align: middle;
}

.mmh-orders-list-table tbody tr:last-child td {
    border-bottom: none;
}

.mmh-orders-list-table td.order-number a {
    color: var(--mmh-order-primary);
    font-weight: 600;
    text-decoration: none;
}

.mmh-orders-list-table td.order-number a:hover {
    color: var(--mmh-order-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   Order Action Buttons - List View
   ========================================================================== */

.mmh-order-action {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 6px;
}

.mmh-action-view {
    background: var(--mmh-order-bg-light);
    color: var(--mmh-order-primary);
    border: 1px solid var(--mmh-order-border);
}

.mmh-action-view:hover {
    background: var(--mmh-order-primary);
    color: #fff;
    border-color: var(--mmh-order-primary);
    text-decoration: none;
}

.mmh-action-reorder {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.mmh-action-reorder:hover {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
    text-decoration: none;
}

.mmh-action-contact {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.mmh-action-contact:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
    text-decoration: none;
}

.mmh-action-message {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.mmh-action-message:hover {
    background: #3ba1da;
    color: #fff;
    border-color: #3ba1da;
    text-decoration: none;
}

.mmh-action-urgent {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}

.mmh-action-urgent:hover {
    background: #c82333;
    color: #fff;
    border-color: #c82333;
    text-decoration: none;
}

/* ==========================================================================
   Single Order View
   ========================================================================== */

.mmh-order-view {
    /* Container styling */
}

/* Back Link */
.mmh-order-back-link {
    margin-bottom: 20px;
}

.mmh-order-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mmh-order-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.mmh-order-back-link a:hover {
    color: var(--mmh-order-primary-dark);
}

.mmh-order-back-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Order Header */
.mmh-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--mmh-order-primary) 0%, var(--mmh-order-primary-light) 100%);
    border-radius: 8px;
    margin-bottom: 8px;
}

.mmh-order-header-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mmh-order-number {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.mmh-order-header .mmh-order-status {
    font-size: 13px;
    padding: 6px 14px;
}

.mmh-order-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mmh-order-header-actions .mmh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 6px;
}

.mmh-order-header-actions .mmh-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mmh-order-header-actions .mmh-btn-primary {
    background: #fff;
    color: var(--mmh-order-primary);
}

.mmh-order-header-actions .mmh-btn-primary:hover {
    background: var(--mmh-order-bg-light);
    color: var(--mmh-order-primary-dark);
}

.mmh-btn-success {
    background: #28a745;
    color: #fff;
}

.mmh-btn-success:hover {
    background: #218838;
    color: #fff;
}

.mmh-btn-danger {
    background: #dc3545;
    color: #fff;
}

.mmh-btn-danger:hover {
    background: #c82333;
    color: #fff;
}

.mmh-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.mmh-btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}

/* Order Meta Cards */
.mmh-order-meta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mmh-order-meta-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--mmh-order-bg-light);
    border: 1px solid var(--mmh-order-border);
    border-radius: 8px;
}

.mmh-order-meta-card.mmh-meta-total {
    background: linear-gradient(135deg, var(--mmh-order-bg-light) 0%, var(--mmh-order-bg-medium) 100%);
    border-color: var(--mmh-order-primary-light);
}

.mmh-meta-icon {
    font-size: 24px;
    color: var(--mmh-order-primary);
    width: 24px;
    height: 24px;
}

.mmh-meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mmh-meta-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mmh-meta-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.mmh-total-amount {
    color: var(--mmh-order-primary-dark);
    font-size: 18px;
}

/* Shipment Tracking Banner */
.mmh-tracking-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 1px solid #a5d6a7;
    border-radius: 8px;
}

.mmh-tracking-icon {
    font-size: 24px;
    color: #2e7d32;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mmh-tracking-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.mmh-tracking-carrier {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    white-space: nowrap;
}

.mmh-tracking-separator {
    color: #a5d6a7;
    font-weight: 300;
}

.mmh-tracking-number-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.mmh-tracking-label {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.mmh-tracking-number-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mmh-order-primary);
    text-decoration: none;
    word-break: break-all;
}

.mmh-tracking-number-link:hover {
    color: var(--mmh-order-primary-dark);
    text-decoration: underline;
}

.mmh-tracking-number-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.mmh-tracking-number {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.mmh-btn-track {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.mmh-btn-track:hover {
    background: #1b5e20;
    color: #fff;
    text-decoration: none;
}

.mmh-btn-track .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Track action in orders list */
.mmh-action-track {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.mmh-action-track:hover {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
    text-decoration: none;
}

/* Order Sections */
.mmh-order-section {
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.mmh-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--mmh-order-primary) 0%, var(--mmh-order-primary-light) 100%);
}

.mmh-section-title .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Order Items Table */
.mmh-order-items-wrapper {
    overflow-x: auto;
}

.mmh-order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.mmh-order-items-table th {
    padding: 12px 15px;
    text-align: left;
    background: var(--mmh-order-bg-light);
    color: var(--mmh-order-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--mmh-order-border);
}

.mmh-order-items-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.mmh-order-items-table tbody tr:last-child td {
    border-bottom: none;
}

.mmh-order-items-table tbody tr:hover {
    background: #fafafa;
}

/* Product Thumbnail */
.mmh-order-items-table .product-thumbnail {
    width: 70px;
    padding-right: 10px;
}

.mmh-order-items-table .product-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.mmh-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #ccc;
    font-size: 24px;
}

/* Product Name */
.mmh-product-name-wrap a {
    color: var(--mmh-order-primary);
    text-decoration: none;
    font-weight: 500;
}

.mmh-product-name-wrap a:hover {
    text-decoration: underline;
}

.mmh-item-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.mmh-meta-item {
    display: block;
    margin-bottom: 3px;
}

.mmh-meta-item:last-child {
    margin-bottom: 0;
}

/* Product SKU, Qty, Price columns */
.mmh-order-items-table td.product-sku {
    color: #666;
    font-family: monospace;
    font-size: 13px;
}

.mmh-na {
    color: #ccc;
}

.mmh-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--mmh-order-bg-light);
    border-radius: 4px;
    font-weight: 600;
    color: var(--mmh-order-primary);
}

.mmh-qty-fulfillment {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
}

.mmh-qty-fulfilled {
    color: #15803d;
    font-weight: 500;
}

.mmh-qty-backordered {
    color: #c2410c;
    font-weight: 500;
}

.mmh-order-items-table .product-price,
.mmh-order-items-table .product-total {
    font-weight: 500;
    white-space: nowrap;
}

.mmh-order-items-table .product-total {
    font-weight: 700;
    color: var(--mmh-order-text);
}

/* Order Totals */
.mmh-order-totals {
    padding: 20px;
}

.mmh-totals-table {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    border-collapse: collapse;
}

.mmh-totals-table th,
.mmh-totals-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.mmh-totals-table th {
    text-align: left;
    font-weight: 500;
    color: #666;
}

.mmh-totals-table td {
    text-align: right;
    font-weight: 500;
}

.mmh-discount-row td {
    color: #27ae60;
}

.mmh-refund-row td {
    color: #c0392b;
}

.mmh-total-row {
    background: var(--mmh-order-bg-light);
}

.mmh-total-row th,
.mmh-total-row td {
    padding: 15px;
    font-size: 16px;
    border-bottom: none;
}

.mmh-total-row th {
    color: var(--mmh-order-text);
    font-weight: 600;
}

.mmh-total-row td strong {
    color: var(--mmh-order-primary-dark);
}

.mmh-net-total-row {
    background: #fff3cd;
}

.mmh-net-total-row th {
    color: #856404;
}

.mmh-net-total-row td strong {
    color: #856404;
}

/* Payment QR Code Box */
.mmh-order-totals-with-qr {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.mmh-order-totals-with-qr .mmh-totals-table {
    margin-left: auto;
}

.mmh-payment-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mmh-qr-prompt {
    font-size: 16px;
    font-weight: 700;
    color: var(--mmh-order-primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

.mmh-qr-image {
    width: 240px;
    height: auto;
}

/* Hide QR code on mobile */
@media (max-width: 768px) {
    .mmh-order-totals-with-qr {
        display: block;
    }

    .mmh-payment-qr-box {
        display: none;
    }

    .mmh-order-totals-with-qr .mmh-totals-table {
        max-width: 100%;
    }
}

/* Addresses Grid */
.mmh-order-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.mmh-order-address-section {
    margin-bottom: 0;
}

.mmh-address-content {
    padding: 20px;
    line-height: 1.7;
    color: #555;
}

.mmh-address-content address {
    font-style: normal;
}

.mmh-contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0 0;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    color: #666;
    font-size: 14px;
}

.mmh-contact-info:first-of-type {
    margin-top: 15px;
}

.mmh-contact-info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--mmh-order-primary);
}

.mmh-no-address {
    color: #999;
    font-style: italic;
    margin: 0;
}

/* Order Reference Info (Transaction ID / Last Update) */
.mmh-order-reference-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #999;
    margin: 0 0 15px;
    padding: 0;
}

.mmh-ref-left {
    text-align: left;
}

.mmh-ref-center {
    text-align: center;
}

.mmh-ref-right {
    text-align: right;
}

/* Order Notes */
.mmh-customer-note {
    padding: 20px;
    background: #fffbf0;
    border-left: 4px solid #f0c36d;
    color: #666;
    line-height: 1.6;
}

/* Order Updates */
.mmh-order-updates {
    padding: 15px 20px;
}

.mmh-order-update {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.mmh-order-update:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mmh-update-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.mmh-update-content {
    color: #555;
    line-height: 1.5;
}

/* Order Error */
.mmh-order-error {
    text-align: center;
    padding: 60px 20px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
}

.mmh-order-error .dashicons {
    font-size: 48px;
    color: #e57373;
    margin-bottom: 15px;
}

.mmh-order-error p {
    color: #c62828;
    margin-bottom: 20px;
}

/* ==========================================================================
   Order Status Badges - Enhanced
   ========================================================================== */

.mmh-order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.mmh-status-pending {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57c00;
    border: 1px solid #ffca28;
}

.mmh-status-processing {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 1px solid #64b5f6;
}

.mmh-status-on-hold {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border: 1px solid #ffb74d;
}

.mmh-status-completed {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #81c784;
}

.mmh-status-cancelled {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.mmh-status-refunded {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.mmh-status-failed {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

.mmh-status-pickup-ready {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #81c784;
}

.mmh-status-action-required {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.mmh-status-order-paused {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border: 1px solid #fcd34d;
}

.mmh-status-order-delayed {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4b5563;
    border: 1px solid #9ca3af;
}

.mmh-status-back-order {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: #c2410c;
    border: 1px solid #fdba74;
}

.mmh-status-in-transit {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    color: #283593;
    border: 1px solid #7986cb;
}

.mmh-status-order-delivered {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: #00796b;
    border: 1px solid #80cbc4;
}

.mmh-status-partial-complete {
    background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 100%);
    color: #6d28d9;
    border: 1px solid #a78bfa;
}

/* ==========================================================================
   Enhanced Pagination
   ========================================================================== */

.mmh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--mmh-order-border);
}

.mmh-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--mmh-order-bg-light);
    color: var(--mmh-order-primary);
    border: 1px solid var(--mmh-order-border);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mmh-pagination a:hover {
    background: var(--mmh-order-primary);
    color: #fff;
    border-color: var(--mmh-order-primary);
    text-decoration: none;
}

.mmh-pagination a .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.mmh-pagination-info {
    color: #666;
    font-size: 14px;
    padding: 0 10px;
}

/* ==========================================================================
   Mobile Responsive - Order View
   ========================================================================== */

@media (max-width: 768px) {
    .mmh-order-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .mmh-order-header-main {
        width: 100%;
    }
    
    .mmh-order-number {
        font-size: 18px;
    }
    
    .mmh-order-header-actions {
        width: 100%;
    }
    
    .mmh-order-header-actions .mmh-btn {
        flex: 1;
        justify-content: center;
    }
    
    .mmh-order-meta-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .mmh-order-items-table .product-sku {
        display: none;
    }
    
    .mmh-order-items-table th.product-sku {
        display: none;
    }
    
    .mmh-order-addresses {
        grid-template-columns: 1fr;
    }

    .mmh-order-reference-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .mmh-ref-center,
    .mmh-ref-right {
        text-align: left;
    }
    
    .mmh-totals-table {
        max-width: 100%;
    }

    .mmh-tracking-banner {
        flex-wrap: wrap;
    }

    .mmh-btn-track {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mmh-order-meta-cards {
        grid-template-columns: 1fr;
    }
    
    .mmh-order-items-table .product-thumbnail {
        display: none;
    }
    
    .mmh-order-items-table th.product-thumbnail {
        display: none;
    }
    
    .mmh-order-items-table .product-price {
        display: none;
    }
    
    .mmh-order-items-table th.product-price {
        display: none;
    }
    
    .mmh-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .mmh-pagination a {
        width: 100%;
        justify-content: center;
    }

    .mmh-tracking-separator {
        display: none;
    }

    .mmh-tracking-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ==========================================================================
   Invoice Styles (Green Theme)
   ========================================================================== */

/* --- Invoice Filter --- */
.mmh-invoices-filter {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--mmh-invoice-bg-light) 0%, #f5fff5 100%);
    border: 1px solid var(--mmh-invoice-border);
    border-radius: 8px;
}

.mmh-invoices-filter .mmh-filter-form label {
    color: var(--mmh-invoice-primary-dark);
}

.mmh-invoices-filter .mmh-status-select {
    border-color: var(--mmh-invoice-border);
}

.mmh-invoices-filter .mmh-status-select:focus {
    border-color: var(--mmh-invoice-primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* --- Invoice Order Context Banner --- */
.mmh-invoice-order-context {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 15px;
    background: var(--mmh-invoice-bg-light);
    border: 1px solid var(--mmh-invoice-border);
    border-radius: 8px;
    font-weight: 600;
    color: #333;
}

.mmh-invoice-order-context .dashicons {
    color: var(--mmh-invoice-primary);
}

.mmh-invoice-order-context .mmh-btn {
    margin-left: auto;
}

.mmh-invoice-order-context .mmh-btn + .mmh-btn {
    margin-left: 0;
}

.mmh-btn-context-white {
    background: #fff;
    color: var(--mmh-invoice-primary);
    border: 1px solid var(--mmh-invoice-border);
}

.mmh-btn-context-white:hover {
    background: #f9f9f9;
    color: var(--mmh-invoice-primary-dark);
    text-decoration: none;
}

.mmh-btn-sm {
    padding: 4px 12px !important;
    font-size: 12px !important;
}

/* --- Invoice List Table --- */
.mmh-invoices-table {
    width: 100%;
    border-collapse: collapse;
}

.mmh-invoices-table th,
.mmh-invoices-table td {
    text-align: left;
    vertical-align: middle;
}

.mmh-invoices-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.mmh-invoices-list-table {
    border: 1px solid var(--mmh-invoice-border);
    border-radius: 8px;
    overflow: hidden;
}

.mmh-invoices-list-table thead tr {
    background: linear-gradient(135deg, var(--mmh-invoice-primary) 0%, var(--mmh-invoice-primary-light) 100%);
}

.mmh-invoices-list-table th {
    padding: 14px 15px;
    border-bottom: none;
}

.mmh-invoices-list-table tbody tr {
    transition: background-color 0.2s ease;
}

.mmh-invoices-list-table tbody tr:nth-child(even) {
    background: var(--mmh-invoice-bg-light);
}

.mmh-invoices-list-table tbody tr:hover {
    background: var(--mmh-invoice-bg-medium);
}

.mmh-invoices-list-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--mmh-invoice-border);
    vertical-align: middle;
}

.mmh-invoices-list-table tbody tr:last-child td {
    border-bottom: none;
}

/* Invoice link in list */
.mmh-invoice-link {
    color: var(--mmh-invoice-primary);
    font-weight: 600;
    text-decoration: none;
}

.mmh-invoice-link:hover {
    color: var(--mmh-invoice-primary-dark);
    text-decoration: underline;
}

/* Invoice View button in list */
.mmh-invoices-list-table .mmh-action-view {
    background: var(--mmh-invoice-bg-light);
    color: var(--mmh-invoice-primary);
    border: 1px solid var(--mmh-invoice-border);
}

.mmh-invoices-list-table .mmh-action-view:hover {
    background: var(--mmh-invoice-primary);
    color: #fff;
    border-color: var(--mmh-invoice-primary);
}

/* Icon-only action buttons in invoice list */
.mmh-invoices-list-table .mmh-action-icon {
    padding: 6px 8px;
    line-height: 1;
}

.mmh-invoices-list-table .mmh-action-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mmh-invoices-list-table .mmh-action-print {
    background: var(--mmh-invoice-bg-light);
    color: var(--mmh-invoice-primary);
    border: 1px solid var(--mmh-invoice-border);
}

.mmh-invoices-list-table .mmh-action-print:hover {
    background: var(--mmh-invoice-primary);
    color: #fff;
    border-color: var(--mmh-invoice-primary);
    text-decoration: none;
}

/* --- Invoice Type Badges --- */
.mmh-invoice-type-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.mmh-invoice-type-badge.mmh-invoice-type-invoice {
    background: linear-gradient(135deg, var(--mmh-invoice-bg-light) 0%, var(--mmh-invoice-bg-medium) 100%);
    color: var(--mmh-invoice-primary);
    border: 1px solid var(--mmh-invoice-border);
}

.mmh-invoice-type-badge.mmh-invoice-type-void {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.mmh-invoice-type-badge.mmh-invoice-type-credit {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border: 1px solid #ffb74d;
}

/* --- Overdue Date --- */
.mmh-overdue {
    color: #c62828;
    font-weight: 600;
}

/* --- Invoice Detail View --- */

/* Green links throughout invoice view */
.mmh-invoice-view a {
    color: var(--mmh-invoice-primary);
}

.mmh-invoice-view a:hover {
    color: var(--mmh-invoice-primary-dark);
}

/* Back to Invoices link */
.mmh-invoice-view .mmh-order-back-link a {
    color: var(--mmh-invoice-primary);
}

.mmh-invoice-view .mmh-order-back-link a:hover {
    color: var(--mmh-invoice-primary-dark);
}

/* Product links in items table */
.mmh-invoice-items-table .product-name a {
    color: var(--mmh-invoice-primary);
    text-decoration: none;
}

.mmh-invoice-items-table .product-name a:hover {
    color: var(--mmh-invoice-primary-dark);
    text-decoration: underline;
}

/* Green header override */
.mmh-invoice-header {
    border-color: var(--mmh-invoice-border);
    background: linear-gradient(135deg, var(--mmh-invoice-primary) 0%, var(--mmh-invoice-primary-light) 100%);
}

.mmh-invoice-header .mmh-order-number {
    color: #fff;
}

/* Green section titles in invoice */
.mmh-invoice-items-section .mmh-section-title,
.mmh-invoice-totals-section .mmh-section-title,
.mmh-invoice-addresses-section .mmh-section-title,
.mmh-invoice-notes-section .mmh-section-title {
    background: linear-gradient(135deg, var(--mmh-invoice-primary) 0%, var(--mmh-invoice-primary-light) 100%);
}

/* Green meta cards */
.mmh-invoice-meta-cards .mmh-order-meta-card {
    background: var(--mmh-invoice-bg-light);
    border-color: var(--mmh-invoice-border);
}

.mmh-invoice-meta-cards .mmh-meta-icon {
    color: var(--mmh-invoice-primary);
}

.mmh-invoice-meta-cards .mmh-meta-total {
    background: linear-gradient(135deg, var(--mmh-invoice-bg-light) 0%, var(--mmh-invoice-bg-medium) 100%);
    border-color: var(--mmh-invoice-primary-light);
}

.mmh-invoice-meta-cards .mmh-meta-total .mmh-total-amount {
    color: var(--mmh-invoice-primary-dark);
}

/* --- Invoice Addresses --- */
.mmh-address-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.mmh-address-column {
    padding: 0;
}

.mmh-address-column:first-child {
    border-right: 1px solid #e0e0e0;
}

.mmh-address-block {
    padding: 15px 20px;
    font-style: normal;
    line-height: 1.7;
    color: #555;
    white-space: pre-line;
}

/* --- Invoice Items Table --- */
.mmh-invoice-items-table th {
    background: var(--mmh-invoice-bg-light);
    color: var(--mmh-invoice-text);
    border-bottom: 2px solid var(--mmh-invoice-border);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mmh-invoice-items-table th.product-name,
.mmh-invoice-items-table th.product-sku,
.mmh-invoice-items-table th.product-quantity,
.mmh-invoice-items-table th.product-price,
.mmh-invoice-items-table th.product-excise,
.mmh-invoice-items-table th.product-total {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mmh-invoice-text);
}

.mmh-invoice-items-table th.product-price,
.mmh-invoice-items-table th.product-total {
    font-weight: 500;
    white-space: nowrap;
}

.mmh-invoice-items-table th.product-total {
    font-weight: 700;
}

.mmh-invoice-items-table th.product-excise,
.mmh-invoice-items-table th.product-total {
    text-align: right;
}

/* Green qty badge */
.mmh-qty-invoice {
    background: var(--mmh-invoice-bg-light);
    color: var(--mmh-invoice-primary);
}

.mmh-invoice-items-table .product-excise {
    text-align: right;
    white-space: nowrap;
    color: #888;
    font-size: 13px;
}

.mmh-invoice-items-table .product-excise .woocommerce-Price-amount {
    color: #888;
}

.mmh-invoice-items-table .product-total {
    color: var(--mmh-invoice-text);
}

/* --- Invoice Totals - Two Column Layout --- */
.mmh-invoice-totals-columns {
    display: flex;
    align-items: flex-start;
    padding: 20px;
}

.mmh-invoice-totals-left {
    flex: 1;
    padding-right: 20px;
}

.mmh-invoice-totals-right {
    flex: 0 0 auto;
    min-width: 280px;
}

.mmh-invoice-totals-right .mmh-invoice-totals-table {
    width: 100%;
    border-collapse: collapse;
}

.mmh-invoice-totals-right .mmh-invoice-totals-table th,
.mmh-invoice-totals-right .mmh-invoice-totals-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.mmh-invoice-totals-right .mmh-invoice-totals-table th {
    text-align: left;
    font-weight: 500;
    color: #666;
}

.mmh-invoice-totals-right .mmh-invoice-totals-table td {
    text-align: right;
    font-weight: 500;
}

.mmh-invoice-totals-right .mmh-total-row {
    background: var(--mmh-invoice-bg-light);
}

.mmh-invoice-totals-right .mmh-total-row th,
.mmh-invoice-totals-right .mmh-total-row td {
    padding: 15px;
    font-size: 16px;
    border-bottom: none;
}

.mmh-invoice-totals-right .mmh-total-row th {
    color: var(--mmh-invoice-text);
    font-weight: 600;
}

.mmh-invoice-totals-right .mmh-total-row .mmh-total-amount {
    color: var(--mmh-invoice-primary-dark);
    font-weight: 700;
}

/* Excise Tax Info Box */
.mmh-excise-info {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #fffde7;
    border: 1px solid #fff9c4;
    border-radius: 6px;
    margin-top: 4px;
}

.mmh-excise-label {
    font-size: 12px;
    font-weight: 600;
    color: #f57f17;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mmh-excise-amount {
    font-size: 16px;
    font-weight: 700;
    color: #e65100;
}

/* Excise Tax Summary Block */
.mmh-excise-summary {
    margin-top: 4px;
}

.mmh-excise-summary-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mmh-invoice-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 8px 0;
    padding: 0;
}

.mmh-excise-summary-line {
    font-size: 13px;
    color: #555;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.5;
}

.mmh-excise-included {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin: 6px 0 0 0;
    padding: 0;
}

.mmh-invoice-policy-message {
    font-size: 12px;
    color: #777;
    margin: 10px 0 0 0;
    line-height: 1.5;
}

/* --- Invoice Notes --- */
.mmh-invoice-notes {
    padding: 15px 20px;
    line-height: 1.7;
    color: #555;
}

/* Invoices list pagination and links */
.mmh-invoices .mmh-pagination-btn {
    color: var(--mmh-invoice-primary);
}

.mmh-invoices .mmh-pagination-btn:hover:not(.disabled) {
    background: var(--mmh-invoice-primary);
    color: #fff;
}

.mmh-invoices .mmh-view-all a {
    color: var(--mmh-invoice-primary);
}

.mmh-invoices .mmh-view-all a:hover {
    color: var(--mmh-invoice-primary-dark);
}

/* --- Invoice Empty States --- */
.mmh-no-invoices-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.mmh-no-invoices-message .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--mmh-invoice-border);
    margin-bottom: 15px;
}

.mmh-no-invoices-message p {
    font-size: 15px;
    margin-bottom: 20px;
}

.mmh-no-filtered-invoices {
    background: var(--mmh-invoice-bg-light);
    border: 1px solid var(--mmh-invoice-border);
    border-radius: 8px;
}

/* Invoice Error */
.mmh-invoice-error {
    text-align: center;
    padding: 60px 20px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
}

.mmh-invoice-error .dashicons {
    font-size: 48px;
    color: #e57373;
    margin-bottom: 15px;
}

.mmh-invoice-error p {
    color: #c62828;
    margin-bottom: 20px;
}

/* --- Dashboard Recent Invoices --- */
.mmh-dashboard-recent-invoices {
    margin-bottom: 30px;
}

.mmh-dashboard-recent-invoices h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.mmh-dashboard-recent-invoices .mmh-invoices-table a {
    color: var(--mmh-invoice-primary);
    font-weight: 600;
    text-decoration: none;
}

.mmh-dashboard-recent-invoices .mmh-invoices-table a:hover {
    color: var(--mmh-invoice-primary-dark);
    text-decoration: underline;
}

.mmh-dashboard-recent-invoices .mmh-view-all a {
    color: var(--mmh-invoice-primary);
}

.mmh-dashboard-recent-invoices .mmh-view-all a:hover {
    color: var(--mmh-invoice-primary-dark);
}

/* Dashboard Mini Invoices Table */
.mmh-invoices-mini {
    border: 1px solid var(--mmh-invoice-border);
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.mmh-invoices-mini thead tr {
    background: var(--mmh-invoice-bg-light);
}

.mmh-invoices-mini thead th {
    padding: 10px 15px;
    color: #555;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--mmh-invoice-border);
}

.mmh-invoices-mini th:nth-child(1) { width: 22%; }
.mmh-invoices-mini th:nth-child(2) { width: 28%; }
.mmh-invoices-mini th:nth-child(3) { width: 28%; }
.mmh-invoices-mini th:nth-child(4) { width: 22%; text-align: right; }
.mmh-invoices-mini td:nth-child(4) { text-align: right; }

.mmh-invoices-mini tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--mmh-invoice-border);
}

.mmh-invoices-mini tbody tr:last-child td {
    border-bottom: none;
}

.mmh-invoices-mini tbody tr:hover {
    background: var(--mmh-invoice-bg-medium);
}


/* --- Invoice Mobile Responsive --- */
@media (max-width: 768px) {
    .mmh-invoice-totals-columns {
        flex-direction: column;
    }

    .mmh-invoice-totals-left {
        padding-right: 0;
        margin-bottom: 15px;
    }

    .mmh-invoice-totals-right {
        min-width: 100%;
    }

    .mmh-address-columns {
        grid-template-columns: 1fr;
    }

    .mmh-address-column:first-child {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .mmh-invoices-list-table .invoice-type,
    .mmh-invoices-list-table .invoice-due-date {
        display: none;
    }

    .mmh-invoice-items-table .product-sku,
    .mmh-invoice-items-table .product-excise {
        display: none;
    }
}

@media (max-width: 480px) {
    .mmh-invoices-filter {
        padding: 12px 15px;
    }

    .mmh-invoice-type-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .mmh-excise-info {
        padding: 10px 12px;
    }

    .mmh-excise-label {
        font-size: 11px;
    }

    .mmh-excise-amount {
        font-size: 14px;
    }
}
/* ==========================================================================
   Account Status Tab
   ========================================================================== */

.mmh-status-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.mmh-status-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mmh-status-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.mmh-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.mmh-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mmh-info-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.mmh-info-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Tax Info Note */
.mmh-tax-info-note {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #888;
}

.mmh-tax-info-note small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.mmh-tax-info-note .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Balance Display */
.mmh-balance-display {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mmh-balance-amount {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.mmh-balance-due {
    color: #c0392b;
}

.mmh-balance-zero {
    color: #27ae60;
}

.mmh-balance-note {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.mmh-balance-actions {
    text-align: center;
}

/* Last Sync Info */
.mmh-last-sync {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
}

.mmh-last-sync .dashicons {
    font-size: 16px;
}

/* ==========================================================================
   Licenses Tab
   ========================================================================== */

.mmh-licenses-intro {
    margin-bottom: 25px;
    color: #666;
}

.mmh-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.mmh-license-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.mmh-license-card.mmh-license-expired {
    border-color: #f5c6cb;
}

.mmh-license-card.mmh-license-expiring {
    border-color: #ffeeba;
}

.mmh-license-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.mmh-license-title {
    margin: 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmh-license-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.mmh-badge-expired {
    background: #f8d7da;
    color: #721c24;
}

.mmh-badge-expiring {
    background: #fff3cd;
    color: #856404;
}

.mmh-license-body {
    padding: 20px;
}

.mmh-license-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mmh-license-label {
    color: #666;
    font-size: 14px;
}

.mmh-license-value {
    font-weight: 500;
    color: #333;
}

.mmh-expired-date {
    color: #c0392b;
}

.mmh-license-no-data {
    color: #888;
    font-style: italic;
    margin: 0;
}

.mmh-license-document {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.mmh-license-document h5 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333;
}

.mmh-license-file-preview {
    margin-bottom: 15px;
}

.mmh-license-thumbnail {
    display: block;
    max-width: 150px;
}

.mmh-license-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.mmh-license-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3ba1da;
    text-decoration: none;
}

.mmh-license-file-link:hover {
    text-decoration: underline;
}

.mmh-license-file-exists {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
}

.mmh-no-document {
    color: #888;
    font-style: italic;
    margin: 0 0 15px 0;
}

/* Upload Form */
.mmh-license-upload {
    margin-top: 10px;
}

.mmh-upload-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mmh-file-input {
    display: none;
}

.mmh-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #3ba1da;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mmh-upload-btn:hover {
    background: #2980b9;
}

.mmh-upload-status {
    font-size: 13px;
    color: #666;
}

.mmh-upload-help {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #888;
}

/* Upload Preview */
.mmh-upload-preview {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px dashed #3ba1da;
    border-radius: 8px;
}

.mmh-preview-content {
    text-align: center;
    margin-bottom: 12px;
}

.mmh-preview-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 4px;
}

.mmh-preview-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.mmh-preview-pdf .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #e74c3c;
}

.mmh-preview-filename {
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.mmh-preview-info {
    text-align: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.mmh-preview-name {
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 3px;
    word-break: break-all;
}

.mmh-preview-size {
    color: #888;
}

.mmh-preview-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.mmh-preview-actions .mmh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
}

.mmh-preview-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mmh-confirm-upload-btn,
.mmh-cancel-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mmh-confirm-upload-btn {
    background: #27ae60;
    color: #fff;
}

.mmh-confirm-upload-btn:hover {
    background: #219a52;
}

.mmh-confirm-upload-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.mmh-cancel-upload-btn {
    background: #e74c3c;
    color: #fff;
}

.mmh-cancel-upload-btn:hover {
    background: #c0392b;
}

.mmh-cancel-upload-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.mmh-confirm-upload-btn .dashicons,
.mmh-cancel-upload-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* License Pending State */
.mmh-license-card.mmh-license-pending {
    border-color: #f39c12;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

.mmh-badge-pending {
    background: #f39c12 !important;
    color: #fff !important;
}

/* Licenses Actions (Save Changes) */
.mmh-licenses-actions {
    margin-top: 30px;
    padding: 20px;
    background: #fff8e1;
    border: 1px solid #f39c12;
    border-radius: 8px;
    text-align: center;
}

.mmh-pending-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #856404;
    font-size: 14px;
}

.mmh-pending-notice .dashicons {
    color: #f39c12;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mmh-save-licenses-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
}

.mmh-save-licenses-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mmh-licenses-actions .mmh-save-status {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

.mmh-licenses-actions .mmh-save-status.success {
    color: #27ae60;
}

.mmh-licenses-actions .mmh-save-status.error {
    color: #e74c3c;
}

/* Coming Soon (Invoices) */
.mmh-coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.mmh-coming-soon .dashicons {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.mmh-coming-soon h4 {
    margin: 0 0 10px 0;
    color: #333;
}

/* ==========================================================================
   Addresses Tab
   ========================================================================== */

.mmh-addresses-intro {
    margin-bottom: 25px;
    color: #666;
}

.mmh-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.mmh-address-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.mmh-address-title {
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmh-address-form {
    padding: 20px;
}

.mmh-address-display {
    padding: 20px;
}

.mmh-address-display address {
    font-style: normal;
    line-height: 1.6;
    color: #555;
}

.mmh-address-readonly-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    margin: 0;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
}

/* ==========================================================================
   Account Details Tab
   ========================================================================== */

.mmh-account-details-form {
    max-width: 600px;
}

.mmh-details-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.mmh-details-section:last-of-type {
    border-bottom: none;
}

.mmh-details-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
}

.mmh-section-description {
    margin: -10px 0 20px 0;
    font-size: 13px;
    color: #666;
}

.mmh-password-requirements {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 15px;
}

.mmh-password-requirements p {
    margin: 0 0 8px 0;
    font-size: 13px;
}

.mmh-password-requirements ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.mmh-password-requirements li {
    margin-bottom: 4px;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.mmh-field {
    margin-bottom: 18px;
}

.mmh-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.mmh-field .required {
    color: #e74c3c;
}

.mmh-input,
.mmh-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.mmh-input:focus,
.mmh-select:focus {
    border-color: #3ba1da;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 161, 218, 0.1);
}

.mmh-input::placeholder {
    color: #999;
}

.mmh-input.mmh-readonly,
.mmh-select.mmh-readonly {
    background-color: #f8f9fa;
    color: #666;
    cursor: not-allowed;
}

.mmh-field-description {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #888;
}

.mmh-readonly-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

/* Two Column Fields */
.mmh-fields-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.mmh-btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mmh-btn-primary {
    background: #3ba1da;
    color: #fff;
}

.mmh-btn-primary:hover {
    background: #2980b9;
    color: #fff;
    text-decoration: none;
}

.mmh-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.mmh-btn-secondary:hover {
    background: #5a6268;
    color: #fff;
    text-decoration: none;
}

.mmh-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.mmh-form-actions {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mmh-save-status {
    font-size: 14px;
    color: #666;
}

.mmh-save-status.success {
    color: #27ae60;
}

.mmh-save-status.error {
    color: #c0392b;
}

/* ==========================================================================
   Login Required
   ========================================================================== */

.mmh-account-login-required {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mmh-account-login-required p {
    margin-bottom: 20px;
    color: #666;
}

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

/* Mobile Menu Toggle */
.mmh-mobile-menu-toggle {
    display: none;
    padding: 12px 20px;
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.mmh-mobile-menu-toggle .dashicons {
    margin-right: 10px;
}

@media (max-width: 900px) {
    .mmh-addresses-grid {
        grid-template-columns: 1fr;
    }

    .mmh-licenses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mmh-account-page {
        border-radius: 0;
    }

    .mmh-account-header {
        padding: 20px;
    }

    .mmh-account-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .mmh-avatar-initials {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .mmh-account-header-name {
        font-size: 18px;
    }

    /* Mobile Navigation */
    .mmh-account-body {
        flex-direction: column;
    }

    .mmh-mobile-menu-toggle {
        display: block;
    }

    .mmh-account-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 0;
        display: none;
    }

    .mmh-account-nav.is-open {
        display: block;
    }

    .mmh-account-nav-list {
        padding: 10px;
    }

    .mmh-account-nav-item {
        padding: 12px 15px;
    }

    .mmh-account-content {
        padding: 20px;
    }

    /* Stats Cards */
    .mmh-dashboard-stats {
        flex-direction: column;
    }

    .mmh-stat-wrap {
        max-width: none;
    }

    /* Pay Balance wrap - remove right-justify when stacked */
    .mmh-pay-balance-wrap {
        margin-left: 0;
    }

    /* Quick Links */
    .mmh-quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Orders Filter */
    .mmh-orders-filter {
        padding: 12px 15px;
    }

    .mmh-filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mmh-filter-form label {
        margin-bottom: -5px;
    }

    .mmh-status-select {
        width: 100%;
    }

    .mmh-filter-btn {
        justify-content: center;
    }

    .mmh-clear-filter {
        text-align: center;
    }

    /* Orders Table */
    .mmh-orders-table {
        font-size: 13px;
    }

    .mmh-orders-table th,
    .mmh-orders-table td {
        padding: 10px;
    }

    .mmh-orders-table .order-actions {
        white-space: nowrap;
    }

    /* Form Fields */
    .mmh-fields-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Addresses */
    .mmh-addresses-grid {
        gap: 20px;
    }

    /* Form Actions */
    .mmh-form-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .mmh-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mmh-account-header {
        padding: 15px;
    }

    .mmh-account-content {
        padding: 15px;
    }

    .mmh-tab-title {
        font-size: 18px;
    }

    /* Hide some table columns on very small screens */
    .mmh-orders-table .order-total {
        display: none;
    }

    /* Balance Display */
    .mmh-balance-amount {
        font-size: 28px;
    }
}

/* ==========================================================================
   WooCommerce Compatibility
   ========================================================================== */

.woocommerce .mmh-account-page {
    max-width: 100%;
}

.woocommerce .mmh-input,
.woocommerce .mmh-select {
    height: auto;
}

/* Override WooCommerce form styles if needed */
.woocommerce-account .mmh-account-page input[type="text"],
.woocommerce-account .mmh-account-page input[type="email"],
.woocommerce-account .mmh-account-page input[type="password"],
.woocommerce-account .mmh-account-page input[type="tel"],
.woocommerce-account .mmh-account-page select {
    max-width: 100%;
}
/* ==========================================================================
   Order Items Pagination
   ========================================================================== */

.mmh-items-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--mmh-order-bg-light);
    border-bottom: 1px solid var(--mmh-order-border);
}

.mmh-items-pagination-bottom {
    border-bottom: none;
    border-top: 1px solid var(--mmh-order-border);
}

.mmh-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mmh-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--mmh-order-border);
    border-radius: 6px;
    background: #fff;
    color: var(--mmh-order-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mmh-page-btn:hover:not(:disabled) {
    background: var(--mmh-order-primary);
    border-color: var(--mmh-order-primary);
    color: #fff;
}

.mmh-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
}

.mmh-page-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mmh-page-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    font-size: 14px;
    color: #555;
}

.mmh-page-indicator .mmh-current-page,
.mmh-page-indicator .mmh-total-pages {
    font-weight: 600;
    color: var(--mmh-order-primary);
}

.mmh-pagination-options {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mmh-pagination-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.mmh-items-per-page {
    padding: 6px 10px;
    border: 1px solid var(--mmh-order-border);
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.mmh-items-per-page:focus {
    outline: none;
    border-color: var(--mmh-order-primary);
}

.mmh-items-showing {
    font-size: 13px;
    color: #666;
}

.mmh-items-showing .mmh-showing-start,
.mmh-items-showing .mmh-showing-end,
.mmh-items-showing .mmh-showing-total {
    font-weight: 600;
    color: #333;
}

/* Hidden items */
.mmh-order-item.mmh-item-hidden {
    display: none;
}

/* ==========================================================================
   Spinning Icon Animation
   ========================================================================== */

.mmh-spin {
    animation: mmr-spin 1s linear infinite;
}

@keyframes mmr-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Resend Email Button Secondary Style in Header */
.mmh-order-header-actions .mmh-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #555;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.mmh-order-header-actions .mmh-btn-secondary:hover {
    background: #fff;
    color: var(--mmh-order-primary);
}

/* ==========================================================================
   Order Items Pagination - Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .mmh-items-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 15px;
    }

    .mmh-pagination-controls {
        justify-content: center;
    }

    .mmh-page-btn {
        width: 40px;
        height: 40px;
    }

    .mmh-pagination-options {
        flex-direction: column;
        gap: 10px;
    }

    .mmh-pagination-options label {
        justify-content: center;
    }

    .mmh-items-showing {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mmh-page-indicator {
        padding: 0 8px;
        font-size: 13px;
    }

    .mmh-page-btn {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Confirmation Modal
   ========================================================================== */

.mmh-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.mmh-modal-overlay.is-visible {
    display: flex;
}

.mmh-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    animation: mmr-modal-appear 0.2s ease;
}

@keyframes mmr-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mmh-modal-header {
    padding: 20px 20px 0;
}

.mmh-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mmh-modal-body {
    padding: 15px 20px 20px;
}

.mmh-modal-body p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.mmh-modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    justify-content: flex-end;
}

.mmh-modal-footer .mmh-btn {
    padding: 10px 20px;
    min-width: 80px;
    text-align: center;
}

.mmh-modal-footer-stacked {
    flex-direction: column;
}

.mmh-modal-footer-stacked .mmh-btn {
    width: 100%;
}

.mmh-modal-footer-stacked .mmh-btn-text {
    background: transparent;
    color: #666;
    margin-top: 5px;
}

.mmh-modal-footer-stacked .mmh-btn-text:hover {
    color: #333;
    background: #f5f5f5;
}

/* Mobile adjustments for modal */
@media (max-width: 480px) {
    .mmh-modal {
        width: 95%;
        margin: 10px;
    }

    .mmh-modal-footer {
        flex-direction: column-reverse;
    }

    .mmh-modal-footer .mmh-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Navigation Badge
   ========================================================================== */

.mmh-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #dc2626;
    border-radius: 10px;
    margin-left: auto;
}

.mmh-account-nav-item.active .mmh-nav-badge {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ==========================================================================
   Messages Tab
   ========================================================================== */

.mmh-messages-container {
    max-width: 800px;
}

/* Filter Bar */
.mmh-messages-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.mmh-messages-filters {
    display: flex;
    gap: 8px;
}

.mmh-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mmh-filter-btn:hover {
    background: #e5e5e5;
    color: #333;
    text-decoration: none;
}

.mmh-filter-btn.active {
    background: #3ba1da;
    color: #fff;
}

.mmh-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 9px;
}

.mmh-filter-btn.active .mmh-filter-count {
    background: rgba(255, 255, 255, 0.3);
}

.mmh-mark-all-read-btn {
    font-size: 13px;
    padding: 8px 14px;
}

.mmh-mark-all-read-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

/* Empty State */
.mmh-messages-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.mmh-messages-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.mmh-messages-empty p {
    margin: 0;
    font-size: 15px;
}

/* Messages List */
.mmh-messages-list {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.mmh-message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.mmh-message-item:last-child {
    border-bottom: none;
}

.mmh-message-item:hover {
    background: #f9f9f9;
    text-decoration: none;
}

.mmh-message-unread {
    background: #f8faff;
}

.mmh-message-unread:hover {
    background: #f0f5ff;
}

.mmh-message-status {
    flex-shrink: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmh-unread-dot {
    width: 10px;
    height: 10px;
    background: #3ba1da;
    border-radius: 50%;
}

.mmh-read-check {
    font-size: 16px;
    color: #ccc;
}

.mmh-message-content {
    flex: 1;
    min-width: 0;
}

.mmh-message-subject {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mmh-message-unread .mmh-message-subject {
    color: #1a1a1a;
}

.mmh-message-preview {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mmh-message-meta {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mmh-message-date {
    font-size: 13px;
    color: #888;
}

.mmh-message-order {
    font-size: 11px;
    color: #3ba1da;
    font-weight: 500;
}

.mmh-message-arrow {
    flex-shrink: 0;
    color: #ccc;
}

.mmh-message-arrow .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Single Message View */
.mmh-message-single {
    max-width: 700px;
}

.mmh-message-single-header {
    margin-bottom: 20px;
}

.mmh-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.mmh-back-link:hover {
    color: #3ba1da;
    text-decoration: none;
}

.mmh-back-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mmh-message-single-content {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
}

.mmh-message-single-subject {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.mmh-message-single-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.mmh-message-single-date,
.mmh-message-single-order {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.mmh-message-single-date .dashicons,
.mmh-message-single-order .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #999;
}

.mmh-message-single-order a {
    color: #3ba1da;
    text-decoration: none;
}

.mmh-message-single-order a:hover {
    text-decoration: underline;
}

.mmh-message-single-body {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.mmh-message-single-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* Messages Pagination */
.mmh-messages-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.mmh-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #3ba1da;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mmh-pagination-btn:hover:not(.disabled) {
    background: #3ba1da;
    color: #fff;
    text-decoration: none;
}

.mmh-pagination-btn.disabled {
    color: #aaa;
    cursor: not-allowed;
}

.mmh-pagination-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mmh-pagination-info {
    font-size: 14px;
    color: #666;
}

/* Messages Tab - Mobile Responsive */
@media (max-width: 768px) {
    .mmh-messages-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .mmh-messages-filters {
        justify-content: center;
    }

    .mmh-mark-all-read-btn {
        width: 100%;
        justify-content: center;
    }

    .mmh-message-item {
        padding: 12px 15px;
    }

    .mmh-message-meta {
        display: none;
    }

    .mmh-message-single-content {
        padding: 20px 15px;
    }

    .mmh-message-single-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .mmh-filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .mmh-message-subject {
        font-size: 14px;
    }

    .mmh-message-preview {
        font-size: 12px;
    }

    .mmh-messages-pagination {
        gap: 10px;
    }

    .mmh-pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .mmh-pagination-info {
        font-size: 13px;
    }
}

/* ==========================================================================
   Important Messages Styling
   ========================================================================== */

/* Important icon in message list */
.mmh-important-icon {
    color: #dc2626;
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

.mmh-message-subject .mmh-important-icon {
    position: relative;
    top: -1px;
}

/* Important filter button */
.mmh-filter-btn-important {
    color: #dc2626;
}

.mmh-filter-btn-important .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 2px;
}

.mmh-filter-btn-important:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.mmh-filter-btn-important.active {
    background: #dc2626;
    color: #fff;
}

.mmh-filter-btn-important.active .dashicons {
    color: #fff;
}

/* Important message row styling */
.mmh-message-item.mmh-message-important {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
}

.mmh-message-item.mmh-message-important:hover {
    background: #fee2e2;
}

.mmh-message-item.mmh-message-important.mmh-message-read {
    background: #fff5f5;
}

.mmh-message-item.mmh-message-important.mmh-message-read:hover {
    background: #fef2f2;
}

/* Single message view - important styling */
.mmh-message-single-content.mmh-message-single-important {
    border-left: 4px solid #dc2626;
}

.mmh-message-single-subject .mmh-important-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.mmh-message-single-important-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    padding: 4px 10px;
    border-radius: 4px;
}

.mmh-message-single-important-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #dc2626;
}

/* ==========================================================================
   Dashboard Important Message Notice
   ========================================================================== */

/* Notice container (similar to warning but different purpose) */
.mmh-dashboard-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.mmh-dashboard-notice > .dashicons {
    flex-shrink: 0;
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.mmh-notice-content {
    flex: 1;
}

.mmh-notice-content strong {
    display: block;
    margin-bottom: 4px;
}

.mmh-notice-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.mmh-notice-link {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.mmh-notice-link:hover {
    text-decoration: underline;
}

/* Important Message Notice - Orange/Amber theme */
.mmh-important-message-notice {
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.mmh-important-message-notice > .dashicons {
    color: #d97706;
}

.mmh-important-message-notice .mmh-notice-content strong {
    color: #92400e;
}

.mmh-important-message-notice .mmh-notice-content p {
    color: #78350f;
}

.mmh-important-message-notice .mmh-notice-link {
    color: #d97706;
}

/* ==========================================================================
   Mobile Responsive - Important Messages
   ========================================================================== */

@media (max-width: 768px) {
    .mmh-message-single-important-badge {
        font-size: 12px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .mmh-important-icon {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }
    
    .mmh-message-single-subject .mmh-important-icon {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}
