.rfm-dashboard{display:grid;grid-template-columns:260px 1fr;gap:22px;margin:24px 0;font-family:inherit;color:#202124}.rfm-sidebar{background:#111827;color:#fff;border-radius:18px;padding:20px;min-height:520px;position:sticky;top:20px;align-self:start}.rfm-brand{font-size:22px;font-weight:800;margin-bottom:22px}.rfm-nav{display:flex;flex-direction:column;gap:8px}.rfm-nav a,.rfm-logout{color:#fff;text-decoration:none;border-radius:12px;padding:12px 14px;display:block}.rfm-nav a:hover,.rfm-nav a.active{background:rgba(255,255,255,.12)}.rfm-logout{margin-top:22px;background:rgba(255,255,255,.08)}.rfm-main{min-width:0}.rfm-page-head{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px 22px;margin-bottom:18px;box-shadow:0 8px 25px rgba(17,24,39,.06)}.rfm-page-head h1{margin:0 0 6px;font-size:26px}.rfm-page-head p{margin:0;color:#6b7280}.rfm-page-head-actions{display:flex;justify-content:space-between;align-items:center;gap:16px}.rfm-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.rfm-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:22px;text-decoration:none;color:inherit;box-shadow:0 8px 25px rgba(17,24,39,.06)}.rfm-card strong{display:block;font-size:18px;margin-bottom:8px}.rfm-card span{display:block;color:#6b7280;line-height:1.7}.rfm-toolbar{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;margin-bottom:16px}.rfm-toolbar input,.rfm-toolbar select,.rfm-form input,.rfm-form select,.rfm-form textarea{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:11px 12px;background:#fff;min-height:42px;box-sizing:border-box}.rfm-toolbar input{max-width:320px}.rfm-toolbar select{max-width:220px}.rfm-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d1d5db;background:#fff;color:#111827;text-decoration:none;border-radius:12px;padding:10px 14px;line-height:1.2;cursor:pointer;font-size:14px}.rfm-button:hover{background:#f9fafb}.rfm-button-primary{background:#dc2626;border-color:#dc2626;color:#fff}.rfm-button-primary:hover{background:#b91c1c}.rfm-button-danger{border-color:#fecaca;color:#b91c1c;background:#fff5f5}.rfm-table-wrap{overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 8px 25px rgba(17,24,39,.06)}.rfm-table{width:100%;border-collapse:collapse;min-width:760px}.rfm-table th,.rfm-table td{padding:14px 16px;border-bottom:1px solid #eef2f7;text-align:right;vertical-align:middle}.rfm-table th{background:#f9fafb;font-weight:700}.rfm-table tr:last-child td{border-bottom:none}.rfm-product-cell{display:flex;align-items:center;gap:12px}.rfm-product-cell img{width:48px;height:48px;object-fit:cover;border-radius:10px}.rfm-table small{display:block;color:#6b7280;margin-top:4px}.rfm-panel{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;margin-bottom:18px;box-shadow:0 8px 25px rgba(17,24,39,.06)}.rfm-panel h2{margin:0 0 16px;font-size:20px}.rfm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rfm-form label{display:block;margin-bottom:14px}.rfm-form label span,.rfm-mode-box legend{display:block;font-weight:700;margin-bottom:8px;color:#374151}.rfm-full{display:block;margin-top:14px}.rfm-help{font-size:13px;color:#6b7280;margin:10px 0 0;line-height:1.7}.rfm-mode-box{border:1px solid #e5e7eb;border-radius:16px;padding:14px}.rfm-media-field{display:flex;gap:8px}.rfm-form-actions{display:flex;gap:10px;align-items:center;margin:18px 0}.rfm-alert{padding:14px 16px;border-radius:14px;margin:16px 0;border:1px solid}.rfm-alert-success{background:#ecfdf5;border-color:#bbf7d0;color:#166534}.rfm-alert-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.rfm-pagination{display:flex;gap:6px;margin-top:16px}.rfm-pagination a{border:1px solid #e5e7eb;border-radius:10px;padding:8px 12px;text-decoration:none;color:#111827}.rfm-pagination a.active{background:#111827;color:#fff}.rfm-login-wrap{max-width:460px;margin:30px auto;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:24px}.rfm-login-wrap input[type=text],.rfm-login-wrap input[type=password]{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:12px}.rfm-order-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.rfm-notes{list-style:none;margin:0;padding:0}.rfm-notes li{border-bottom:1px solid #e5e7eb;padding:12px 0}.rfm-notes li:last-child{border-bottom:none}.rfm-notes strong{display:block;margin-bottom:5px}.rfm-variable-panel{border-style:dashed}@media(max-width:900px){.rfm-dashboard{grid-template-columns:1fr}.rfm-sidebar{position:static;min-height:0}.rfm-cards,.rfm-grid,.rfm-order-grid{grid-template-columns:1fr}.rfm-page-head-actions,.rfm-toolbar{flex-direction:column;align-items:stretch}.rfm-toolbar input,.rfm-toolbar select{max-width:none}}
.rfm-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.rfm-bulk-bar{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px;margin-bottom:12px}.rfm-bulk-bar select{border:1px solid #d1d5db;border-radius:12px;padding:10px;min-width:180px}.rfm-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.rfm-print-area{background:#fff}.rfm-print-button{margin-bottom:14px}@media print{body *{visibility:hidden}.rfm-print-area,.rfm-print-area *{visibility:visible}.rfm-print-area{position:absolute;right:0;top:0;width:100%}.rfm-sidebar,.rfm-page-head,.rfm-form-actions,.rfm-print-button,.rfm-nav,.rfm-logout{display:none!important}}
.rfm-kpi-cards{margin-bottom:18px}.rfm-kpi-cards .rfm-card span+span{margin-top:6px;font-weight:800;color:#111827}.rfm-form code,.rfm-panel code{background:#f3f4f6;border-radius:6px;padding:2px 6px}.rfm-campaign-target{border-color:#dc2626}.rfm-mode-box input[type=number]{direction:ltr}.rfm-table td code{direction:ltr;display:inline-block}.rfm-dashboard .rfm-nav a[href*="campaigns"]{background:rgba(220,38,38,.14)}.rfm-dashboard .rfm-nav a[href*="campaigns"].active{background:#dc2626}.rfm-panel .rfm-table-wrap{box-shadow:none}.rfm-card:hover{transform:translateY(-1px);transition:.15s ease}.rfm-admin-wrap .regular-text{max-width:520px;width:100%}
.rfm-muted{color:#6b7280;font-size:13px}.rfm-warning-pill{display:inline-flex;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:999px;padding:4px 8px;margin:2px;font-size:12px}.rfm-table td .rfm-button-danger{white-space:nowrap}

/* v0.7.0 dashboard UX */
.rfm-dashboard-enhanced{background:linear-gradient(180deg,#f8fafc 0,#fff 420px);padding:18px;border-radius:24px}.rfm-dashboard-enhanced .rfm-sidebar{background:linear-gradient(180deg,#0f172a,#111827);box-shadow:0 18px 45px rgba(15,23,42,.22)}.rfm-brand{display:flex;align-items:center;gap:10px}.rfm-brand-mark{display:inline-flex;width:22px;height:22px;border-radius:999px;background:#ef4444;color:#ef4444;box-shadow:0 0 0 7px rgba(239,68,68,.16)}.rfm-user-mini{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:12px 14px;margin-bottom:16px}.rfm-user-mini strong,.rfm-user-mini span{display:block}.rfm-user-mini span{font-size:12px;color:#cbd5e1;margin-top:4px}.rfm-nav-link{display:flex!important;align-items:center;gap:10px}.rfm-nav-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:9px;background:rgba(255,255,255,.1);font-weight:800}.rfm-nav-link.active .rfm-nav-icon{background:#fff;color:#dc2626}.rfm-topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px 18px;margin-bottom:16px;box-shadow:0 8px 25px rgba(17,24,39,.05)}.rfm-topbar strong{display:block;font-size:18px}.rfm-topbar span{font-size:13px;color:#64748b}.rfm-topbar-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.rfm-status-dot{width:9px;height:9px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.14)}.rfm-content{position:relative;min-height:240px}.rfm-content.is-loading{pointer-events:none;opacity:.72}.rfm-ajax-loader{position:absolute;inset:0;z-index:20;background:rgba(255,255,255,.72);backdrop-filter:blur(3px);border-radius:18px;display:flex;align-items:center;justify-content:center;gap:10px;color:#111827}.rfm-spinner{width:22px;height:22px;border-radius:999px;border:3px solid #e5e7eb;border-top-color:#dc2626;animation:rfm-spin .8s linear infinite}@keyframes rfm-spin{to{transform:rotate(360deg)}}.rfm-card{position:relative;overflow:hidden}.rfm-card:before{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:#dc2626;opacity:.85}.rfm-card:hover{box-shadow:0 14px 36px rgba(17,24,39,.1)}.rfm-button{transition:.15s ease}.rfm-button.is-busy,.rfm-button:disabled{opacity:.7;cursor:wait}.rfm-form input:focus,.rfm-form select:focus,.rfm-form textarea:focus,.rfm-toolbar input:focus,.rfm-toolbar select:focus{outline:none;border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.10)}.rfm-media-label{display:block}.rfm-media-field{align-items:center}.rfm-media-field .rfm-media-input{direction:ltr;text-align:left;font-family:monospace}.rfm-media-preview{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px;min-height:64px;border:1px dashed #cbd5e1;border-radius:16px;padding:10px;background:#f8fafc}.rfm-media-preview.is-empty{color:#94a3b8;font-size:13px}.rfm-preview-item{display:inline-flex;position:relative;align-items:center;gap:6px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:6px;box-shadow:0 4px 14px rgba(15,23,42,.06)}.rfm-preview-item img{width:58px;height:58px;object-fit:cover;border-radius:10px;display:block}.rfm-preview-item small{font-size:11px;color:#64748b;direction:ltr}.rfm-preview-placeholder{padding:8px}.rfm-media-field-compact{display:grid;grid-template-columns:minmax(54px,1fr) auto auto;gap:6px}.rfm-media-field-compact .rfm-button{padding:8px 9px;font-size:12px}.rfm-variation-image-cell{min-width:190px}.rfm-variation-image-cell .rfm-media-preview{min-height:50px;padding:6px;margin-top:6px}.rfm-variation-image-cell .rfm-preview-item img{width:42px;height:42px}.rfm-variable-panel{opacity:.76}.rfm-variable-panel.is-active{opacity:1;border-color:#dc2626;background:linear-gradient(180deg,#fff,#fff7f7)}.rfm-form-actions{position:sticky;bottom:12px;z-index:30;background:rgba(255,255,255,.88);backdrop-filter:blur(6px);border:1px solid #e5e7eb;border-radius:18px;padding:12px;box-shadow:0 12px 30px rgba(15,23,42,.10)}.rfm-table tbody tr:hover{background:#fffafa}.rfm-table th{position:sticky;top:0;z-index:1}.rfm-alert{box-shadow:0 8px 20px rgba(15,23,42,.06)}@media(max-width:900px){.rfm-dashboard-enhanced{padding:10px}.rfm-topbar{align-items:flex-start;flex-direction:column}.rfm-sidebar{border-radius:18px}.rfm-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rfm-nav a{padding:10px}.rfm-media-field{flex-direction:column;align-items:stretch}.rfm-media-field-compact{grid-template-columns:1fr}.rfm-form-actions{bottom:0;border-radius:16px 16px 0 0}}

/* v0.8.0 controlled dashboard width and coupon campaigns */
.rfm-dashboard{max-width:1360px;width:calc(100% - 32px);margin:24px auto}.rfm-dashboard-enhanced{box-sizing:border-box}.rfm-main{max-width:100%;overflow:hidden}.rfm-mt{margin-top:16px}.rfm-checkbox-grid label{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px}.rfm-coupon-report{display:grid;gap:18px}.rfm-coupon-package{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:18px;box-shadow:0 8px 25px rgba(17,24,39,.06)}.rfm-coupon-package-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.rfm-coupon-package h3{margin:0 0 4px;font-size:20px}.rfm-coupon-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}.rfm-coupon-metrics span{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:12px;color:#64748b}.rfm-coupon-metrics strong{display:block;color:#111827;font-size:16px;margin-bottom:4px}.rfm-progress{height:10px;border-radius:999px;background:#fee2e2;overflow:hidden;margin:10px 0}.rfm-progress span{display:block;height:100%;border-radius:999px;background:#dc2626}.rfm-coupon-details{margin-top:12px}.rfm-coupon-details summary{cursor:pointer;font-weight:700;color:#111827;margin-bottom:10px}.rfm-coupon-details[open] summary{margin-bottom:12px}@media(max-width:1100px){.rfm-coupon-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.rfm-dashboard{width:calc(100% - 16px);margin:12px auto}.rfm-coupon-package-head{flex-direction:column}.rfm-coupon-metrics{grid-template-columns:1fr}}

/* v0.8.1 contextual field help */
.rfm-help-wrap{display:inline-flex;position:relative;vertical-align:middle;margin-inline-start:7px;z-index:40}.rfm-help-trigger{width:20px;height:20px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:#475569;font-size:13px;font-weight:900;line-height:18px;text-align:center;display:inline-flex;align-items:center;justify-content:center;cursor:help;padding:0;box-shadow:0 2px 8px rgba(15,23,42,.06);transition:.15s ease}.rfm-help-trigger:hover,.rfm-help-wrap.is-open .rfm-help-trigger,.rfm-help-trigger:focus{background:#dc2626;border-color:#dc2626;color:#fff;outline:none;box-shadow:0 0 0 4px rgba(220,38,38,.12)}.rfm-help-tooltip{position:absolute;right:0;top:calc(100% + 10px);width:min(360px,calc(100vw - 42px));background:#111827;color:#fff;border-radius:14px;padding:13px 14px;font-size:13px;font-weight:500;line-height:1.9;text-align:right;box-shadow:0 18px 45px rgba(15,23,42,.28);opacity:0;visibility:hidden;transform:translateY(-4px);transition:.15s ease;z-index:9999;white-space:normal;pointer-events:none}.rfm-help-tooltip:before{content:"";position:absolute;right:14px;top:-6px;width:12px;height:12px;background:#111827;transform:rotate(45deg)}.rfm-help-wrap:hover .rfm-help-tooltip,.rfm-help-wrap:focus-within .rfm-help-tooltip,.rfm-help-wrap.is-open .rfm-help-tooltip{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.rfm-table th .rfm-help-wrap{margin-inline-start:5px}.rfm-table th .rfm-help-tooltip{font-weight:500}.rfm-mode-box legend .rfm-help-wrap{margin-inline-start:8px}.rfm-form label>span{display:flex;align-items:center;gap:0;flex-wrap:wrap}.rfm-form label>span .rfm-help-wrap{flex:0 0 auto}.rfm-toolbar .rfm-help-wrap-control{align-self:center;margin-inline-start:-4px;margin-inline-end:6px}@media(max-width:700px){.rfm-help-tooltip{position:fixed;right:14px;left:14px;top:auto;bottom:18px;width:auto;max-height:52vh;overflow:auto}.rfm-help-tooltip:before{display:none}.rfm-help-wrap{position:static}}


/* v0.8.2 fixed field help popovers */
.rfm-help-wrap{display:inline-flex;align-items:center;justify-content:center;position:relative;vertical-align:middle;margin-inline-start:8px;z-index:auto!important;isolation:isolate}
.rfm-help-trigger{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;border-radius:50%!important;border:1px solid #cbd5e1!important;background:#f8fafc!important;color:#334155!important;font-size:14px!important;font-weight:900!important;line-height:1!important;text-align:center!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:help!important;padding:0!important;box-shadow:0 6px 16px rgba(15,23,42,.10)!important;transition:.15s ease!important;overflow:hidden!important}
.rfm-help-trigger:hover,.rfm-help-trigger:focus,.rfm-help-trigger.is-active,.rfm-help-wrap.is-open .rfm-help-trigger{background:#ef4444!important;border-color:#ef4444!important;color:#fff!important;outline:none!important;box-shadow:0 0 0 4px rgba(239,68,68,.14),0 8px 20px rgba(15,23,42,.16)!important}
.rfm-help-tooltip{display:none!important}
.rfm-help-popover{position:fixed;display:block;box-sizing:border-box;width:max-content;max-width:min(380px,calc(100vw - 28px));min-width:230px;background:#0f172a;color:#f8fafc;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px 16px;font-size:13.5px;font-weight:600;line-height:1.95;text-align:right;direction:rtl;box-shadow:0 22px 70px rgba(2,6,23,.38);z-index:2147483647;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .12s ease,transform .12s ease,visibility .12s ease;white-space:normal;pointer-events:none}
.rfm-help-popover.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.rfm-help-popover strong{color:#fff;font-weight:900}.rfm-help-popover .rfm-help-example{display:block;margin-top:8px;color:#e2e8f0;font-weight:500}.rfm-help-popover:after{content:"";position:absolute;width:12px;height:12px;background:#0f172a;border:1px solid rgba(255,255,255,.08);transform:rotate(45deg);z-index:-1}.rfm-help-popover[data-placement="bottom"]:after{top:-7px}.rfm-help-popover[data-placement="top"]:after{bottom:-7px}.rfm-help-popover[data-arrow="right"]:after{right:18px}.rfm-help-popover[data-arrow="center"]:after{left:50%;margin-left:-6px}.rfm-help-popover[data-arrow="left"]:after{left:18px}
@media(max-width:700px){.rfm-help-trigger{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important}.rfm-help-popover{right:12px!important;left:12px!important;top:auto!important;bottom:14px!important;width:auto!important;max-width:none!important;max-height:54vh;overflow:auto;border-radius:18px}.rfm-help-popover:after{display:none}}


/* v0.8.3 - Normalize dashboard checkbox/radio controls. Generic text-input styles must not affect boolean fields. */
.rfm-dashboard input[type="checkbox"],
.rfm-dashboard input[type="radio"],
.rfm-dashboard .rfm-form input[type="checkbox"],
.rfm-dashboard .rfm-form input[type="radio"],
.rfm-dashboard .rfm-toolbar input[type="checkbox"],
.rfm-dashboard .rfm-toolbar input[type="radio"],
.rfm-dashboard .rfm-table input[type="checkbox"],
.rfm-dashboard .rfm-table input[type="radio"]{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    max-width:18px!important;
    max-height:18px!important;
    padding:0!important;
    margin:0 0 0 8px!important;
    display:inline-block!important;
    vertical-align:middle!important;
    box-sizing:border-box!important;
    line-height:1!important;
    cursor:pointer!important;
    border:1.5px solid #cbd5e1!important;
    background-color:#fff!important;
    box-shadow:0 2px 7px rgba(15,23,42,.08)!important;
    accent-color:#dc2626;
}
.rfm-dashboard input[type="checkbox"]{border-radius:5px!important;}
.rfm-dashboard input[type="radio"]{border-radius:999px!important;}
.rfm-dashboard input[type="checkbox"]:focus,
.rfm-dashboard input[type="radio"]:focus{
    outline:none!important;
    border-color:#dc2626!important;
    box-shadow:0 0 0 4px rgba(220,38,38,.12)!important;
}
.rfm-dashboard input[type="checkbox"]:checked,
.rfm-dashboard input[type="radio"]:checked{
    border-color:#dc2626!important;
}
.rfm-dashboard .rfm-checkbox-grid label{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    min-height:52px!important;
    padding:12px 14px!important;
    line-height:1.7!important;
    cursor:pointer!important;
}
.rfm-dashboard .rfm-checkbox-grid label input[type="checkbox"],
.rfm-dashboard .rfm-checkbox-grid label input[type="radio"]{
    margin:0 0 0 8px!important;
    flex:0 0 18px!important;
}
.rfm-dashboard .rfm-table th input[type="checkbox"],
.rfm-dashboard .rfm-table td input[type="checkbox"]{
    margin:0!important;
}
.rfm-dashboard label input[type="checkbox"] + .rfm-field-help,
.rfm-dashboard label input[type="radio"] + .rfm-field-help{
    margin-right:6px!important;
}

/* v0.8.4 - Cleaner products list/table UI */
.rfm-products-table-wrap{
    border-radius:22px!important;
    overflow:hidden!important;
    border:1px solid #e2e8f0!important;
    box-shadow:0 14px 40px rgba(15,23,42,.07)!important;
}
.rfm-products-table{
    min-width:980px!important;
    table-layout:auto;
}
.rfm-products-table thead th{
    background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
    color:#0f172a!important;
    font-size:13px!important;
    font-weight:900!important;
    padding:15px 14px!important;
    white-space:nowrap!important;
    border-bottom:1px solid #e2e8f0!important;
}
.rfm-products-table th .rfm-help-wrap{display:none!important;}
.rfm-products-table tbody td{
    padding:16px 14px!important;
    font-size:14px!important;
    color:#334155!important;
}
.rfm-products-table tbody tr{
    transition:background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.rfm-products-table tbody tr:hover{
    background:#fff7f7!important;
}
.rfm-products-table .rfm-col-check{width:46px!important;text-align:center!important;}
.rfm-products-table .rfm-col-product{min-width:260px!important;width:32%;}
.rfm-products-table .rfm-col-sku{width:105px;text-align:center!important;direction:ltr;}
.rfm-products-table .rfm-col-price{min-width:140px;color:#064e3b!important;font-weight:900!important;}
.rfm-products-table .rfm-col-sales,.rfm-products-table .rfm-col-stock,.rfm-products-table .rfm-col-type,.rfm-products-table .rfm-col-status{width:105px;text-align:center!important;}
.rfm-products-table .rfm-col-actions{min-width:178px;width:178px;}
.rfm-products-table .rfm-product-cell{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    min-width:0!important;
}
.rfm-products-table .rfm-product-cell img{
    width:54px!important;
    height:54px!important;
    border-radius:14px!important;
    object-fit:cover!important;
    flex:0 0 54px!important;
    border:1px solid #e5e7eb!important;
    background:#f8fafc!important;
    box-shadow:0 8px 18px rgba(15,23,42,.08)!important;
}
.rfm-product-main{min-width:0;display:flex;flex-direction:column;gap:5px;}
.rfm-product-main strong{
    color:#0f172a!important;
    font-size:14.5px!important;
    font-weight:900!important;
    line-height:1.55!important;
    overflow:hidden;
    text-overflow:ellipsis;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}
.rfm-product-meta{
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
    color:#64748b;
    font-size:12px;
    line-height:1.4;
}
.rfm-product-meta span{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    background:#f1f5f9;
    color:#64748b;
    padding:3px 7px;
}
.rfm-inline-code{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:44px!important;
    max-width:96px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    direction:ltr!important;
    color:#475569!important;
    background:#f8fafc!important;
    border:1px solid #e2e8f0!important;
    border-radius:999px!important;
    padding:4px 8px!important;
    font-size:12px!important;
}
.rfm-price-stack{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
    line-height:1.65;
    color:#064e3b;
    font-weight:900;
    white-space:normal;
}
.rfm-price-stack del{
    color:#94a3b8!important;
    font-weight:700!important;
    opacity:.9!important;
}
.rfm-price-stack ins{
    color:#047857!important;
    font-weight:950!important;
    text-decoration:none!important;
}
.rfm-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:28px;
    border-radius:999px;
    padding:5px 10px;
    font-size:12px;
    font-weight:850;
    border:1px solid transparent;
    white-space:nowrap;
}
.rfm-badge.is-success{background:#ecfdf5;color:#047857;border-color:#bbf7d0;}
.rfm-badge.is-danger{background:#fef2f2;color:#b91c1c;border-color:#fecaca;}
.rfm-badge.is-warning{background:#fffbeb;color:#b45309;border-color:#fde68a;}
.rfm-badge.is-muted{background:#f1f5f9;color:#64748b;border-color:#e2e8f0;}
.rfm-badge.is-neutral{background:#f8fafc;color:#334155;border-color:#e2e8f0;}
.rfm-badge.is-soft{background:#eef2ff;color:#4338ca;border-color:#c7d2fe;}
.rfm-row-actions-compact{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px!important;
    align-items:stretch!important;
}
.rfm-button-small{
    min-height:34px!important;
    padding:8px 9px!important;
    border-radius:11px!important;
    font-size:12.5px!important;
    font-weight:800!important;
    width:100%;
}
.rfm-button-primary-soft{
    border-color:#fecaca!important;
    background:#fff1f2!important;
    color:#be123c!important;
}
.rfm-button-primary-soft:hover{background:#ffe4e6!important;}
.rfm-products-table .rfm-button-danger{
    background:#fff7f7!important;
    color:#dc2626!important;
    border-color:#fecaca!important;
}
.rfm-products-table .rfm-button-danger:hover{background:#fee2e2!important;}
.rfm-products-table input[type="checkbox"]{
    width:17px!important;
    height:17px!important;
    min-width:17px!important;
    min-height:17px!important;
    border-radius:5px!important;
}
@media(max-width:1100px){
    .rfm-products-table{min-width:900px!important;}
    .rfm-products-table .rfm-col-actions{min-width:160px;width:160px;}
    .rfm-button-small{padding:7px 8px!important;font-size:12px!important;}
}
@media(max-width:760px){
    .rfm-products-table-wrap{background:transparent!important;border:none!important;box-shadow:none!important;overflow:visible!important;}
    .rfm-products-table{min-width:0!important;border-collapse:separate!important;border-spacing:0 12px!important;}
    .rfm-products-table thead{display:none!important;}
    .rfm-products-table tbody,.rfm-products-table tr,.rfm-products-table td{display:block!important;width:100%!important;box-sizing:border-box!important;}
    .rfm-products-table tbody tr{
        background:#fff!important;
        border:1px solid #e2e8f0!important;
        border-radius:20px!important;
        padding:12px!important;
        box-shadow:0 12px 28px rgba(15,23,42,.07)!important;
        overflow:hidden;
    }
    .rfm-products-table tbody td{
        border-bottom:0!important;
        padding:9px 4px!important;
        text-align:right!important;
    }
    .rfm-products-table td:not(.rfm-col-product):not(.rfm-col-check):not(.rfm-col-actions)::before{
        content:attr(data-label);
        display:block;
        color:#94a3b8;
        font-size:11px;
        font-weight:800;
        margin-bottom:4px;
    }
    .rfm-products-table .rfm-col-check{position:absolute;width:auto!important;padding:0!important;left:18px;margin-top:8px;}
    .rfm-products-table .rfm-col-product{padding-left:38px!important;}
    .rfm-products-table .rfm-product-cell img{width:62px!important;height:62px!important;flex-basis:62px!important;}
    .rfm-products-table .rfm-col-actions{margin-top:8px;}
    .rfm-row-actions-compact{grid-template-columns:repeat(4,minmax(0,1fr));}
    .rfm-button-small{min-height:36px!important;}
}
@media(max-width:480px){
    .rfm-row-actions-compact{grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* v0.8.5 - Products table fit and compact actions */
.rfm-products-table-wrap{
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch;
}
.rfm-products-table{
    min-width:0!important;
    width:100%!important;
    table-layout:fixed!important;
}
.rfm-products-table .rfm-col-check{width:42px!important;min-width:42px!important;}
.rfm-products-table .rfm-col-product{width:31%!important;min-width:220px!important;}
.rfm-products-table .rfm-col-sku{display:none!important;}
.rfm-products-table .rfm-col-price{width:130px!important;min-width:120px!important;}
.rfm-products-table .rfm-col-sales{width:64px!important;min-width:58px!important;}
.rfm-products-table .rfm-col-stock{width:86px!important;min-width:76px!important;}
.rfm-products-table .rfm-col-type{width:104px!important;min-width:92px!important;}
.rfm-products-table .rfm-col-status{width:94px!important;min-width:84px!important;}
.rfm-products-table .rfm-col-actions{width:118px!important;min-width:106px!important;}
.rfm-products-table thead th,
.rfm-products-table tbody td{padding-inline:9px!important;}
.rfm-products-table .rfm-product-cell{gap:9px!important;}
.rfm-products-table .rfm-product-cell img{width:46px!important;height:46px!important;flex-basis:46px!important;border-radius:12px!important;}
.rfm-product-main strong{font-size:13.5px!important;line-height:1.45!important;-webkit-line-clamp:1!important;}
.rfm-product-meta{gap:4px!important;font-size:11px!important;}
.rfm-product-meta span{padding:2px 6px!important;max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rfm-badge{min-height:25px!important;padding:4px 8px!important;font-size:11.5px!important;}
.rfm-price-stack{font-size:13px!important;line-height:1.55!important;align-items:flex-start!important;}
.rfm-row-actions-fit{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;position:relative!important;}
.rfm-row-actions-fit>.rfm-button{width:auto!important;min-width:62px!important;padding:8px 9px!important;}
.rfm-actions-more{position:relative!important;display:inline-block!important;}
.rfm-actions-more summary{
    list-style:none!important;
    width:34px!important;
    height:34px!important;
    border:1px solid #dbe3ef!important;
    background:#fff!important;
    border-radius:12px!important;
    color:#334155!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    font-weight:900!important;
    line-height:1!important;
    box-shadow:0 4px 12px rgba(15,23,42,.04)!important;
}
.rfm-actions-more summary::-webkit-details-marker{display:none!important;}
.rfm-actions-more[open] summary{border-color:#fecaca!important;background:#fff1f2!important;color:#be123c!important;}
.rfm-actions-more>div{
    position:absolute!important;
    top:40px!important;
    left:0!important;
    z-index:9999!important;
    min-width:118px!important;
    padding:8px!important;
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    border-radius:14px!important;
    box-shadow:0 18px 38px rgba(15,23,42,.18)!important;
    display:flex!important;
    flex-direction:column!important;
    gap:6px!important;
}
.rfm-actions-more>div .rfm-button{width:100%!important;min-width:0!important;justify-content:center!important;}
@media (max-width:1280px){
    .rfm-products-table .rfm-col-sales{display:none!important;}
    .rfm-products-table .rfm-col-product{width:34%!important;}
}
@media (max-width:1120px){
    .rfm-products-table .rfm-col-type{display:none!important;}
    .rfm-products-table .rfm-col-product{width:38%!important;min-width:210px!important;}
    .rfm-products-table .rfm-col-actions{width:112px!important;}
}
@media (max-width:980px){
    .rfm-products-table .rfm-col-status{display:none!important;}
    .rfm-products-table .rfm-col-product{width:42%!important;}
}
@media (max-width:760px){
    .rfm-products-table-wrap{overflow:visible!important;}
    .rfm-products-table .rfm-col-sales,
    .rfm-products-table .rfm-col-type,
    .rfm-products-table .rfm-col-status,
    .rfm-products-table .rfm-col-sku{display:block!important;}
    .rfm-products-table .rfm-col-actions{width:100%!important;min-width:0!important;}
    .rfm-row-actions-fit{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;}
    .rfm-row-actions-fit>.rfm-button{width:100%!important;}
    .rfm-actions-more>div{left:0!important;right:auto!important;}
}
.rfm-products-table-wrap{overflow:visible!important;}

/* v0.8.6 - Rechecked product table fitting inside sidebar layout */
.rfm-products-table-wrap{
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
}
.rfm-products-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
}
.rfm-products-table .rfm-col-check{width:36px!important;min-width:36px!important;max-width:36px!important;}
.rfm-products-table .rfm-col-product{width:auto!important;min-width:190px!important;}
.rfm-products-table .rfm-col-price{width:112px!important;min-width:100px!important;}
.rfm-products-table .rfm-col-sales{display:none!important;}
.rfm-products-table .rfm-col-stock{width:78px!important;min-width:68px!important;}
.rfm-products-table .rfm-col-type{width:88px!important;min-width:78px!important;}
.rfm-products-table .rfm-col-status{width:86px!important;min-width:76px!important;}
.rfm-products-table .rfm-col-actions{width:106px!important;min-width:96px!important;}
.rfm-products-table thead th,
.rfm-products-table tbody td{padding-inline:7px!important;}
.rfm-products-table .rfm-product-cell{gap:7px!important;}
.rfm-products-table .rfm-product-cell img{width:42px!important;height:42px!important;flex-basis:42px!important;}
.rfm-product-main strong{font-size:13px!important;}
.rfm-product-meta span{max-width:86px!important;}
.rfm-row-actions-fit>.rfm-button{min-width:56px!important;padding-inline:7px!important;}
.rfm-actions-more summary{width:32px!important;height:32px!important;}
@media(max-width:1380px){
    .rfm-products-table .rfm-col-type{display:none!important;}
    .rfm-products-table .rfm-col-product{min-width:185px!important;}
}
@media(max-width:1180px){
    .rfm-products-table .rfm-col-status{display:none!important;}
    .rfm-products-table .rfm-col-stock{width:74px!important;}
}
@media(max-width:760px){
    .rfm-products-table .rfm-col-sales,
    .rfm-products-table .rfm-col-type,
    .rfm-products-table .rfm-col-status{display:block!important;}
}

/* v0.8.7 access/login polish */
.rfm-login-card{max-width:520px;margin:36px auto;padding:26px;border-radius:24px;box-shadow:0 18px 50px rgba(15,23,42,.10);background:linear-gradient(180deg,#fff,#f8fafc);}
.rfm-login-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;}
.rfm-login-head h2{margin:0 0 6px;font-size:24px;color:#111827;}
.rfm-login-head p{margin:0;color:#64748b;line-height:1.8;font-size:14px;}
.rfm-login-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border-radius:16px;background:#fee2e2;color:#dc2626;font-weight:900;}
.rfm-login-card form p{margin:0 0 14px;}
.rfm-login-card label{font-weight:700;color:#374151;display:block;margin-bottom:8px;}
.rfm-login-card input[type="text"],.rfm-login-card input[type="password"]{width:100%;border:1px solid #d1d5db;border-radius:14px;padding:12px 14px;min-height:44px;box-sizing:border-box;background:#fff;}
.rfm-login-card input[type="text"]:focus,.rfm-login-card input[type="password"]:focus{outline:none;border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.10);}
.rfm-login-card .login-remember label{display:flex;align-items:center;gap:8px;font-weight:600;color:#475569;}
.rfm-login-card .button-primary{width:100%;border:0;border-radius:14px;min-height:46px;background:#dc2626;color:#fff;font-weight:800;cursor:pointer;}
.rfm-login-card .button-primary:hover{background:#b91c1c;}
.rfm-login-note{margin:12px 0 0;color:#64748b;font-size:13px;line-height:1.8;text-align:center;}
.rfm-login-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}

/* v0.8.9 - Multi-select filters across dashboard */
.rfm-toolbar .rfm-filter-multi{
    display:flex!important;
    flex-direction:column!important;
    gap:6px!important;
    min-width:150px!important;
    max-width:210px!important;
    margin:0!important;
}
.rfm-toolbar .rfm-filter-multi>span{
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:800!important;
    color:#64748b!important;
    padding-inline:2px!important;
}
.rfm-toolbar select[multiple]{
    min-height:76px!important;
    height:auto!important;
    padding:6px!important;
    border:1px solid #dbe3ef!important;
    border-radius:14px!important;
    background:#fff!important;
    color:#0f172a!important;
    font-size:12px!important;
    line-height:1.45!important;
    box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
    overflow:auto!important;
}
.rfm-toolbar select[multiple] option{
    padding:5px 7px!important;
    border-radius:8px!important;
    margin:1px 0!important;
}
.rfm-toolbar select[multiple]:focus{
    outline:none!important;
    border-color:#dc2626!important;
    box-shadow:0 0 0 4px rgba(220,38,38,.10)!important;
}
.rfm-toolbar select[multiple] option:checked{
    background:linear-gradient(0deg,#fee2e2,#fee2e2)!important;
    color:#991b1b!important;
    font-weight:800!important;
}
@media(max-width:900px){
    .rfm-toolbar .rfm-filter-multi{min-width:100%!important;max-width:100%!important;}
    .rfm-toolbar select[multiple]{width:100%!important;}
}

/* v0.9.0 - Clean multiselect filters and Jalali date inputs */
.rfm-toolbar{
    align-items:center!important;
    gap:12px!important;
    flex-wrap:wrap!important;
}
.rfm-toolbar .rfm-filter-multi{
    min-width:190px!important;
    max-width:260px!important;
    position:relative!important;
}
.rfm-native-multiselect-hidden{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    min-width:1px!important;
    min-height:1px!important;
    max-width:1px!important;
    max-height:1px!important;
    opacity:0!important;
    pointer-events:none!important;
    overflow:hidden!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
}
.rfm-nice-mselect{
    position:relative!important;
    width:100%!important;
    min-width:180px!important;
    z-index:20!important;
}
.rfm-nice-mselect.is-open{z-index:99999!important;}
.rfm-nice-mselect-button{
    width:100%!important;
    min-height:44px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    border:1px solid #dbe3ef!important;
    background:#fff!important;
    color:#0f172a!important;
    border-radius:15px!important;
    padding:9px 13px!important;
    box-shadow:0 4px 14px rgba(15,23,42,.04)!important;
    cursor:pointer!important;
    text-align:right!important;
    font-family:inherit!important;
}
.rfm-nice-mselect-button:after{
    content:"⌄";
    width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#f1f5f9;
    color:#64748b;
    flex:0 0 24px;
    transition:.16s ease;
}
.rfm-nice-mselect.is-open .rfm-nice-mselect-button,
.rfm-nice-mselect-button:focus{
    outline:none!important;
    border-color:#ef4444!important;
    box-shadow:0 0 0 4px rgba(239,68,68,.10)!important;
}
.rfm-nice-mselect.is-open .rfm-nice-mselect-button:after{transform:rotate(180deg);background:#fee2e2;color:#dc2626;}
.rfm-nice-mselect-button strong{
    font-size:12px!important;
    font-weight:900!important;
    color:#475569!important;
    white-space:nowrap!important;
}
.rfm-nice-mselect-button span{
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:12.5px!important;
    font-weight:800!important;
    color:#0f172a!important;
    margin-right:auto!important;
    max-width:145px!important;
}
.rfm-nice-mselect:not(.has-value) .rfm-nice-mselect-button span{color:#94a3b8!important;font-weight:700!important;}
.rfm-nice-mselect-panel{
    position:absolute!important;
    top:calc(100% + 8px)!important;
    right:0!important;
    left:auto!important;
    width:100%!important;
    min-width:220px!important;
    max-height:310px!important;
    overflow:hidden!important;
    display:none!important;
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    border-radius:18px!important;
    box-shadow:0 24px 55px rgba(15,23,42,.20)!important;
    padding:10px!important;
}
.rfm-nice-mselect.is-open .rfm-nice-mselect-panel{display:block!important;}
.rfm-nice-mselect-actions{
    display:flex!important;
    gap:8px!important;
    margin-bottom:8px!important;
    padding-bottom:8px!important;
    border-bottom:1px solid #f1f5f9!important;
}
.rfm-nice-mselect-actions button{
    flex:1!important;
    border:1px solid #e2e8f0!important;
    background:#f8fafc!important;
    color:#334155!important;
    border-radius:11px!important;
    min-height:32px!important;
    font-size:12px!important;
    font-weight:850!important;
    cursor:pointer!important;
}
.rfm-nice-mselect-actions button:hover{background:#fff1f2!important;border-color:#fecaca!important;color:#be123c!important;}
.rfm-nice-mselect-list{
    max-height:230px!important;
    overflow:auto!important;
    padding-left:4px!important;
}
.rfm-nice-mselect-item{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:9px!important;
    min-height:36px!important;
    padding:7px 8px!important;
    border-radius:12px!important;
    cursor:pointer!important;
    color:#334155!important;
    font-size:13px!important;
    font-weight:750!important;
}
.rfm-nice-mselect-item:hover{background:#f8fafc!important;}
.rfm-nice-mselect-item input[type="checkbox"]{
    margin:0 0 0 7px!important;
    flex:0 0 16px!important;
    width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;
}
.rfm-jalali-input{
    direction:ltr!important;
    text-align:center!important;
    font-weight:750!important;
    letter-spacing:.2px!important;
    background:#fff!important;
}
.rfm-toolbar .rfm-jalali-input{
    width:158px!important;
    min-width:150px!important;
    max-width:170px!important;
}
.rfm-date-hidden{display:none!important;}
@media(max-width:900px){
    .rfm-toolbar{display:grid!important;grid-template-columns:1fr 1fr!important;align-items:end!important;}
    .rfm-toolbar input[type="search"]{grid-column:1/-1!important;width:100%!important;}
    .rfm-toolbar .rfm-filter-multi,.rfm-toolbar .rfm-jalali-input,.rfm-toolbar .rfm-button{width:100%!important;max-width:none!important;}
}
@media(max-width:560px){
    .rfm-toolbar{grid-template-columns:1fr!important;}
    .rfm-nice-mselect-panel{position:fixed!important;right:14px!important;left:14px!important;top:auto!important;bottom:14px!important;width:auto!important;max-height:60vh!important;z-index:2147483647!important;}
}

/* v0.9.3 - Jalali date picker + order status option helps */
.rfm-filter-no-visible-label > span{display:none!important;}
.rfm-jalali-picker-wrap{
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:6px!important;
    width:auto!important;
    max-width:100%!important;
    vertical-align:middle!important;
    z-index:35!important;
}
.rfm-jalali-picker-wrap.is-open{z-index:2147483000!important;}
.rfm-toolbar .rfm-jalali-picker-wrap{width:190px!important;max-width:190px!important;}
.rfm-jalali-picker-wrap .rfm-jalali-input{
    flex:1 1 auto!important;
    min-width:0!important;
    width:100%!important;
    padding-left:38px!important;
    direction:rtl!important;
    text-align:center!important;
    font-weight:850!important;
}
.rfm-jalali-open{
    position:absolute!important;
    left:7px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:28px!important;
    height:28px!important;
    border-radius:10px!important;
    border:1px solid #e2e8f0!important;
    background:#f8fafc!important;
    color:#64748b!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    font-size:13px!important;
    padding:0!important;
    box-shadow:none!important;
}
.rfm-jalali-open:hover,.rfm-jalali-picker-wrap.is-open .rfm-jalali-open{background:#fff1f2!important;color:#dc2626!important;border-color:#fecaca!important;}
.rfm-date-help{margin-inline-start:2px!important;}
.rfm-jalali-panel{
    display:none!important;
    position:absolute!important;
    right:0!important;
    top:calc(100% + 9px)!important;
    width:288px!important;
    max-width:calc(100vw - 32px)!important;
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    border-radius:18px!important;
    box-shadow:0 24px 60px rgba(15,23,42,.22)!important;
    padding:12px!important;
    direction:rtl!important;
    z-index:2147483000!important;
}
.rfm-jalali-picker-wrap.is-open .rfm-jalali-panel{display:block!important;}
.rfm-jalali-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-bottom:10px!important;}
.rfm-jalali-head strong{font-size:14px!important;font-weight:950!important;color:#0f172a!important;}
.rfm-jalali-head button,.rfm-jalali-foot button{
    border:1px solid #e2e8f0!important;
    background:#f8fafc!important;
    color:#334155!important;
    border-radius:11px!important;
    min-width:34px!important;
    height:32px!important;
    cursor:pointer!important;
    font-weight:900!important;
}
.rfm-jalali-head button:hover,.rfm-jalali-foot button:hover{background:#fff1f2!important;color:#be123c!important;border-color:#fecaca!important;}
.rfm-jalali-week,.rfm-jalali-days{display:grid!important;grid-template-columns:repeat(7,1fr)!important;gap:5px!important;}
.rfm-jalali-week{margin-bottom:6px!important;}
.rfm-jalali-week span{font-size:11px!important;font-weight:900!important;color:#94a3b8!important;text-align:center!important;}
.rfm-jalali-days span.is-empty{min-height:34px!important;}
.rfm-j-day{
    border:1px solid transparent!important;
    background:#fff!important;
    color:#334155!important;
    border-radius:12px!important;
    height:34px!important;
    min-width:0!important;
    padding:0!important;
    cursor:pointer!important;
    font-weight:850!important;
}
.rfm-j-day:hover{background:#f8fafc!important;border-color:#e2e8f0!important;}
.rfm-j-day.is-today{border-color:#fecaca!important;color:#dc2626!important;background:#fff7f7!important;}
.rfm-j-day.is-selected{background:#dc2626!important;border-color:#dc2626!important;color:#fff!important;box-shadow:0 8px 20px rgba(220,38,38,.22)!important;}
.rfm-jalali-foot{display:flex!important;gap:8px!important;margin-top:10px!important;padding-top:10px!important;border-top:1px solid #f1f5f9!important;}
.rfm-jalali-foot button{flex:1!important;font-size:12px!important;height:34px!important;}
.rfm-nice-mselect.is-compact-title .rfm-nice-mselect-button{justify-content:flex-start!important;}
.rfm-nice-mselect.is-compact-title .rfm-nice-mselect-button span{max-width:none!important;margin-right:0!important;color:#0f172a!important;}
.rfm-nice-mselect-item-text{flex:1 1 auto!important;min-width:0!important;}
.rfm-option-help{flex:0 0 auto!important;margin-inline-start:auto!important;margin-inline-end:2px!important;}
.rfm-option-help .rfm-help-trigger{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;font-size:12px!important;}
@media(max-width:900px){
    .rfm-toolbar .rfm-jalali-picker-wrap{width:100%!important;max-width:none!important;}
}
@media(max-width:560px){
    .rfm-jalali-panel{position:fixed!important;right:14px!important;left:14px!important;top:auto!important;bottom:14px!important;width:auto!important;max-width:none!important;max-height:72vh!important;overflow:auto!important;}
}


/* v0.9.4 - order filters cleanup */
.rfm-orders-toolbar{
    display:grid!important;
    grid-template-columns:minmax(240px,1.4fr) minmax(230px,1fr) 185px 185px auto!important;
    align-items:end!important;
    gap:12px!important;
}
.rfm-orders-toolbar > input[type="search"]{min-width:0!important;width:100%!important;}
.rfm-orders-toolbar .rfm-filter-multi{min-width:0!important;max-width:none!important;width:100%!important;}
.rfm-orders-toolbar .rfm-jalali-picker-wrap{width:100%!important;max-width:none!important;}
.rfm-orders-toolbar .rfm-jalali-picker-wrap .rfm-jalali-input{width:100%!important;}
.rfm-orders-toolbar .rfm-button{min-height:44px!important;white-space:nowrap!important;}
.rfm-orders-toolbar .rfm-help-wrap-control{display:none!important;}
.rfm-order-status-filter .rfm-nice-mselect-button{min-height:44px!important;padding:9px 13px!important;}
.rfm-order-status-filter .rfm-nice-mselect-button span{max-width:none!important;font-size:13px!important;}
.rfm-order-status-filter .rfm-nice-mselect-panel{min-width:290px!important;width:290px!important;max-width:min(92vw,320px)!important;padding:12px!important;}
.rfm-order-status-filter .rfm-nice-mselect-actions{position:sticky!important;top:0!important;background:#fff!important;z-index:2!important;padding-bottom:10px!important;margin-bottom:10px!important;}
.rfm-order-status-filter .rfm-nice-mselect-list{max-height:270px!important;padding-left:0!important;}
.rfm-order-status-filter .rfm-nice-mselect-item{display:grid!important;grid-template-columns:18px 1fr 32px!important;align-items:center!important;gap:10px!important;min-height:42px!important;padding:8px 10px!important;border:1px solid transparent!important;}
.rfm-order-status-filter .rfm-nice-mselect-item:hover{background:#fff7f7!important;border-color:#ffe4e6!important;}
.rfm-order-status-filter .rfm-nice-mselect-item input[type="checkbox"]{order:3!important;margin:0!important;justify-self:end!important;}
.rfm-order-status-filter .rfm-nice-mselect-item-text{order:2!important;display:block!important;font-size:13px!important;font-weight:800!important;color:#0f172a!important;line-height:1.7!important;}
.rfm-order-status-filter .rfm-option-help{order:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.rfm-order-status-filter .rfm-option-help .rfm-help-trigger{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;border-radius:999px!important;background:#f8fafc!important;border:1px solid #dbe3ef!important;color:#475569!important;font-size:13px!important;box-shadow:none!important;}
.rfm-order-status-filter .rfm-option-help .rfm-help-trigger:hover{background:#fff1f2!important;border-color:#fecaca!important;color:#dc2626!important;}
.rfm-order-status-filter .rfm-option-help .rfm-help-tooltip{display:none!important;}
@media(max-width:1100px){
  .rfm-orders-toolbar{grid-template-columns:1fr 1fr!important;}
  .rfm-orders-toolbar > input[type="search"]{grid-column:1 / -1!important;}
  .rfm-orders-toolbar .rfm-filter-multi{grid-column:1 / -1!important;}
}
@media(max-width:640px){
  .rfm-orders-toolbar{grid-template-columns:1fr!important;}
  .rfm-order-status-filter .rfm-nice-mselect-panel{position:fixed!important;right:14px!important;left:14px!important;top:auto!important;bottom:14px!important;width:auto!important;max-height:68vh!important;}
}


/* v0.9.5 - products filters cleanup */
.rfm-products-toolbar{
    display:grid!important;
    grid-template-columns:minmax(250px,1.5fr) repeat(4,minmax(160px,1fr)) auto!important;
    align-items:end!important;
    gap:12px!important;
}
.rfm-products-toolbar > input[type="search"]{min-width:0!important;width:100%!important;}
.rfm-products-toolbar .rfm-filter-multi{min-width:0!important;max-width:none!important;width:100%!important;}
.rfm-products-toolbar .rfm-product-filter > span{display:none!important;}
.rfm-products-toolbar .rfm-help-wrap-control{display:none!important;}
.rfm-products-toolbar .rfm-nice-mselect-button{min-height:44px!important;padding:9px 13px!important;}
.rfm-products-toolbar .rfm-nice-mselect-button span{max-width:none!important;font-size:13px!important;}
.rfm-products-toolbar .rfm-nice-mselect-panel{min-width:250px!important;width:100%!important;max-width:min(92vw,290px)!important;}
.rfm-products-toolbar .rfm-button{min-height:44px!important;white-space:nowrap!important;}
@media(max-width:1280px){
  .rfm-products-toolbar{grid-template-columns:1fr 1fr 1fr!important;}
  .rfm-products-toolbar > input[type="search"]{grid-column:1 / -1!important;}
}
@media(max-width:900px){
  .rfm-products-toolbar{grid-template-columns:1fr 1fr!important;}
  .rfm-products-toolbar > input[type="search"]{grid-column:1 / -1!important;}
}
@media(max-width:560px){
  .rfm-products-toolbar{grid-template-columns:1fr!important;}
  .rfm-products-toolbar .rfm-nice-mselect-panel{position:fixed!important;right:14px!important;left:14px!important;top:auto!important;bottom:14px!important;width:auto!important;max-height:68vh!important;}
}


/* v0.9.6 - clearer filter submit buttons */
.rfm-filter-submit{
    min-height:46px!important;
    padding:0 18px!important;
    border-radius:14px!important;
    font-weight:900!important;
    box-shadow:0 10px 24px rgba(220,38,38,.18)!important;
    white-space:nowrap!important;
}
.rfm-filter-submit::before{
    content:"⌕";
    display:inline-block;
    margin-inline-start:8px;
    font-size:14px;
    line-height:1;
}
.rfm-products-toolbar .rfm-filter-submit,
.rfm-orders-toolbar .rfm-filter-submit{
    justify-self:start!important;
}
@media(max-width:900px){
  .rfm-products-toolbar .rfm-filter-submit,
  .rfm-orders-toolbar .rfm-filter-submit{width:100%!important;justify-self:stretch!important;}
}


/* v0.9.7 - fit filter submit button inside cards */
.rfm-products-toolbar,
.rfm-orders-toolbar{
    overflow:visible!important;
    box-sizing:border-box!important;
}

/* Force compact, predictable rows so the submit button never gets clipped */
.rfm-products-toolbar{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:end!important;
    gap:12px!important;
}
.rfm-products-toolbar > input[type="search"]{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
}
.rfm-products-toolbar .rfm-filter-multi,
.rfm-products-toolbar .rfm-nice-mselect,
.rfm-products-toolbar .rfm-filter-submit{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
}
.rfm-products-toolbar .rfm-filter-submit{
    justify-self:stretch!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:46px!important;
}

.rfm-orders-toolbar{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:end!important;
    gap:12px!important;
}
.rfm-orders-toolbar > input[type="search"]{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
}
.rfm-orders-toolbar .rfm-filter-multi,
.rfm-orders-toolbar .rfm-jalali-picker-wrap,
.rfm-orders-toolbar .rfm-filter-submit{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
}
.rfm-orders-toolbar .rfm-filter-submit{
    justify-self:stretch!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:46px!important;
}

/* Medium dashboard widths: two clean columns */
@media(max-width:1200px){
    .rfm-products-toolbar,
    .rfm-orders-toolbar{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .rfm-products-toolbar > input[type="search"],
    .rfm-orders-toolbar > input[type="search"]{
        grid-column:1 / -1!important;
    }
}

/* Small widths: one item per row */
@media(max-width:700px){
    .rfm-products-toolbar,
    .rfm-orders-toolbar{
        grid-template-columns:1fr!important;
    }
    .rfm-products-toolbar > *,
    .rfm-orders-toolbar > *{
        grid-column:auto!important;
    }
}


/* v0.9.8 - cleaner filters UI for products & orders */
.rfm-products-toolbar,
.rfm-orders-toolbar{
    display:grid!important;
    gap:14px!important;
    align-items:end!important;
    background:#fff!important;
    border:1px solid #e6ebf2!important;
    border-radius:22px!important;
    padding:16px!important;
    box-shadow:0 10px 28px rgba(15,23,42,.05)!important;
}

/* Products: search row + 4 filters + button */
.rfm-products-toolbar{
    grid-template-columns:repeat(4,minmax(0,1fr)) auto!important;
}
.rfm-products-toolbar > input[type="search"]{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
}

/* Orders: search row + 3 filters + button */
.rfm-orders-toolbar{
    grid-template-columns:repeat(3,minmax(0,1fr)) auto!important;
}
.rfm-orders-toolbar > input[type="search"]{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
}

.rfm-products-toolbar .rfm-filter-multi,
.rfm-products-toolbar .rfm-nice-mselect,
.rfm-products-toolbar .rfm-filter-submit,
.rfm-orders-toolbar .rfm-filter-multi,
.rfm-orders-toolbar .rfm-nice-mselect,
.rfm-orders-toolbar .rfm-jalali-picker-wrap,
.rfm-orders-toolbar .rfm-filter-submit{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
}

.rfm-products-toolbar .rfm-jalali-picker-wrap .rfm-jalali-input,
.rfm-orders-toolbar .rfm-jalali-picker-wrap .rfm-jalali-input,
.rfm-products-toolbar > input[type="search"],
.rfm-orders-toolbar > input[type="search"]{
    min-height:46px!important;
    border-radius:16px!important;
}

.rfm-products-toolbar .rfm-nice-mselect-button,
.rfm-orders-toolbar .rfm-nice-mselect-button{
    min-height:46px!important;
    border-radius:16px!important;
    padding:10px 14px!important;
}
.rfm-products-toolbar .rfm-nice-mselect-button span,
.rfm-orders-toolbar .rfm-nice-mselect-button span{
    max-width:none!important;
    font-size:13px!important;
}

.rfm-filter-submit{
    width:auto!important;
    min-width:132px!important;
    justify-self:start!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    min-height:46px!important;
    padding:0 18px!important;
    border-radius:16px!important;
    box-shadow:0 8px 18px rgba(220,38,38,.14)!important;
}
.rfm-filter-submit::before{
    content:""!important;
    display:none!important;
}

/* bulk bars cleaner too */
.rfm-bulk-bar{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    gap:12px!important;
    align-items:center!important;
}
.rfm-bulk-bar select{
    min-height:46px!important;
    border-radius:16px!important;
}
.rfm-bulk-bar .rfm-button{
    min-height:46px!important;
    border-radius:16px!important;
    padding-inline:18px!important;
}

/* tablet */
@media(max-width:1180px){
    .rfm-products-toolbar{grid-template-columns:repeat(3,minmax(0,1fr)) auto!important;}
    .rfm-orders-toolbar{grid-template-columns:repeat(2,minmax(0,1fr)) auto!important;}
}

/* medium */
@media(max-width:900px){
    .rfm-products-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
    .rfm-orders-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
    .rfm-filter-submit{width:100%!important;justify-self:stretch!important;}
    .rfm-bulk-bar{grid-template-columns:1fr!important;}
    .rfm-bulk-bar .rfm-button{width:100%!important;}
}

/* mobile */
@media(max-width:640px){
    .rfm-products-toolbar,
    .rfm-orders-toolbar{
        grid-template-columns:1fr!important;
        padding:14px!important;
        gap:10px!important;
    }
    .rfm-products-toolbar > *,
    .rfm-orders-toolbar > *{grid-column:auto!important;}
    .rfm-filter-submit{width:100%!important;}
}


/* v0.9.9 - fix Jalali date picker inside normal form grids */
.rfm-form label .rfm-jalali-picker-wrap,
.rfm-grid label .rfm-jalali-picker-wrap,
.rfm-panel label .rfm-jalali-picker-wrap,
.rfm-mode-box label .rfm-jalali-picker-wrap{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    position:relative!important;
    margin-top:0!important;
}

.rfm-form label .rfm-jalali-picker-wrap .rfm-jalali-input,
.rfm-grid label .rfm-jalali-picker-wrap .rfm-jalali-input,
.rfm-panel label .rfm-jalali-picker-wrap .rfm-jalali-input,
.rfm-mode-box label .rfm-jalali-picker-wrap .rfm-jalali-input{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:46px!important;
    min-height:46px!important;
    padding:0 16px 0 44px!important;
    box-sizing:border-box!important;
    border-radius:15px!important;
    text-align:center!important;
}

.rfm-form label .rfm-jalali-open,
.rfm-grid label .rfm-jalali-open,
.rfm-panel label .rfm-jalali-open,
.rfm-mode-box label .rfm-jalali-open{
    position:absolute!important;
    left:8px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    border-radius:10px!important;
    z-index:3!important;
    margin:0!important;
}

/* prevent duplicated/control help icons around generated Jalali input */
.rfm-jalali-picker-wrap + .rfm-help-wrap-control,
.rfm-jalali-picker-wrap .rfm-help-wrap,
.rfm-jalali-picker-wrap .rfm-help-wrap-control{
    display:none!important;
}

/* keep the calendar popup above form cards and aligned with the date input */
.rfm-form label .rfm-jalali-panel,
.rfm-grid label .rfm-jalali-panel,
.rfm-panel label .rfm-jalali-panel,
.rfm-mode-box label .rfm-jalali-panel{
    right:0!important;
    left:auto!important;
    top:calc(100% + 8px)!important;
    z-index:2147483000!important;
}

/* inside toolbar keep previous compact behavior */
.rfm-toolbar .rfm-jalali-picker-wrap{
    display:inline-flex!important;
}


/* v0.11.0 - SMS automation dashboard */
.rfm-sms-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:12px}
.rfm-check-card{display:flex!important;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:12px 14px;min-height:48px;font-weight:800;color:#334155;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.rfm-check-card input{width:16px!important;height:16px!important;min-width:16px!important;accent-color:#dc2626}
.rfm-sms-automation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;margin-top:14px}
.rfm-sms-automation-card{position:relative;display:grid!important;grid-template-columns:auto 1fr auto;gap:12px;align-items:flex-start;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(15,23,42,.05);transition:.15s ease}
.rfm-sms-automation-card:hover{border-color:#fecaca;box-shadow:0 10px 26px rgba(220,38,38,.08)}
.rfm-sms-automation-card input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px!important;margin-top:3px;accent-color:#dc2626}
.rfm-sms-auto-main{display:flex;flex-direction:column;gap:7px;line-height:1.8}
.rfm-sms-auto-main strong{font-size:14px;color:#111827}
.rfm-sms-auto-main small{font-size:12px;color:#64748b;font-weight:500}
.rfm-sms-report-toolbar{grid-template-columns:minmax(220px,320px) auto!important;align-items:end!important}
@media(max-width:700px){.rfm-sms-automation-grid,.rfm-sms-status-grid{grid-template-columns:1fr}.rfm-sms-report-toolbar{grid-template-columns:1fr!important}.rfm-sms-report-toolbar .rfm-button{width:100%!important}}


/* v0.11.1 - SMS automation reports and cards */
.rfm-sms-report-toolbar{grid-template-columns:minmax(220px,1fr) minmax(150px,.7fr) minmax(140px,.7fr) minmax(140px,.7fr) auto!important}
.rfm-sms-report-toolbar select,
.rfm-sms-report-toolbar input[type="text"]{width:100%!important;min-height:46px!important;border-radius:16px!important}
.rfm-sms-automation-card{position:relative}
.rfm-sms-automation-card:has(input:checked){border-color:#fecaca!important;background:#fff7f7!important}
@media(max-width:980px){.rfm-sms-report-toolbar{grid-template-columns:1fr 1fr!important}.rfm-sms-report-toolbar .rfm-button{grid-column:1/-1;width:100%!important}}
@media(max-width:640px){.rfm-sms-report-toolbar{grid-template-columns:1fr!important}}
