:root{
  --fp-blue:#0071e3;--fp-blue-hover:#0077ed;--fp-blue-soft:#f2f7ff;
  --fp-ink:#1d1d1f;--fp-text:#343437;--fp-muted:#86868b;--fp-faint:#a1a1a6;
  --fp-line:#e5e5e7;--fp-line-soft:#f2f2f4;--fp-bg:#ffffff;--fp-surface:#f7f7f9;
  --fp-green:#1d8f4e;--fp-red:#c9342f;--fp-orange:#b86400;
  --fp-radius:14px;--fp-pill:999px;--fp-shadow:0 8px 28px rgba(0,0,0,.055);
  --fp-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}html.fpf-lock{overflow:hidden!important}html,body{background:#fff!important;color:var(--fp-ink)!important;font-family:var(--fp-font)!important}

/* APP SHELL: one calm system, not three generations of ERP at once */
.polarisd-app{grid-template-columns:220px minmax(0,1fr)!important;background:#fff!important}
.polarisd-sidebar{width:220px!important;padding:26px 14px 30px!important;gap:28px!important;background:rgba(255,255,255,.97)!important;border-right:1px solid var(--fp-line-soft)!important;box-shadow:none!important;overflow-x:hidden!important}
.polarisd-sidebar-head{padding:0 8px 12px!important;justify-content:flex-start!important}.polarisd-brand .polarisd-official-logo{width:116px!important;height:auto!important}.polarisd-company-card{display:none!important}
.polarisd-nav{gap:22px!important;padding:0 0 80px!important}.polarisd-nav-group{gap:3px!important}.polarisd-nav-title{margin:0 0 7px 8px!important;color:#b0b0b5!important;font-size:9px!important;font-weight:600!important;letter-spacing:.11em!important;text-transform:uppercase!important}
.polarisd-nav-item{min-height:38px!important;padding:7px 9px!important;gap:9px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#6e6e73!important;font-size:12.5px!important;font-weight:430!important;box-shadow:none!important;transition:background .14s ease,color .14s ease!important;overflow:visible!important}
.polarisd-nav-item:hover{background:#f7f7f9!important;color:#1d1d1f!important}.polarisd-nav-item.is-active{background:#f1f6ff!important;color:var(--fp-blue)!important;font-weight:520!important}
.polarisd-nav-item i{display:grid!important;place-items:center!important;flex:0 0 22px!important;width:22px!important;height:22px!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:15px!important;font-style:normal!important}.polarisd-nav-item span{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25!important}
.polarisd-main{grid-template-rows:0 minmax(0,1fr)!important;background:#fff!important}.polarisd-topbar{display:none!important}.polarisd-content{background:#fff!important;padding:0!important;overflow:auto!important}.polarisd-content-inner{min-height:100%!important;background:#fff!important}

/* MAIN PAGE LANGUAGE */
.fpfm-page{width:min(100%,1180px)!important;max-width:1180px!important;margin:0 auto!important;padding:54px 48px 88px!important}.fpfm-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:28px!important;margin:0 0 42px!important}.fpfm-head>div:first-child{max-width:720px!important}.fpfm-kicker{display:block!important;margin:0 0 8px!important;color:#9b9ba0!important;font-size:10px!important;font-weight:520!important;letter-spacing:.02em!important;text-transform:none!important}.fpfm-head h1{margin:0 0 8px!important;color:var(--fp-ink)!important;font-size:38px!important;font-weight:430!important;line-height:1.05!important;letter-spacing:-.045em!important}.fpfm-head p{margin:0!important;max-width:680px!important;color:var(--fp-muted)!important;font-size:14px!important;font-weight:350!important;line-height:1.55!important}.fpfm-head-actions{display:flex!important;gap:8px!important;align-items:center!important;padding-top:0!important}

/* BUTTON SYSTEM: every action speaks the same language */
.fpfm-btn,.fpf-ui-button,.fpfm-page button:not(.fpf-combobox-clear):not(.fpfm-drawer-close):not(.fpfm-adjust-close):not(.fpf-auto-item),.fpfm-page input[type=submit],.fpfm-page input[type=button],.fpfm-page a[class*=btn],.fpfm-page a[class*=button],.fpfm-page a.polarisd-client-small-action,.fpfm-page a.polarisd-client-link,
.fpf-app .fpf-btn,.polarisd-content-inner .polarisd-button,.polarisd-content-inner button[class*=btn],.polarisd-content-inner a[class*=btn],.polarisd-content-inner button[class*=button],.polarisd-content-inner a[class*=button]{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:36px!important;padding:0 14px!important;border:1px solid #d9d9de!important;border-radius:var(--fp-pill)!important;background:#fff!important;color:#1d1d1f!important;font-family:var(--fp-font)!important;font-size:12px!important;font-weight:500!important;line-height:1!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer!important;transition:background .14s ease,border-color .14s ease,color .14s ease!important;white-space:nowrap!important}
.fpfm-btn:hover,.fpf-ui-button:hover,.polarisd-content-inner button[class*=btn]:hover,.polarisd-content-inner a[class*=btn]:hover{background:#f5f5f7!important;border-color:#cfcfd4!important;transform:none!important;box-shadow:none!important}
.fpfm-primary,.fpf-ui-button.is-primary,.fpf-btn-primary,.polarisd-content-inner .polarisd-seller-primary,.polarisd-content-inner .polarisd-plv2-primary,.polarisd-content-inner .polarisd-ov1-primary,.polarisd-content-inner .polarisd-pur-btn:not(.polarisd-pur-btn-light):not(.polarisd-pur-btn-danger),.polarisd-content-inner .polarisd-cashbox-btn-primary,.polarisd-content-inner .polarisd-settings-btn:not(.is-secondary){background:var(--fp-blue)!important;border-color:var(--fp-blue)!important;color:#fff!important}.fpfm-primary:hover,.fpf-btn-primary:hover{background:var(--fp-blue-hover)!important;border-color:var(--fp-blue-hover)!important}
.fpf-ui-button.is-danger,.polarisd-content-inner [class*=danger],.polarisd-content-inner button[data-action*=delete],.polarisd-content-inner button[name*=delete]{background:#fff!important;border-color:#f0c9c7!important;color:var(--fp-red)!important}.fpf-ui-button.is-quiet{background:transparent!important;border-color:transparent!important;color:#6e6e73!important;padding-left:8px!important;padding-right:8px!important}

/* FORMS */
.fpfm-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.fpfm-page select,.fpfm-page textarea,.fpf-app input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.fpf-app select,.fpf-app textarea,.fpfm-legacy-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.fpfm-legacy-shell select,.fpfm-legacy-shell textarea{
 width:100%!important;max-width:none!important;min-height:42px!important;padding:0 13px!important;border:1px solid #d2d2d7!important;border-radius:12px!important;background:#fff!important;color:#1d1d1f!important;font-family:var(--fp-font)!important;font-size:13px!important;font-weight:400!important;line-height:1.35!important;box-shadow:none!important;outline:none!important}
.fpfm-page textarea,.fpf-app textarea,.fpfm-legacy-shell textarea{min-height:92px!important;padding:11px 13px!important}.fpfm-page input:focus,.fpfm-page select:focus,.fpfm-page textarea:focus,.fpf-app input:focus,.fpf-app select:focus,.fpf-app textarea:focus,.fpfm-legacy-shell input:focus,.fpfm-legacy-shell select:focus,.fpfm-legacy-shell textarea:focus{border-color:#2997ff!important;box-shadow:0 0 0 3px rgba(41,151,255,.12)!important}.fpfm-page label,.fpf-app label,.fpfm-legacy-shell label{color:#6e6e73!important;font-size:11px!important;font-weight:500!important;line-height:1.35!important}.fpfm-page form [class*=grid],.fpfm-legacy-shell form [class*=grid]{gap:14px!important}

/* REMOVE LEGACY VISUAL WEIGHT */
.fpfm-surface,.fpfm-list-surface,.fpfm-card,.fpfm-legacy-shell,[class*=fpfm-card]{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}.fpfm-legacy-shell{margin:0!important;padding:0!important}.fpfm-legacy-shell>style{display:none!important}
.fpfm-legacy-shell [class*=hero]{display:none!important}.fpfm-legacy-shell [class*=wrap]{max-width:none!important;margin:0!important;padding:0!important;background:transparent!important}.fpfm-legacy-shell [class*=card],.fpfm-legacy-shell [class*=panel],.fpfm-legacy-shell [class*=box]{box-shadow:none!important}.fpfm-legacy-shell h1,.fpfm-legacy-shell h2,.fpfm-legacy-shell h3,.polarisd-content-inner h1,.polarisd-content-inner h2,.polarisd-content-inner h3{font-family:var(--fp-font)!important;color:var(--fp-ink)!important;font-weight:460!important;letter-spacing:-.025em!important}.fpfm-legacy-shell p,.polarisd-content-inner p{font-weight:380!important;color:#77777c!important}

/* TABLES: plain lists, not Excel wearing a blazer */
.fpfm-page table,.fpfm-legacy-shell table,.fpf-app table,.polarisd-catalog-table{width:100%!important;border:0!important;border-collapse:collapse!important;border-spacing:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important}.fpfm-page thead th,.fpfm-legacy-shell thead th,.fpf-app thead th,.polarisd-catalog-table thead th{padding:10px 8px!important;border:0!important;border-bottom:1px solid var(--fp-line)!important;background:transparent!important;color:#a1a1a6!important;font-size:10px!important;font-weight:500!important;letter-spacing:.01em!important;text-transform:none!important;text-align:left!important}.fpfm-page tbody td,.fpfm-legacy-shell tbody td,.fpf-app tbody td,.polarisd-catalog-table tbody td{padding:15px 8px!important;border:0!important;border-bottom:1px solid #f0f0f2!important;background:transparent!important;color:#37373a!important;font-size:12px!important;font-weight:400!important;vertical-align:middle!important}.fpfm-page tbody tr:hover td,.fpfm-legacy-shell tbody tr:hover td{background:#fbfbfc!important}

/* CLIENTS */
.polarisd-client-card,.polarisd-client-list-card{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}.polarisd-client-table,.polarisd-client-list{border:0!important;background:transparent!important}.polarisd-client-small-action,.polarisd-client-link{min-height:32px!important;padding:0 12px!important}.polarisd-client-status{font-weight:500!important}.polarisd-client-section-head{margin-bottom:16px!important}.polarisd-client-section-head h2{font-size:21px!important;font-weight:450!important}

/* SELLERS */
.polarisd-sellers-wrap{padding:0!important}.polarisd-sellers-stats{display:flex!important;gap:0!important;margin:0 0 34px!important;border-top:1px solid var(--fp-line)!important;border-bottom:1px solid var(--fp-line)!important}.polarisd-seller-stat{flex:1!important;min-height:auto!important;padding:18px 24px 18px 0!important;border:0!important;border-right:1px solid var(--fp-line)!important;border-radius:0!important;background:transparent!important}.polarisd-seller-stat+.polarisd-seller-stat{padding-left:24px!important}.polarisd-seller-stat:last-child{border-right:0!important}.polarisd-seller-stat span{color:#8e8e93!important;font-size:10px!important;font-weight:450!important}.polarisd-seller-stat strong{margin-top:6px!important;color:#1d1d1f!important;font-size:28px!important;font-weight:440!important}.polarisd-seller-layout{grid-template-columns:minmax(300px,360px) minmax(0,1fr)!important;gap:42px!important;align-items:start!important}.polarisd-seller-form-card,.polarisd-seller-card{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}.polarisd-seller-form-card{padding-right:34px!important;border-right:1px solid var(--fp-line)!important}.polarisd-seller-kicker,.polarisd-seller-badge{background:transparent!important;color:#9b9ba0!important;font-size:10px!important;font-weight:500!important;padding:0!important}.polarisd-seller-section-head{margin-bottom:18px!important}.polarisd-seller-section-head h2{font-size:22px!important;font-weight:450!important}.polarisd-seller-table-wrap{border:0!important}.polarisd-seller-status{border:0!important;border-radius:var(--fp-pill)!important;padding:6px 10px!important;font-size:10px!important;font-weight:500!important}.polarisd-seller-status-active{background:#ecf8f0!important;color:#247346!important}.polarisd-seller-status-inactive{background:#f3f3f5!important;color:#737378!important}.polarisd-seller-row-actions{gap:6px!important}

/* PRODUCTS */
.polarisd-catalog-table-wrap{overflow:auto!important}.polarisd-product-name-cell{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;gap:12px!important;align-items:center!important}.polarisd-product-name-cell img{width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important;object-fit:contain!important;object-position:center!important;border-radius:10px!important;background:#fff!important;border:1px solid #ededf0!important;padding:3px!important}.polarisd-product-name-cell strong{font-size:13px!important;font-weight:500!important}.polarisd-product-name-cell span{font-size:11px!important;color:#8e8e93!important}.polarisd-catalog-search{display:flex!important;gap:8px!important;align-items:center!important;max-width:520px!important}.polarisd-catalog-search input{min-width:280px!important}.fpfm-inline-details{margin-top:36px!important;padding-top:22px!important;border-top:1px solid var(--fp-line)!important}.fpfm-inline-details>summary{color:#6e6e73!important;font-size:12px!important;font-weight:500!important;cursor:pointer!important}

/* PRICE LISTS */
.polarisd-plv2-wrap{padding:0!important}.polarisd-plv2-layout{grid-template-columns:300px minmax(0,1fr)!important;gap:42px!important}.polarisd-plv2-card,.polarisd-plv2-list-card,.polarisd-plv2-editor{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}.polarisd-plv2-side{padding-right:34px!important;border-right:1px solid var(--fp-line)!important}.polarisd-plv2-list-grid{gap:0!important}.polarisd-plv2-product-row{border:0!important;border-bottom:1px solid #f0f0f2!important;border-radius:0!important;background:transparent!important;padding:13px 0!important}.polarisd-plv2-toolbar{padding:0 0 18px!important;border-bottom:1px solid var(--fp-line)!important}.polarisd-plv2-section-head h2{font-size:21px!important;font-weight:450!important}

/* ORDERS */
.polarisd-ov1-wrap{padding:0!important}.polarisd-ov1-hero{display:none!important}.polarisd-ov1-card,.polarisd-ov1-order-form-card,.polarisd-ov1-total-card,.polarisd-ov1-source-box,.polarisd-ov1-price-box,.polarisd-ov1-step{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.polarisd-ov1-flow{gap:0!important;border-top:1px solid var(--fp-line)!important;border-bottom:1px solid var(--fp-line)!important}.polarisd-ov1-step{padding:14px 18px!important;border-right:1px solid var(--fp-line)!important}.polarisd-ov1-step:last-child{border-right:0!important}.polarisd-ov1-step-number{background:#f2f2f4!important;color:#6e6e73!important;border:0!important}.polarisd-ov1-lines{gap:0!important}.polarisd-ov1-product-head,.polarisd-ov1-order-card{border:0!important;border-bottom:1px solid #f0f0f2!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.polarisd-ov1-order-card{padding:14px 0!important}.polarisd-ov1-detail{border:0!important;box-shadow:none!important}

/* PURCHASES */
.polarisd-pur-wrap{padding:0!important}.polarisd-pur-head,.polarisd-pur-stats{margin-bottom:28px!important}.polarisd-pur-card{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}.polarisd-pur-stats{display:flex!important;gap:0!important;border-top:1px solid var(--fp-line)!important;border-bottom:1px solid var(--fp-line)!important}.polarisd-pur-stat{flex:1!important;border:0!important;border-right:1px solid var(--fp-line)!important;border-radius:0!important;background:transparent!important;padding:18px 22px!important}.polarisd-pur-stat:first-child{padding-left:0!important}.polarisd-pur-stat:last-child{border-right:0!important}.polarisd-pur-lines{display:grid!important;gap:0!important}.polarisd-pur-line{display:grid!important;grid-template-columns:minmax(280px,1.35fr) 130px 150px 80px 38px!important;gap:12px!important;align-items:end!important;padding:14px 0!important;border:0!important;border-bottom:1px solid #f0f0f2!important;border-radius:0!important;background:transparent!important}.polarisd-pur-summary,.polarisd-pur-total{border:0!important;border-radius:12px!important;background:#f7f7f9!important;box-shadow:none!important;padding:14px!important}

/* SUPPLIERS */
.polarisd-sup-card,.polarisd-sup-table-wrap{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.polarisd-sup-filters{margin-bottom:18px!important}

/* INVENTORY */
.fpfm-summary-line,.fpfm-metrics{display:flex!important;gap:34px!important;margin:0 0 30px!important;padding:0 0 24px!important;border-bottom:1px solid var(--fp-line)!important}.fpfm-summary-line>div,.fpfm-metrics>div{min-width:150px!important;background:transparent!important;border:0!important;padding:0!important}.fpfm-summary-line span,.fpfm-metrics span{display:block!important;margin-bottom:7px!important;color:#8e8e93!important;font-size:10px!important;font-weight:450!important}.fpfm-summary-line strong,.fpfm-metrics strong{display:block!important;color:#1d1d1f!important;font-size:26px!important;font-weight:440!important}.fpfm-inventory-toolbar{display:flex!important;gap:10px!important;align-items:center!important;margin-bottom:18px!important}.fpfm-inventory-list{display:grid!important;gap:0!important;border-top:1px solid var(--fp-line)!important}.fpfm-inventory-row{display:grid!important;grid-template-columns:56px minmax(0,1fr) 130px auto!important;gap:14px!important;align-items:center!important;min-height:78px!important;padding:11px 0!important;border:0!important;border-bottom:1px solid #f0f0f2!important;border-radius:0!important;background:transparent!important}.fpfm-inventory-row:hover{background:#fbfbfc!important}.fpfm-inventory-thumb{display:grid!important;place-items:center!important;width:56px!important;height:56px!important;overflow:hidden!important;border:1px solid #ededf0!important;border-radius:11px!important;background:#fff!important}.fpfm-inventory-thumb img{width:100%!important;height:100%!important;object-fit:contain!important;padding:3px!important}.fpfm-inventory-copy strong{display:block!important;color:#1d1d1f!important;font-size:13px!important;font-weight:500!important}.fpfm-inventory-copy span{display:block!important;margin-top:4px!important;color:#8e8e93!important;font-size:11px!important}.fpfm-inventory-qty{text-align:right!important}.fpfm-inventory-qty span{display:block!important;color:#a1a1a6!important;font-size:10px!important}.fpfm-inventory-qty strong{font-size:16px!important;font-weight:500!important}.fpfm-stock-ok{color:var(--fp-green)!important}.fpfm-stock-low{color:var(--fp-orange)!important}.fpfm-stock-zero{color:var(--fp-red)!important}

/* FINANCE */
.fpfm-finance-grid{display:grid!important;gap:0!important;border-top:1px solid var(--fp-line)!important}.fpfm-fin-card{border:0!important;border-bottom:1px solid #f0f0f2!important;border-radius:0!important;background:transparent!important}.fpfm-fin-card summary{display:flex!important;justify-content:space-between!important;gap:24px!important;padding:17px 0!important;cursor:pointer!important;list-style:none!important}.fpfm-fin-card summary strong{font-size:13px!important;font-weight:500!important}.fpfm-fin-card summary span,.fpfm-fin-card summary small{font-size:11px!important;color:#8e8e93!important}.fpfm-fin-card summary b{font-size:15px!important;font-weight:500!important}.fpfm-fin-lines{padding:0 0 16px 18px!important}.fpfm-fin-lines>div{display:grid!important;grid-template-columns:1fr 1fr auto!important;gap:16px!important;padding:9px 0!important;border-top:1px solid #f5f5f7!important;font-size:11px!important}

/* CASH */
.polarisd-cashbox-wrap{padding:0!important}.polarisd-cashbox-hero{display:none!important}.polarisd-cashbox-grid,.polarisd-cashbox-stats{gap:0!important}.polarisd-cashbox-card,.polarisd-cashbox-stat,.polarisd-cashbox-session{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.polarisd-cashbox-stats{display:flex!important;border-top:1px solid var(--fp-line)!important;border-bottom:1px solid var(--fp-line)!important;margin-bottom:30px!important}.polarisd-cashbox-stat{flex:1!important;padding:18px 20px!important;border-right:1px solid var(--fp-line)!important}.polarisd-cashbox-stat:first-child{padding-left:0!important}.polarisd-cashbox-stat:last-child{border-right:0!important}.polarisd-cashbox-title{font-weight:450!important}.polarisd-cashbox-table-wrap{border:0!important}

/* REPORTS */
.polarisd-reports-wrap,.polarisd-rdash{padding:0!important}.polarisd-reports-hero{display:none!important}.polarisd-report-panel,.polarisd-rdash-panel,.polarisd-report-metric,.polarisd-rdash-cards>*{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.polarisd-report-metrics,.polarisd-rdash-cards{gap:0!important;border-top:1px solid var(--fp-line)!important;border-bottom:1px solid var(--fp-line)!important}.polarisd-report-metric,.polarisd-rdash-cards>*{padding:18px 20px!important;border-right:1px solid var(--fp-line)!important}.polarisd-report-metric:last-child,.polarisd-rdash-cards>*:last-child{border-right:0!important}.polarisd-report-tabs{border-bottom:1px solid var(--fp-line)!important;gap:18px!important}.polarisd-report-tabs a,.polarisd-report-tabs button{border:0!important;border-radius:0!important;background:transparent!important;padding:10px 0!important;color:#6e6e73!important}.polarisd-report-tabs .is-active{color:#1d1d1f!important;border-bottom:2px solid #1d1d1f!important}

/* SETTINGS */
.polarisd-settings-wrap{padding:0!important}.polarisd-settings-hero{display:none!important}.polarisd-settings-grid{grid-template-columns:minmax(0,1fr)!important;gap:0!important}.polarisd-settings-card{border:0!important;border-bottom:1px solid var(--fp-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:22px 0!important}.polarisd-settings-card-head{margin-bottom:16px!important}.polarisd-settings-card-head h2{font-size:18px!important;font-weight:450!important}

/* QUOTES */
.fpf-app{max-width:1180px!important;margin:0 auto!important;padding:54px 48px 88px!important;font-family:var(--fp-font)!important}.fpf-page-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:24px!important;margin-bottom:36px!important}.fpf-eyebrow{color:#9b9ba0!important;font-size:10px!important;font-weight:500!important;text-transform:none!important;letter-spacing:.02em!important}.fpf-page-head h1,.fpf-history-head h2{margin:6px 0 8px!important;color:#1d1d1f!important;font-size:38px!important;font-weight:430!important;letter-spacing:-.045em!important}.fpf-page-head p,.fpf-history-head p{color:#8e8e93!important;font-size:14px!important;font-weight:350!important}.fpf-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;gap:36px!important}.fpf-catalog-panel,.fpf-cart-panel,.fpf-history{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}.fpf-cart-panel{padding-left:30px!important;border-left:1px solid var(--fp-line)!important}.fpf-toolbar{margin-bottom:18px!important}.fpf-search{border:1px solid #d2d2d7!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}.fpf-category-strip{gap:6px!important}.fpf-category-strip button{min-height:32px!important;padding:0 11px!important;border-radius:var(--fp-pill)!important}.fpf-product-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;border-top:1px solid var(--fp-line)!important}.fpf-product-card{min-height:180px!important;padding:14px!important;border:0!important;border-right:1px solid #f0f0f2!important;border-bottom:1px solid #f0f0f2!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}.fpf-product-card:nth-child(3n){border-right:0!important}.fpf-product-card:hover{background:#fbfbfc!important;transform:none!important}.fpf-product-card img{height:92px!important;object-fit:contain!important;border-radius:9px!important;background:#fff!important}.fpf-product-card h3{font-size:12.5px!important;font-weight:500!important}.fpf-product-card p,.fpf-product-card small{font-size:10.5px!important;color:#8e8e93!important}.fpf-cart-head{padding-bottom:16px!important;border-bottom:1px solid var(--fp-line)!important}.fpf-cart-lines{gap:0!important}.fpf-cart-line{border:0!important;border-bottom:1px solid #f0f0f2!important;border-radius:0!important;background:transparent!important;padding:12px 0!important}.fpf-totals{border-top:1px solid var(--fp-line)!important;padding-top:15px!important}.fpf-history-list{border-top:1px solid var(--fp-line)!important}.fpf-history-row{border:0!important;border-bottom:1px solid #f0f0f2!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:14px 0!important}

/* HOME */
.fpf-home-page{padding-top:64px!important}.fpf-home-topaction{position:absolute!important;top:62px!important;right:max(48px,calc((100vw - 220px - 1180px)/2 + 48px))!important}.fpf-home-hello{padding:6px 0 44px!important}.fpf-home-meta{display:flex!important;justify-content:space-between!important;max-width:760px!important;color:#a1a1a6!important;font-size:10px!important;font-weight:400!important}.fpf-home-hello h1{margin:26px 0 0!important;color:#1d1d1f!important;font-size:50px!important;font-weight:420!important;line-height:1!important;letter-spacing:-.052em!important}.fpf-home-hello p{margin:3px 0 0!important;color:#a1a1a6!important;font-size:31px!important;font-weight:280!important;letter-spacing:-.035em!important}.fpf-home-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;max-width:760px!important;margin:0 0 46px!important;border-top:1px solid var(--fp-line)!important;border-bottom:1px solid var(--fp-line)!important}.fpf-home-stat{min-height:auto!important;padding:22px 26px 22px 0!important;border:0!important;border-right:1px solid var(--fp-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.fpf-home-stat:not(:first-child){padding-left:26px!important}.fpf-home-stat:last-child{border-right:0!important}.fpf-home-stat span{display:block!important;margin-bottom:12px!important;color:#8e8e93!important;font-size:11px!important;font-weight:400!important}.fpf-home-stat strong{display:block!important;color:#1d1d1f!important;font-size:30px!important;font-weight:440!important}.fpf-home-stat small{display:block!important;margin-top:8px!important;color:#a1a1a6!important;font-size:10px!important;font-weight:350!important}.fpf-home-activity{max-width:760px!important}.fpf-home-section-title{display:flex!important;align-items:center!important;justify-content:space-between!important}.fpf-home-section-title h2{font-size:15px!important;font-weight:500!important}.fpf-home-section-title a{color:var(--fp-blue)!important;font-size:11px!important;text-decoration:none!important}#polarisd-cash-dashboard-bridge{display:none!important}

/* DRAWERS + MODALS */
.fpfm-drawer[hidden],.fpfm-adjust-panel[hidden]{display:none!important}.fpfm-drawer,.fpfm-adjust-panel{position:fixed!important;z-index:99990!important;inset:0!important;display:flex!important;justify-content:flex-end!important}.fpfm-drawer-backdrop,.fpfm-adjust-backdrop{position:absolute!important;inset:0!important;background:rgba(0,0,0,.16)!important;backdrop-filter:blur(8px)!important}.fpfm-drawer-panel,.fpfm-adjust-card{position:relative!important;width:min(520px,94vw)!important;height:100%!important;overflow:auto!important;background:#fff!important;border-radius:20px 0 0 20px!important;box-shadow:-12px 0 44px rgba(0,0,0,.09)!important}.fpfm-drawer-head{position:sticky!important;top:0!important;z-index:3!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:24px 28px 17px!important;border-bottom:1px solid #f0f0f2!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(16px)!important}.fpfm-drawer-head h2{margin:4px 0 0!important;font-size:25px!important;font-weight:450!important}.fpfm-drawer-close,.fpfm-adjust-close{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#f2f2f4!important;color:#6e6e73!important;font-size:19px!important}.fpfm-drawer-body{padding:24px 28px 42px!important}.fpfm-drawer-body [class*=section-head]{display:none!important}.fpfm-drawer-body [class*=card]{border:0!important;box-shadow:none!important;padding:0!important}.fpfm-drawer-body .polarisd-catalog-grid,.fpfm-drawer-body .polarisd-client-grid,.fpfm-drawer-body .polarisd-sup-form-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.fpfm-drawer-body .polarisd-catalog-grid-wide,.fpfm-drawer-body .polarisd-client-grid-wide{grid-template-columns:1fr!important}

/* AUTOCOMPLETE */
.fpf-combobox,.fpf-search-autocomplete,.fpf-product-picker{position:relative!important}.fpf-combobox-input{padding-right:40px!important}.fpf-combobox-clear{position:absolute!important;right:6px!important;top:5px!important;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border:0!important;background:transparent!important;color:#8e8e93!important;font-size:18px!important}.fpf-autocomplete-panel{position:absolute!important;z-index:99995!important;left:0!important;right:0!important;top:calc(100% + 6px)!important;max-height:320px!important;overflow:auto!important;padding:6px!important;border:1px solid #e0e0e4!important;border-radius:14px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 18px 46px rgba(0,0,0,.1)!important;backdrop-filter:blur(14px)!important}.fpf-auto-item{width:100%!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;min-height:58px!important;padding:8px!important;border:0!important;border-radius:10px!important;background:#fff!important;text-align:left!important}.fpf-auto-item:hover{background:#f5f5f7!important}.fpf-auto-thumb{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border-radius:9px!important;background:#f5f5f7!important;object-fit:contain!important}.fpf-auto-copy strong,.fpf-auto-copy small{display:block!important}.fpf-auto-copy strong{font-size:12px!important;font-weight:500!important}.fpf-auto-copy small{margin-top:3px!important;color:#8e8e93!important;font-size:10px!important}.fpf-auto-stock{color:var(--fp-green)!important;font-size:11px!important;font-weight:500!important}

/* RESPONSIVE */
@media(max-width:1100px){.fpfm-page,.fpf-app{padding-left:30px!important;padding-right:30px!important}.fpf-shell{grid-template-columns:1fr!important}.fpf-cart-panel{padding:26px 0 0!important;border-left:0!important;border-top:1px solid var(--fp-line)!important}.polarisd-seller-layout,.polarisd-plv2-layout{grid-template-columns:1fr!important}.polarisd-seller-form-card,.polarisd-plv2-side{padding:0 0 28px!important;border-right:0!important;border-bottom:1px solid var(--fp-line)!important}.polarisd-pur-line{grid-template-columns:minmax(220px,1fr) 110px 130px 70px 36px!important}}
@media(max-width:900px){.polarisd-app{grid-template-columns:1fr!important}.polarisd-main{grid-template-rows:56px minmax(0,1fr)!important}.polarisd-topbar{display:grid!important;height:56px!important;min-height:56px!important;padding:0 14px!important;background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--fp-line-soft)!important;backdrop-filter:blur(14px)!important}.polarisd-title-area,.polarisd-top-actions{display:none!important}.polarisd-mobile-menu{display:block!important;border:0!important;background:transparent!important;border-radius:9px!important}.polarisd-sidebar{width:250px!important;transform:translateX(-100%)!important;box-shadow:18px 0 45px rgba(0,0,0,.08)!important}.polarisd-app.is-sidebar-open .polarisd-sidebar{transform:none!important}.fpfm-page,.fpf-app{padding:38px 22px 66px!important}.fpf-home-topaction{position:static!important;margin-bottom:24px!important}.fpf-home-stats{grid-template-columns:1fr!important;border:0!important}.fpf-home-stat,.fpf-home-stat:not(:first-child){padding:17px 0!important;border-right:0!important;border-bottom:1px solid var(--fp-line)!important}.fpf-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.fpf-product-card:nth-child(3n){border-right:1px solid #f0f0f2!important}.fpf-product-card:nth-child(2n){border-right:0!important}.fpfm-inventory-row{grid-template-columns:52px minmax(0,1fr) auto!important}.fpfm-inventory-qty{display:none!important}.polarisd-pur-line{grid-template-columns:1fr 1fr!important}.polarisd-pur-line>*:first-child{grid-column:1/-1!important}}
@media(max-width:620px){.fpfm-page,.fpf-app{padding:30px 16px 56px!important}.fpfm-head,.fpf-page-head{display:block!important;margin-bottom:30px!important}.fpfm-head h1,.fpf-page-head h1{font-size:34px!important}.fpfm-head-actions,.fpf-head-actions{margin-top:18px!important;width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}.fpfm-head-actions>*{width:100%!important}.fpf-home-hello h1{font-size:38px!important}.fpf-home-hello p{font-size:25px!important}.fpf-home-meta{display:block!important}.fpf-home-meta span:last-child{display:block!important;margin-top:4px!important}.fpf-product-grid{grid-template-columns:1fr!important}.fpf-product-card{border-right:0!important}.fpfm-summary-line,.fpfm-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}.fpfm-inventory-row{grid-template-columns:46px minmax(0,1fr) auto!important}.fpfm-inventory-thumb{width:46px!important;height:46px!important}.fpfm-drawer-panel,.fpfm-adjust-card{width:100%!important;border-radius:0!important}.polarisd-sellers-stats,.polarisd-cashbox-stats,.polarisd-pur-stats,.polarisd-report-metrics,.polarisd-rdash-cards{display:grid!important;grid-template-columns:1fr 1fr!important}.polarisd-seller-stat,.polarisd-cashbox-stat,.polarisd-pur-stat,.polarisd-report-metric,.polarisd-rdash-cards>*{border-right:0!important;border-bottom:1px solid var(--fp-line)!important;padding:15px 0!important}.polarisd-pur-line{grid-template-columns:1fr!important}.polarisd-pur-line>*{grid-column:auto!important}}
/* V8 additions */
.fpfm-sellers-surface .polarisd-sellers-stats{margin-top:0!important}.fpfm-sellers-surface .polarisd-seller-card{padding:0!important;border:0!important;background:transparent!important}.fpfm-sellers-surface .polarisd-seller-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin:0 0 14px!important}.fpfm-sellers-surface .polarisd-seller-section-head h2{margin:0!important;font-size:20px!important;font-weight:450!important}.fpfm-sellers-surface .polarisd-seller-table-wrap{overflow:auto!important}.fpfm-drawer-body .polarisd-seller-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.fpfm-drawer-body .polarisd-seller-grid-wide{grid-template-columns:1fr!important}.fpfm-drawer-body .polarisd-seller-form-card,.fpfm-drawer-body .polarisd-seller-inline-form{padding:0!important;border:0!important;background:transparent!important}.fpfm-drawer-body .polarisd-seller-section-head,.fpfm-drawer-body .polarisd-seller-kicker{display:none!important}.fpfm-drawer-body .polarisd-seller-actions{position:sticky!important;bottom:-42px!important;margin-top:12px!important;padding:16px 0 42px!important;border-top:1px solid var(--fp-line)!important;background:#fff!important}
.fpf-home-quick{display:grid!important;max-width:760px!important;border-top:1px solid var(--fp-line)!important}.fpf-home-quick a{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:52px!important;border-bottom:1px solid var(--fp-line)!important;color:#1d1d1f!important;font-size:13px!important;font-weight:450!important;text-decoration:none!important}.fpf-home-quick a:hover{color:var(--fp-blue)!important}.fpf-home-quick span{color:#a1a1a6!important;font-size:16px!important}


/* ==========================================================================\n   Fuentes Pharma 9.0 · Card Rhythm\n   Apple-inspired hierarchy: airy page + individually separated records.\n   ========================================================================== */
:root{
  --fp-card:#fff;
  --fp-card-border:#e8e8ed;
  --fp-card-shadow:0 1px 2px rgba(0,0,0,.02),0 8px 28px rgba(0,0,0,.035);
  --fp-card-radius:18px;
  --fp-card-gap:12px;
}
.fpfm-page{max-width:1320px!important;padding-bottom:72px!important}
.fpfm-head{margin-bottom:34px!important}
.fpfm-head h1{font-size:40px!important;font-weight:430!important;letter-spacing:-.045em!important}
.fpfm-head p{max-width:680px!important;font-size:14px!important;line-height:1.65!important;color:#86868b!important}
.fpfm-kicker{font-size:10px!important;letter-spacing:.04em!important;color:#86868b!important}

/* One visual language for actions */
.fpf-ui-button,.fpfm-btn,.polarisd-content-inner button,.polarisd-content-inner a.button{
  border-radius:999px!important;min-height:36px!important;padding:0 15px!important;font-weight:500!important;letter-spacing:-.01em!important;box-shadow:none!important
}
.fpf-ui-button.is-primary,.fpfm-primary{background:#0071e3!important;border-color:#0071e3!important;color:#fff!important}
.fpf-ui-button.is-secondary,.fpfm-btn-soft{background:#fff!important;border:1px solid #d8d8dd!important;color:#1d1d1f!important}
.fpf-ui-button.is-danger{background:#fff!important;border:1px solid #f0c9c7!important;color:#b42318!important}

/* Card treatment for all primary lists */
.fpfm-list-surface,.fpfm-inventory-surface,.fpfm-finance-grid,.fpfm-legacy-shell{background:transparent!important}

/* Clients: table rows become individual cards */
.polarisd-client-table{border-collapse:separate!important;border-spacing:0 10px!important;background:transparent!important}
.polarisd-client-table thead th{border:0!important;padding:0 14px 8px!important;background:transparent!important;color:#9a9aa0!important;font-size:10px!important;font-weight:500!important}
.polarisd-client-table tbody tr{filter:drop-shadow(0 7px 20px rgba(0,0,0,.025))}
.polarisd-client-table tbody td{background:var(--fp-card)!important;border-top:1px solid var(--fp-card-border)!important;border-bottom:1px solid var(--fp-card-border)!important;padding:16px 14px!important;vertical-align:middle!important}
.polarisd-client-table tbody td:first-child{border-left:1px solid var(--fp-card-border)!important;border-radius:16px 0 0 16px!important}
.polarisd-client-table tbody td:last-child{border-right:1px solid var(--fp-card-border)!important;border-radius:0 16px 16px 0!important}
.polarisd-client-table tbody tr:hover td{background:#fbfbfd!important}
.polarisd-client-row-actions{gap:6px!important;flex-wrap:wrap!important}

/* Sellers */
.polarisd-seller-table{border-collapse:separate!important;border-spacing:0 10px!important}
.polarisd-seller-table tbody td{background:#fff!important;border-top:1px solid var(--fp-card-border)!important;border-bottom:1px solid var(--fp-card-border)!important;padding:15px 12px!important}
.polarisd-seller-table tbody td:first-child{border-left:1px solid var(--fp-card-border)!important;border-radius:15px 0 0 15px!important}
.polarisd-seller-table tbody td:last-child{border-right:1px solid var(--fp-card-border)!important;border-radius:0 15px 15px 0!important}

/* Orders: every order is a clear card, not a floating text block */
.polarisd-ov1-order-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
.polarisd-ov1-order-card{display:grid!important;gap:16px!important;min-height:170px!important;padding:18px!important;border:1px solid var(--fp-card-border)!important;border-radius:18px!important;background:#fff!important;box-shadow:var(--fp-card-shadow)!important}
.polarisd-ov1-order-card:hover{border-color:#d7d7dc!important;transform:translateY(-1px)!important}
.polarisd-ov1-order-card>div:first-child{display:grid!important;gap:5px!important}
.polarisd-ov1-order-card>div:first-child strong{font-size:16px!important;font-weight:560!important}
.polarisd-ov1-order-card>div:first-child span{font-size:12px!important;color:#6e6e73!important}
.polarisd-ov1-order-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding-top:12px!important;border-top:1px solid #f0f0f2!important}
.polarisd-ov1-order-meta strong{font-size:17px!important;font-weight:560!important}
.polarisd-ov1-order-card>a{justify-self:start!important}

/* Inventory: recognizable product cards in a single clean list */
.fpfm-inventory-list{display:grid!important;gap:10px!important;border:0!important}
.fpfm-inventory-row{grid-template-columns:64px minmax(0,1fr) 150px auto!important;min-height:86px!important;padding:11px 13px!important;border:1px solid var(--fp-card-border)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 18px rgba(0,0,0,.025)!important}
.fpfm-inventory-row:hover{background:#fbfbfd!important;border-color:#d9d9de!important}
.fpfm-inventory-thumb{width:62px!important;height:62px!important;border-radius:13px!important}
.fpfm-inventory-qty span{font-size:10px!important;color:#86868b!important}
.fpfm-inventory-qty strong{font-size:18px!important;font-weight:560!important}

/* Products */
.polarisd-product-table,.polarisd-products-table{border-collapse:separate!important;border-spacing:0 10px!important}
.polarisd-product-table tbody td,.polarisd-products-table tbody td{background:#fff!important;border-top:1px solid var(--fp-card-border)!important;border-bottom:1px solid var(--fp-card-border)!important}
.polarisd-product-table tbody td:first-child,.polarisd-products-table tbody td:first-child{border-left:1px solid var(--fp-card-border)!important;border-radius:16px 0 0 16px!important}
.polarisd-product-table tbody td:last-child,.polarisd-products-table tbody td:last-child{border-right:1px solid var(--fp-card-border)!important;border-radius:0 16px 16px 0!important}

/* Suppliers */
.polarisd-sup-table{border-collapse:separate!important;border-spacing:0 10px!important;background:transparent!important}
.polarisd-sup-table-wrap{overflow:visible!important;border:0!important}
.polarisd-sup-table thead th{background:transparent!important;border:0!important;color:#9a9aa0!important;font-weight:500!important}
.polarisd-sup-table tbody td{background:#fff!important;border-top:1px solid var(--fp-card-border)!important;border-bottom:1px solid var(--fp-card-border)!important;padding:15px 12px!important}
.polarisd-sup-table tbody td:first-child{border-left:1px solid var(--fp-card-border)!important;border-radius:16px 0 0 16px!important}
.polarisd-sup-table tbody td:last-child{border-right:1px solid var(--fp-card-border)!important;border-radius:0 16px 16px 0!important}

/* Purchases: each product line / purchase gets separation */
.polarisd-pur-line{margin-bottom:10px!important;padding:14px!important;border:1px solid var(--fp-card-border)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 4px 18px rgba(0,0,0,.02)!important}
.polarisd-pur-summary,.polarisd-pur-total{border:1px solid var(--fp-card-border)!important;border-radius:16px!important;background:#fafafa!important}

/* Finance cards: grouped by customer / supplier */
.fpfm-finance-grid{display:grid!important;gap:10px!important;border:0!important}
.fpfm-fin-card{border:1px solid var(--fp-card-border)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 4px 18px rgba(0,0,0,.02)!important;overflow:hidden!important}
.fpfm-fin-card summary{padding:16px 18px!important}
.fpfm-fin-lines{padding:0 18px 14px!important;border-top:1px solid #f1f1f3!important}

/* Price lists / reports / settings legacy cards regain soft separation */
.fpfm-legacy-shell .polarisd-plv2-product-row,
.fpfm-legacy-shell [class*="report-row"],
.fpfm-legacy-shell [class*="setting-row"]{margin-bottom:9px!important;padding:13px 14px!important;border:1px solid var(--fp-card-border)!important;border-radius:14px!important;background:#fff!important}

/* Mobile card behavior */
@media(max-width:980px){
  .polarisd-ov1-order-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .polarisd-ov1-order-grid{grid-template-columns:1fr!important}
  .fpfm-inventory-row{grid-template-columns:56px minmax(0,1fr) auto!important}
  .fpfm-inventory-qty{grid-column:2/3!important;text-align:left!important}
  .fpfm-inventory-row>.fpfm-btn{grid-column:3/4!important;grid-row:1/3!important;align-self:center!important}
  .polarisd-client-table,.polarisd-client-table tbody,.polarisd-client-table tr,.polarisd-client-table td{display:block!important;width:100%!important}
  .polarisd-client-table thead{display:none!important}
  .polarisd-client-table tbody{display:grid!important;gap:10px!important}
  .polarisd-client-table tbody tr{display:grid!important;padding:14px!important;border:1px solid var(--fp-card-border)!important;border-radius:16px!important;background:#fff!important;filter:none!important}
  .polarisd-client-table tbody td{display:flex!important;justify-content:space-between!important;gap:14px!important;padding:7px 0!important;border:0!important;background:transparent!important}
  .polarisd-client-table tbody td:first-child,.polarisd-client-table tbody td:last-child{border:0!important;border-radius:0!important}
}

/* V10: functional legacy modules remain usable and mobile-first */
.fpfm-legacy-shell form{max-width:100%}.fpfm-legacy-shell table{width:100%;border-collapse:separate;border-spacing:0}.fpfm-legacy-shell input,.fpfm-legacy-shell select,.fpfm-legacy-shell textarea{max-width:100%}
.fpfm-legacy-shell .polarisd-ar-wrap,.fpfm-legacy-shell .polarisd-ap-wrap,.fpfm-legacy-shell .polarisd-reports-wrap,.fpfm-legacy-shell .polarisd-exports-wrap{max-width:none!important;padding:0!important;margin:0!important}
.fpfm-legacy-shell .polarisd-ar-card,.fpfm-legacy-shell .polarisd-ap-card,.fpfm-legacy-shell [class*=card]{border-radius:18px!important;box-shadow:none!important;border-color:#e6e6ea!important;background:#fff!important}
@media(max-width:760px){
  .fpfm-page{padding:22px 14px 90px!important}.fpfm-head{display:grid!important;gap:16px!important}.fpfm-head-actions{width:100%;display:grid!important;grid-template-columns:1fr!important}.fpfm-head-actions>*{width:100%!important}
  .fpfm-legacy-shell{overflow:visible!important}.fpfm-legacy-shell table,.fpfm-legacy-shell thead,.fpfm-legacy-shell tbody,.fpfm-legacy-shell tr,.fpfm-legacy-shell th,.fpfm-legacy-shell td{max-width:100%}
  .fpfm-legacy-shell table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.fpfm-legacy-shell form{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}.fpfm-legacy-shell form>*{min-width:0!important;width:100%!important}
  .fpfm-drawer-panel,.fpfm-adjust-card{width:100%!important;max-width:100%!important;border-radius:22px 22px 0 0!important;top:auto!important;bottom:0!important;max-height:88vh!important}
}

/* =========================================================
   Fuentes Pharma 11.0 — Polaris mockup design system
   Source of truth: supplied Polaris ERP mockups (Sep 25 2026)
   ========================================================= */
:root{
  --fp11-bg:#ffffff;
  --fp11-ink:#111827;
  --fp11-text:#334155;
  --fp11-muted:#7c8798;
  --fp11-line:#e8edf4;
  --fp11-line-strong:#dbe3ee;
  --fp11-soft:#f8fafc;
  --fp11-blue:#0a67ff;
  --fp11-blue-soft:#eef5ff;
  --fp11-green:#18b766;
  --fp11-green-soft:#eaf9f0;
  --fp11-red:#ef4444;
  --fp11-red-soft:#fff0f0;
  --fp11-amber:#f59e0b;
  --fp11-radius:14px;
  --fp11-radius-lg:18px;
  --fp11-shadow:0 8px 28px rgba(15,23,42,.035);
}

/* App shell */
.polarisd-app{grid-template-columns:236px minmax(0,1fr)!important;background:var(--fp11-bg)!important}
.polarisd-sidebar{width:236px!important;padding:24px 18px 24px!important;background:#fff!important;border-right:1px solid var(--fp11-line)!important;box-shadow:none!important;gap:22px!important}
.polarisd-sidebar-head{padding:0 6px 18px!important}.polarisd-brand .polarisd-official-logo{width:118px!important;max-height:48px!important;object-fit:contain!important}
.polarisd-company-card{display:none!important}.polarisd-nav{gap:7px!important;padding-bottom:96px!important}.polarisd-nav-group{gap:5px!important}.polarisd-nav-title{display:none!important}
.polarisd-nav-item{min-height:44px!important;padding:9px 12px!important;gap:12px!important;border-radius:12px!important;color:#657085!important;font-size:14px!important;font-weight:450!important;background:transparent!important;border:1px solid transparent!important}
.polarisd-nav-item:hover{background:#f8fafc!important;color:#263244!important}.polarisd-nav-item.is-active{background:var(--fp11-blue-soft)!important;color:var(--fp11-blue)!important;border-color:#e1edff!important;font-weight:560!important}
.polarisd-nav-item i{width:23px!important;height:23px!important;flex-basis:23px!important;font-size:16px!important}.polarisd-nav-item span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.polarisd-main{background:#fff!important}.polarisd-content,.polarisd-content-inner{background:#fff!important}.polarisd-content-inner{max-width:none!important;margin:0!important;padding:0!important}

/* Page frame */
.fpfm-page{width:min(100%,1440px)!important;margin:0 auto!important;padding:46px 56px 80px!important;color:var(--fp11-ink)!important}
.fpfm-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:28px!important;margin:0 0 30px!important}
.fpfm-head>div:first-child{max-width:820px!important}.fpfm-kicker{display:block!important;margin:0 0 7px!important;color:#738096!important;font-size:12px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important}
.fpfm-head h1{margin:0 0 8px!important;color:#111827!important;font-size:44px!important;line-height:1.02!important;font-weight:610!important;letter-spacing:-.045em!important}
.fpfm-head p{margin:0!important;color:#7a8596!important;font-size:17px!important;line-height:1.5!important;font-weight:390!important}.fpfm-head-actions{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}

/* Universal controls */
.fpfm-btn,.fpf-ui-button,.polarisd-content-inner button:not(.fpf-add),.polarisd-content-inner input[type=submit],.polarisd-content-inner input[type=button],.polarisd-content-inner a[class*=btn],.polarisd-content-inner a[class*=button]{min-height:42px!important;padding:0 17px!important;border:1px solid var(--fp11-line-strong)!important;border-radius:13px!important;background:#fff!important;color:#182235!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif!important;font-size:13px!important;font-weight:520!important;line-height:1!important;box-shadow:none!important;text-transform:none!important;letter-spacing:-.01em!important;transition:.16s ease!important}
.fpfm-btn:hover,.fpf-ui-button:hover,.polarisd-content-inner button:not(.fpf-add):hover,.polarisd-content-inner a[class*=btn]:hover,.polarisd-content-inner a[class*=button]:hover{background:#f8fafc!important;border-color:#cfd8e5!important;transform:none!important}
.fpfm-primary,.fpf-ui-button.is-primary,.polarisd-content-inner .button-primary,.polarisd-content-inner [class*=primary]:is(button,a,input){background:linear-gradient(180deg,#1b7cff 0%,#0664f9 100%)!important;border-color:#0a67ff!important;color:#fff!important;box-shadow:0 7px 16px rgba(10,103,255,.16)!important}
.fpfm-primary:hover,.fpf-ui-button.is-primary:hover,.polarisd-content-inner .button-primary:hover{background:linear-gradient(180deg,#1576fa 0%,#005be9 100%)!important;color:#fff!important}
.polarisd-content-inner input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.polarisd-content-inner select,.polarisd-content-inner textarea,.fpfm-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.fpfm-page select,.fpfm-page textarea{min-height:44px!important;border:1px solid var(--fp11-line-strong)!important;border-radius:12px!important;background:#fff!important;color:#253046!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif!important;font-size:14px!important;font-weight:400!important;box-shadow:none!important;outline:none!important}
.polarisd-content-inner input:focus,.polarisd-content-inner select:focus,.polarisd-content-inner textarea:focus,.fpfm-page input:focus,.fpfm-page select:focus,.fpfm-page textarea:focus{border-color:#80b6ff!important;box-shadow:0 0 0 4px rgba(10,103,255,.09)!important}
.polarisd-content-inner label,.fpfm-page label{color:#4c596e!important;font-size:12px!important;font-weight:540!important}

/* Surfaces and KPI cards */
.fpfm-surface,.fpfm-legacy-shell,.fpfm-list-surface,.fpfm-inventory-surface{border:0!important;background:transparent!important;box-shadow:none!important}
.fpfm-stat-grid,.polarisd-seller-stats,.polarisd-pur-stats,[class*=stats-grid],[class*=summary-grid]{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:14px!important;margin:0 0 28px!important}
.fpfm-stat,.polarisd-seller-stat,.polarisd-pur-stat,[class*=stat-card],[class*=summary-card]{min-height:118px!important;padding:22px 24px!important;border:1px solid var(--fp11-line)!important;border-radius:var(--fp11-radius-lg)!important;background:#fff!important;box-shadow:var(--fp11-shadow)!important}

/* Search/filter bars */
.fpfm-search-row,.polarisd-client-filters,.polarisd-seller-filters,.polarisd-sup-filters,.polarisd-products-filters,.polarisd-pur-filters,[class*=filter-bar],[class*=filters-row]{display:flex!important;align-items:end!important;gap:14px!important;flex-wrap:wrap!important;margin:0 0 22px!important;padding:16px 18px!important;border:1px solid var(--fp11-line)!important;border-radius:var(--fp11-radius)!important;background:#fbfcfe!important}
.fpfm-search-row>*:first-child,.polarisd-client-filters>*:first-child,.polarisd-seller-filters>*:first-child,.polarisd-sup-filters>*:first-child,.polarisd-products-filters>*:first-child,[class*=filter-bar]>*:first-child{flex:1 1 420px!important}

/* Tables: mockup look */
.fpfm-page table,.fpfm-legacy-shell table,.polarisd-client-table,.polarisd-seller-table,.polarisd-sup-table,.polarisd-product-table,.polarisd-products-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid var(--fp11-line)!important;border-radius:14px!important;background:#fff!important;overflow:hidden!important;box-shadow:none!important}
.fpfm-page table thead th,.fpfm-legacy-shell table thead th,.polarisd-client-table thead th,.polarisd-seller-table thead th,.polarisd-sup-table thead th,.polarisd-product-table thead th,.polarisd-products-table thead th{height:42px!important;padding:0 16px!important;border:0!important;border-bottom:1px solid var(--fp11-line)!important;background:#fbfcfe!important;color:#7c8798!important;font-size:11px!important;font-weight:500!important;text-align:left!important;vertical-align:middle!important}
.fpfm-page table tbody td,.fpfm-legacy-shell table tbody td,.polarisd-client-table tbody td,.polarisd-seller-table tbody td,.polarisd-sup-table tbody td,.polarisd-product-table tbody td,.polarisd-products-table tbody td{padding:15px 16px!important;border:0!important;border-bottom:1px solid var(--fp11-line)!important;background:#fff!important;color:#384458!important;font-size:13px!important;vertical-align:middle!important;border-radius:0!important}
.fpfm-page table tbody tr:last-child td,.fpfm-legacy-shell table tbody tr:last-child td{border-bottom:0!important}.fpfm-page table tbody tr:hover td,.fpfm-legacy-shell table tbody tr:hover td{background:#fcfdff!important}
.polarisd-client-table{border-spacing:0!important}.polarisd-client-table tbody tr{filter:none!important}.polarisd-client-table tbody td:first-child,.polarisd-client-table tbody td:last-child,.polarisd-seller-table tbody td:first-child,.polarisd-seller-table tbody td:last-child,.polarisd-sup-table tbody td:first-child,.polarisd-sup-table tbody td:last-child,.polarisd-product-table tbody td:first-child,.polarisd-product-table tbody td:last-child,.polarisd-products-table tbody td:first-child,.polarisd-products-table tbody td:last-child{border-left:0!important;border-right:0!important;border-radius:0!important}

/* Product imagery */
.polarisd-product-table img,.polarisd-products-table img,.fpfm-inventory-thumb img,.fpfm-product-thumb img,[class*=product] img{object-fit:contain!important;object-position:center!important}.polarisd-product-table img,.polarisd-products-table img{width:58px!important;height:58px!important;padding:5px!important;border:1px solid var(--fp11-line)!important;border-radius:10px!important;background:#f8fafc!important}

/* Status pills */
[class*=status],.fpfm-status,.polarisd-status,.polarisd-client-status,.polarisd-seller-status{border-radius:999px!important;font-size:12px!important;font-weight:520!important}.is-active,[class*=status].active,[class*=status].is-active{background:var(--fp11-green-soft)!important;color:#168a4e!important}.is-inactive,[class*=status].inactive{background:#f1f3f6!important;color:#6b7280!important}.is-blocked,[class*=status].blocked,[class*=status].is-danger{background:var(--fp11-red-soft)!important;color:#c73535!important}

/* Inventory exactly follows mockup: summary, search, table-like rows */
.fpfm-inventory-surface{display:block!important}.fpfm-inventory-bar{display:flex!important;align-items:center!important;gap:14px!important;margin-bottom:20px!important}.fpfm-inventory-bar>*:first-child{flex:1!important}
.fpfm-inventory-list{display:grid!important;gap:0!important;border:1px solid var(--fp11-line)!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important}
.fpfm-inventory-row{display:grid!important;grid-template-columns:70px minmax(0,1fr) 180px 130px!important;align-items:center!important;gap:16px!important;min-height:92px!important;padding:14px 18px!important;border:0!important;border-bottom:1px solid var(--fp11-line)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
.fpfm-inventory-row:last-child{border-bottom:0!important}.fpfm-inventory-row:hover{background:#fcfdff!important}.fpfm-inventory-thumb{width:60px!important;height:60px!important;border:1px solid var(--fp11-line)!important;border-radius:10px!important;background:#f8fafc!important;overflow:hidden!important}.fpfm-inventory-thumb img{width:100%!important;height:100%!important;padding:5px!important}
.fpfm-inventory-copy{display:grid!important;gap:4px!important}.fpfm-inventory-copy strong{font-size:15px!important;font-weight:560!important}.fpfm-inventory-copy span{color:#8a95a7!important;font-size:12px!important}.fpfm-inventory-qty{text-align:left!important}.fpfm-inventory-qty span{display:block!important;margin-bottom:3px!important;color:#8b96a8!important;font-size:11px!important}.fpfm-inventory-qty strong{font-size:20px!important;font-weight:620!important}.fpfm-inventory-row>.fpfm-btn{justify-self:stretch!important}

/* Orders: replace scattered cards with orderly mockup-like rows/cards */
.polarisd-ov1-order-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
.polarisd-ov1-order-card{display:grid!important;gap:14px!important;min-height:190px!important;padding:20px!important;border:1px solid var(--fp11-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:var(--fp11-shadow)!important}.polarisd-ov1-order-card:hover{border-color:#d8e0eb!important;transform:none!important}

/* Purchase lines */
.polarisd-pur-line{display:grid!important;grid-template-columns:minmax(280px,1fr) 140px 160px 110px 46px!important;align-items:end!important;gap:14px!important;margin:0 0 12px!important;padding:18px!important;border:1px solid var(--fp11-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}.polarisd-pur-summary,.polarisd-pur-total{border:0!important;border-top:1px solid var(--fp11-line)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}

/* Drawer / modal */
.fpfm-drawer{background:rgba(17,24,39,.16)!important;backdrop-filter:blur(8px)!important}.fpfm-drawer-panel{width:min(520px,92vw)!important;padding:28px!important;border-radius:22px 0 0 22px!important;background:#fff!important;box-shadow:-18px 0 60px rgba(15,23,42,.12)!important}.fpfm-drawer-panel h2{font-size:28px!important;font-weight:600!important;letter-spacing:-.03em!important}

/* Mobile: deliberate redesign, not desktop squeezed */
@media(max-width:900px){
  .polarisd-app{grid-template-columns:1fr!important}.polarisd-sidebar{width:min(86vw,300px)!important;padding:22px 16px!important;box-shadow:20px 0 50px rgba(15,23,42,.12)!important}.polarisd-topbar{display:grid!important;height:58px!important;min-height:58px!important;background:rgba(255,255,255,.95)!important;border-bottom:1px solid var(--fp11-line)!important;backdrop-filter:blur(16px)!important}.polarisd-mobile-menu{display:block!important}.fpfm-page{padding:28px 18px 72px!important}.fpfm-head{display:grid!important;gap:18px!important}.fpfm-head h1{font-size:34px!important}.fpfm-head p{font-size:15px!important}.fpfm-head-actions{width:100%!important;display:grid!important;grid-template-columns:1fr!important}.fpfm-head-actions>*{width:100%!important}
  .fpfm-stat-grid,.polarisd-seller-stats,.polarisd-pur-stats,[class*=stats-grid],[class*=summary-grid]{grid-template-columns:1fr!important;gap:10px!important}.fpfm-stat,.polarisd-seller-stat,.polarisd-pur-stat,[class*=stat-card],[class*=summary-card]{min-height:auto!important;padding:18px!important}
  .fpfm-search-row,.polarisd-client-filters,.polarisd-seller-filters,.polarisd-sup-filters,.polarisd-products-filters,.polarisd-pur-filters,[class*=filter-bar],[class*=filters-row]{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;padding:14px!important}.fpfm-search-row>*,.polarisd-client-filters>*,.polarisd-seller-filters>*,.polarisd-sup-filters>*,.polarisd-products-filters>*,.polarisd-pur-filters>*{width:100%!important;min-width:0!important}
  .fpfm-inventory-bar{display:grid!important;grid-template-columns:1fr!important}.fpfm-inventory-row{grid-template-columns:58px minmax(0,1fr) auto!important;gap:12px!important;padding:13px!important}.fpfm-inventory-thumb{width:54px!important;height:54px!important}.fpfm-inventory-qty{grid-column:2/3!important}.fpfm-inventory-row>.fpfm-btn{grid-column:3/4!important;grid-row:1/3!important;align-self:center!important;min-width:88px!important}
  .polarisd-ov1-order-grid{grid-template-columns:1fr!important}.polarisd-pur-line{grid-template-columns:1fr 1fr!important}.polarisd-pur-line>*:first-child{grid-column:1/-1!important}
  .fpfm-page table,.fpfm-legacy-shell table{display:block!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:12px!important}.fpfm-page table th,.fpfm-page table td,.fpfm-legacy-shell table th,.fpfm-legacy-shell table td{white-space:nowrap!important}
  .fpfm-drawer-panel{width:100%!important;max-width:none!important;border-radius:22px 22px 0 0!important;top:auto!important;bottom:0!important;max-height:90vh!important}
}
@media(max-width:560px){
  .fpfm-page{padding:22px 14px 64px!important}.fpfm-head h1{font-size:31px!important}.polarisd-nav-item{min-height:46px!important;font-size:15px!important}.fpfm-inventory-row{grid-template-columns:52px minmax(0,1fr)!important}.fpfm-inventory-row>.fpfm-btn{grid-column:1/-1!important;grid-row:auto!important;width:100%!important}.fpfm-inventory-qty{grid-column:2/3!important}.polarisd-pur-line{grid-template-columns:1fr!important}.polarisd-pur-line>*{grid-column:1!important}
}

/* Fuentes Pharma 13 · analytics dashboard + seller performance */
.fpf-analytics-block,.fpf-home-analytics{margin:0 0 26px;border:1px solid #e3e9f1;border-radius:18px;background:#fff;overflow:hidden}
.fpf-analytics-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:22px 24px 18px;border-bottom:1px solid #edf1f5}
.fpf-analytics-top h2{margin:2px 0 4px;font-size:22px;font-weight:620;letter-spacing:-.025em;color:#111827}
.fpf-analytics-top p{margin:0;color:#7c8798;font-size:12px}
.fpf-analytics-filter{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.fpf-range-pills{display:flex;gap:4px;padding:3px;border-radius:11px;background:#f5f7fa}
.fpf-range-pills a{min-height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;border-radius:8px;color:#667085;font-size:11px;font-weight:600;text-decoration:none}
.fpf-range-pills a.is-active{background:#fff;color:#0a67ff;box-shadow:0 1px 4px rgba(15,23,42,.08)}
.fpf-analytics-filter label{display:grid;gap:4px}
.fpf-analytics-filter label>span{font-size:9px;color:#8a95a6}
.fpf-analytics-filter input[type=date]{height:34px;min-width:130px;padding:0 9px;border:1px solid #dbe2eb;border-radius:9px;background:#fff;color:#344054;font:500 11px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.fpf-analytics-filter .fpfm-btn{min-height:34px;height:34px;padding:0 11px}
.fpf-analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 24px}
.fpf-analytics-kpis article{min-width:0;padding:20px 18px;border-right:1px solid #edf1f5}
.fpf-analytics-kpis article:first-child{padding-left:0}.fpf-analytics-kpis article:last-child{border-right:0;padding-right:0}
.fpf-analytics-kpis span{display:block;margin-bottom:7px;color:#7c8798;font-size:11px}
.fpf-analytics-kpis strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111827;font-size:22px;font-weight:650;letter-spacing:-.03em}
.fpf-analytics-kpis small{display:block;margin-top:5px;color:#98a2b3;font-size:10px}
.fpf-seller-leaderboard{margin:0 24px 22px;border:1px solid #e7ecf2;border-radius:12px;overflow:hidden}
.fpf-seller-leaderboard-head,.fpf-seller-leaderboard article{display:grid;grid-template-columns:minmax(180px,1.3fr) 140px 80px 120px minmax(160px,1fr);gap:12px;align-items:center}
.fpf-seller-leaderboard-head{min-height:36px;padding:0 14px;background:#fafbfc;color:#7c8798;font-size:10px}
.fpf-seller-leaderboard article{min-height:54px;padding:8px 14px;border-top:1px solid #edf1f5;font-size:11px;color:#475467}
.fpf-seller-leaderboard article strong{font-size:12px;color:#111827}.fpf-seller-leaderboard article b{font-size:12px;color:#111827}
.fpf-home-page .fpf-home-analytics{margin-top:22px}.fpf-home-page .fpf-home-quick{margin-top:18px}
@media(max-width:1050px){.fpf-analytics-top{align-items:flex-start;flex-direction:column}.fpf-analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fpf-analytics-kpis article:nth-child(2){border-right:0}.fpf-analytics-kpis article:nth-child(n+3){border-top:1px solid #edf1f5}.fpf-seller-leaderboard{overflow:auto}.fpf-seller-leaderboard-head,.fpf-seller-leaderboard article{min-width:760px}}
@media(max-width:680px){.fpf-analytics-block,.fpf-home-analytics{border-radius:15px}.fpf-analytics-top{padding:18px}.fpf-analytics-filter{width:100%;display:grid;grid-template-columns:1fr 1fr}.fpf-range-pills{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr)}.fpf-analytics-filter label input{width:100%;min-width:0}.fpf-analytics-filter .fpfm-btn{grid-column:1/-1;width:100%}.fpf-analytics-kpis{grid-template-columns:1fr;padding:0 18px}.fpf-analytics-kpis article,.fpf-analytics-kpis article:first-child,.fpf-analytics-kpis article:last-child{padding:15px 0;border-right:0;border-top:1px solid #edf1f5}.fpf-analytics-kpis article:first-child{border-top:0}.fpf-analytics-kpis strong{font-size:20px}.fpf-seller-leaderboard{margin:0 18px 18px}}

/* v14.1 reports */
.fpf-margin-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:16px;border:1px solid #e3e9f1;border-radius:14px;background:#fff}.fpf-margin-filter label{display:grid;gap:6px;color:#667085;font-size:11px;font-weight:600}.fpf-margin-filter input{height:40px;padding:0 10px;border:1px solid #d8e0eb;border-radius:10px;background:#fff}.fpf-margin-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e3e9f1;border-radius:16px;background:#fff;overflow:hidden}.fpf-margin-kpis article{padding:22px;border-right:1px solid #edf1f5}.fpf-margin-kpis article:last-child{border-right:0}.fpf-margin-kpis span{display:block;color:#7c8798;font-size:11px}.fpf-margin-kpis strong{display:block;margin-top:7px;font-size:24px;font-weight:650;color:#111827}.fpf-margin-kpis small{display:block;margin-top:3px;color:#16a34a;font-size:12px;font-weight:600}@media(max-width:680px){.fpf-margin-filter{display:grid;grid-template-columns:1fr 1fr}.fpf-margin-filter .fpfm-btn{width:100%}.fpf-margin-kpis{grid-template-columns:1fr}.fpf-margin-kpis article{border-right:0;border-bottom:1px solid #edf1f5}.fpf-margin-kpis article:last-child{border-bottom:0}}


/* v14.1.1 emergency mobile hardening */
@media (max-width: 680px){
  html,body{max-width:100%;overflow-x:hidden!important}
  .polarisd-main,.polarisd-content,.polarisd-content-inner,.fpfm-page,.fpfm-legacy-shell,.fpf-app{width:100%!important;max-width:100%!important;min-width:0!important}
  .polarisd-content-inner,.fpfm-page,.fpfm-legacy-shell,.fpf-app{padding-left:14px!important;padding-right:14px!important}
  .fpfm-drawer,.fpfm-adjust-panel{align-items:flex-end!important}
  .fpfm-drawer-panel,.fpfm-adjust-card{width:100%!important;max-width:100%!important;min-width:0!important;max-height:92dvh!important;height:auto!important;border-radius:22px 22px 0 0!important;padding:0!important}
  .fpfm-drawer-head{padding:18px 18px 14px!important}
  .fpfm-drawer-head h2{font-size:22px!important}
  .fpfm-drawer-body{padding:18px 18px calc(24px + env(safe-area-inset-bottom))!important}
  .fpfm-drawer-body .polarisd-catalog-grid,
  .fpfm-drawer-body .polarisd-client-grid,
  .fpfm-drawer-body .polarisd-seller-grid,
  .fpfm-drawer-body .polarisd-sup-form-row,
  .fpfm-drawer-body [class*="grid"]{grid-template-columns:1fr!important;display:grid!important;gap:12px!important}
  .fpfm-page form,.fpfm-legacy-shell form,.polarisd-content-inner form{max-width:100%!important;min-width:0!important}
  .fpfm-page form>*,.fpfm-legacy-shell form>*,.polarisd-content-inner form>*{min-width:0!important;max-width:100%!important}
  .fpfm-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  .fpfm-page select,.fpfm-page textarea,
  .fpfm-legacy-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  .fpfm-legacy-shell select,.fpfm-legacy-shell textarea,
  .polarisd-content-inner input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  .polarisd-content-inner select,.polarisd-content-inner textarea{width:100%!important;max-width:100%!important;min-width:0!important;font-size:16px!important}
  .polarisd-catalog-search{display:grid!important;grid-template-columns:1fr!important;max-width:100%!important;width:100%!important}
  .polarisd-catalog-search input{min-width:0!important;width:100%!important}
  .polarisd-pur-line{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .polarisd-pur-line>*{grid-column:auto!important;width:100%!important;min-width:0!important}
  .fpfm-head-actions,.fpf-head-actions{grid-template-columns:1fr!important;gap:8px!important}
  .fpfm-head-actions>*,.fpf-head-actions>*{width:100%!important}
  .fpfm-btn,.fpf-ui-button,.polarisd-content-inner button,.polarisd-content-inner input[type=submit],.polarisd-content-inner input[type=button]{max-width:100%!important}
  .fpfm-summary-line,.fpfm-metrics,.polarisd-sellers-stats,.polarisd-cashbox-stats,.polarisd-pur-stats,.polarisd-report-metrics,.polarisd-rdash-cards{grid-template-columns:1fr!important}
  .fpf-analytics-filter,.fpf-margin-filter{grid-template-columns:1fr!important}
  .fpf-range-pills{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fpf-analytics-filter label,.fpf-margin-filter label{width:100%!important}
  .fpf-analytics-filter input[type=date],.fpf-margin-filter input[type=date]{width:100%!important;min-width:0!important}
  table{max-width:100%!important}
  .polarisd-table-wrap,.polarisd-catalog-table-wrap,.fpfm-table-wrap,[class*="table-wrap"]{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
}


/* Fuentes Pharma 14.2 · editor de producto limpio + categoría escribible */
.fpfm-drawer-body .fpf-product-editor{display:block!important;width:100%!important;max-width:none!important}
.fpfm-drawer-body .fpf-product-editor .polarisd-catalog-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.fpfm-drawer-body .fpf-product-editor label{display:grid!important;gap:7px!important;min-width:0!important;align-content:start!important}
.fpfm-drawer-body .fpf-product-editor input,.fpfm-drawer-body .fpf-product-editor select,.fpfm-drawer-body .fpf-product-editor textarea{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
.fpfm-drawer-body .fpf-product-editor .fpf-category-native{display:none!important}
.fpfm-drawer-body .fpf-product-editor .fpf-category-typing{display:block!important}
.fpf-field-hint{display:block;color:#8a94a6;font-size:11px;line-height:1.35;margin-top:1px}
.fpfm-drawer-body .fpf-product-editor .polarisd-catalog-grid-wide{display:block!important;margin-top:16px!important}
.fpfm-drawer-body .fpf-product-editor .polarisd-catalog-actions{display:flex!important;justify-content:flex-end!important;margin-top:18px!important;padding-top:16px!important;border-top:1px solid #edf1f5!important}
.fpfm-drawer-body .fpf-product-editor .polarisd-catalog-primary{min-width:150px!important}
@media(max-width:620px){
 .fpfm-drawer-body .fpf-product-editor .polarisd-catalog-grid{grid-template-columns:1fr!important;gap:14px!important}
 .fpfm-drawer-body .fpf-product-editor label{width:100%!important}
 .fpfm-drawer-body .fpf-product-editor input,.fpfm-drawer-body .fpf-product-editor select,.fpfm-drawer-body .fpf-product-editor textarea{font-size:16px!important;min-height:48px!important}
 .fpfm-drawer-body .fpf-product-editor textarea{min-height:110px!important}
 .fpfm-drawer-body .fpf-product-editor .polarisd-catalog-actions{position:sticky!important;bottom:0!important;background:#fff!important;padding:14px 0 calc(8px + env(safe-area-inset-bottom))!important;z-index:2!important}
 .fpfm-drawer-body .fpf-product-editor .polarisd-catalog-primary{width:100%!important;min-height:48px!important}
}


/* Fuentes Pharma 14.2.1 — editor de producto centrado, amplio y responsive */
.fpfm-drawer[data-fpf-drawer="product"]{align-items:center!important;justify-content:center!important;padding:28px!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpfm-drawer-panel{width:min(980px,calc(100vw - 56px))!important;max-width:980px!important;height:auto!important;max-height:calc(100dvh - 56px)!important;border-radius:24px!important;box-shadow:0 30px 90px rgba(15,23,42,.18)!important;overflow:hidden!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpfm-drawer-head{padding:24px 30px 18px!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpfm-drawer-body{padding:24px 30px 30px!important;overflow:auto!important;max-height:calc(100dvh - 150px)!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .polarisd-catalog-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px 16px!important;align-items:start!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-name{grid-column:span 2!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-category{grid-column:span 2!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-image{grid-column:span 2!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-description{grid-column:1/-1!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor label{gap:8px!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor label>span{font-size:13px!important;font-weight:600!important;color:#475569!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor input,
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor select,
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor textarea{min-height:46px!important;border-radius:12px!important;border:1px solid #d8e0eb!important;background:#fff!important;padding:0 13px!important;font-size:14px!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor textarea{min-height:118px!important;padding-top:12px!important;padding-bottom:12px!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-hint{font-size:11px!important;line-height:1.4!important;color:#8a95a6!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .polarisd-catalog-grid-wide{margin-top:18px!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .polarisd-catalog-actions{position:sticky!important;bottom:-30px!important;z-index:4!important;display:flex!important;justify-content:flex-end!important;margin-top:22px!important;padding:18px 0 30px!important;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 24%)!important;border-top:0!important}
.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .polarisd-catalog-primary{min-width:180px!important;min-height:46px!important;border-radius:12px!important}

@media(max-width:900px){
 .fpfm-drawer[data-fpf-drawer="product"]{padding:18px!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpfm-drawer-panel{width:calc(100vw - 36px)!important;max-width:none!important;max-height:calc(100dvh - 36px)!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .polarisd-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-name,.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-category,.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-image{grid-column:span 2!important}
}
@media(max-width:620px){
 .fpfm-drawer[data-fpf-drawer="product"]{padding:0!important;align-items:stretch!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpfm-drawer-panel{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;top:0!important;bottom:auto!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpfm-drawer-head{padding:18px 18px 14px!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpfm-drawer-body{padding:18px 18px calc(28px + env(safe-area-inset-bottom))!important;max-height:calc(100dvh - 76px)!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .polarisd-catalog-grid{grid-template-columns:1fr!important;gap:14px!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-name,.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-category,.fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .fpf-field-image{grid-column:auto!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor input,
 .fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor select,
 .fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor textarea{font-size:16px!important;min-height:50px!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .polarisd-catalog-actions{bottom:calc(-28px - env(safe-area-inset-bottom))!important;padding:16px 0 calc(28px + env(safe-area-inset-bottom))!important}
 .fpfm-drawer[data-fpf-drawer="product"] .fpf-product-editor .polarisd-catalog-primary{width:100%!important;min-height:50px!important}
}


/* v14.2.2 — autocomplete real de categorías */
.fpf-category-combo{position:relative;width:100%}
.fpf-category-combo .fpf-category-typing{width:100%!important}
.fpf-category-suggestions{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:1000005;padding:6px;border:1px solid #dfe5ed;border-radius:12px;background:#fff;box-shadow:0 18px 42px rgba(15,23,42,.13);max-height:260px;overflow:auto}
.fpf-category-suggestions[hidden]{display:none!important}
.fpf-category-option{display:block;width:100%;min-height:40px;padding:0 12px;border:0;border-radius:9px;background:#fff;color:#1f2937;text-align:left;font:500 13px/1.3 var(--fp-font);cursor:pointer}
.fpf-category-option:hover,.fpf-category-option:focus{background:#f5f8fc;outline:0}
.fpf-category-empty{padding:10px 12px;color:#7c8798;font-size:12px;line-height:1.4}
@media(max-width:640px){.fpf-category-suggestions{position:fixed;left:14px;right:14px;top:auto;bottom:18px;max-height:42vh;border-radius:16px;padding:8px}.fpf-category-option{min-height:48px;font-size:15px}}
