
:root{--bdp-pink:#ec0b8f;--bdp-dark:#172238;--bdp-blue:#13a7e1;--bdp-yellow:#f3c400;--bdp-bg:#f6f8fc;--bdp-line:#e6eaf1}
*{box-sizing:border-box}.bdp-erp-shell,.bdp-login-wrap{font-family:Inter,Arial,sans-serif;color:var(--bdp-dark)}
.bdp-erp-brand{display:flex;align-items:center;gap:10px}.bdp-mark{font-size:22px;font-weight:800;letter-spacing:-2px;background:linear-gradient(90deg,#13a7e1 0 33%,#ec0b8f 33% 66%,#f3c400 66%);-webkit-background-clip:text;color:transparent}
.bdp-erp-brand b{display:block;font-size:15px}.bdp-erp-brand small{display:block;font-size:10px;color:#7a8496}
.bdp-login-wrap{min-height:100vh;background:#111827}.bdp-login-top,.bdp-login-foot{height:74px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;color:#fff;background:#151d2b}.bdp-login-top .bdp-erp-brand b,.bdp-login-foot .bdp-erp-brand b{color:#fff}
.bdp-login-hero{min-height:calc(100vh - 148px);display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:7%;padding:5% 9%;background:radial-gradient(circle at 75% 10%,rgba(236,11,143,.22),transparent 30%),linear-gradient(135deg,#182334,#291b2a)}
.bdp-login-copy{color:#fff;max-width:620px}.bdp-login-copy .eyebrow{display:inline-block;border:1px solid rgba(255,255,255,.2);padding:8px 14px;border-radius:30px;font-size:12px;letter-spacing:1px}.bdp-login-copy h1{font-size:54px;line-height:1.05;margin:22px 0 16px}.bdp-login-copy p{font-size:18px;color:#d5dae3;line-height:1.55}
.bdp-login-features{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:28px}.bdp-login-features span{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05);padding:14px;border-radius:12px}
.bdp-login-card{background:#fff;padding:34px;border-radius:22px;max-width:430px;width:100%;box-shadow:0 25px 70px rgba(0,0,0,.28)}.bdp-login-card h2{font-size:30px;margin:26px 0 4px}.bdp-login-card>p{color:#758095;margin:0 0 20px}
.bdp-login-card label,.bdp-form label{display:block;font-size:12px;font-weight:700;margin:12px 0 6px}.bdp-login-card input,.bdp-login-card select,.bdp-form input,.bdp-form select,.bdp-form textarea,.bdp-filter input{width:100%;border:1px solid #d8dee8;border-radius:10px;padding:12px 13px;background:#fff}
.bdp-login-card button,.bdp-form button,.bdp-filter button,.bdp-quick a{border:0;background:var(--bdp-pink);color:#fff;padding:13px 18px;border-radius:10px;font-weight:700;text-decoration:none}.remember{display:flex!important;gap:8px;align-items:center}.remember input{width:auto}.bdp-alert{padding:10px;border-radius:9px;background:#fff0f6;color:#aa075f}
.bdp-erp-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh;background:var(--bdp-bg)}.bdp-sidebar{background:#fff;border-right:1px solid var(--bdp-line);padding:26px 18px;position:sticky;top:0;height:100vh}.bdp-sidebar nav{margin-top:30px}.bdp-sidebar a{display:flex;gap:10px;padding:12px 14px;border-radius:10px;text-decoration:none;color:#536078;margin:5px 0}.bdp-sidebar a.active,.bdp-sidebar a:hover{background:linear-gradient(90deg,var(--bdp-pink),#ff3aac);color:#fff}
.bdp-main{padding:0 28px 40px;min-width:0}.bdp-topbar{height:86px;display:flex;align-items:center;justify-content:space-between}.bdp-topbar h2{margin:0}.bdp-topbar small,.bdp-user span{color:#7f899b}.bdp-user{text-align:right;font-weight:700}.bdp-user span{display:block;font-size:11px;font-weight:400}
.bdp-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.bdp-metrics>div,.bdp-panel{background:#fff;border:1px solid var(--bdp-line);border-radius:16px;padding:20px;box-shadow:0 6px 20px rgba(20,35,60,.04)}.bdp-metrics small{display:block;color:#7d8798}.bdp-metrics b{display:block;font-size:25px;margin-top:8px}
.bdp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.bdp-panel{margin-bottom:18px}.bdp-panel h3{margin-top:0}.bdp-quick{display:flex;gap:10px;flex-wrap:wrap}.bdp-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--bdp-line)}
.bdp-form{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.bdp-form .wide{grid-column:1/-1}.bdp-form textarea{min-height:80px}.bdp-form button{min-width:170px}.bdp-table-wrap{overflow:auto}.bdp-table-wrap table{width:100%;border-collapse:collapse;min-width:720px}.bdp-table-wrap th,.bdp-table-wrap td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--bdp-line);font-size:13px}.bdp-table-wrap th{color:#6f7a8b;background:#fafbfd}
.bdp-filter{display:flex;gap:10px;max-width:650px}.bdp-filter input{max-width:220px}.bdp-redirect{padding:25px;font-family:Arial}
@media(max-width:900px){.bdp-login-hero{grid-template-columns:1fr;padding:35px 20px}.bdp-login-copy h1{font-size:38px}.bdp-login-card{max-width:none}.bdp-erp-shell{grid-template-columns:1fr}.bdp-sidebar{position:relative;height:auto}.bdp-sidebar nav{display:flex;overflow:auto;gap:6px}.bdp-sidebar a{min-width:max-content}.bdp-main{padding:0 14px 30px}.bdp-metrics{grid-template-columns:1fr 1fr}.bdp-grid2{grid-template-columns:1fr}.bdp-form{grid-template-columns:1fr}.bdp-form .wide{grid-column:auto}}
@media(max-width:560px){.bdp-login-top,.bdp-login-foot{padding:0 18px}.bdp-login-top>div:last-child{display:none}.bdp-login-copy{display:none}.bdp-login-hero{min-height:calc(100vh - 148px)}.bdp-login-card{padding:24px}.bdp-metrics{grid-template-columns:1fr}.bdp-topbar{height:auto;padding:20px 0}.bdp-login-features{grid-template-columns:1fr}}

/* V2 Office ERP visual system */
.bdp-erp-brand img{max-width:150px;max-height:48px;object-fit:contain}.bdp-erp-brand small{margin-left:7px;color:#8a94a5}
.bdp-erp-shell{grid-template-columns:220px 1fr!important;background:#f3f6fc!important}.bdp-sidebar{background:#071a2f!important;border:0!important;padding:20px 12px!important;width:220px!important}.bdp-sidebar .bdp-erp-brand{background:#fff;border-radius:12px;padding:10px;margin-bottom:18px}.bdp-sidebar nav{margin-top:0!important}.bdp-sidebar a{color:#fff!important;font-size:12px;font-weight:600;padding:10px 11px!important}.bdp-sidebar a.active{background:linear-gradient(90deg,#ec0b8f,#ff3d9f)!important;box-shadow:0 8px 20px rgba(236,11,143,.25)}.navico{display:inline-flex;width:23px;height:23px;align-items:center;justify-content:center;border-radius:7px;background:rgba(255,255,255,.1)}
.bdp-main{padding:0 24px 40px!important}.bdp-topbar{height:66px!important}.bdp-commandbar{background:#fff;border:1px solid #e3e8f1;border-radius:13px;padding:11px;display:grid;grid-template-columns:1.2fr .8fr;gap:11px;margin-bottom:17px}.bdp-global-search,.bdp-date-search{display:flex;align-items:center;gap:9px;border:1px solid #dce3ed;border-radius:10px;padding:6px 11px}.bdp-global-search input,.bdp-date-search input{border:0!important;outline:0;flex:1;min-width:0}.bdp-date-search label{font-size:10px;font-weight:700;min-width:105px}.bdp-date-search small{display:block;font-weight:400;color:#8993a5}.bdp-date-search button{border:1px solid #f1c4dc;background:#fff7fb;color:#d70b7f;border-radius:8px;padding:8px 10px;font-size:10px;font-weight:700}
.bdp-welcome h1{font-size:23px;margin:5px 0}.bdp-welcome p{color:#7b8698;margin:0 0 15px}.bdp-launch-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-bottom:14px}.bdp-launch-grid a{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;column-gap:9px;background:#fff;border:1px solid #e3e8f1;border-radius:13px;padding:14px;text-decoration:none;color:#172238}.bdp-launch-grid i{grid-row:1/3;width:42px;height:42px;border-radius:11px;background:#fff0f7;color:#ec0b8f;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:18px}.bdp-launch-grid b{font-size:12px}.bdp-launch-grid small{font-size:9px;color:#7b8698}
.bdp-kpi-strip{display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border:1px solid #e3e8f1;border-radius:13px;margin-bottom:14px}.bdp-kpi-strip>div{padding:14px;border-right:1px solid #e7ebf2}.bdp-kpi-strip>div:last-child{border:0}.bdp-kpi-strip small,.bdp-kpi-strip span{display:block;color:#7c8798;font-size:9px}.bdp-kpi-strip b{display:block;font-size:20px;margin:5px 0}.panel-head{display:flex;justify-content:space-between;align-items:center}.panel-head a{color:#ec0b8f;text-decoration:none;font-size:10px;font-weight:700}.pinklink{background:#ec0b8f!important;color:#fff!important;padding:8px 12px;border-radius:8px}.source{display:block;color:#929bac;font-weight:400;margin-top:2px}.pill{display:inline-block;padding:4px 8px;border-radius:20px;background:#e8f9ef;color:#16834a;font-size:9px}.pill.pay{background:#fff5db;color:#9a6800}
.bdp-order-form{grid-template-columns:1fr 1fr!important}.form-card{border:1px solid #e5e9f0;border-radius:12px;padding:14px}.form-card h4{margin:0 0 8px}.form-card.wide{grid-column:1/-1}.item-grid{display:grid;grid-template-columns:2fr 1.4fr .7fr .7fr .9fr;gap:9px}.form-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center}.form-actions a{text-decoration:none;color:#667085;padding:11px 18px}
@media(max-width:1100px){.bdp-launch-grid{grid-template-columns:repeat(2,1fr)}.bdp-kpi-strip{grid-template-columns:repeat(2,1fr)}.bdp-commandbar{grid-template-columns:1fr}.item-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.bdp-erp-shell{grid-template-columns:1fr!important}.bdp-sidebar{width:auto!important}.bdp-order-form{grid-template-columns:1fr!important}.form-card.wide{grid-column:auto}}
@media(max-width:560px){.bdp-launch-grid,.bdp-kpi-strip{grid-template-columns:1fr}.item-grid{grid-template-columns:1fr}}


/* ==========================================================
   V2.3 — DXB OFFICE STYLE LAYOUT / NO OVERLAP / COLOR ICONS
   ========================================================== */
html,body{overflow-x:hidden!important}
.bdp-erp-shell{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  width:100%!important;
  max-width:100%!important;
  min-height:100vh!important;
  overflow-x:hidden!important;
}
.bdp-sidebar{
  width:220px!important;
  min-width:220px!important;
  max-width:220px!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
  z-index:20!important;
}
.bdp-main{
  width:100%!important;
  min-width:0!important;
  max-width:1420px!important;
  margin:0 auto!important;
  padding:0 34px 44px!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
}
.bdp-topbar,.bdp-commandbar,.bdp-welcome,.bdp-launch-grid,.bdp-kpi-strip,
.bdp-grid2,.bdp-main>.bdp-panel,.bdp-main>.bdp-metrics{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.bdp-topbar{padding-left:0!important;padding-right:0!important}
.bdp-commandbar{margin-left:0!important;margin-right:0!important}
.bdp-grid2{grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr)!important}
.bdp-panel{min-width:0!important;overflow:hidden!important}
.bdp-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important}
.bdp-table-wrap table{min-width:720px!important}

/* More white space like DXB Office */
@media(min-width:1500px){
  .bdp-main{max-width:1380px!important;padding-left:44px!important;padding-right:44px!important}
}
@media(min-width:1800px){
  .bdp-main{max-width:1460px!important}
}

/* Sidebar logo */
.bdp-sidebar .bdp-erp-brand{
  min-height:62px!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
}
.bdp-sidebar .bdp-erp-brand img{width:150px!important;max-width:100%!important;height:auto!important}

/* Colorful menu icon tiles */
.navico{color:#fff!important;font-weight:800!important;border:0!important}
.navico-dashboard{background:#ff4f93!important}
.navico-orders{background:#3f78ff!important}
.navico-create_order{background:#ff7538!important}
.navico-work{background:#22bf6b!important}
.navico-customers{background:#27c76f!important}
.navico-products{background:#8b5cf6!important}
.navico-sales{background:#15a9d7!important}
.navico-purchases{background:#ffb51b!important}
.navico-payments{background:#ef476f!important}
.navico-reports{background:#ff5c4d!important}
.navico-staff{background:#7a62ee!important}
.navico-settings{background:#687386!important}
.bdp-sidebar a.active .navico{background:#fff!important;color:#ec0b8f!important}

/* Dashboard boxes — colorful icons */
.bdp-launch-grid a{
  min-height:92px!important;
  align-items:center!important;
  box-shadow:0 5px 16px rgba(28,45,75,.035)!important;
  transition:.18s ease!important;
}
.bdp-launch-grid a:hover{transform:translateY(-2px)!important;box-shadow:0 9px 24px rgba(28,45,75,.08)!important}
.bdp-launch-grid i{color:#fff!important}
.launch-create_order i{background:#ff7538!important}
.launch-orders i{background:#3f78ff!important}
.launch-customers i{background:#27c76f!important}
.launch-products i{background:#8b5cf6!important}
.launch-payments i{background:#ef476f!important}
.launch-work i{background:#22bf6b!important}
.launch-purchases i{background:#ffb51b!important}
.launch-reports i{background:#ff5c4d!important}

/* Cleaner top search / date bar */
.bdp-commandbar{
  grid-template-columns:minmax(320px,1.35fr) minmax(360px,.85fr)!important;
  align-items:stretch!important;
}
.bdp-global-search,.bdp-date-search{min-width:0!important;background:#fff!important}
.bdp-global-search input{width:100%!important;min-width:0!important}
.bdp-date-search input{max-width:155px!important}
.bdp-date-search button{white-space:nowrap!important}

/* KPI strip never pushes outside the main canvas */
.bdp-kpi-strip{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.bdp-kpi-strip>div{min-width:0!important}
.bdp-kpi-strip b{overflow-wrap:anywhere!important}

/* Desktop / laptop responsiveness */
@media(max-width:1280px){
  .bdp-main{padding-left:22px!important;padding-right:22px!important}
  .bdp-launch-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .bdp-kpi-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .bdp-grid2{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:1050px){
  .bdp-erp-shell{grid-template-columns:190px minmax(0,1fr)!important}
  .bdp-sidebar{width:190px!important;min-width:190px!important;max-width:190px!important}
  .bdp-commandbar{grid-template-columns:1fr!important}
  .bdp-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:782px){
  .bdp-erp-shell{display:block!important}
  .bdp-sidebar{position:relative!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important}
  .bdp-sidebar nav{display:flex!important;overflow-x:auto!important;gap:6px!important;padding-bottom:5px!important}
  .bdp-sidebar a{white-space:nowrap!important}
  .bdp-main{padding:0 14px 30px!important;max-width:none!important}
  .bdp-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .bdp-launch-grid,.bdp-kpi-strip{grid-template-columns:1fr!important}
  .bdp-commandbar{padding:9px!important}
  .bdp-date-search{display:grid!important;grid-template-columns:auto 1fr!important}
  .bdp-date-search input,.bdp-date-search button{max-width:none!important;width:100%!important}
}

/* V2.4 order items + documents */
.navico-quotes{background:#a855f7!important}.navico-invoices{background:#3b82f6!important}.navico-receipts{background:#10b981!important}
.order-items-card{overflow:visible!important}.order-items-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.bdp-add-item{background:#ec0b8f!important;color:#fff!important;border:0!important;border-radius:8px!important;padding:8px 12px!important;font-weight:700!important}
.bdp-order-item{display:grid;grid-template-columns:2fr 1.4fr .7fr .7fr .85fr .85fr 44px;gap:9px;align-items:end;padding:10px 0;border-bottom:1px solid #edf0f5}.item-action .remove-item{width:38px;height:38px;border:0;border-radius:9px;background:#fff0f4;color:#dc315d;font-size:20px}.item-total{background:#f8fafc!important;font-weight:700!important}
.totals-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.totals-grid input{font-weight:700}.totals-grid #bdp-grand-total{background:#fff2f8!important;color:#d70b7f!important}
.bdp-product-add{display:grid;grid-template-columns:2fr 1.2fr 1fr .8fr auto;gap:9px;margin-bottom:14px}.bdp-product-add input,.bdp-product-add select{border:1px solid #dce3ed;border-radius:9px;padding:10px}.bdp-product-add button{border:0;background:#ec0b8f;color:#fff;border-radius:9px;padding:10px 14px;font-weight:700}.mini-delete{border:0;background:#fff0f3;color:#d23c5b;border-radius:7px;padding:6px 9px}
@media(max-width:1200px){.bdp-order-item{grid-template-columns:1.8fr 1.2fr .7fr .7fr .85fr .85fr}.item-action{grid-column:1/-1}.totals-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.bdp-order-item,.totals-grid,.bdp-product-add{grid-template-columns:1fr!important}}

/* ==========================================================
   V2.5 — CENTERED OFFICE CANVAS + ORDER ALIGNMENT + STAFF CHAT
   ========================================================== */
@media(min-width:1101px){
  .bdp-main{
    width:calc(100% - 120px)!important;
    max-width:1360px!important;
    margin:0 auto!important;
    padding-left:0!important;
    padding-right:0!important;
  }
}
@media(min-width:1500px){
  .bdp-main{width:calc(100% - 150px)!important;max-width:1400px!important}
}
.bdp-order-form{align-items:start!important}
.order-items-card{padding:18px 14px!important}
.bdp-order-item{
  grid-template-columns:minmax(210px,2fr) minmax(170px,1.35fr) minmax(90px,.65fr) minmax(90px,.65fr) minmax(110px,.8fr) minmax(120px,.9fr) 38px!important;
  gap:8px!important;align-items:end!important;width:100%!important
}
.bdp-order-item>div{min-width:0!important}
.bdp-order-item input,.bdp-order-item select{width:100%!important;min-width:0!important;height:42px!important}
.item-action{display:flex!important;align-items:end!important}
.item-action label{display:none!important}
.item-action .remove-item{
  width:36px!important;height:42px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
  background:#fff1f4!important;color:#d12a50!important;border:1px solid #ffd3dd!important;font-size:20px!important
}
.item-calc-note{display:block;margin-top:4px;color:#7c8798;font-size:9px;white-space:nowrap}
.totals-card{margin-top:6px!important}
.totals-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.totals-grid input{height:42px!important}
@media(max-width:1250px){.bdp-order-item{grid-template-columns:repeat(3,minmax(0,1fr))!important}.item-action{grid-column:auto!important}.totals-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.bdp-order-item,.totals-grid{grid-template-columns:1fr!important}.item-action{justify-content:flex-end!important}}

/* Larger clean logo on login/staff panels */
.bdp-login-top .bdp-erp-brand img,.bdp-login-foot .bdp-erp-brand img{max-width:210px!important;max-height:62px!important;background:transparent!important}
.bdp-login-card .bdp-erp-brand img{max-width:230px!important;max-height:72px!important}
.bdp-login-top .bdp-erp-brand,.bdp-login-foot .bdp-erp-brand,.bdp-login-card .bdp-erp-brand{background:transparent!important}

/* Staff Chat */
.bdp-chat-launch{position:fixed;right:22px;bottom:20px;z-index:99990;border:0;border-radius:28px;background:#1d2633;color:#fff;padding:12px 18px;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.18);cursor:pointer}
.bdp-chat-launch span{margin-right:7px}.bdp-chat-badge{margin-left:6px;background:#ec0b8f;border-radius:20px;padding:2px 6px}
.bdp-chat-modal{display:none;position:fixed;inset:0;z-index:99991;background:rgba(17,24,39,.16);align-items:center;justify-content:center;padding:28px}
.bdp-chat-modal.is-open{display:flex}
.bdp-chat-dialog{width:min(920px,95vw);height:min(680px,84vh);background:#fff;border-radius:20px;overflow:hidden;display:grid;grid-template-columns:310px 1fr;box-shadow:0 28px 80px rgba(0,0,0,.24)}
.bdp-chat-side{background:#fff;border-right:1px solid #e5e9f0;display:flex;flex-direction:column;min-width:0}
.bdp-chat-brand{background:#2d3540;color:#fff;padding:12px;display:flex;align-items:center;gap:8px}.bdp-chat-brand .bdp-erp-brand{flex:1;background:transparent!important}.bdp-chat-brand img{max-width:135px!important;max-height:42px!important}.bdp-chat-brand small{color:#dbe1e8!important}
.bdp-chat-sound,.bdp-chat-close{width:36px;height:36px;border:0;border-radius:10px;background:#ff6c2f;color:#fff;font-size:16px}.bdp-chat-close{background:#56606d;font-size:22px}
.bdp-chat-me{padding:14px;border-bottom:1px solid #edf0f4}.bdp-chat-me strong,.bdp-chat-me span{display:block}.bdp-chat-me span{color:#1eaf5f;font-size:12px}
.bdp-chat-search{margin:12px;border:1px solid #dfe5ed;border-radius:10px;padding:11px}
.bdp-chat-users{overflow:auto}.bdp-chat-user{width:100%;display:flex;align-items:center;gap:10px;border:0;background:#fff;padding:11px 13px;text-align:left;border-top:1px solid #f0f2f5}.bdp-chat-user.active{background:#fff0e9}.bdp-chat-user .avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e8edf3;font-weight:800}.bdp-chat-user .avatar.group{background:#fff0e9}.bdp-chat-user b,.bdp-chat-user small{display:block}.bdp-chat-user small{color:#7c8798}
.bdp-chat-main{display:flex;flex-direction:column;min-width:0;background:#f4f6f9}.bdp-chat-head{height:70px;background:#fff;border-bottom:1px solid #e2e7ef;padding:14px 16px;display:flex;align-items:center;justify-content:space-between}.bdp-chat-head strong,.bdp-chat-head small{display:block}.bdp-chat-head-sound{border:1px solid #ffb8a0;background:#fff8f4;color:#ff6427;border-radius:10px;padding:8px 12px}
.bdp-chat-messages{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:10px}.bdp-chat-empty{margin:auto;color:#98a1b1}.bdp-chat-msg{display:flex}.bdp-chat-msg.mine{justify-content:flex-end}.bdp-chat-msg .bubble{max-width:70%;background:#fff;border:1px solid #e4e8ee;border-radius:14px;padding:10px 12px}.bdp-chat-msg.mine .bubble{background:#fff3f8}.bdp-chat-msg b{font-size:11px;color:#ec0b8f}.bdp-chat-msg p{margin:5px 0}.bdp-chat-msg small{display:block;color:#939cab;font-size:9px;margin-top:5px}.bdp-chat-msg img{max-width:240px;max-height:260px;border-radius:10px;display:block;margin-top:8px}.bdp-chat-msg .file{display:inline-block;margin-top:7px}
.bdp-chat-form{background:#fff;border-top:1px solid #e2e7ef;padding:10px 12px;display:grid;grid-template-columns:42px 42px 1fr auto;gap:8px;align-items:center}.bdp-chat-attach,.bdp-chat-gif{height:42px;border:0;border-radius:10px;background:#eef2f6;display:flex;align-items:center;justify-content:center;font-weight:800}.bdp-chat-attach input{display:none}.bdp-chat-text{height:42px;border:1px solid #dce3ec;border-radius:10px;padding:0 12px}.bdp-chat-send{height:42px;border:0;border-radius:10px;background:#ec0b8f;color:#fff;padding:0 18px;font-weight:800}
@media(max-width:760px){.bdp-chat-dialog{grid-template-columns:1fr;height:88vh}.bdp-chat-side{max-height:250px}.bdp-chat-main{min-height:0}.bdp-chat-msg .bubble{max-width:88%}}

/* V2.6 Staff create fix + document center */
.navico-sent_docs{background:#14b8a6!important}
.launch-quotes i{background:#a855f7!important}.launch-invoices i{background:#3b82f6!important}.launch-receipts i{background:#10b981!important}
.bdp-erp-notice{background:#ecfdf3;border:1px solid #a8e8c0;color:#176b3a;padding:11px 14px;border-radius:10px;margin:0 0 12px;font-weight:700}
.bdp-doc-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bdp-doc-order{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border:1px solid #e5e9f0;border-radius:12px;padding:12px}.bdp-doc-order small{display:block;color:#7d8798;margin-top:3px}.bdp-doc-order button,.doc-actions button{border:0;border-radius:8px;background:#ec0b8f;color:#fff;padding:8px 10px;font-weight:700;white-space:nowrap}.doc-actions{display:flex;gap:6px;flex-wrap:wrap}.doc-actions form{margin:0}.doc-actions .doc-print{background:#334155}.doc-actions form:last-child button{background:#22a95b}
.bdp-print-doc{display:none}
@media(max-width:900px){.bdp-doc-create-grid{grid-template-columns:1fr}.bdp-doc-order{grid-template-columns:1fr}.doc-actions{min-width:280px}}

/* ==========================================================
   V2.7 — FINAL CENTERED OFFICE CANVAS + TRANSPARENT LOGO
   ========================================================== */

/* Remove white logo card globally inside ERP sidebar */
.bdp-sidebar .bdp-erp-brand{
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  padding:10px 6px 16px!important;
  min-height:74px!important;
}
.bdp-sidebar .bdp-erp-brand img{
  width:170px!important;
  max-width:100%!important;
  max-height:64px!important;
  object-fit:contain!important;
  background:transparent!important;
}
.bdp-sidebar .bdp-erp-brand small{
  color:#cbd5e1!important;
}

/* Login/footer logo also transparent and larger */
.bdp-login-top .bdp-erp-brand,
.bdp-login-foot .bdp-erp-brand,
.bdp-login-card .bdp-erp-brand{
  background:transparent!important;
  box-shadow:none!important;
}
.bdp-login-top .bdp-erp-brand img,
.bdp-login-foot .bdp-erp-brand img{max-width:220px!important;max-height:72px!important}
.bdp-login-card .bdp-erp-brand img{max-width:245px!important;max-height:78px!important}

/* True center canvas like DXB Safari Office */
.bdp-erp-shell{
  grid-template-columns:220px minmax(0,1fr)!important;
  background:#f3f6fc!important;
}
.bdp-main{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
.bdp-main > .bdp-topbar,
.bdp-main > .bdp-commandbar,
.bdp-main > .bdp-erp-notice,
.bdp-main > .bdp-welcome,
.bdp-main > .bdp-launch-grid,
.bdp-main > .bdp-kpi-strip,
.bdp-main > .bdp-grid2,
.bdp-main > .bdp-panel,
.bdp-main > .bdp-metrics{
  width:min(1260px, calc(100% - 120px))!important;
  max-width:1260px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.bdp-topbar{
  height:76px!important;
  padding:0!important;
}
.bdp-commandbar{margin-bottom:18px!important}
.bdp-welcome{margin-top:16px!important}
.bdp-launch-grid{margin-bottom:14px!important}
.bdp-kpi-strip{margin-bottom:14px!important}
.bdp-grid2{margin-bottom:14px!important}
.bdp-main > .bdp-panel{margin-bottom:16px!important}

/* Admin profile card on top right */
.bdp-user-card{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  text-align:left!important;
}
.bdp-user-card img{
  width:42px!important;
  height:42px!important;
  border-radius:50%!important;
  object-fit:cover!important;
  box-shadow:0 0 0 3px #fff!important;
}
.bdp-user-card strong{display:block!important;font-size:12px!important}
.bdp-user-card span{display:block!important;color:#7c8798!important;font-size:9px!important;margin-top:2px!important}

/* Dashboard cards slightly more compact like reference */
.bdp-launch-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.bdp-launch-grid a{
  min-height:88px!important;
  padding:14px!important;
}
.bdp-kpi-strip{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}

/* Order page also gets centered card width */
.bdp-order-form,
.bdp-main .bdp-panel .bdp-order-form{
  width:100%!important;
}

/* Calculator help text */
.item-calc-note{
  display:block!important;
  margin-top:5px!important;
  font-size:10px!important;
  line-height:1.3!important;
  color:#697386!important;
  white-space:normal!important;
}

/* Ensure order row remove button never creates a wide empty block */
.bdp-order-item .item-action{
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
}
.bdp-order-item .remove-item{
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:42px!important;
}

/* Laptop behavior */
@media(max-width:1450px){
  .bdp-main > .bdp-topbar,
  .bdp-main > .bdp-commandbar,
  .bdp-main > .bdp-erp-notice,
  .bdp-main > .bdp-welcome,
  .bdp-main > .bdp-launch-grid,
  .bdp-main > .bdp-kpi-strip,
  .bdp-main > .bdp-grid2,
  .bdp-main > .bdp-panel,
  .bdp-main > .bdp-metrics{
    width:min(1180px, calc(100% - 80px))!important;
  }
}
@media(max-width:1180px){
  .bdp-main > .bdp-topbar,
  .bdp-main > .bdp-commandbar,
  .bdp-main > .bdp-erp-notice,
  .bdp-main > .bdp-welcome,
  .bdp-main > .bdp-launch-grid,
  .bdp-main > .bdp-kpi-strip,
  .bdp-main > .bdp-grid2,
  .bdp-main > .bdp-panel,
  .bdp-main > .bdp-metrics{
    width:calc(100% - 36px)!important;
  }
  .bdp-launch-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
  .bdp-erp-shell{display:block!important}
  .bdp-sidebar{width:100%!important;min-width:0!important;max-width:none!important;height:auto!important}
  .bdp-main > .bdp-topbar,
  .bdp-main > .bdp-commandbar,
  .bdp-main > .bdp-erp-notice,
  .bdp-main > .bdp-welcome,
  .bdp-main > .bdp-launch-grid,
  .bdp-main > .bdp-kpi-strip,
  .bdp-main > .bdp-grid2,
  .bdp-main > .bdp-panel,
  .bdp-main > .bdp-metrics{width:calc(100% - 24px)!important}
  .bdp-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .bdp-launch-grid,.bdp-kpi-strip{grid-template-columns:1fr!important}
}

/* ==========================================================
   V2.8 — WIDER CANVAS + REAL ICONS + DOCUMENT WORKFLOW
   ========================================================== */
.bdp-main > .bdp-topbar,
.bdp-main > .bdp-commandbar,
.bdp-main > .bdp-erp-notice,
.bdp-main > .bdp-welcome,
.bdp-main > .bdp-launch-grid,
.bdp-main > .bdp-kpi-strip,
.bdp-main > .bdp-grid2,
.bdp-main > .bdp-panel,
.bdp-main > .bdp-metrics{
  width:min(1420px,calc(100% - 76px))!important;
  max-width:1420px!important;
}

/* Real dashboard SVG icons */
.bdp-launch-grid i svg,
.sent-summary i svg{
  width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.bdp-launch-grid i{overflow:hidden!important}
.bdp-launch-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important}
.bdp-launch-grid a{min-height:94px!important}

/* Order-item overlap hard fix */
.order-items-card{overflow:hidden!important}
.bdp-order-item{
  display:grid!important;
  grid-template-columns:minmax(220px,2.25fr) minmax(160px,1.25fr) minmax(90px,.65fr) minmax(100px,.72fr) minmax(105px,.8fr) minmax(125px,.9fr) 42px!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  align-items:end!important;
}
.bdp-order-item>div{min-width:0!important;max-width:100%!important}
.bdp-order-item input,.bdp-order-item select{max-width:100%!important;box-sizing:border-box!important}
.bdp-order-item .item-action{width:42px!important;min-width:42px!important;max-width:42px!important;overflow:hidden!important}
.bdp-order-item .remove-item{margin:0!important}
@media(max-width:1350px){
  .bdp-order-item{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .bdp-order-item .item-action{grid-column:auto!important}
}

/* Document builder */
.bdp-doc-builder .panel-head{align-items:flex-start!important;margin-bottom:14px}
.bdp-doc-builder .panel-head p{margin:4px 0 0;color:#7b8698;font-size:12px}
.bdp-doc-order-table{border:1px solid #e4e9f1;border-radius:12px;overflow:hidden}
.doc-head-row,.doc-order-row{display:grid;grid-template-columns:150px 1.05fr 1.7fr 120px 170px;gap:12px;align-items:center;padding:11px 13px}
.doc-head-row{background:#f8fafc;color:#6f7a8c;font-size:10px;font-weight:800;text-transform:uppercase}
.doc-order-row{border-top:1px solid #edf0f4;background:#fff}
.doc-order-row small{display:block;color:#8993a5;font-size:10px;margin-top:3px}
.doc-order-row .doc-service{font-size:11px;color:#465266;line-height:1.35;max-height:42px;overflow:hidden}
.doc-order-row button{border:0;border-radius:8px;background:#ec0b8f;color:#fff;padding:9px 11px;font-weight:700;white-space:nowrap}
.doc-count{font-size:11px;color:#7c8798;background:#f3f5f8;padding:6px 9px;border-radius:20px}
.bdp-empty-state{display:flex;flex-direction:column;align-items:flex-start;gap:7px;border:1px dashed #dbe1ea;border-radius:12px;padding:24px;background:#fbfcfe}
.bdp-empty-state span{color:#7b8698}.bdp-empty-state a{background:#ec0b8f;color:#fff;text-decoration:none;padding:9px 12px;border-radius:8px;font-weight:700}
.bdp-empty-state.compact{padding:18px}

/* Colored document type badges */
.doc-type-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:20px;font-size:9px;font-weight:800}
.doc-type-badge.quote{background:#f3e8ff;color:#7e22ce}
.doc-type-badge.invoice{background:#dbeafe;color:#1d4ed8}
.doc-type-badge.receipt{background:#dcfce7;color:#15803d}

/* Sent documents: one full summary row */
.sent-summary-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:16px}
.sent-summary{display:flex;align-items:center;gap:10px;border:1px solid #e5e9f1;background:#fff;border-radius:12px;padding:13px}
.sent-summary i{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff}
.sent-summary small,.sent-summary b{display:block}.sent-summary small{font-size:10px;color:#7b8698}.sent-summary b{font-size:19px;margin-top:2px}
.sent-summary.all i{background:#64748b}.sent-summary.quote i{background:#a855f7}.sent-summary.invoice i{background:#3b82f6}.sent-summary.receipt i{background:#10b981}.sent-summary.sent i{background:#ec0b8f}
.sent-method{display:inline-block;padding:4px 8px;border-radius:20px;font-size:9px;font-weight:700}
.sent-method.email{background:#e0f2fe;color:#0369a1}.sent-method.whatsapp{background:#dcfce7;color:#15803d}.sent-method.unsent{background:#f1f5f9;color:#64748b}

/* Saved popup */
.bdp-erp-notice.is-toast{
  position:fixed!important;top:86px!important;left:50%!important;transform:translate(-50%,-14px)!important;
  width:auto!important;min-width:320px!important;max-width:640px!important;margin:0!important;z-index:100000!important;
  box-shadow:0 14px 40px rgba(20,35,60,.18)!important;opacity:0!important;transition:.2s ease!important;
}
.bdp-erp-notice.is-toast.show{opacity:1!important;transform:translate(-50%,0)!important}

/* Wider document/table responsive */
@media(max-width:1500px){
  .bdp-main > .bdp-topbar,
  .bdp-main > .bdp-commandbar,
  .bdp-main > .bdp-erp-notice,
  .bdp-main > .bdp-welcome,
  .bdp-main > .bdp-launch-grid,
  .bdp-main > .bdp-kpi-strip,
  .bdp-main > .bdp-grid2,
  .bdp-main > .bdp-panel,
  .bdp-main > .bdp-metrics{width:calc(100% - 50px)!important}
}
@media(max-width:1050px){
  .doc-head-row{display:none}.doc-order-row{grid-template-columns:1fr 1fr}.doc-order-row .doc-service{grid-column:1/-1}.sent-summary-row{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .doc-order-row,.sent-summary-row{grid-template-columns:1fr}.bdp-launch-grid{grid-template-columns:1fr!important}
}

/* ==========================================================
   V2.9 — PROFILE DROPDOWN / PHOTO / ORDER COUNT
   ========================================================== */
.bdp-user-menu-wrap{position:relative;z-index:5000}
.bdp-user-card{
  border:0!important;background:transparent!important;padding:6px 8px!important;border-radius:12px!important;cursor:pointer!important;
}
.bdp-user-card:hover{background:#fff!important;box-shadow:0 5px 18px rgba(24,39,65,.08)!important}
.bdp-user-card img{width:42px!important;height:42px!important;border-radius:50%!important;object-fit:cover!important}
.bdp-user-chevron{font-size:14px;color:#8390a3;margin-left:4px}
.bdp-user-dropdown{
  position:absolute;right:0;top:58px;width:270px;background:#fff;border:1px solid #e4e8ef;border-radius:16px;
  box-shadow:0 18px 50px rgba(25,40,70,.18);padding:10px;z-index:99999
}
.bdp-user-profile-head{display:flex;align-items:center;gap:11px;padding:10px 8px 14px;border-bottom:1px solid #edf0f4;margin-bottom:7px}
.bdp-user-profile-head img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.bdp-user-profile-head strong,.bdp-user-profile-head span{display:block}.bdp-user-profile-head span{font-size:11px;color:#7d8798;margin-top:3px}
.bdp-user-dropdown button,.bdp-user-dropdown a{width:100%;display:block;text-align:left;border:0;background:#fff;padding:11px 10px;border-radius:9px;text-decoration:none;color:#263246;font-weight:700;cursor:pointer}
.bdp-user-dropdown button:hover{background:#f7f9fc}.bdp-user-logout{color:#e13b4b!important;border-top:1px solid #edf0f4!important;margin-top:5px}

.bdp-profile-modal{display:none;position:fixed;inset:0;z-index:100005;align-items:center;justify-content:center;padding:20px}
.bdp-profile-modal.is-open{display:flex}.bdp-profile-backdrop{position:absolute;inset:0;background:rgba(13,22,34,.32)}
.bdp-profile-dialog{position:relative;width:min(470px,94vw);background:#fff;border-radius:18px;padding:24px;box-shadow:0 25px 80px rgba(0,0,0,.25)}
.bdp-profile-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border:0;border-radius:9px;background:#f1f4f8;font-size:20px}
.bdp-profile-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}.bdp-profile-title img{width:64px;height:64px;border-radius:50%;object-fit:cover}.bdp-profile-title h3{margin:0}.bdp-profile-title p{margin:3px 0 0;color:#7d8798;font-size:12px}
.bdp-profile-form label{display:block;font-size:11px;font-weight:800;margin:10px 0 5px}.bdp-profile-form input{width:100%;border:1px solid #dce3ed;border-radius:9px;padding:11px}.bdp-profile-form button[type=submit]{margin-top:16px;border:0;background:#ec0b8f;color:#fff;border-radius:9px;padding:11px 16px;font-weight:800}

.launch-ordercount i{background:#f97316!important}.launch-ordercount small strong{font-size:15px;color:#f97316}

/* ==========================================================
   V3.0 — ORDER ITEM PERFECT ALIGNMENT / HIDE CALC HELP
   ========================================================== */

/* Hide the calculation explanation text under line totals */
.item-calc-note{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}

/* Keep the full order row on one clean aligned horizontal line */
.order-items-card{
  overflow:visible!important;
}
.bdp-order-item{
  display:grid!important;
  grid-template-columns:
    minmax(260px,2.2fr)
    minmax(190px,1.35fr)
    minmax(100px,.65fr)
    minmax(110px,.7fr)
    minmax(120px,.8fr)
    minmax(140px,.9fr)
    42px!important;
  gap:10px!important;
  align-items:end!important;
  width:100%!important;
  max-width:100%!important;
  padding:12px 0!important;
  box-sizing:border-box!important;
}
.bdp-order-item > div{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.bdp-order-item label{
  display:block!important;
  min-height:16px!important;
  margin:0 0 6px!important;
  line-height:1.2!important;
}
.bdp-order-item input,
.bdp-order-item select{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:42px!important;
  box-sizing:border-box!important;
  margin:0!important;
}
.bdp-order-item .item-total{
  height:42px!important;
  font-weight:800!important;
  background:#f8fafc!important;
}
.bdp-order-item .item-action{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  overflow:visible!important;
}
.bdp-order-item .item-action label{
  display:block!important;
  height:16px!important;
  min-height:16px!important;
  margin:0 0 6px!important;
  color:transparent!important;
}
.bdp-order-item .remove-item{
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:42px!important;
  margin:0!important;
  padding:0!important;
  border-radius:9px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}

/* Keep totals row clean and aligned */
.totals-card{
  margin-top:12px!important;
}
.totals-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:end!important;
}
.totals-grid > div{
  min-width:0!important;
}
.totals-grid input{
  width:100%!important;
  height:42px!important;
  box-sizing:border-box!important;
}

/* Responsive fallback only when screen is too narrow */
@media(max-width:1380px){
  .bdp-order-item{
    grid-template-columns:
      minmax(220px,2fr)
      minmax(170px,1.25fr)
      minmax(90px,.65fr)
      minmax(100px,.7fr)
      minmax(105px,.8fr)
      minmax(125px,.9fr)
      40px!important;
    gap:8px!important;
  }
}
@media(max-width:1180px){
  .bdp-order-item{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .bdp-order-item .item-action{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    justify-content:flex-start!important;
  }
  .totals-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:680px){
  .bdp-order-item,
  .totals-grid{
    grid-template-columns:1fr!important;
  }
  .bdp-order-item .item-action{
    justify-content:flex-end!important;
  }
}

/* V3.1 — ORDER ACTION + DATE PICKER */
.bdp-order-edit{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:7px 10px;border-radius:8px;background:#fff1f7;color:#e6007e!important;font-weight:800;text-decoration:none;border:1px solid #ffc8df}
.bdp-order-edit:hover{background:#ec0b8f;color:#fff!important;border-color:#ec0b8f}
.bdp-table-wrap table th:last-child,.bdp-table-wrap table td:last-child{width:92px;text-align:center}
.bdp-date-open{cursor:pointer!important}
.bdp-direct-date{cursor:pointer!important}
.bdp-order-detail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.bdp-order-detail-head h3{margin:0}.bdp-order-detail-head p{margin:4px 0 0;color:#7c8799}.bdp-order-detail-head a{text-decoration:none;color:#ec0b8f;font-weight:800}
.bdp-order-summary{padding:14px;border:1px solid #e1e7ef;border-radius:10px;background:#f8fafc;line-height:1.7}
.bdp-order-total-big{margin-top:12px;font-size:20px;font-weight:900;color:#ec0b8f}

/* ==========================================================
   V3.2 — LIVE SEARCH / SAVE POPUP / DOCUMENT STYLE POLISH
   ========================================================== */
.bdp-global-search{position:relative!important}
.bdp-live-results{
  position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:100020;background:#fff;border:1px solid #e0e6ef;border-radius:12px;
  box-shadow:0 16px 40px rgba(22,36,60,.16);overflow:hidden;max-height:420px;overflow-y:auto
}
.bdp-live-results a{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid #edf0f4;text-decoration:none;color:#263246}
.bdp-live-results a:last-child{border-bottom:0}.bdp-live-results a:hover{background:#fff6fb}
.live-type{display:inline-flex;padding:4px 7px;border-radius:20px;background:#f3e8ff;color:#7e22ce;font-size:9px;font-weight:700}
.live-copy b,.live-copy small{display:block}.live-copy b{font-size:12px;font-weight:600}.live-copy small{font-size:10px;color:#7d8798;margin-top:3px}.bdp-live-results strong{font-size:11px;font-weight:600;color:#ec0b8f}
.bdp-live-empty{padding:14px;color:#7d8798;font-size:12px}

.bdp-erp-notice.is-toast{background:#effcf4!important;border-color:#b8e6c7!important;color:#166534!important;font-weight:600!important}
.bdp-erp-notice.is-toast:before{content:"✓";display:inline-flex;width:22px;height:22px;margin-right:8px;border-radius:50%;align-items:center;justify-content:center;background:#22c55e;color:#fff}

/* remove heavy boldness from action buttons / recent orders */
.bdp-order-edit{font-weight:500!important;padding:6px 10px!important}
.bdp-table-wrap td,.bdp-table-wrap th{font-weight:400!important}
.bdp-table-wrap th{font-weight:500!important}
.bdp-table-wrap td b{font-weight:500!important}

/* print source remains hidden inside ERP */
.bdp-print-doc{display:none!important}

/* V3.3 — PAID/COMPLETED LOCK PERMISSIONS */
.bdp-lock-badge{display:inline-flex;align-items:center;margin-left:8px;padding:4px 8px;border-radius:20px;background:#fff3cd;color:#8a5a00;font-size:10px;font-weight:600;vertical-align:middle}
.bdp-lock-fieldset{display:contents;border:0;padding:0;margin:0}
.bdp-lock-fieldset:disabled input,.bdp-lock-fieldset:disabled select,.bdp-lock-fieldset:disabled textarea{background:#f3f5f8!important;color:#798393!important;cursor:not-allowed!important}
.bdp-admin-only-note{display:inline-flex;align-items:center;padding:10px 13px;border-radius:9px;background:#fff4e5;color:#9a5a00;font-size:11px;font-weight:600}
.order-lock-mini{margin-left:5px;font-size:10px}
.bdp-admin-delete-form{display:flex;justify-content:flex-end;margin-top:14px}
.bdp-admin-delete-form button,.doc-delete{border:1px solid #fecaca!important;background:#fff1f2!important;color:#be123c!important;border-radius:8px!important;padding:8px 10px!important;font-weight:600!important}
.bdp-doc-locked{display:inline-flex;padding:7px 9px;border-radius:8px;background:#fff4e5;color:#9a5a00;font-size:10px;font-weight:600}

/* V3.4 — ORDER WORKFLOW STATUS ROW */
.bdp-workflow-status-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 14px}
.bdp-workflow-box{appearance:none;width:100%;min-width:0;border:1px solid #dfe5ed;background:#fff;border-radius:12px;padding:13px 14px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;text-align:left;cursor:pointer;box-shadow:0 2px 8px rgba(25,45,75,.035);transition:.18s}
.bdp-workflow-box:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(25,45,75,.08)}
.bdp-workflow-box .wf-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:700}
.bdp-workflow-box strong{display:block;font-size:12px;color:#172238;font-weight:600}.bdp-workflow-box small{display:block;margin-top:3px;font-size:9px;color:#7b8799;font-weight:400}
.bdp-workflow-box>b{font-size:22px;font-weight:600;color:#172238}
.bdp-workflow-box.is-processing .wf-icon{background:#ff7a36}.bdp-workflow-box.is-completed .wf-icon{background:#20bf6b}.bdp-workflow-box.is-paid .wf-icon{background:#14b88a}.bdp-workflow-box.is-delivered .wf-icon{background:#3f7bf3}
.bdp-status-modal{position:fixed;inset:0;z-index:1000000;display:none;align-items:center;justify-content:center;padding:28px}.bdp-status-modal.is-open{display:flex}
.bdp-status-backdrop{position:absolute;inset:0;background:rgba(13,24,39,.48);backdrop-filter:blur(3px)}
.bdp-status-dialog{position:relative;width:min(1120px,96vw);max-height:82vh;background:#fff;border-radius:16px;box-shadow:0 25px 70px rgba(0,0,0,.22);overflow:hidden}
.bdp-status-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e5eaf0}.bdp-status-head h3{margin:0;font-size:20px;font-weight:600}.bdp-status-head p{margin:3px 0 0;color:#7c8797;font-size:11px}.bdp-status-close{border:0;background:#f2f4f7;width:36px;height:36px;border-radius:50%;font-size:23px;cursor:pointer}
.bdp-status-body{padding:16px 20px;overflow:auto;max-height:calc(82vh - 78px)}
.bdp-status-table{width:100%;border-collapse:collapse;font-size:11px}.bdp-status-table th{background:#f7f9fb;text-align:left;color:#69768a;font-weight:600;padding:10px 8px;border-bottom:1px solid #e4e9ef}.bdp-status-table td{padding:11px 8px;border-bottom:1px solid #edf0f4;vertical-align:top;color:#172238}.bdp-status-table .customer-cell strong{display:block;font-weight:600}.bdp-status-table .customer-cell small{display:block;color:#7b8799;margin-top:2px}.bdp-status-open{display:inline-flex;padding:7px 10px;border:1px solid #f5a8ce;border-radius:8px;color:#e6007e;text-decoration:none;font-weight:500;white-space:nowrap}.bdp-status-empty{padding:40px;text-align:center;color:#7b8799}
@media(max-width:900px){.bdp-workflow-status-row{grid-template-columns:repeat(2,minmax(0,1fr))}.bdp-status-dialog{width:98vw}.bdp-status-body{padding:10px;overflow:auto}.bdp-status-table{min-width:850px}}
@media(max-width:520px){.bdp-workflow-status-row{grid-template-columns:1fr}.bdp-status-modal{padding:8px}}

/* ==========================================================
   V3.5 — WORKFLOW ROW PLACEMENT + MARKETING OFFICE
   ========================================================== */
.bdp-workflow-status-row{
  width:100%!important;
  max-width:100%!important;
  margin:0 0 14px!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.bdp-main > .bdp-workflow-status-row,
.bdp-main > .bdp-status-modal{
  width:min(1420px,calc(100% - 76px))!important;
  max-width:1420px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.bdp-workflow-box{min-height:82px!important}

/* Customer database */
.bdp-customer-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}
.bdp-customer-summary>div{background:#fff;border:1px solid #e4e9f1;border-radius:12px;padding:14px}
.bdp-customer-summary small,.bdp-customer-summary b{display:block}.bdp-customer-summary small{color:#7d8798;font-size:10px}.bdp-customer-summary b{font-size:22px;margin-top:4px}

/* Marketing */
.bdp-marketing-office{width:100%}
.marketing-title{display:flex;align-items:center;justify-content:space-between;margin:4px 0 14px}
.marketing-title span{font-size:9px;font-weight:800;color:#ec0b8f}.marketing-title h2{margin:2px 0 3px;font-size:25px}.marketing-title p{margin:0;color:#7a8596;font-size:11px}
.marketing-tabs{display:flex;gap:8px;margin-bottom:12px}.marketing-tabs a{padding:8px 12px;border:1px solid #dfe5ed;border-radius:8px;background:#fff;color:#263246;text-decoration:none;font-size:11px;font-weight:600}.marketing-tabs a.active{background:#1e293b;color:#fff;border-color:#1e293b}.marketing-tabs b{margin-left:5px;padding:2px 6px;border-radius:20px;background:#ec0b8f;color:#fff;font-size:9px}
.marketing-card{background:#fff;border:1px solid #e1e7ef;border-radius:13px;padding:16px;margin-bottom:12px}.marketing-card h3{margin:0 0 12px;font-size:16px}.marketing-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.marketing-grid .full{grid-column:1/-1}.marketing-grid label{font-size:10px;font-weight:700}.marketing-grid input,.marketing-grid textarea,.marketing-grid select,.marketing-service-search{width:100%;box-sizing:border-box;border:1px solid #d9e1eb;border-radius:8px;padding:9px 10px;margin-top:5px;font:inherit;background:#fff}
.marketing-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.marketing-card-head h3{margin:0}.marketing-card-head button{border:1px solid #d9e1eb;background:#fff;border-radius:8px;padding:7px 10px;font-size:10px;font-weight:700}
.marketing-service-search{margin-bottom:10px}.marketing-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:360px;overflow:auto}.service-choice{position:relative;display:grid;grid-template-columns:38px 1fr;gap:8px;align-items:center;border:1px solid #e2e7ee;border-radius:10px;padding:10px;cursor:pointer;background:#fff}.service-choice input{position:absolute;right:8px;top:8px}.service-choice .service-icon{width:36px;height:36px;border-radius:9px;background:#fff0f7;color:#ec0b8f;display:flex;align-items:center;justify-content:center}.service-choice b{font-size:11px;font-weight:600;padding-right:18px}.service-choice:has(input:checked){border-color:#ec0b8f;background:#fff7fb}
.marketing-save{margin-top:14px;border:0;background:#ec0b8f;color:#fff;border-radius:8px;padding:10px 14px;font-weight:700}
.channel-ready{display:flex;gap:16px;align-items:flex-start;padding:24px}.channel-icon{width:54px;height:54px;border-radius:14px;background:#ec0b8f;color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px}.channel-ready h2{margin:0 0 6px}.channel-ready p{color:#697589;line-height:1.6}
.navico-email_marketing{background:#5865f2!important}.navico-whatsapp_marketing{background:#22b65b!important}.navico-sms_marketing{background:#0ea5e9!important}
@media(max-width:1000px){.marketing-service-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.marketing-grid,.marketing-service-grid,.bdp-customer-summary{grid-template-columns:1fr}.marketing-grid .full{grid-column:auto}.marketing-tabs{overflow:auto}.bdp-workflow-status-row{grid-template-columns:repeat(2,1fr)!important}}

/* V3.6 — EMAIL MARKETING SAME MAIN ERP DASHBOARD */
.bdp-main > .bdp-marketing-shell{width:min(1420px,calc(100% - 76px))!important;max-width:1420px!important;margin:0 auto!important}
.bdp-marketing-shell{box-sizing:border-box!important}
.bdp-marketing-top{display:flex;align-items:center;justify-content:space-between;margin:8px 0 14px;padding:0 2px}
.bdp-marketing-top h2{margin:2px 0 3px;font-size:26px;font-weight:500}.bdp-marketing-top p{margin:0;color:#7c8798;font-size:11px}.marketing-kicker{font-size:9px;font-weight:800;color:#ec0b8f}
.bdp-marketing-profile{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e3e8f0;border-radius:12px;padding:7px 10px}
.bdp-marketing-profile img{width:40px;height:40px;border-radius:50%;object-fit:cover}.bdp-marketing-profile strong,.bdp-marketing-profile span{display:block}.bdp-marketing-profile strong{font-size:11px;font-weight:600}.bdp-marketing-profile span{font-size:9px;color:#7c8798;margin-top:2px}
.subscriber-capacity{margin-left:auto;width:170px;border:1px solid #dfe5ed;background:#f8fafc;border-radius:9px;padding:9px 11px}.subscriber-capacity b,.subscriber-capacity span{display:block}.subscriber-capacity b{font-size:10px}.subscriber-capacity span{font-size:9px;color:#6f7a8b;margin-top:3px}
.marketing-help{color:#687386;font-size:10px;line-height:1.5}
.subscriber-import-form label{display:block;font-size:10px;font-weight:700;margin-bottom:10px}.subscriber-import-form input[type=file]{display:block;width:100%;margin-top:5px;border:1px solid #dce3ec;border-radius:8px;padding:8px;background:#fff}
.marketing-consent{display:flex!important;align-items:center;gap:8px!important;font-weight:400!important}.marketing-consent input{width:auto!important}
.subscriber-source-box{border:1px solid #dfe5ed;border-radius:10px;padding:12px;background:#fff}.subscriber-source-box b,.subscriber-source-box span{display:block}.subscriber-source-box span{font-size:10px;color:#7b8798;margin-top:3px}
.campaign-actions{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center}.campaign-actions button{border:0;border-radius:7px;padding:7px 10px;font-size:10px;font-weight:700;cursor:pointer}.campaign-send-now{background:#ff6b2c;color:#fff}.campaign-test-btn{background:#fff;border:1px solid #d9e1ea!important}.campaign-test-email{height:34px;border:1px solid #d9e1ea;border-radius:7px;padding:0 9px;min-width:130px}
@media(max-width:900px){.bdp-main > .bdp-marketing-shell{width:calc(100% - 24px)!important}.bdp-marketing-top{align-items:flex-start;gap:12px}.campaign-actions{grid-template-columns:1fr}.bdp-marketing-profile{flex-shrink:0}}

/* V3.7 — CHAT ATTACHMENT PREVIEW + STAFF CALL */
.bdp-chat-form{
  grid-template-columns:42px 42px 1fr auto!important;
  position:relative!important;
}
.bdp-chat-attachment-preview{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  margin:0 0 2px;
  border:1px solid #dfe5ed;
  background:#f8fafc;
  border-radius:9px;
  min-height:36px;
}
.bdp-chat-attachment-preview[hidden]{display:none!important}
.bdp-chat-preview-icon{font-size:16px}
.bdp-chat-preview-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#334155}
.bdp-chat-preview-remove{width:26px;height:26px;border:0;border-radius:7px;background:#fff1f2;color:#be123c;font-size:18px;line-height:1;cursor:pointer}

.bdp-chat-user-row{display:grid;grid-template-columns:1fr auto;align-items:center;border-top:1px solid #f0f2f5}
.bdp-chat-user-row .bdp-chat-user{border-top:0!important}
.bdp-chat-call{
  width:34px;height:34px;margin-right:10px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  text-decoration:none;background:#ecfdf3;color:#159447;font-size:16px;border:1px solid #bce8ca
}
.bdp-chat-call:hover{background:#22c55e;color:#fff}

/* V3.8 staff account create page-post fix */

/* V3.9 — STAFF PASSWORD + AJAX CREATE */
.bdp-password-field{display:grid;grid-template-columns:1fr auto;align-items:stretch;gap:0}
.bdp-password-field input{border-radius:9px 0 0 9px!important}
.bdp-password-toggle{
  min-width:64px;border:1px solid #d7dfeb;border-left:0;background:#f8fafc;color:#334155;
  border-radius:0 9px 9px 0;font-weight:600;cursor:pointer
}
.bdp-password-toggle:hover{background:#eef2f7}
.bdp-staff-create-result{border-radius:10px;padding:11px 13px;margin-top:3px;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:11px}
.bdp-staff-create-result strong{width:100%;font-size:12px}
.bdp-staff-create-result span{display:inline-block}
.bdp-staff-create-result.is-loading{background:#f8fafc;border:1px solid #dfe5ed;color:#64748b}
.bdp-staff-create-result.is-success{background:#ecfdf3;border:1px solid #b7e6c8;color:#166534}
.bdp-staff-create-result.is-error{background:#fff1f2;border:1px solid #fecdd3;color:#be123c}

/* V4.0 robust staff-create front-end JSON endpoint */
