:root {
  --rncee-bg: #f6f7fb;
  --rncee-card: #ffffff;
  --rncee-text: #101828;
  --rncee-muted: #667085;
  --rncee-border: #e6e9f0;
  --rncee-primary: #111827;
  --rncee-soft: #f3f4f6;
  --rncee-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.rncee-wrap {
  margin: 22px 20px 0 0;
  color: var(--rncee-text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif!important;
}

.rncee-wrap a { color: #111827; }

.rncee-hero {
  background: linear-gradient(135deg, #ffffff, #f7f8fb);
  border: 1px solid var(--rncee-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--rncee-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.rncee-eyebrow {
  margin: 0 0 8px;
  color: var(--rncee-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.rncee-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: var(--rncee-text);
}

.rncee-hero p:last-child {
  margin: 8px 0 0;
  color: var(--rncee-muted);
  font-size: 14px;
}

.rncee-support,
.rncee-btn {
  border: 1px solid var(--rncee-border);
  background: #fff;
  color: var(--rncee-text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  box-sizing: border-box;
}

.rncee-btn[disabled] { opacity: .55; cursor: not-allowed; }

.rncee-btn-primary,
.rncee-support {
  background: var(--rncee-primary);
  color: #fff !important;
  border-color: var(--rncee-primary);
}

.rncee-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.rncee-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rncee-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rncee-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rncee-card,
.rncee-panel {
  background: var(--rncee-card);
  border: 1px solid var(--rncee-border);
  border-radius: 22px;
  box-shadow: var(--rncee-shadow);
}

.rncee-card {
  padding: 20px;
}

.rncee-card span,
.rncee-form label span {
  display: block;
  color: var(--rncee-muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.rncee-card strong {
  display: block;
  font-size: 28px;
  color: var(--rncee-text);
  line-height: 1.2;
}

.rncee-card small {
  display: block;
  margin-top: 8px;
  color: var(--rncee-muted);
}

.rncee-panel {
  padding: 24px;
  margin-bottom: 22px;
}

.rncee-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--rncee-text);
}

.rncee-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rncee-badge {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--rncee-soft);
  color: var(--rncee-muted);
  font-size: 12px;
  font-weight: 700;
}

.rncee-form label {
  display: block;
  margin-bottom: 16px;
}

.rncee-form input,
.rncee-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--rncee-border);
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
  color: var(--rncee-text);
  box-shadow: none;
  box-sizing: border-box;
}

.rncee-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rncee-note,
.rncee-empty,
.rncee-chart-placeholder,
.rncee-status-box {
  color: var(--rncee-muted);
  background: var(--rncee-soft);
  border: 1px dashed var(--rncee-border);
  border-radius: 16px;
  padding: 16px;
}

.rncee-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.rncee-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rncee-border);
}

.rncee-footer {
  color: var(--rncee-muted);
  font-size: 12px;
  margin: 14px 0 30px;
  text-align: center;
}

.rncee-theme-dark {
  --rncee-bg: #0f172a;
  --rncee-card: #111827;
  --rncee-text: #f9fafb;
  --rncee-muted: #cbd5e1;
  --rncee-border: #263244;
  --rncee-primary: #f9fafb;
  --rncee-soft: #1f2937;
  --rncee-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.rncee-theme-dark .rncee-hero,
.rncee-theme-dark .rncee-form input,
.rncee-theme-dark .rncee-form select,
.rncee-theme-dark .rncee-btn {
  background: var(--rncee-card);
  color: var(--rncee-text);
}

.rncee-theme-dark .rncee-btn-primary,
.rncee-theme-dark .rncee-support {
  background: #f9fafb;
  color: #111827 !important;
}

@media (max-width: 1200px) {
  .rncee-grid-4, .rncee-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .rncee-wrap { margin: 14px 12px 0 0; }
  .rncee-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .rncee-grid-4,
  .rncee-grid-3,
  .rncee-grid-2 { grid-template-columns: 1fr; }
  .rncee-hero h1 { font-size: 24px; }
}
.rncee-api-help{border-left:4px solid #111827;margin-bottom:18px;line-height:1.6}.rncee-courier-card textarea{width:100%;border:1px solid #dbe1ea;border-radius:12px;padding:10px 12px;background:#fff;box-sizing:border-box}.rncee-conn-status{background:#eef2ff;color:#3730a3}.rncee-courier-card .rncee-api-message{min-height:20px}.rncee-courier-card .rncee-actions button{cursor:pointer}.rncee-courier-card .rncee-actions button:disabled{opacity:.7;cursor:wait}

/* Phase 4 analytics/report polish */
.rncee-chart-grid{align-items:start}.rncee-chart-card h2{margin-top:0}.rncee-bars{display:flex;flex-direction:column;gap:12px}.rncee-bar-row{display:grid;grid-template-columns:140px 1fr 52px;gap:10px;align-items:center}.rncee-bar-row span{font-size:12px;font-weight:700;color:#475569;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rncee-bar-row div{height:10px;background:#eef2f7;border-radius:999px;overflow:hidden}.rncee-bar-row i{display:block;height:100%;background:linear-gradient(90deg,#111827,#64748b);border-radius:999px}.rncee-bar-row strong{text-align:right;font-size:12px}.rncee-small-cell{max-width:280px;white-space:normal!important;font-size:12px;color:#475569}.rncee-btn-mini{padding:5px 8px!important;font-size:11px!important;min-height:auto!important}.rncee-queue-table td{vertical-align:top}.rncee-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.rncee-badge-danger{background:#fee2e2!important;color:#991b1b!important}.rncee-badge-success{background:#dcfce7!important;color:#166534!important}@media print{#wpadminbar,#adminmenu,#adminmenuback,#adminmenuwrap,.rncee-hero,.rncee-footer,.rncee-filters .rncee-btn,.notice{display:none!important}#wpcontent{margin-left:0!important}.rncee-wrap{padding:0}.rncee-panel,.rncee-card{box-shadow:none!important;border:1px solid #ddd!important}}

/* Phase 5 commercial polish */
.rncee-lock-panel{border:1px solid #fee2e2;background:linear-gradient(180deg,#fff,#fff7f7);}
.rncee-license-box input[type="text"],.rncee-license-box input[type="email"]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;letter-spacing:.04em;}
.rncee-btn-danger{background:#fff1f2!important;border-color:#fecdd3!important;color:#be123c!important;}
.rncee-warning{background:#fff7ed;border-left:4px solid #f97316;padding:10px 12px;border-radius:10px;display:block;}
.rncee-wizard{max-width:980px;}
.rncee-wizard-step{display:flex;gap:16px;align-items:flex-start;border-bottom:1px solid #eef2f7;padding:18px 0;}
.rncee-wizard-step:last-child{border-bottom:0;}
.rncee-step-number{width:36px;height:36px;border-radius:999px;background:#111827;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800;flex:0 0 auto;}
.rncee-wizard-step h2{margin:0 0 6px;font-size:18px;}
.rncee-wizard-step h2 small{font-size:12px;font-weight:700;color:#64748b;background:#f1f5f9;border-radius:999px;padding:4px 8px;margin-left:8px;}
.rncee-doc-list{margin:10px 0 0;padding-left:18px;}
.rncee-doc-list li{margin:8px 0;}
.rncee-badge-danger{background:#fee2e2;color:#991b1b;}
.rncee-theme-dark .rncee-lock-panel{background:#1f1215;border-color:#7f1d1d;}
@media (max-width:782px){.rncee-wizard-step{gap:10px}.rncee-step-number{width:30px;height:30px}.rncee-actions{display:flex;flex-wrap:wrap;gap:8px}.rncee-btn{margin-bottom:6px}.rncee-panel{overflow-x:auto}}

.rncee-full-field{grid-column:1/-1}.rncee-note-template-field{grid-column:1/-1;border:1px dashed #dbe3ef;border-radius:16px;padding:14px;background:#fbfdff}.rncee-note-template-field textarea{width:100%;max-width:100%;border:1px solid #dbe3ef;border-radius:12px;padding:10px}.rncee-mode-note{grid-column:1/-1;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:10px 12px}

/* RNCEE v1.0.2 premium courier API accordion */
.rncee-api-accordion{display:grid;gap:16px}.rncee-courier-accordion{padding:0!important;overflow:hidden;border:1px solid #e6edf7!important;box-shadow:0 14px 36px rgba(15,23,42,.06)!important}.rncee-courier-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;background:linear-gradient(180deg,#fff,#f8fbff);border-bottom:1px solid #eef4fb}.rncee-courier-title h2{margin:0;font-size:21px;color:#071527}.rncee-courier-title p{margin:6px 0 0;color:#64748b;line-height:1.45}.rncee-courier-title-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.rncee-enable-switch{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;margin:0!important}.rncee-enable-switch span{font-weight:800;color:#334155}.rncee-enable-switch select{min-width:120px!important;border-radius:999px!important}.rncee-courier-config{display:none;padding:22px}.rncee-courier-accordion.is-open .rncee-courier-config{display:block}.rncee-api-fields{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:16px}.rncee-api-fields label{margin:0!important}.rncee-api-fields .rncee-full,.rncee-advanced-api{grid-column:1/-1}.rncee-api-fields-inner{margin-top:14px}.rncee-advanced-api{border:1px dashed #cbd5e1;border-radius:16px;padding:12px 14px;background:#f8fafc}.rncee-advanced-api summary{cursor:pointer;font-weight:800;color:#334155}.rncee-note.rncee-full{padding:12px 14px;background:#f8fafc;border:1px solid #e5edf6;border-radius:14px;color:#475569}.rncee-courier-card:not(.is-open){opacity:.92}.rncee-courier-card:not(.is-open) .rncee-courier-title{border-bottom:0}.rncee-courier-card:not(.is-open) .rncee-conn-status{background:#f1f5f9;color:#475569}
@media(max-width:900px){.rncee-courier-title{align-items:flex-start;flex-direction:column}.rncee-api-fields{grid-template-columns:1fr}.rncee-courier-title-actions{width:100%;justify-content:space-between}}

/* RNCEE v1.0.3 Steadfast/API audit polish */
.rncee-inline-note{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border:1px dashed #dbe3ef;border-radius:12px;background:#f8fafc;color:#64748b;font-size:12px}
.rncee-courier-title-actions .rncee-badge{min-width:72px;justify-content:center}
.rncee-api-message{white-space:normal;line-height:1.55}
.rncee-api-fields input::placeholder,.rncee-api-fields textarea::placeholder{color:#94a3b8}


/* v1.0.5 tabs + docs modal */
.rncee-page-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:-6px 0 18px}
.rncee-page-tab{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 16px;border-radius:999px;background:#fff;border:1px solid var(--rncee-border);box-shadow:var(--rncee-shadow);text-decoration:none;font-weight:800;color:var(--rncee-text)}
.rncee-page-tab.is-active{background:linear-gradient(135deg,#0f172a,#1d4ed8 58%,#0ea5e9);color:#fff!important;border-color:transparent;box-shadow:0 18px 40px rgba(29,78,216,.24)}
.rncee-doc-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 14px}
.rncee-doc-open.is-active,.rncee-doc-nav-btn.is-active{background:#0f172a!important;color:#fff!important;border-color:#0f172a!important}
.rncee-update-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rncee-update-item{padding:16px;border:1px solid var(--rncee-border);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff)}
.rncee-update-item strong{display:block;margin-bottom:8px;font-size:15px}
.rncee-update-item ul{margin:0;padding-left:18px}
.rncee-update-item li{margin:6px 0;color:var(--rncee-muted)}
.rncee-doc-modal{position:fixed;inset:0;z-index:100100;background:rgba(2,6,23,.72);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;padding:24px}
.rncee-doc-modal.is-open{display:flex}
.rncee-doc-card{width:min(1100px,96vw);max-height:min(90vh,860px);background:#fff;border-radius:28px;border:1px solid rgba(219,234,254,.95);box-shadow:0 36px 120px rgba(2,6,23,.4);position:relative;overflow:hidden}
.rncee-doc-card:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0ea5e9,#6366f1,#22c55e,#0ea5e9);background-size:280% 100%;animation:rnceeBeam 4s linear infinite}
.rncee-doc-close{position:absolute;top:16px;right:16px;width:42px;height:42px;border-radius:50%;border:1px solid #dbeafe;background:#fff;box-shadow:0 10px 25px rgba(15,23,42,.1);font-size:28px;line-height:38px;cursor:pointer;z-index:2}
.rncee-doc-shell{display:grid;grid-template-columns:270px 1fr;min-height:min(78vh,760px)}
.rncee-doc-sidebar{background:linear-gradient(180deg,#f8fbff,#eef7ff);border-right:1px solid #e5edf6;padding:26px 18px 18px;overflow:auto}
.rncee-doc-sidebar h3{margin:0 0 14px;font-size:18px}
.rncee-doc-nav{display:flex;flex-direction:column;gap:8px}
.rncee-doc-nav-btn{border:1px solid #dbe6f3;background:#fff;border-radius:14px;padding:12px 14px;text-align:left;font-weight:800;color:#0f172a;cursor:pointer}
.rncee-doc-content{padding:28px 28px 24px;display:flex;flex-direction:column;min-width:0}
.rncee-doc-title{margin:0 0 14px;font-size:26px;line-height:1.15}
.rncee-doc-scroll{border:1px solid #e5edf6;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);padding:18px;overflow:auto;flex:1;min-height:0}
.rncee-doc-pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.7;color:#0f172a}
.rncee-theme-dark .rncee-page-tab{background:var(--rncee-card);color:var(--rncee-text)}
.rncee-theme-dark .rncee-doc-card{background:#111827;border-color:#263244}
.rncee-theme-dark .rncee-doc-sidebar{background:#0f172a;border-right-color:#263244}
.rncee-theme-dark .rncee-doc-content{background:#111827}
.rncee-theme-dark .rncee-doc-scroll,.rncee-theme-dark .rncee-update-item,.rncee-theme-dark .rncee-doc-nav-btn{background:#0f172a;color:#f9fafb;border-color:#263244}
.rncee-theme-dark .rncee-doc-pre{color:#f9fafb}
@media(max-width:900px){.rncee-update-feed{grid-template-columns:1fr}.rncee-doc-shell{grid-template-columns:1fr}.rncee-doc-sidebar{max-height:180px}.rncee-doc-content{padding:18px}.rncee-doc-title{font-size:22px}}
@media(max-width:640px){.rncee-page-tabs{gap:8px}.rncee-page-tab{flex:1 1 calc(50% - 8px)}.rncee-doc-modal{padding:10px}.rncee-doc-card{width:100%;max-height:96vh;border-radius:22px}.rncee-doc-shell{min-height:84vh}.rncee-doc-sidebar{padding-top:58px}.rncee-doc-close{top:12px;right:12px}}

/* v1.0.6 final polished audit */
.rncee-wrap *{box-sizing:border-box}
.rncee-page-tabs{position:relative;z-index:2}
.rncee-form textarea{width:100%;min-height:98px;border:1px solid var(--rncee-border);border-radius:14px;padding:12px;background:#fff;color:var(--rncee-text)}
.rncee-panel{max-width:100%;overflow-wrap:anywhere}
.rncee-panel .widefat{border-radius:14px;overflow:hidden}
.rncee-doc-buttons .rncee-btn{min-width:150px}
.rncee-doc-scroll{max-height:calc(78vh - 120px)}
@media(max-width:782px){
  .rncee-wrap{margin-right:8px}
  .rncee-support{width:100%}
  .rncee-page-tab{font-size:12px;padding:0 12px}
  .rncee-panel{padding:18px}
  .rncee-form input,.rncee-form select,.rncee-form textarea{font-size:16px}
  .rncee-doc-buttons{display:grid;grid-template-columns:1fr}
  .rncee-doc-buttons .rncee-btn{width:100%}
}

/* v1.0.7 client polish */
.rncee-service-ad{
  max-width:980px;margin:18px auto 34px;padding:14px 16px;border:1px solid #dbeafe;border-radius:18px;
  background:linear-gradient(135deg,#ffffff,#f5fbff 62%,#eef7ff);box-shadow:0 16px 44px rgba(15,23,42,.07);
  display:flex;align-items:center;justify-content:space-between;gap:14px
}
.rncee-service-brand span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.14em;font-weight:900;color:#0284c7;margin-bottom:4px}
.rncee-service-brand strong{display:block;font-size:15px;color:#0f172a}
.rncee-service-brand small{display:block;margin-top:3px;color:#64748b}
.rncee-service-modal{position:fixed;inset:0;z-index:100150;background:rgba(2,6,23,.68);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;padding:20px}
.rncee-service-modal.is-open{display:flex}
.rncee-service-card{width:min(720px,96vw);max-height:92vh;overflow:auto;background:#fff;border:1px solid #dbeafe;border-radius:26px;box-shadow:0 32px 110px rgba(2,6,23,.38);position:relative}
.rncee-service-card:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0ea5e9,#1d4ed8,#22c55e)}
.rncee-service-close{position:absolute;top:16px;right:16px;width:42px;height:42px;border-radius:50%;border:1px solid #dbeafe;background:#fff;font-size:28px;line-height:38px;cursor:pointer;box-shadow:0 10px 25px rgba(15,23,42,.1)}
.rncee-service-head{padding:28px 30px 20px;background:linear-gradient(135deg,#fff,#eff8ff);border-bottom:1px solid #e5edf6}
.rncee-service-head h2{margin:0;font-size:26px}
.rncee-service-head p:last-child{margin:8px 0 0;color:#64748b}
.rncee-service-body{padding:24px 30px 28px}
.rncee-service-body label{display:block;margin-bottom:14px}
.rncee-service-body label span{display:block;margin-bottom:7px;color:#475569;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.rncee-service-body input,.rncee-service-body select,.rncee-service-body textarea{width:100%;border:1px solid #dbe3ef;border-radius:14px;padding:11px 12px;min-height:44px;background:#fff;color:#0f172a;box-sizing:border-box}
.rncee-service-body textarea{min-height:92px}
.rncee-report-print-head{margin-bottom:14px}
.rncee-report-print-head h2{margin:0;font-size:22px}
.rncee-report-print-head p{margin:6px 0 0;color:#64748b}
.rncee-orders-panel{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.rncee-orders-smart-table{border-collapse:separate!important;border-spacing:0 10px!important;background:transparent!important}
.rncee-orders-smart-table thead th{background:#f8fafc!important;border:0!important;color:#64748b!important;text-transform:uppercase;font-size:11px;letter-spacing:.05em;padding:12px 10px!important}
.rncee-order-smart-row td{background:#fff!important;border-top:1px solid #e5edf6!important;border-bottom:1px solid #e5edf6!important;padding:14px 10px!important;vertical-align:middle!important}
.rncee-order-smart-row td:first-child{border-left:1px solid #e5edf6!important;border-radius:16px 0 0 16px!important}
.rncee-order-smart-row td:last-child{border-right:1px solid #e5edf6!important;border-radius:0 16px 16px 0!important}
.rncee-order-smart-row:hover td{box-shadow:0 12px 30px rgba(15,23,42,.06);border-color:#bfdbfe!important}
.rncee-order-id-cell strong,.rncee-customer-cell strong,.rncee-cod-cell strong{display:block;color:#0f172a}
.rncee-order-id-cell small,.rncee-customer-cell small{display:block;color:#64748b;margin-top:4px}
.rncee-address-cell div{max-width:260px;line-height:1.45;color:#334155}
.rncee-products-cell{max-width:240px;color:#334155;line-height:1.45}
.rncee-status-soft{background:#eef2ff!important;color:#3730a3!important}
.rncee-courier-soft{background:#f1f5f9!important;color:#475569!important}
@media(max-width:900px){
  .rncee-service-ad{align-items:flex-start;flex-direction:column}
  .rncee-service-ad .rncee-btn{width:100%}
  .rncee-orders-smart-table{min-width:1200px}
}
@media(max-width:640px){
  .rncee-service-modal{padding:10px}
  .rncee-service-card{border-radius:22px}
  .rncee-service-head{padding:24px 18px 18px}
  .rncee-service-body{padding:18px}
  .rncee-service-head h2{font-size:22px}
}

/* v1.0.8 service banner + order manager polish */
.rncee-service-ad{
  max-width:1180px!important;min-height:96px!important;padding:20px 22px!important;border-radius:22px!important;
  border:1px solid rgba(56,189,248,.35)!important;background:
  radial-gradient(circle at 8% 20%,rgba(14,165,233,.18),transparent 28%),
  radial-gradient(circle at 90% 30%,rgba(34,197,94,.12),transparent 22%),
  linear-gradient(135deg,#ffffff 0%,#f3fbff 55%,#eef8ff 100%)!important;
  box-shadow:0 22px 70px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.8)!important;
  position:relative;overflow:hidden
}
.rncee-service-ad:before{content:'';position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#0ea5e9,#1d4ed8,#22c55e,#0ea5e9);background-size:260% 100%;animation:rnceeBeam 4s linear infinite}
.rncee-service-brand span{color:#0369a1!important;font-size:12px!important;letter-spacing:.16em!important}
.rncee-service-brand strong{font-size:20px!important;letter-spacing:-.02em!important}
.rncee-service-brand small{font-size:13px!important;max-width:720px!important}
.rncee-service-open{min-width:160px!important;height:48px!important;border-radius:16px!important;background:linear-gradient(135deg,#0f172a,#1e40af 65%,#0284c7)!important;border:0!important;box-shadow:0 16px 34px rgba(2,132,199,.25)!important}
.rncee-order-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:-2px 0 16px}
.rncee-order-tab{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border:1px solid #dbe7f3;border-radius:999px;background:#fff;text-decoration:none;font-weight:800;color:#334155;box-shadow:0 8px 18px rgba(15,23,42,.04)}
.rncee-order-tab.is-active{background:linear-gradient(135deg,#0f172a,#1e40af 60%,#0284c7);border-color:transparent;color:#fff!important;box-shadow:0 16px 34px rgba(2,132,199,.22)}
.rncee-sticky-action{position:sticky!important;right:0;z-index:2;background:inherit!important;box-shadow:-12px 0 24px rgba(255,255,255,.86)}
.rncee-order-smart-row .rncee-sticky-action{background:#fff!important}
.rncee-order-smart-row .rncee-btn-mini{border-radius:999px!important;font-weight:900!important;margin:2px!important}
.rncee-order-smart-row .rncee-order-open{background:#0f172a!important;color:#fff!important;border-color:#0f172a!important}
.rncee-order-edit-modal{position:fixed;inset:0;z-index:100140;background:radial-gradient(circle at 20% 10%,rgba(14,165,233,.22),transparent 28%),rgba(2,6,23,.70);backdrop-filter:blur(12px);display:none;align-items:center;justify-content:center;padding:20px}
.rncee-order-edit-modal.is-open{display:flex}
.rncee-order-edit-card{width:min(960px,96vw);max-height:92vh;overflow:auto;background:#fff;border:1px solid #dbeafe;border-radius:28px;box-shadow:0 36px 120px rgba(2,6,23,.42);position:relative}
.rncee-order-edit-card:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0ea5e9,#6366f1,#22c55e)}
.rncee-order-edit-close{position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:50%;border:1px solid #dbeafe;background:#fff;box-shadow:0 10px 25px rgba(15,23,42,.1);font-size:28px;line-height:38px;cursor:pointer;z-index:2}
.rncee-order-edit-head{padding:28px 32px 20px;background:linear-gradient(135deg,#fff,#eff8ff);border-bottom:1px solid #e5edf6}
.rncee-order-edit-head h2{font-size:28px;margin:0;color:#0f172a}
.rncee-order-edit-head p:last-child{color:#64748b;margin:8px 0 0}
.rncee-order-edit-body{padding:24px 32px 30px}
.rncee-order-edit-body label{display:block;margin-bottom:14px}
.rncee-order-edit-body label span{display:block;margin-bottom:8px;color:#475569;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.rncee-order-edit-body input,.rncee-order-edit-body select,.rncee-order-edit-body textarea{width:100%;border:1px solid #dbe3ef;border-radius:14px;padding:11px 12px;min-height:46px;background:#fff;color:#0f172a;box-sizing:border-box}
.rncee-order-edit-body textarea{min-height:92px}
.rncee-order-edit-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:6px}
.rncee-order-edit-message{margin-top:14px;padding:12px 14px;border-radius:14px;background:#f8fafc;color:#64748b;display:none}
.rncee-order-edit-message:not(:empty){display:block}.rncee-order-edit-message.is-success{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}.rncee-order-edit-message.is-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
@media(max-width:900px){.rncee-service-ad{min-height:0!important}.rncee-service-brand strong{font-size:18px!important}.rncee-order-edit-modal{padding:10px}.rncee-order-edit-card{max-height:96vh;border-radius:22px}.rncee-order-edit-head{padding:24px 18px 16px}.rncee-order-edit-body{padding:18px}.rncee-order-edit-head h2{font-size:22px}}

/* v1.0.9 order product/tracking polish */
.rncee-status-green{background:#dcfce7!important;color:#166534!important}
.rncee-status-blue{background:#eef2ff!important;color:#3730a3!important}
.rncee-status-orange{background:#ffedd5!important;color:#9a3412!important}
.rncee-status-red{background:#fee2e2!important;color:#991b1b!important}
.rncee-status-gray{background:#f1f5f9!important;color:#475569!important}
.rncee-courier-name-soft{background:#ecfeff!important;color:#155e75!important}
.rncee-courier-id-cell a{display:inline-flex;align-items:center;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8!important;border-radius:999px;padding:6px 9px;text-decoration:none;font-weight:800}
.rncee-courier-id-cell a:hover{background:#dbeafe}
.rncee-money-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rncee-edit-label{display:block;margin-bottom:8px;color:#475569;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.rncee-product-manager{border:1px solid #e5edf6;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);padding:16px}
.rncee-product-search-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:12px}
.rncee-product-search-results{display:grid;gap:8px;margin-bottom:12px;max-height:190px;overflow:auto}
.rncee-product-result{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #dbeafe;background:#fff;border-radius:14px;padding:10px 12px;cursor:pointer;text-align:left}
.rncee-product-result:hover{border-color:#38bdf8;box-shadow:0 10px 24px rgba(14,165,233,.12)}
.rncee-product-result strong{color:#0f172a}.rncee-product-result small{color:#64748b}
.rncee-selected-products{display:grid;gap:10px}
.rncee-edit-product-row{display:grid;grid-template-columns:1fr 90px 120px auto;gap:10px;align-items:center;border:1px solid #e5edf6;background:#fff;border-radius:16px;padding:10px}
.rncee-edit-product-row strong{display:block;color:#0f172a}.rncee-edit-product-row small{display:block;color:#64748b;margin-top:3px}
.rncee-edit-product-row input{min-height:40px!important}
.rncee-remove-product{width:40px!important;height:40px!important;min-height:40px!important;border-radius:50%!important;padding:0!important;font-size:18px!important}
.rncee-cod-total{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #bfdbfe;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#fff);padding:16px}
.rncee-cod-total span{color:#475569;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.rncee-cod-total strong{font-size:30px;color:#0f172a}
.rncee-cod-total small{color:#64748b}
@media(max-width:900px){.rncee-money-row{grid-template-columns:1fr}.rncee-product-search-row{grid-template-columns:1fr}.rncee-edit-product-row{grid-template-columns:1fr 1fr}.rncee-remove-product{width:100%!important;border-radius:12px!important}.rncee-cod-total{align-items:flex-start;flex-direction:column}.rncee-cod-total strong{font-size:26px}}

/* v1.0.10 About marketing + tracking polish */
.rncee-agency-panel{position:relative;overflow:hidden;background:linear-gradient(135deg,#ffffff 0%,#f6fbff 58%,#eef8ff 100%)!important;border-color:#cfe9ff!important}
.rncee-agency-panel:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0ea5e9,#1d4ed8,#22c55e,#0ea5e9);background-size:260% 100%;animation:rnceeBeam 4s linear infinite}
.rncee-agency-head{max-width:980px;margin-bottom:20px}
.rncee-agency-head h2{font-size:28px!important;letter-spacing:-.03em!important;margin-bottom:10px!important;color:#0f172a!important}
.rncee-agency-head p:last-child{font-size:15px!important;line-height:1.7!important;color:#475569!important;margin:0!important}
.rncee-agency-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.rncee-agency-card{background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:18px;box-shadow:0 14px 34px rgba(15,23,42,.06)}
.rncee-agency-card h3{margin:0 0 9px;font-size:17px;color:#0f172a}
.rncee-agency-card p{margin:0;color:#475569;line-height:1.65}
.rncee-agency-cta{margin-top:18px;border:1px solid #bfdbfe;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#fff);padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.rncee-agency-cta strong{font-size:17px;color:#0f172a}
@media(max-width:1100px){.rncee-agency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.rncee-agency-grid{grid-template-columns:1fr}.rncee-agency-head h2{font-size:22px!important}.rncee-agency-cta{align-items:flex-start;flex-direction:column}.rncee-agency-cta .rncee-btn{width:100%}}

/* v1.0.11 service marketing polish */
.rncee-service-ad{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;position:relative;overflow:hidden;background:linear-gradient(135deg,#f8fdff 0%,#edf8ff 45%,#e7fbff 100%)!important;border:1px solid rgba(56,189,248,.35)!important}.rncee-service-ad:after{content:"";position:absolute;inset:auto -18% -40% auto;width:240px;height:240px;background:radial-gradient(circle,rgba(34,197,94,.16),transparent 60%);pointer-events:none}.rncee-service-brand{flex:1 1 auto}.rncee-service-brand strong{display:block;margin:4px 0 6px;font-size:20px;color:#0f172a}.rncee-service-brand small{display:block;max-width:780px;line-height:1.65;color:#475569}.rncee-service-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.rncee-service-tags em{font-style:normal;font-size:12px;font-weight:800;color:#075985;background:rgba(255,255,255,.86);border:1px solid #bae6fd;border-radius:999px;padding:7px 10px;box-shadow:0 8px 18px rgba(14,165,233,.08)}.rncee-service-cta-wrap{display:flex;gap:10px;align-items:center;position:relative;z-index:1}.rncee-service-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 16px;border-radius:14px;background:#fff;border:1px solid #bfdbfe;color:#0f172a!important;text-decoration:none;font-weight:800;box-shadow:0 14px 30px rgba(15,23,42,.08)}.rncee-service-modal{position:fixed;inset:0;z-index:100220;background:radial-gradient(circle at 20% 10%,rgba(14,165,233,.18),transparent 26%),radial-gradient(circle at 80% 0%,rgba(34,197,94,.12),transparent 22%),rgba(2,6,23,.64);display:none;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(12px)}.rncee-service-modal.is-open{display:flex}.rncee-service-card{width:min(880px,96vw);max-height:92vh;overflow:auto;position:relative;background:linear-gradient(180deg,#fff,#f9fbff);border:1px solid #d7ecff;border-radius:28px;box-shadow:0 40px 120px rgba(2,6,23,.35)}.rncee-service-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0ea5e9,#2563eb,#22c55e,#38bdf8);background-size:250% 100%;animation:rnceeBeam 4s linear infinite}.rncee-service-close{position:absolute;top:14px;right:14px;width:44px;height:44px;border-radius:50%;border:1px solid #dbeafe;background:#fff;color:#0f172a;font-size:30px;line-height:36px;cursor:pointer;box-shadow:0 16px 32px rgba(15,23,42,.12)}.rncee-service-head{padding:26px 30px 18px;border-bottom:1px solid #e5edf6;background:linear-gradient(135deg,#fbfeff,#eef8ff)}.rncee-service-head h2{margin:0;font-size:32px;line-height:1.15;color:#0f172a}.rncee-service-head p:last-child{margin:8px 0 0;color:#64748b;font-size:15px}.rncee-service-body{padding:22px 28px 28px}.rncee-service-select-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}.rncee-service-select-head span{display:block;color:#475569;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.rncee-service-select-head small{color:#64748b}.rncee-service-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rncee-service-option{position:relative;display:block;cursor:pointer}.rncee-service-option input{position:absolute;opacity:0;pointer-events:none}.rncee-service-option-ui{display:block;position:relative;padding:16px 18px;border-radius:20px;border:1px solid #dbeafe;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 12px 28px rgba(15,23,42,.05);transition:.2s ease}.rncee-service-option-ui strong{display:block;color:#0f172a;font-size:17px}.rncee-service-option-ui small{display:block;color:#64748b;margin-top:5px}.rncee-service-option-ui i{position:absolute;top:14px;right:14px;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e5eef9;color:transparent;font-style:normal;font-weight:900;transition:.2s ease}.rncee-service-option:hover .rncee-service-option-ui,.rncee-service-option.is-active .rncee-service-option-ui{transform:translateY(-2px);border-color:#60a5fa;box-shadow:0 18px 35px rgba(37,99,235,.14), inset 0 0 0 1px rgba(191,219,254,.4);background:linear-gradient(135deg,#fff,#eef7ff)}.rncee-service-option.is-active .rncee-service-option-ui i{background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff}.rncee-service-nav{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.rncee-service-step label span{display:block;margin-bottom:8px;color:#475569;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.rncee-service-step input,.rncee-service-step textarea{width:100%;border:1px solid #dbe3ef;border-radius:14px;padding:12px 13px;min-height:46px;background:#fff;color:#0f172a;box-sizing:border-box}.rncee-service-step textarea{min-height:96px}.rncee-agency-head h2{font-size:30px!important;max-width:900px}.rncee-agency-highlight{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 20px;padding:16px 18px;border-radius:18px;border:1px solid #bfdbfe;background:linear-gradient(135deg,#eff6ff,#fff)}.rncee-agency-highlight strong{display:block;font-size:18px;color:#0f172a}.rncee-agency-highlight small{color:#64748b}.rncee-agency-card ul,.rncee-agency-list ul{margin:10px 0 0;padding:0;list-style:none}.rncee-agency-card li,.rncee-agency-list li{position:relative;padding:0 0 0 22px;margin:0 0 9px;color:#475569;line-height:1.6}.rncee-agency-card li:before,.rncee-agency-list li:before{content:"✓";position:absolute;left:0;top:0;color:#0ea5e9;font-weight:900}.rncee-agency-list-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.rncee-agency-list{background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:18px;box-shadow:0 14px 34px rgba(15,23,42,.05)}.rncee-agency-list h3{margin:0 0 10px;color:#0f172a}@media(max-width:900px){.rncee-service-ad{flex-direction:column;align-items:flex-start}.rncee-service-cta-wrap{width:100%;flex-wrap:wrap}.rncee-service-link,.rncee-service-open{flex:1 1 180px}.rncee-service-options{grid-template-columns:1fr}.rncee-service-head h2{font-size:25px}.rncee-service-body{padding:18px}.rncee-agency-highlight{flex-direction:column;align-items:flex-start}.rncee-agency-list-panel{grid-template-columns:1fr}}


/* RNCEE remote announcement popup */
.rncee-remote-popup{position:fixed;inset:0;z-index:100300;background:rgba(2,6,23,.62);display:none;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(10px)}
.rncee-remote-popup.is-open{display:flex}
.rncee-remote-card{width:min(680px,94vw);min-height:260px;background:#fff;border:1px solid #dbeafe;border-radius:28px;box-shadow:0 40px 120px rgba(2,6,23,.36);position:relative;overflow:hidden}
.rncee-remote-card:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0ea5e9,#2563eb,#22c55e,#38bdf8)}
.rncee-remote-close{position:absolute;right:14px;top:14px;width:42px;height:42px;border-radius:50%;border:1px solid #dbeafe;background:#fff;font-size:26px;line-height:36px;cursor:pointer;z-index:2}
.rncee-remote-slide{display:none;padding:34px;text-align:left;cursor:pointer;animation:rnceeFade .35s ease}
.rncee-remote-slide.active{display:block}
.rncee-remote-slide img{max-width:100%;border-radius:18px;margin-bottom:14px}
.rncee-remote-slide h2{font-size:28px;line-height:1.15;margin:0 48px 10px 0;color:#0f172a}
.rncee-remote-slide p{font-size:15px;line-height:1.7;color:#475569;margin:0 0 16px}
@keyframes rnceeFade{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:none}}

.rncee-force-update-notice{position:fixed;inset:0;z-index:100400;background:rgba(15,23,42,.62);display:none;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(8px)}
.rncee-force-update-notice.is-open{display:flex}
.rncee-force-update-card{width:min(560px,94vw);background:#fff;border-radius:24px;border:1px solid #fecaca;padding:28px;box-shadow:0 40px 120px rgba(127,29,29,.26);position:relative}
.rncee-force-update-card h2{margin:0 40px 10px 0;color:#7f1d1d}
.rncee-force-update-card p{color:#475569;font-size:15px;line-height:1.6}
.rncee-force-update-close{position:absolute;right:14px;top:14px;border:1px solid #fecaca;background:#fff;border-radius:50%;width:38px;height:38px;font-size:24px;cursor:pointer}

/* v1.3.1 client cleanup */
.rncee-settings-note{
    background:#f8fafc;
    border:1px dashed #cbd5e1;
    border-radius:18px;
    padding:14px 16px;
    color:#475569;
    line-height:1.6;
}
.rncee-tracking-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 12px;
    border-radius:999px;
    background:#dbeafe;
    color:#1d4ed8;
    border:1px solid #bfdbfe;
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
}
.rncee-tracking-link:hover{background:#bfdbfe;color:#1e40af}
.rncee-tracking-link-disabled{
    background:#f1f5f9;
    color:#64748b;
    border-color:#e2e8f0;
}
.rncee-agency-panel{margin-top:28px!important;padding:24px!important}
.rncee-agency-head-clean{padding:4px 0 18px!important}
.rncee-agency-head-clean h2{
    max-width:980px;
    line-height:1.08!important;
    letter-spacing:-.035em;
    margin:8px 0 14px!important;
}
.rncee-agency-head-clean p{
    max-width:1120px;
    line-height:1.65!important;
    margin:0!important;
}
.rncee-agency-grid{gap:18px!important;margin-top:20px!important}
.rncee-agency-card{padding:20px!important}

/* v1.3.9 order UX */
.rncee-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0 16px}
.rncee-products-cell{min-width:220px}
.rncee-product-stack{display:flex;flex-direction:column;gap:8px}
.rncee-product-item{display:flex;align-items:center;gap:10px}
.rncee-product-item img,.rncee-edit-product-thumb,.rncee-product-result-media{width:42px;height:42px;object-fit:cover;border-radius:10px;border:1px solid #dbe5f5;background:#fff}
.rncee-product-thumb-placeholder,.rncee-edit-product-thumb-placeholder,.rncee-product-result-placeholder{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;background:#eef2ff;border:1px dashed #cbd5e1}
.rncee-edit-product-info{display:flex;align-items:center;gap:10px}
.rncee-product-result{display:flex;align-items:center;gap:10px;width:100%;text-align:left}
.rncee-product-result span{display:flex;flex-direction:column}
.rncee-courier-brand-carrybee{background:#e6f9f8;color:#007f7a}
.rncee-courier-brand-pathao{background:#e6fbf1;color:#00a651}
.rncee-courier-brand-redx{background:#fdeaea;color:#e53935}
.rncee-courier-brand-steadfast{background:#fff4e5;color:#ff8f00}
.rncee-courier-brand-ecourier{background:#e7f2ff;color:#1a73e8}
.rncee-courier-brand-paperfly{background:#ede9fe;color:#6d28d9}
.rncee-courier-brand-default{background:#f3f4f6;color:#334155}
.rncee-courier-status-success{background:#ecfdf3;color:#15803d}
.rncee-courier-status-failed{background:#fef2f2;color:#dc2626}
.rncee-courier-status-skipped{background:#fff7ed;color:#c2410c}
.rncee-courier-status-default{background:#f1f5f9;color:#334155}
.rncee-status-purple{background:#f5f3ff !important;color:#6d28d9 !important}
.rncee-mini-popup{position:fixed;inset:0;background:rgba(15,23,42,.42);display:none;z-index:100001;padding:20px}
.rncee-mini-popup.is-open{display:flex;align-items:flex-start;justify-content:flex-end}
.rncee-mini-popup-card{width:min(360px,100%);background:#fff;border-radius:18px;padding:18px;box-shadow:0 24px 64px rgba(15,23,42,.22);position:relative}
.rncee-mini-popup-close{position:absolute;right:12px;top:12px;border:none;background:#f8fafc;border-radius:999px;width:32px;height:32px;font-size:18px;cursor:pointer}
.rncee-mini-popup-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-right:34px;margin-bottom:12px}
.rncee-mini-popup-section{padding:12px 0;border-top:1px solid #e2e8f0}
.rncee-mini-popup-section>span{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b;margin-bottom:8px}
.rncee-mini-popup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rncee-global-banner{position:relative;margin:8px 0 16px;padding:8px 44px 0 0}
.rncee-global-banner-close{position:absolute;right:8px;top:8px;border:none;background:#fff;color:#0f172a;border-radius:999px;width:30px;height:30px;box-shadow:0 6px 20px rgba(15,23,42,.12);cursor:pointer;z-index:2}
.rncee-service-ad-global{cursor:pointer}
@media (max-width: 900px){.rncee-mini-popup.is-open{justify-content:center;align-items:flex-end}.rncee-mini-popup-card{width:100%}.rncee-product-item img,.rncee-edit-product-thumb,.rncee-product-result-media{width:34px;height:34px}}

/* v1.3.11 performance/new order/final colors */
.rncee-order-tabs{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.rncee-order-tab{display:inline-flex!important;align-items:center;gap:8px}
.rncee-order-tab em{font-style:normal;min-width:22px;height:22px;border-radius:999px;background:#eef2ff;color:#1e40af;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;padding:0 7px}
.rncee-order-tab.is-active em{background:rgba(255,255,255,.2);color:#fff}
.rncee-toolbar{display:flex!important;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:14px 0 16px}
.rncee-toolbar-left,.rncee-toolbar-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rncee-status-soft{border:1px solid transparent}
.rncee-status-blue{background:#eef2ff!important;color:#3730a3!important;border-color:#c7d2fe!important}
.rncee-status-green{background:#ecfdf3!important;color:#15803d!important;border-color:#bbf7d0!important}
.rncee-status-orange{background:#fff7ed!important;color:#c2410c!important;border-color:#fed7aa!important}
.rncee-status-red{background:#fef2f2!important;color:#dc2626!important;border-color:#fecaca!important}
.rncee-status-purple{background:#f5f3ff!important;color:#6d28d9!important;border-color:#ddd6fe!important}
.rncee-status-gray{background:#f1f5f9!important;color:#334155!important;border-color:#e2e8f0!important}
.rncee-courier-brand-carrybee{background:#e6f9f8!important;color:#007f7a!important;border-color:#b7efec!important}
.rncee-courier-brand-pathao{background:#e6fbf1!important;color:#00a651!important;border-color:#bbf7d0!important}
.rncee-courier-brand-redx{background:#fdeaea!important;color:#e53935!important;border-color:#fecaca!important}
.rncee-courier-brand-steadfast{background:#fff4e5!important;color:#ff8f00!important;border-color:#fed7aa!important}
.rncee-courier-brand-ecourier{background:#e7f2ff!important;color:#1a73e8!important;border-color:#bfdbfe!important}
.rncee-courier-brand-paperfly{background:#ede9fe!important;color:#6d28d9!important;border-color:#ddd6fe!important}
.rncee-courier-status-success{background:#ecfdf3!important;color:#15803d!important}
.rncee-courier-status-failed{background:#fef2f2!important;color:#dc2626!important}
.rncee-courier-status-skipped{background:#fff7ed!important;color:#c2410c!important}
.rncee-product-stack{display:flex;flex-direction:column;gap:8px;min-width:160px}
.rncee-product-item{display:flex;align-items:center;gap:10px}
.rncee-product-item img,.rncee-product-thumb-placeholder{width:42px;height:42px;border-radius:10px;object-fit:cover;border:1px solid #dbe5f5;background:#fff;display:inline-flex;align-items:center;justify-content:center}
.rncee-new-order-modal{position:fixed;inset:0;z-index:100002;background:rgba(15,23,42,.52);display:none;align-items:flex-start;justify-content:center;overflow:auto;padding:24px}
.rncee-new-order-modal.is-open{display:flex}
.rncee-new-order-card{width:min(920px,96vw);background:#fff;border-radius:26px;box-shadow:0 30px 100px rgba(15,23,42,.25);border:1px solid #dbeafe;padding:28px;position:relative}
.rncee-new-order-close{position:absolute;right:18px;top:18px;width:40px;height:40px;border-radius:999px;border:none;background:#f8fafc;font-size:24px;cursor:pointer}
.rncee-new-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.rncee-new-order-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700;color:#475569}
.rncee-new-order-grid input,.rncee-new-order-grid textarea{border:1px solid #dbe3ef;border-radius:14px;padding:12px 14px;font-size:15px}
.rncee-field-wide{grid-column:1/-1}
.rncee-new-order-total{margin-top:16px;padding:14px 16px;border:1px dashed #93c5fd;border-radius:16px;background:#eff6ff;font-weight:700}
.rncee-done-popup{position:fixed;inset:0;background:rgba(15,23,42,.18);z-index:100005;display:none;align-items:center;justify-content:center}
.rncee-done-popup.is-open{display:flex}
.rncee-done-card{background:#fff;border-radius:24px;padding:34px 42px;text-align:center;box-shadow:0 30px 90px rgba(22,163,74,.22);border:1px solid #bbf7d0;animation:rnceeDonePop .35s ease-out}
.rncee-done-icon{width:72px;height:72px;margin:0 auto 12px;border-radius:999px;background:#22c55e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:900;animation:rnceeDonePulse 1s ease-in-out infinite}
.rncee-done-card h3{margin:0 0 6px;font-size:24px}
.rncee-done-card p{margin:0;color:#64748b}
@keyframes rnceeDonePop{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes rnceeDonePulse{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.35)}50%{box-shadow:0 0 0 14px rgba(34,197,94,0)}}
.rncee-edit-product-thumb,.rncee-product-result-media{width:42px;height:42px;border-radius:10px;object-fit:cover;border:1px solid #dbe5f5;background:#fff}
@media(max-width:780px){.rncee-new-order-grid{grid-template-columns:1fr}.rncee-toolbar{align-items:stretch}.rncee-toolbar-left,.rncee-toolbar-right{width:100%}.rncee-toolbar-right .rncee-btn{width:100%}}

/* v1.3.12 final polish: font conflict, banner center, mini popup placement */
.rncee-wrap,.rncee-wrap *,.rncee-view,.rncee-view *,.rncee-orders-table,.rncee-orders-table *,.rncee-order-edit-modal,.rncee-order-edit-modal *,.rncee-mini-popup,.rncee-mini-popup *,.rncee-remote-popup,.rncee-remote-popup *,.rncee-global-banner,.rncee-global-banner *{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif !important;
    text-rendering: geometricPrecision;
}
.rncee-product-thumb-placeholder,.rncee-edit-product-thumb-placeholder,.rncee-product-result-placeholder{font-family:Arial,sans-serif!important;color:transparent;position:relative}
.rncee-product-thumb-placeholder:before,.rncee-edit-product-thumb-placeholder:before,.rncee-product-result-placeholder:before{content:"";width:18px;height:18px;border:1px solid #cbd5e1;border-radius:4px;background:linear-gradient(135deg,#f8fafc,#e2e8f0);display:block}
.rncee-global-banner{max-width:1180px;margin:12px auto 18px!important;padding:0!important}
.rncee-global-banner .rncee-service-ad{position:relative;max-width:100%;margin:0 auto;border-radius:24px;padding:22px 64px 22px 24px}
.rncee-global-banner-close{right:16px!important;top:16px!important;width:34px!important;height:34px!important;background:#ffffff!important;border:1px solid #dbeafe!important;color:#0f172a!important}
.rncee-mini-popup{background:transparent!important;pointer-events:auto}
.rncee-mini-popup.is-open{display:block!important}
.rncee-mini-popup-card{position:absolute!important;right:auto!important;top:auto;box-shadow:0 22px 70px rgba(15,23,42,.22)}
.rncee-courier-warning{margin:14px 0;padding:14px 16px;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:16px;font-weight:700;line-height:1.55}
.rncee-order-edit-modal .rncee-order-edit-card{max-height:calc(100vh - 28px);overflow:auto}
.rncee-order-edit-message.is-success{border-color:#bbf7d0;background:#ecfdf3;color:#15803d}
.rncee-order-edit-message.is-error{border-color:#fecaca;background:#fef2f2;color:#dc2626}
.rncee-product-search-results{margin-top:10px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;max-height:260px;overflow:auto}
.rncee-product-result{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:10px;cursor:pointer}
.rncee-product-result:hover{border-color:#93c5fd;background:#eff6ff}
@media(max-width:800px){
  .rncee-global-banner .rncee-service-ad{padding:20px 52px 20px 18px}
  .rncee-mini-popup-card{left:14px!important;right:14px!important;width:auto!important}
}

/* v1.3.13 emergency font conflict fix
   Some live sites map theme/icon fonts incorrectly, causing all text to render as symbols.
   RongNova UI must use browser-safe system fonts only. */
:root{
    --rncee-safe-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif;
}
body.wp-admin .rncee-wrap,
body.wp-admin .rncee-wrap *,
body.wp-admin .rncee-view,
body.wp-admin .rncee-view *,
body.wp-admin .rncee-admin,
body.wp-admin .rncee-admin *,
body.wp-admin .rncee-dashboard,
body.wp-admin .rncee-dashboard *,
body.wp-admin .rncee-card,
body.wp-admin .rncee-card *,
body.wp-admin .rncee-orders-table,
body.wp-admin .rncee-orders-table *,
body.wp-admin .rncee-order-tabs,
body.wp-admin .rncee-order-tabs *,
body.wp-admin .rncee-toolbar,
body.wp-admin .rncee-toolbar *,
body.wp-admin .rncee-order-edit-modal,
body.wp-admin .rncee-order-edit-modal *,
body.wp-admin .rncee-new-order-modal,
body.wp-admin .rncee-new-order-modal *,
body.wp-admin .rncee-mini-popup,
body.wp-admin .rncee-mini-popup *,
body.wp-admin .rncee-remote-popup,
body.wp-admin .rncee-remote-popup *,
body.wp-admin .rncee-global-banner,
body.wp-admin .rncee-global-banner *,
body.wp-admin .rncee-service-ad,
body.wp-admin .rncee-service-ad *,
body.wp-admin .rncee-doc-modal,
body.wp-admin .rncee-doc-modal *,
body.wp-admin .rncee-service-modal,
body.wp-admin .rncee-service-modal *,
.rncee-frontend-popup,
.rncee-frontend-popup *,
.rncee-remote-popup,
.rncee-remote-popup *{
    font-family:var(--rncee-safe-font)!important;
    font-variant-ligatures:normal!important;
    font-feature-settings:normal!important;
    letter-spacing:normal;
}

/* Keep dashicons/icon fonts working only where WordPress expects icons */
body.wp-admin .rncee-wrap .dashicons,
body.wp-admin .rncee-view .dashicons,
body.wp-admin .rncee-global-banner .dashicons{
    font-family:dashicons!important;
}

/* Replace emoji placeholders with CSS box icon so emoji-font conflict cannot break UI */
.rncee-product-thumb-placeholder,
.rncee-edit-product-thumb-placeholder,
.rncee-product-result-placeholder{
    font-family:var(--rncee-safe-font)!important;
    color:transparent!important;
    font-size:0!important;
    position:relative!important;
}
.rncee-product-thumb-placeholder:before,
.rncee-edit-product-thumb-placeholder:before,
.rncee-product-result-placeholder:before{
    content:"";
    width:18px;
    height:18px;
    border:1px solid #cbd5e1;
    border-radius:4px;
    background:linear-gradient(135deg,#f8fafc,#e2e8f0);
    display:block;
}

/* v1.3.14 bulk action anchored popup fix */
.rncee-mini-popup{
    position:absolute!important;
    inset:0!important;
    background:transparent!important;
    display:none;
    z-index:100001!important;
    padding:0!important;
    pointer-events:none!important;
}
.rncee-mini-popup.is-open{
    display:block!important;
}
.rncee-mini-popup-card{
    position:absolute!important;
    width:min(360px,calc(100vw - 28px))!important;
    max-height:calc(100vh - 28px)!important;
    overflow:auto!important;
    pointer-events:auto!important;
    margin:0!important;
    right:auto!important;
    bottom:auto!important;
}

/* v1.3.15 Invoice & Sticker Editor */
.rncee-print-editor-panel{
    margin-top:24px;
    padding:22px;
    border:1px solid #dbeafe;
    border-radius:22px;
    background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.rncee-print-editor-panel h2{
    margin:0 0 6px;
    font-size:22px;
}
.rncee-print-editor-panel p{
    margin:0 0 18px;
    color:#64748b;
}

/* v1.3.16 print editor redesign */
.rncee-settings-help-box{
  margin-top:24px;
  padding:24px;
  border:1px solid #dbeafe;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
}
.rncee-settings-help-box h2{margin:0 0 8px;font-size:24px}
.rncee-settings-help-box p{margin:0 0 16px;color:#64748b}
.rncee-print-editor-layout{display:flex;flex-direction:column;gap:18px}
.rncee-print-editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.rncee-toggle-group{display:flex;gap:10px;flex-wrap:wrap}
.rncee-toggle-btn{appearance:none;border:1px solid #cbd5e1;background:#fff;color:#0f172a;padding:12px 18px;border-radius:999px;font-weight:700;cursor:pointer}
.rncee-toggle-btn.is-active{background:#0f172a;color:#fff;border-color:#0f172a}
.rncee-locked-footer-box{padding:12px 16px;border:1px solid #dbeafe;border-radius:18px;background:#f8fbff;color:#334155;max-width:700px}
.rncee-print-editor-main{display:grid;grid-template-columns:minmax(380px,1fr) minmax(360px,520px);gap:18px;align-items:start}
.rncee-print-editor-fields,.rncee-print-editor-preview{padding:22px;border-radius:24px;background:#fff;border:1px solid #e2e8f0}
.rncee-print-editor-fields h2{margin:0 0 14px;font-size:22px}
.rncee-print-editor-actions{margin-top:18px;display:flex;gap:12px}
.rncee-preview-head h2{margin:0 0 6px;font-size:22px}
.rncee-preview-head p{margin:0 0 14px;color:#64748b}
#rncee-print-preview{border:1px dashed #cbd5e1;border-radius:20px;background:#f8fafc;padding:16px;min-height:620px;overflow:auto}
#rncee-print-preview .rncee-preview-canvas{display:flex;justify-content:center;align-items:flex-start;transform-origin:top center}
#rncee-print-preview .rncee-preview-sticker .sticker-page{box-shadow:0 8px 28px rgba(15,23,42,.08);transform:scale(1.12);margin-top:28px}
#rncee-print-preview .rncee-preview-invoice .invoice-page{box-shadow:0 10px 28px rgba(15,23,42,.08);transform:scale(.46);transform-origin:top center;margin:-130px auto 0}
@media (max-width: 1280px){
  .rncee-print-editor-main{grid-template-columns:1fr}
  #rncee-print-preview .rncee-preview-invoice .invoice-page{transform:scale(.58);margin:-80px auto 0}
}

/* v1.3.17 print editor polish */
.rncee-editor-section{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #e2e8f0}
.rncee-editor-section:last-of-type{border-bottom:none;margin-bottom:0;padding-bottom:0}
.rncee-editor-section h2{margin:0 0 14px;font-size:22px;color:#0f172a}
.rncee-editor-readonly input[disabled]{background:#f8fafc;color:#475569}
#rncee-print-preview .rncee-preview-sticker .sticker-page{transform:scale(1.16);margin-top:34px}
#rncee-print-preview .rncee-preview-invoice .invoice-page{transform:scale(.48);transform-origin:top center;margin:-120px auto 0}
@media (max-width: 1280px){
  #rncee-print-preview .rncee-preview-sticker .sticker-page{transform:scale(1.08);margin-top:20px}
  #rncee-print-preview .rncee-preview-invoice .invoice-page{transform:scale(.56);margin:-70px auto 0}
}

/* v1.3.18 editor polish */
.rncee-print-editor-toolbar{align-items:flex-start}
.rncee-locked-footer-box{display:none!important}
.rncee-editor-soft-note{
    padding:12px 14px;
    border-radius:14px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    color:#64748b;
    font-weight:600;
}
.rncee-editor-mode-block{transition:opacity .18s ease}
.rncee-print-editor-fields select{
    width:100%;
    border:1px solid #dbe3ef;
    border-radius:14px;
    padding:12px 14px;
    background:#fff;
    min-height:44px;
}
#rncee-print-preview .rncee-preview-sticker{
    min-height:460px;
}
#rncee-print-preview .rncee-preview-invoice{
    min-height:760px;
}

/* v1.3.19 UI polish: buttons, copy, print status, tags, product variation */
.rncee-btn,.rncee-order-tab,.rncee-toggle-btn,.rncee-product-result,.rncee-variation-option{
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease!important;
}
.rncee-btn:hover,.rncee-order-tab:hover,.rncee-toggle-btn:hover,.rncee-product-result:hover,.rncee-variation-option:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 24px rgba(15,23,42,.12)!important;
    border-color:#93c5fd!important;
}
.rncee-btn.is-clicked,.rncee-order-tab.is-clicked,.rncee-toggle-btn.is-clicked{
    transform:scale(.97);
    box-shadow:0 0 0 4px rgba(37,99,235,.12)!important;
}
.rncee-copyable{cursor:pointer;border-bottom:1px dashed rgba(37,99,235,.45)}
.rncee-copied-tip{display:inline-block;margin-left:6px;font-size:11px;color:#16a34a;font-weight:800}
.rncee-print-done{display:flex;align-items:center;gap:7px;min-width:120px}
.rncee-print-tick{width:24px;height:24px;border-radius:999px;background:#22c55e;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:900}
.rncee-print-done small{font-size:11px;line-height:1.25;color:#475569}
.rncee-print-empty{color:#94a3b8}
.rncee-tags-wrap{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:160px}
.rncee-order-tag{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900;border:1px solid transparent}
.rncee-tag-red{background:#fef2f2;color:#dc2626;border-color:#fecaca}
.rncee-tag-orange{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.rncee-tag-purple{background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe}
.rncee-tag-blue{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.rncee-tag-green{background:#ecfdf3;color:#15803d;border-color:#bbf7d0}
.rncee-tag-gray{background:#f1f5f9;color:#334155;border-color:#e2e8f0}
.rncee-tag-add{width:24px;height:24px;border-radius:999px;border:1px dashed #94a3b8;background:#fff;color:#0f172a;font-weight:900;cursor:pointer}
.rncee-tag-popup{position:fixed;inset:0;z-index:100160;background:rgba(15,23,42,.35);display:none;align-items:center;justify-content:center;padding:20px}
.rncee-tag-popup.is-open{display:flex}
.rncee-tag-popup-card{width:min(420px,96vw);background:#fff;border-radius:22px;border:1px solid #dbeafe;box-shadow:0 26px 90px rgba(15,23,42,.24);padding:22px;position:relative}
.rncee-tag-popup-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;cursor:pointer}
.rncee-tag-options{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.rncee-tag-option{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border-radius:999px;cursor:pointer;font-weight:800}
.rncee-variation-backdrop{position:fixed;inset:0;z-index:100170;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:20px}
.rncee-variation-card{width:min(520px,96vw);background:#fff;border:1px solid #dbeafe;border-radius:24px;padding:22px;box-shadow:0 30px 100px rgba(15,23,42,.25);position:relative}
.rncee-variation-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;cursor:pointer;font-size:18px}
.rncee-variation-head{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding-right:34px}
.rncee-variation-head img{width:62px;height:62px;object-fit:cover;border-radius:14px;border:1px solid #e2e8f0}
.rncee-variation-head h3{margin:0 0 4px;font-size:20px}
.rncee-variation-head p{margin:0;color:#64748b}
.rncee-variation-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.rncee-variation-option{background:#fff;border:1px solid #dbe3ef;border-radius:16px;padding:12px;text-align:left;cursor:pointer}
.rncee-variation-option strong{display:block;font-size:18px}
.rncee-variation-option span{display:block;font-size:11px;color:#64748b;margin:4px 0}
.rncee-variation-option b{font-size:13px}
#rncee-print-preview .rncee-preview-invoice{
    width:100%;
    min-height:720px;
    overflow:auto;
}
#rncee-print-preview .rncee-preview-invoice .invoice-page{
    width:210mm!important;
    min-height:297mm!important;
    transform:scale(.52)!important;
    transform-origin:top center!important;
    margin:-95px auto -250px!important;
    background:#fff!important;
}
#rncee-print-preview .invoice-qr-barcode .rncee-barcode-svg{height:42px!important}
@media(max-width:1200px){
  #rncee-print-preview .rncee-preview-invoice .invoice-page{transform:scale(.44)!important;margin:-130px auto -330px!important}
}

/* v1.3.20 instant tag and variation hotfix */
.rncee-tag-popup{
    position:absolute!important;
    inset:0!important;
    background:transparent!important;
    display:none;
    z-index:100180!important;
    pointer-events:none!important;
}
.rncee-tag-popup.is-open{display:block!important}
.rncee-tag-popup-card{
    width:360px!important;
    max-width:calc(100vw - 24px)!important;
    pointer-events:auto!important;
    border-radius:18px!important;
    padding:18px!important;
    box-shadow:0 18px 50px rgba(15,23,42,.18)!important;
}
.rncee-tag-popup-card h3{margin:0 0 4px!important;font-size:18px!important}
.rncee-tag-popup-card p{margin:0 0 12px!important;color:#64748b!important}
.rncee-tag-options{gap:8px!important;margin:12px 0!important}
.rncee-tag-option{padding:8px 10px!important}
.rncee-tag-red{background:#fee2e2!important;color:#b91c1c!important;border-color:#fca5a5!important}
.rncee-tag-orange{background:#ffedd5!important;color:#c2410c!important;border-color:#fdba74!important}
.rncee-tag-purple{background:#ede9fe!important;color:#6d28d9!important;border-color:#c4b5fd!important}
.rncee-tag-blue{background:#dbeafe!important;color:#1d4ed8!important;border-color:#93c5fd!important}
.rncee-tag-green{background:#dcfce7!important;color:#15803d!important;border-color:#86efac!important}
.rncee-order-tag[data-tag="duplicate"],
.rncee-tag-option input[value="duplicate"] + span{font-weight:900}
.rncee-variation-card{max-height:90vh;overflow:auto}
.rncee-variation-option strong{font-size:20px!important;color:#0f172a}
.rncee-variation-option:hover{background:#eff6ff!important}

/* v1.3.21 speed/tag/print/product polish */
.rncee-product-advanced-row{
    display:grid;
    grid-template-columns:1fr 1fr 140px;
    gap:10px;
    margin:-4px 0 12px;
}
.rncee-product-advanced-row input,
.rncee-product-advanced-row select{
    border:1px solid #dbe3ef;
    border-radius:13px;
    padding:10px 12px;
    min-height:42px;
    background:#fff;
}
.rncee-mini-popup-section .rncee-bulk-tag-action{
    background:#f8fbff;
}
.rncee-print-history-card{
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:12px;
}
@media(max-width:720px){
    .rncee-product-advanced-row{grid-template-columns:1fr}
}

/* v1.3.22 pagination ajax reports cleanup */
#rncee-orders-dynamic-area{position:relative;transition:opacity .18s ease}
#rncee-orders-dynamic-area.is-loading{opacity:.55;pointer-events:none}
#rncee-orders-dynamic-area.is-loading:after{
    content:"Loading...";
    position:absolute;
    right:18px;
    top:18px;
    background:#0f172a;
    color:#fff;
    padding:8px 12px;
    border-radius:999px;
    font-weight:800;
    z-index:20;
}
.rncee-pagination-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-top:12px;
    padding:14px 16px;
    border:1px solid #e2e8f0;
    border-radius:18px;
    background:#fff;
}
.rncee-pagination-actions{display:flex;gap:10px;align-items:center}
.rncee-perf-bar{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-top:6px;min-width:130px}
.rncee-perf-bar span{display:block;height:100%;background:#22c55e;border-radius:999px}
.rncee-duplicate-center h2{margin-top:0}
.rncee-btn-mini{padding:6px 10px!important;min-height:30px!important;font-size:12px!important}
@media(max-width:720px){
    .rncee-pagination-bar{align-items:flex-start;flex-direction:column}
}

/* v1.3.23 total pagination row update duplicate resolve status colors */
.rncee-status-green{
    background:#dcfce7!important;
    color:#15803d!important;
    border:1px solid #86efac!important;
}
.rncee-status-red{
    background:#fee2e2!important;
    color:#b91c1c!important;
    border:1px solid #fca5a5!important;
}
.rncee-status-yellow{
    background:#fef3c7!important;
    color:#b45309!important;
    border:1px solid #fcd34d!important;
}
.rncee-status-blue{
    background:#dbeafe!important;
    color:#1d4ed8!important;
    border:1px solid #93c5fd!important;
}
.rncee-order-smart-row[data-order-id]{
    transition:background .22s ease, box-shadow .22s ease;
}
.rncee-order-smart-row[data-order-id].is-row-updated{
    background:#f0fdf4!important;
    box-shadow:inset 4px 0 0 #22c55e;
}
.rncee-dup-resolved-count{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border-radius:999px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    margin:8px 0 14px;
}
.rncee-resolve-duplicate{
    background:#f8fbff!important;
}
.rncee-pagination-bar strong{
    color:#0f172a;
}

/* v1.4.0 Phase 1 — Order Core & Safety */
.rncee-mini-badge-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.rncee-repeat-badge,.rncee-lock-badge{
    display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900;letter-spacing:.01em
}
.rncee-repeat-badge{background:#dcfce7;color:#15803d;border:1px solid #86efac}
.rncee-lock-badge{background:#fef3c7;color:#92400e;border:1px solid #facc15}
.rncee-lock-warning{
    border:1px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:18px;padding:14px 16px;margin-bottom:16px
}
.rncee-lock-warning strong{display:block;font-size:15px;margin-bottom:4px}
.rncee-lock-warning p{margin:0 0 8px}
.rncee-notes-panel,.rncee-timeline-panel{
    border:1px solid #e2e8f0;border-radius:20px;background:#fff;padding:16px;margin-top:14px
}
.rncee-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.rncee-section-head strong{font-size:15px;color:#0f172a}
.rncee-section-head small{font-size:12px;color:#64748b}
.rncee-order-timeline-list{display:grid;gap:12px;max-height:280px;overflow:auto;padding-right:4px}
.rncee-timeline-item{display:grid;grid-template-columns:22px 1fr;gap:10px;position:relative}
.rncee-timeline-dot{width:13px;height:13px;border-radius:999px;background:#0ea5e9;border:3px solid #dbeafe;margin-top:4px}
.rncee-timeline-item strong{display:block;color:#0f172a;font-size:13px}
.rncee-timeline-item small{display:block;color:#64748b;font-size:11px;margin-top:2px}
.rncee-timeline-item p{margin:5px 0 0;color:#334155;font-size:12px}
.rncee-timeline-created .rncee-timeline-dot{background:#6366f1;border-color:#e0e7ff}
.rncee-timeline-edited .rncee-timeline-dot{background:#f59e0b;border-color:#fef3c7}
.rncee-timeline-confirmed .rncee-timeline-dot,.rncee-timeline-courier .rncee-timeline-dot,.rncee-timeline-printed .rncee-timeline-dot{background:#22c55e;border-color:#dcfce7}
.rncee-timeline-cancel .rncee-timeline-dot,.rncee-timeline-courier_failed .rncee-timeline-dot{background:#ef4444;border-color:#fee2e2}
.rncee-empty-text{color:#64748b;margin:0}
.rncee-reason-field select{border-color:#f59e0b!important;background:#fffbeb!important}
@media(max-width:900px){
  .rncee-notes-panel .rncee-grid-3{grid-template-columns:1fr!important}
}

/* v1.5.0 Phase 2 — Courier Advanced */
.rncee-status-master-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.rncee-master-status{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;border:1px solid #e2e8f0;background:#f8fafc}
.rncee-master-green{background:#dcfce7!important;color:#15803d!important;border-color:#86efac!important}
.rncee-master-red{background:#fee2e2!important;color:#b91c1c!important;border-color:#fca5a5!important}
.rncee-master-yellow{background:#fef3c7!important;color:#92400e!important;border-color:#facc15!important}
.rncee-master-orange{background:#ffedd5!important;color:#c2410c!important;border-color:#fdba74!important}
.rncee-master-blue{background:#dbeafe!important;color:#1d4ed8!important;border-color:#93c5fd!important}
.rncee-master-gray{background:#f1f5f9!important;color:#475569!important;border-color:#cbd5e1!important}
.rncee-courier-master-inline{display:flex;gap:6px;align-items:center;margin-bottom:5px;min-width:220px}
.rncee-inline-courier-status{max-width:150px!important;min-height:30px!important;border-radius:999px!important;padding:4px 8px!important;font-size:11px!important;font-weight:800!important;border:1px solid #bfdbfe!important;background:#f8fbff!important}
.rncee-sync-time{display:block;color:#64748b;font-size:10px}
.rncee-error-analyzer{display:grid;gap:3px;min-width:240px}
.rncee-error-analyzer strong{color:#0f172a;font-size:12px}
.rncee-error-analyzer small{color:#b45309;font-weight:800}
.rncee-error-analyzer em{font-style:normal;color:#475569;font-size:11px}
.rncee-error-analyzer code{display:inline-flex;width:max-content;border-radius:999px;background:#f1f5f9;color:#334155;padding:3px 7px;font-size:10px}
.rncee-change-courier-select{min-height:34px;border-radius:999px;border:1px solid #cbd5e1;padding:4px 10px;background:#fff}
.rncee-queue-table .rncee-btn-mini{margin:2px!important}

/* v1.5.1 Courier workflow + pre-print guard */
.rncee-order-tabs{overflow-x:auto;white-space:nowrap;padding-bottom:8px;scrollbar-width:thin}
.rncee-order-tabs .rncee-order-tab{display:inline-flex!important;min-width:max-content}
.rncee-print-preflight-modal{
    position:fixed;inset:0;z-index:100190;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:18px;
}
.rncee-print-preflight-card{
    width:min(560px,96vw);background:#fff;border:1px solid #dbeafe;border-radius:24px;box-shadow:0 34px 110px rgba(15,23,42,.28);padding:24px;position:relative;
}
.rncee-print-preflight-card h2{margin:0 0 8px;font-size:24px;color:#0f172a}
.rncee-print-preflight-card p{color:#475569;margin:0 0 14px}
.rncee-print-preflight-card ul{max-height:220px;overflow:auto;margin:0 0 16px;padding:12px 18px;background:#f8fafc;border-radius:16px;border:1px solid #e2e8f0}
.rncee-print-preflight-card li{margin:6px 0}
.rncee-print-preflight-close{position:absolute;top:12px;right:12px;border:1px solid #e2e8f0;background:#fff;border-radius:999px;width:34px;height:34px;cursor:pointer}
.rncee-print-preflight-actions{display:flex;flex-wrap:wrap;gap:10px}
.rncee-courier-status-master-cell{min-width:245px}
.rncee-update-courier-order{background:#eff6ff!important;color:#1d4ed8!important;border-color:#bfdbfe!important}
.rncee-cancel-courier-order{background:#fef2f2!important;color:#b91c1c!important;border-color:#fecaca!important}
@media(max-width:900px){.rncee-print-preflight-actions .rncee-btn{width:100%;justify-content:center}}

/* v1.5.3 unified main status */
.rncee-main-status-cell{
    min-width:220px!important;
    border-radius:18px!important;
    overflow:hidden;
}
.rncee-main-status-control{display:flex;gap:6px;align-items:center;min-width:210px}
.rncee-inline-main-status{
    max-width:155px!important;
    min-height:32px!important;
    border-radius:999px!important;
    padding:5px 9px!important;
    font-size:11px!important;
    font-weight:900!important;
    border:1px solid rgba(15,23,42,.12)!important;
    background:rgba(255,255,255,.82)!important;
}
.rncee-status-fill.rncee-status-green{background:#dcfce7!important}
.rncee-status-fill.rncee-status-red{background:#fee2e2!important}
.rncee-status-fill.rncee-status-yellow{background:#fef3c7!important}
.rncee-status-fill.rncee-status-blue{background:#dbeafe!important}
.rncee-status-fill .rncee-sync-time{display:block;margin-top:5px;font-size:10px;font-weight:800;color:#475569}
.rncee-courier-status-master-cell{display:none!important}

/* v1.5.4 status timeline UI polish */
.rncee-main-status-cell{
    background:transparent!important;
    border-color:#e5edf7!important;
    min-width:190px!important;
}
.rncee-status-fill.rncee-status-green,
.rncee-status-fill.rncee-status-red,
.rncee-status-fill.rncee-status-yellow,
.rncee-status-fill.rncee-status-blue{
    background:transparent!important;
}
.rncee-status-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:38px;
    max-width:190px;
    border-radius:999px;
    padding:8px 13px;
    border:1px solid #dbe7ff;
    background:#f8fbff;
    color:#0f172a;
    font-weight:900;
    font-size:12px;
    cursor:pointer;
    box-shadow:0 6px 18px rgba(15,23,42,.06);
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rncee-status-pill:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 26px rgba(15,23,42,.12);
    border-color:#93c5fd;
}
.rncee-status-pill strong{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.rncee-status-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#64748b;
    box-shadow:0 0 0 4px rgba(100,116,139,.12);
    flex:0 0 auto;
}
.rncee-main-status-cell.rncee-status-green .rncee-status-pill{background:#dcfce7!important;color:#15803d!important;border-color:#86efac!important}
.rncee-main-status-cell.rncee-status-green .rncee-status-dot{background:#16a34a;box-shadow:0 0 0 4px rgba(34,197,94,.16)}
.rncee-main-status-cell.rncee-status-red .rncee-status-pill{background:#fee2e2!important;color:#b91c1c!important;border-color:#fca5a5!important}
.rncee-main-status-cell.rncee-status-red .rncee-status-dot{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.16)}
.rncee-main-status-cell.rncee-status-yellow .rncee-status-pill{background:#fef3c7!important;color:#92400e!important;border-color:#facc15!important}
.rncee-main-status-cell.rncee-status-yellow .rncee-status-dot{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.18)}
.rncee-main-status-cell.rncee-status-blue .rncee-status-pill{background:#dbeafe!important;color:#1d4ed8!important;border-color:#93c5fd!important}
.rncee-main-status-cell.rncee-status-blue .rncee-status-dot{background:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.16)}
.rncee-status-subline{
    display:block;
    margin-top:6px;
    color:#64748b;
    font-size:10px;
    font-weight:800;
    line-height:1.35;
}
.rncee-status-timeline-modal{
    position:fixed;
    inset:0;
    z-index:100200;
    background:rgba(15,23,42,.48);
    backdrop-filter:blur(4px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}
.rncee-status-timeline-card{
    width:min(720px,96vw);
    max-height:88vh;
    overflow:auto;
    background:#fff;
    border:1px solid #dbeafe;
    border-radius:26px;
    box-shadow:0 32px 120px rgba(15,23,42,.30);
    padding:24px;
    position:relative;
}
.rncee-status-timeline-card h2{
    margin:0 44px 18px 0;
    font-size:22px;
    color:#0f172a;
}
.rncee-status-timeline-close{
    position:absolute;
    top:14px;
    right:14px;
    width:36px;
    height:36px;
    border-radius:999px;
    border:1px solid #e2e8f0;
    background:#fff;
    cursor:pointer;
    font-weight:900;
}
.rncee-stage-timeline{
    display:grid;
    grid-template-columns:repeat(4,minmax(120px,1fr));
    gap:10px;
    margin-bottom:16px;
}
.rncee-stage-item{
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:12px;
    display:flex;
    gap:10px;
    align-items:flex-start;
    background:#f8fafc;
}
.rncee-stage-dot{
    width:13px;
    height:13px;
    border-radius:999px;
    background:#94a3b8;
    box-shadow:0 0 0 5px rgba(148,163,184,.15);
    margin-top:3px;
    flex:0 0 auto;
}
.rncee-stage-item strong{display:block;font-size:12px;color:#0f172a}
.rncee-stage-item small{display:block;font-size:10px;color:#64748b;margin-top:4px}
.rncee-stage-done{background:#eff6ff;border-color:#bfdbfe}
.rncee-stage-done .rncee-stage-dot{background:#3b82f6;box-shadow:0 0 0 5px rgba(59,130,246,.14)}
.rncee-stage-active{background:#fef3c7;border-color:#facc15}
.rncee-stage-active .rncee-stage-dot{background:#f59e0b;box-shadow:0 0 0 5px rgba(245,158,11,.16)}
.rncee-stage-success{background:#dcfce7;border-color:#86efac}
.rncee-stage-success .rncee-stage-dot{background:#16a34a;box-shadow:0 0 0 5px rgba(34,197,94,.16)}
.rncee-stage-danger{background:#fee2e2;border-color:#fca5a5}
.rncee-stage-danger .rncee-stage-dot{background:#ef4444;box-shadow:0 0 0 5px rgba(239,68,68,.16)}
.rncee-stage-pending{opacity:.74}
.rncee-timeline-summary{
    border:1px solid #e2e8f0;
    background:#fff;
    border-radius:18px;
    padding:12px 14px;
    margin-bottom:16px;
    display:grid;
    gap:6px;
}
.rncee-timeline-summary p{margin:0;color:#334155;font-size:12px}
.rncee-btn,
.rncee-btn-mini{
    border-radius:999px!important;
    font-weight:900!important;
    transition:transform .15s ease, box-shadow .15s ease!important;
}
.rncee-btn:hover,
.rncee-btn-mini:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(15,23,42,.12)!important;
}
@media(max-width:760px){
    .rncee-stage-timeline{grid-template-columns:1fr 1fr}
    .rncee-status-timeline-card{padding:18px}
}
@media(max-width:480px){
    .rncee-stage-timeline{grid-template-columns:1fr}
}

.rncee-main-status-cell .rncee-inline-main-status,
.rncee-main-status-cell .rncee-sync-courier-status{
    display:none!important;
}

/* v1.6.0 Phase 3 Print Pro + Scanner */
.rncee-print-preview-modal{
    position:fixed;inset:0;z-index:100210;background:rgba(15,23,42,.52);
    display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(5px)
}
.rncee-print-preview-card{
    width:min(680px,96vw);max-height:90vh;overflow:auto;background:#fff;border:1px solid #dbeafe;border-radius:28px;
    box-shadow:0 34px 130px rgba(15,23,42,.32);padding:26px;position:relative
}
.rncee-print-preview-card h2{margin:0 44px 6px 0;font-size:24px;color:#0f172a}
.rncee-print-preview-card p{margin:0 0 12px;color:#64748b}
.rncee-print-preview-close{position:absolute;right:14px;top:14px;border:1px solid #e2e8f0;background:#fff;border-radius:999px;width:36px;height:36px;font-weight:900;cursor:pointer}
.rncee-print-preview-mini{display:grid;gap:10px;margin:14px 0}
.rncee-print-preview-mini>div{display:flex;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}
.rncee-print-preview-mini strong{color:#0f172a}
.rncee-print-preview-mini span{color:#475569}
.rncee-print-preview-options{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.rncee-print-preview-options label{display:inline-flex;gap:7px;align-items:center;border:1px solid #e2e8f0;border-radius:999px;padding:8px 12px;background:#fff;font-weight:800}
.rncee-reprint-warning{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;border-radius:18px;padding:12px 14px;margin:12px 0}
.rncee-reprint-warning ul{margin:7px 0 0 18px}
.rncee-print-preview-actions{display:flex;gap:10px;flex-wrap:wrap}
.rncee-scanner-panel{max-width:980px;margin:auto}
.rncee-scanner-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.rncee-scanner-head h2{margin:0}
.rncee-scanner-live{display:inline-flex;border-radius:999px;padding:8px 12px;background:#dcfce7;color:#15803d;font-weight:900}
.rncee-scanner-search{display:grid;grid-template-columns:1fr auto;gap:10px}
.rncee-scanner-search input{font-size:18px;padding:16px;border:2px solid #bfdbfe;border-radius:18px}
.rncee-scanner-result{margin-top:18px}
.rncee-scanner-order-card{display:flex;justify-content:space-between;gap:16px;border:1px solid #e2e8f0;border-radius:20px;padding:16px;background:#fff}
.rncee-scanner-order-card h3{font-size:24px;margin:0;color:#0f172a}
.rncee-scanner-order-card p{margin:5px 0;color:#334155;font-weight:800}
.rncee-scanner-action-buttons,.rncee-scanner-action-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.rncee-scanner-action-grid span{border:1px solid #e2e8f0;border-radius:999px;padding:9px 12px;background:#f8fafc;font-weight:900}
.rncee-error-text{color:#b91c1c;font-weight:900}
@media(max-width:720px){.rncee-scanner-search{grid-template-columns:1fr}.rncee-scanner-order-card{flex-direction:column}}

/* v1.7.0 Phase 4 Automation + Customer Intelligence */
.rncee-auto-card-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(140px,1fr));
    gap:14px;
    margin:18px 0;
}
.rncee-auto-card{
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:16px;
    background:#fff;
    box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.rncee-auto-card span{display:block;color:#64748b;font-size:12px;font-weight:800}
.rncee-auto-card strong{display:block;font-size:30px;color:#0f172a;margin-top:5px}
.rncee-auto-card small{display:block;color:#94a3b8;margin-top:3px}
.rncee-auto-success{border-color:#bbf7d0;background:#f0fdf4}
.rncee-auto-danger{border-color:#fecaca;background:#fff7f7}
.rncee-auto-warning{border-color:#fde68a;background:#fffbeb}
.rncee-phase4-grid{align-items:start}
.rncee-reminder-list{display:grid;gap:10px}
.rncee-reminder-item{
    display:grid;
    grid-template-columns:90px 1fr auto;
    gap:12px;
    align-items:center;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:12px;
    background:#f8fafc;
}
.rncee-reminder-item span{
    display:inline-flex;
    margin:3px;
    border-radius:999px;
    padding:5px 9px;
    background:#fff7ed;
    color:#9a3412;
    font-weight:800;
    font-size:11px;
}
#rncee-address-intel-input{
    width:100%;
    border:1px solid #cbd5e1;
    border-radius:18px;
    padding:14px;
    margin-bottom:10px;
}
.rncee-address-intel-card{
    margin-top:12px;
    display:grid;
    gap:8px;
    border:1px solid #bfdbfe;
    background:#eff6ff;
    border-radius:18px;
    padding:14px;
}
.rncee-address-intel-card strong{font-size:18px;color:#1d4ed8}
.rncee-address-intel-card span{font-size:13px;color:#334155;font-weight:800}
.rncee-auto-rule-list{
    display:grid;
    grid-template-columns:repeat(3,minmax(160px,1fr));
    gap:12px;
}
.rncee-auto-rule-list>div{
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:13px;
    background:#fff;
}
.rncee-auto-rule-list strong{display:block;color:#0f172a}
.rncee-auto-rule-list span{display:block;color:#15803d;font-weight:900;margin-top:4px}
.rncee-bulk-tag-manager .rncee-mini-modal{max-width:620px}
.rncee-tag-choice-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(160px,1fr));
    gap:10px;
    margin:14px 0;
}
.rncee-tag-choice{
    border:1px solid #e2e8f0;
    border-radius:999px;
    padding:10px 12px;
    background:#f8fafc;
    font-weight:900;
}
.rncee-saved-tag-groups{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
    border:1px dashed #cbd5e1;
    border-radius:16px;
    padding:12px;
    margin-bottom:12px;
}
@media(max-width:1100px){.rncee-auto-card-grid{grid-template-columns:repeat(2,1fr)}.rncee-auto-rule-list{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.rncee-auto-card-grid,.rncee-auto-rule-list{grid-template-columns:1fr}.rncee-reminder-item{grid-template-columns:1fr}.rncee-tag-choice-grid{grid-template-columns:1fr}}

/* v1.9.0 Phase 6 UI/UX + Stability */
.rncee-ui-togglebar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.rncee-theme-dark{background:#0f172a;color:#e2e8f0}
.rncee-theme-dark .rncee-panel,.rncee-theme-dark .rncee-modal-card,.rncee-theme-dark .rncee-hero{background:#111827!important;color:#e2e8f0!important;border-color:#334155!important}
.rncee-theme-dark h1,.rncee-theme-dark h2,.rncee-theme-dark h3,.rncee-theme-dark strong{color:#f8fafc!important}
.rncee-theme-dark input,.rncee-theme-dark select,.rncee-theme-dark textarea{background:#0f172a!important;color:#e2e8f0!important;border-color:#475569!important}
.rncee-view-compact .rncee-order-smart-row td{padding:6px 8px!important;font-size:11px!important}
.rncee-view-compact .rncee-status-pill{min-height:28px;padding:5px 9px;font-size:10px}
.rncee-view-comfortable .rncee-order-smart-row td{padding:13px 12px}
.rncee-empty-state{display:grid;place-items:center;text-align:center;min-height:110px;border:1px dashed #cbd5e1;border-radius:22px;background:#f8fafc;padding:22px;color:#64748b}
.rncee-empty-state strong{font-size:18px;color:#0f172a}
.rncee-toast-stack{position:fixed;right:22px;bottom:22px;z-index:100230;display:grid;gap:10px;max-width:360px}
.rncee-toast{background:#fff;border:1px solid #bfdbfe;border-left:5px solid #2563eb;border-radius:18px;box-shadow:0 18px 50px rgba(15,23,42,.18);padding:13px 15px}
.rncee-toast strong{display:block;color:#0f172a}
.rncee-toast span{display:block;color:#475569;font-size:12px;margin-top:3px}
.rncee-toast a{display:inline-flex;margin-top:8px;font-weight:900}
.rncee-toast-history-modal,.rncee-mobile-sheet{position:fixed;inset:0;z-index:100220;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;padding:18px}
.rncee-toast-history-modal.is-open,.rncee-mobile-sheet.is-open{display:flex}
.rncee-toast-history-card,.rncee-mobile-sheet-card{width:min(560px,96vw);background:#fff;border:1px solid #dbeafe;border-radius:26px;box-shadow:0 30px 110px rgba(15,23,42,.28);padding:24px;position:relative}
.rncee-toast-history-close,.rncee-mobile-sheet-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;font-weight:900}
.rncee-mobile-sheet{align-items:flex-end;padding:0}
.rncee-mobile-sheet-card{width:100%;max-width:720px;border-radius:28px 28px 0 0}
.rncee-mobile-sheet-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}
.rncee-column-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:10px;margin:14px 0}
.rncee-column-choice{border:1px solid #e2e8f0;border-radius:999px;padding:10px 12px;background:#f8fafc;font-weight:900;cursor:grab}
.rncee-stability-grid label span{display:block;font-weight:900;margin:10px 0 5px}
.rncee-error-log-list,.rncee-rollback-list{display:grid;gap:10px}
.rncee-error-log-item,.rncee-rollback-item{border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:13px;display:grid;gap:5px}
.rncee-log-type{display:inline-flex;width:max-content;border-radius:999px;background:#e0e7ff;color:#3730a3;padding:4px 8px;font-size:10px;font-weight:900}
.rncee-log-api{background:#fee2e2;color:#b91c1c}.rncee-log-rollback{background:#fef3c7;color:#92400e}.rncee-log-safe_mode{background:#dcfce7;color:#15803d}
.rncee-help-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:16px}
.rncee-guide-card ol{margin-left:18px}.rncee-guide-card li{margin:8px 0}
.rncee-faq-panel details{border:1px solid #e2e8f0;border-radius:16px;padding:12px;margin:10px 0;background:#fff}
.rncee-faq-panel summary{font-weight:900;cursor:pointer}
.rncee-safe-mode .rncee-heavy-feature{opacity:.45;pointer-events:none}
.rncee-setup-steps-pro{display:grid;grid-template-columns:repeat(7,1fr);gap:10px}
.rncee-setup-steps-pro>div{border:1px solid #dbeafe;border-radius:18px;padding:12px;background:#eff6ff}
.rncee-setup-steps-pro span{display:inline-flex;width:28px;height:28px;border-radius:999px;background:#2563eb;color:#fff;align-items:center;justify-content:center;font-weight:900}
.rncee-setup-steps-pro strong{display:block;margin-top:8px}
.rncee-setup-steps-pro small{display:block;color:#64748b}
@media(max-width:900px){.rncee-help-grid{grid-template-columns:1fr}.rncee-setup-steps-pro{grid-template-columns:1fr 1fr}.rncee-ui-togglebar{justify-content:flex-start}}
@media(max-width:560px){.rncee-mobile-sheet-actions,.rncee-column-choice-grid{grid-template-columns:1fr}.rncee-setup-steps-pro{grid-template-columns:1fr}.rncee-toast-stack{left:12px;right:12px;bottom:12px;max-width:none}}

/* v2.0.2 client-site emergency popup/layout hotfix */
.rncee-modal.is-open,
.rncee-column-manager.is-open,
.rncee-bulk-tag-manager.is-open{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:100500!important;
}
#rncee-bulk-modal.is-open{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.rncee-modal-card{
    z-index:100510!important;
    position:relative!important;
}
body.rncee-modal-open{overflow:hidden!important}
.rncee-column-manager .rncee-modal-card,
.rncee-bulk-tag-manager .rncee-modal-card{
    width:min(680px,96vw)!important;
    max-height:88vh!important;
    overflow:auto!important;
}
.rncee-column-choice-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(150px,1fr))!important;
    gap:10px!important;
    margin:14px 0!important;
}
.rncee-column-choice{
    border:1px solid #e2e8f0!important;
    border-radius:999px!important;
    padding:10px 12px!important;
    background:#f8fafc!important;
    font-weight:900!important;
}
.rncee-orders-smart-table th,
.rncee-orders-smart-table td{
    vertical-align:middle!important;
}
.rncee-order-smart-row td{
    overflow:visible!important;
}
.rncee-sticky-action{
    min-width:130px!important;
}
.rncee-mobile-action-open{display:none!important}
@media(max-width:782px){
    .rncee-mobile-action-open{display:inline-flex!important}
    .rncee-sticky-action .rncee-update-courier-order,
    .rncee-sticky-action .rncee-cancel-courier-order{display:none!important}
}

/* v2.0.3 Gift Print + Preview Popup Removal */
#rncee-print-preview-modal{
    display:none!important;
}
.rncee-gift-print-popup.is-open{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:100600!important;
}
.rncee-gift-print-card{
    width:min(520px,94vw)!important;
    border-radius:24px!important;
}
.rncee-gift-print-card .rncee-mini-popup-grid{
    grid-template-columns:repeat(3,minmax(120px,1fr))!important;
}
.rncee-gift-note-disabled{
    opacity:.55!important;
    cursor:not-allowed!important;
}
.rncee-gift-note-disabled small{
    display:block;
    font-size:10px;
    color:#64748b;
    margin-top:2px;
}
.rncee-gift-print-help{
    margin:12px 0 0;
    padding:10px 12px;
    border-radius:14px;
    background:#f8fafc;
    color:#475569;
    font-size:12px;
    font-weight:700;
}
@media(max-width:640px){
    .rncee-gift-print-card .rncee-mini-popup-grid{
        grid-template-columns:1fr!important;
    }
}

/* v2.0.4 Gift popup visibility + print runtime */
#rncee-gift-print-popup.rncee-gift-fixed-open,
#rncee-gift-print-popup.is-open{
    position:fixed!important;
    inset:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(15,23,42,.45)!important;
    z-index:100800!important;
    visibility:visible!important;
    opacity:1!important;
}
#rncee-gift-print-popup .rncee-mini-popup-card{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:min(560px,94vw)!important;
    max-height:88vh!important;
    overflow:auto!important;
    background:#fff!important;
    border:1px solid #dbeafe!important;
    border-radius:24px!important;
    box-shadow:0 30px 120px rgba(15,23,42,.30)!important;
    padding:20px!important;
}
.rncee-print-preflight-modal{
    z-index:100750!important;
}
.rncee-print-preflight-card{
    z-index:100760!important;
}

/* v2.0.5 Professional Print Studio */
#rncee-print-preview-modal,
#rncee-print-preflight-modal{
    display:none!important;
}
.rncee-print-studio.is-open{
    position:fixed!important;
    inset:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:rgba(15,23,42,.55)!important;
    z-index:100900!important;
    visibility:visible!important;
    opacity:1!important;
    padding:16px!important;
}
.rncee-print-studio-card{
    width:min(1380px,98vw)!important;
    height:min(820px,94vh)!important;
    background:#fff!important;
    border-radius:28px!important;
    border:1px solid #dbeafe!important;
    box-shadow:0 34px 140px rgba(15,23,42,.35)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    position:relative!important;
}
.rncee-print-studio-close{
    position:absolute!important;
    right:18px!important;
    top:18px!important;
    width:38px!important;
    height:38px!important;
    border-radius:999px!important;
    border:1px solid #e2e8f0!important;
    background:#fff!important;
    font-weight:900!important;
    cursor:pointer!important;
    z-index:3!important;
}
.rncee-print-studio-head{
    padding:22px 26px!important;
    border-bottom:1px solid #e2e8f0!important;
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:18px!important;
}
.rncee-print-studio-head h2{margin:0!important;font-size:26px!important;color:#0f172a!important}
.rncee-print-studio-head p{margin:4px 0 0!important;color:#64748b!important}
.rncee-print-studio-type{
    margin-right:46px!important;
    border-radius:999px!important;
    background:#dbeafe!important;
    color:#1d4ed8!important;
    padding:8px 14px!important;
    font-weight:900!important;
}
.rncee-print-studio-grid{
    flex:1!important;
    display:grid!important;
    grid-template-columns:300px 1fr 300px!important;
    min-height:0!important;
}
.rncee-print-studio-left,
.rncee-print-studio-right{
    padding:18px!important;
    overflow:auto!important;
    background:#f8fafc!important;
}
.rncee-print-studio-left{border-right:1px solid #e2e8f0!important}
.rncee-print-studio-right{border-left:1px solid #e2e8f0!important}
.rncee-print-studio-left h3,
.rncee-print-studio-right h3{margin:0 0 14px!important;color:#0f172a!important}
.rncee-studio-order-card{
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    border-radius:18px!important;
    padding:12px!important;
    margin-bottom:10px!important;
}
.rncee-studio-order-card strong{display:block!important;color:#0f172a!important}
.rncee-studio-order-card span{display:block!important;color:#334155!important;font-weight:800!important;margin-top:4px!important}
.rncee-studio-order-card p{margin:8px 0 4px!important;color:#475569!important;font-size:12px!important}
.rncee-studio-order-card small{display:block!important;color:#64748b!important;margin-top:3px!important}
.rncee-studio-order-card em{
    display:inline-flex!important;
    margin-top:8px!important;
    background:#fff7ed!important;
    color:#9a3412!important;
    border:1px solid #fdba74!important;
    border-radius:999px!important;
    padding:5px 8px!important;
    font-style:normal!important;
    font-size:11px!important;
    font-weight:900!important;
}
.rncee-studio-warning,
.rncee-studio-ok{
    border-radius:18px!important;
    padding:12px!important;
    margin-top:14px!important;
    display:grid!important;
    gap:4px!important;
}
.rncee-studio-warning{background:#fff7ed!important;border:1px solid #fdba74!important;color:#9a3412!important}
.rncee-studio-ok{background:#dcfce7!important;border:1px solid #86efac!important;color:#15803d!important}
.rncee-print-studio-preview{
    padding:18px!important;
    overflow:auto!important;
    background:#e5e7eb!important;
    display:flex!important;
    flex-direction:column!important;
}
.rncee-preview-toolbar{
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    border-radius:16px!important;
    padding:10px 12px!important;
    margin-bottom:12px!important;
    display:flex!important;
    justify-content:space-between!important;
}
.rncee-preview-canvas{
    flex:1!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow:auto!important;
    padding:18px!important;
    background:#f1f5f9!important;
    border-radius:20px!important;
}
.rncee-studio-preview-frame{
    transform:scale(.82)!important;
    transform-origin:top center!important;
    background:#fff!important;
    box-shadow:0 20px 70px rgba(15,23,42,.22)!important;
}
.rncee-print-studio-right label{
    display:block!important;
    margin-bottom:12px!important;
}
.rncee-print-studio-right label span{
    display:block!important;
    font-weight:900!important;
    color:#334155!important;
    margin-bottom:5px!important;
}
.rncee-print-studio-right select{
    width:100%!important;
    border:1px solid #cbd5e1!important;
    border-radius:12px!important;
    padding:9px!important;
    background:#fff!important;
}
.rncee-studio-checks{
    display:grid!important;
    gap:8px!important;
    margin:14px 0!important;
}
.rncee-studio-checks label{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    border-radius:999px!important;
    padding:9px 12px!important;
    font-weight:900!important;
}
.rncee-print-help{
    background:#eff6ff!important;
    border:1px solid #bfdbfe!important;
    border-radius:18px!important;
    padding:12px!important;
    color:#1e3a8a!important;
}
.rncee-print-help strong,
.rncee-print-help small{display:block!important}
.rncee-print-studio-footer{
    border-top:1px solid #e2e8f0!important;
    padding:14px 18px!important;
    display:flex!important;
    justify-content:flex-end!important;
    gap:10px!important;
    background:#fff!important;
}
.rncee-print-studio-start{
    min-width:160px!important;
    min-height:44px!important;
    font-size:15px!important;
}
@media(max-width:980px){
    .rncee-print-studio-grid{grid-template-columns:1fr!important;overflow:auto!important}
    .rncee-print-studio-card{height:94vh!important}
    .rncee-print-studio-left,.rncee-print-studio-right{border:0!important}
    .rncee-studio-preview-frame{transform:scale(.72)!important}
}

/* v2.0.6 Print Studio center/fixed + size polish */
#rncee-print-studio.rncee-studio-fixed-center,
#rncee-print-studio.is-open{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:22px!important;
    background:rgba(15,23,42,.58)!important;
    z-index:100950!important;
    overflow:hidden!important;
}
#rncee-print-studio .rncee-print-studio-card{
    width:min(1500px,calc(100vw - 44px))!important;
    height:min(880px,calc(100vh - 44px))!important;
    margin:auto!important;
    transform:none!important;
}
#rncee-print-studio .rncee-print-studio-grid{
    grid-template-columns:minmax(250px,320px) minmax(520px,1fr) minmax(280px,330px)!important;
}
#rncee-print-studio .rncee-print-studio-preview{
    min-width:0!important;
}
#rncee-print-studio .rncee-preview-canvas{
    min-height:520px!important;
}
.rncee-paper-2x2{width:2in!important;min-height:2in!important}
.rncee-paper-3x4{width:3in!important;min-height:4in!important}
.rncee-paper-4x6{width:4in!important;min-height:6in!important}
.rncee-paper-a6{width:105mm!important;min-height:148mm!important}
.rncee-paper-a5{width:148mm!important;min-height:210mm!important}
.rncee-paper-a4{width:210mm!important;min-height:297mm!important}
.rncee-paper-pos{width:80mm!important;min-height:160mm!important}
.rncee-paper-letter{width:8.5in!important;min-height:11in!important}
.rncee-paper-legal{width:8.5in!important;min-height:14in!important}
.rncee-print-studio-right optgroup{
    font-weight:900!important;
    color:#0f172a!important;
}
.rncee-print-studio-close{
    z-index:10!important;
}
@media(max-width:1200px){
    #rncee-print-studio .rncee-print-studio-grid{
        grid-template-columns:1fr!important;
        overflow:auto!important;
    }
    #rncee-print-studio .rncee-print-studio-card{
        overflow:auto!important;
    }
}
