:root{
  --rail:#21194f;
  --active:#6c5ce7;
  --green:#2d8f4e;
  --green-dark:#257541;
  --blue:#0b66d8;
  --bg:#f4f4f6;
  --panel:#fff;
  --line:#dfe3e8;
  --line-dark:#c8cdd3;
  --text:#20242c;
  --muted:#6b7280;
  --yellow:#ffd15c;
  --teal:#91d8d7;
}
*{box-sizing:border-box}
html,body{height:100%}
body.pd-ui{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px;
  line-height:1.35;
  overflow:hidden;
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}

.rail{
  position:fixed;
  left:0;top:0;bottom:0;
  width:56px;
  background:var(--rail);
  display:flex;
  flex-direction:column;
  align-items:center;
  z-index:30;
}
.logo{
  width:56px;height:56px;
  display:grid;place-items:center;
  color:#fff;
  font-size:34px;
  line-height:1;
  font-weight:900;
  font-family:Arial,Helvetica,sans-serif;
}
.rail nav{display:flex;flex-direction:column;gap:4px;width:100%;padding:6px 5px}
.rail nav a{
  width:46px;height:43px;
  border-radius:5px;
  display:grid;place-items:center;
  color:#fff;
  opacity:.94;
  position:relative;
}
.rail nav a.active{background:var(--active);opacity:1}
.rail nav a:hover{background:#34266f}
.rail nav a:hover:after{
  content:attr(title);
  position:absolute;
  left:54px;top:50%;
  transform:translateY(-50%);
  background:#222;
  color:#fff;
  padding:7px 9px;
  border-radius:4px;
  white-space:nowrap;
  font-size:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.ico,.small-ico{display:block;position:relative;width:20px;height:20px}
.ico:before,.ico:after,.small-ico:before,.small-ico:after{content:"";position:absolute;display:block}
.ico.list:before{inset:3px;border:2px solid currentColor;border-radius:2px;box-shadow:0 6px 0 -3px currentColor}
.ico.card:before{inset:3px;border:2px solid currentColor;border-radius:2px}.ico.card:after{left:6px;right:6px;top:8px;height:2px;background:currentColor}
.ico.target:before{inset:2px;border:2px solid currentColor;border-radius:50%}.ico.target:after{inset:7px;background:currentColor;border-radius:50%}
.ico.money:before{content:"$";font-weight:800;font-size:20px;inset:0;text-align:center}
.ico.check:before{inset:3px;border:2px solid currentColor;border-radius:2px}.ico.check:after{left:6px;top:8px;width:8px;height:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.ico.megaphone:before{left:2px;top:8px;width:14px;height:6px;border:2px solid currentColor;border-left:0;transform:skew(-18deg)}
.ico.mail:before{inset:3px;border:2px solid currentColor;border-radius:2px}.ico.mail:after{left:4px;right:4px;top:7px;height:8px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.ico.box:before{inset:3px;border:2px solid currentColor;border-radius:3px}.ico.chart:before{left:3px;bottom:3px;width:3px;height:9px;background:currentColor;box-shadow:6px -4px 0 currentColor,12px -8px 0 currentColor}
.ico.cube:before{inset:3px;border:2px solid currentColor;transform:rotate(30deg)}.ico.more:before{content:"...";font-weight:900;font-size:18px;inset:0;text-align:center;line-height:12px}
.user-dot{
  margin-top:auto;margin-bottom:10px;
  width:32px;height:32px;border-radius:50%;
  background:#f1f2f4;color:#21194f;
  display:grid;place-items:center;
  font-size:12px;font-weight:700;
}

.topbar{
  position:fixed;
  left:56px;right:0;top:0;
  height:56px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;align-items:center;
  padding:0 16px 0 12px;
  z-index:25;
}
.crumb{
  min-width:380px;
  display:flex;align-items:center;gap:12px;
  color:#20242c;
  font-size:18px;
  font-weight:700;
}
.hamb{width:20px;height:16px;position:relative;display:inline-block}
.hamb:before{content:"";position:absolute;left:2px;top:2px;width:14px;height:2px;background:#6b7280;box-shadow:0 6px 0 #6b7280,0 12px 0 #6b7280}
.hamb:after{content:"";position:absolute;left:0;top:6px;border:4px solid transparent;border-left-color:#6b7280}
.top-search{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:360px;height:42px;
  border:1px solid #c8cdd3;
  border-radius:22px;
  display:flex;align-items:center;
  padding:0 12px;
  background:#fff;
}
.search-ico{width:18px;height:18px;border:2px solid #4b5563;border-radius:50%;display:inline-block;position:relative;margin-right:9px;flex:0 0 auto}
.search-ico:after{content:"";position:absolute;width:8px;height:2px;background:#4b5563;right:-6px;bottom:-3px;transform:rotate(45deg)}
.top-search input{border:0;outline:0;flex:1;font-size:14px;color:#4b5563;background:transparent}
.top-plus{
  margin-left:auto;
  width:42px;height:42px;border:1px solid #c8cdd3;border-radius:50%;
  display:grid;place-items:center;
  background:#fff;
  font-size:28px;
  color:#344054;
  font-weight:300;
}
.quick-create-menu[hidden]{display:none!important}
.quick-create-menu{
  position:fixed;
  top:50px;
  right:220px;
  width:232px;
  background:#fff;
  border:1px solid #d7dce1;
  border-radius:4px;
  box-shadow:0 14px 40px rgba(0,0,0,.18);
  z-index:60;
  padding:6px 0;
}
.quick-create-menu:before{
  content:"";
  position:absolute;
  top:-7px;
  right:18px;
  width:12px;
  height:12px;
  background:#fff;
  border-left:1px solid #d7dce1;
  border-top:1px solid #d7dce1;
  transform:rotate(45deg);
}
.quick-create-menu a{
  height:36px;
  display:flex;
  align-items:center;
  padding:0 14px;
  color:#20242c;
  font-weight:600;
}
.quick-create-menu a:hover{background:#f3f8ff;color:#0b66d8}
.ai-orb{
  width:36px;height:36px;border-radius:50%;
  margin-left:10px;
  display:grid;place-items:center;
  color:#fff;
  background:radial-gradient(circle at 35% 35%,#fff 0 10%,#b05cff 30%,#6b57ff 58%,#ffffff 76%);
  box-shadow:0 0 0 5px #f3eefc,0 2px 8px rgba(76,29,149,.35);
}
.top-icons{display:flex;align-items:center;gap:18px;margin-left:auto;color:#4b5563}
.small-ico.shop:before{left:2px;right:2px;top:7px;height:9px;border:2px solid currentColor;border-radius:2px}.small-ico.shop:after{left:4px;right:4px;top:3px;height:6px;border:2px solid currentColor;border-bottom:0;border-radius:2px}
.small-ico.bulb:before{left:6px;top:2px;width:8px;height:10px;border:2px solid currentColor;border-radius:50%}.small-ico.bulb:after{left:7px;top:14px;width:6px;height:2px;background:currentColor;box-shadow:0 3px 0 currentColor}
.profile{width:34px;height:34px;border-radius:50%;background:#eee;display:grid;place-items:center;font-weight:700;font-size:12px;color:#5b5f66}

.workspace{
  position:fixed;
  left:56px;right:0;top:56px;bottom:0;
  overflow:auto;
  padding:0;
  background:var(--bg);
}
.flash-stack{position:fixed;right:16px;top:68px;z-index:50;display:grid;gap:8px}
.flash{padding:10px 12px;border:1px solid #b2ddff;background:#eff8ff;color:#175cd3;border-radius:4px;box-shadow:0 8px 24px rgba(0,0,0,.08)}

.pd-pagebar{
  min-height:104px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:auto 1fr auto;
  grid-template-rows:48px 56px;
  align-items:center;
  padding:0 16px;
  gap:0 14px;
}
.pd-pagebar h1{margin:0;font-size:20px;font-weight:700;grid-column:1;grid-row:1}
.page-actions{display:flex;align-items:center;gap:0;grid-column:1/3;grid-row:2}
.page-actions button,.page-actions a,.page-tools button,.condition-row button,.product-tabs button{
  height:34px;
  border:1px solid #c8cdd3;
  background:#fff;
  color:#1f2937;
  padding:0 12px;
  border-radius:3px;
  font-weight:700;
  font-size:14px;
}
.page-actions button{border-radius:0}
.page-actions button:first-child{border-radius:4px 0 0 4px}
.page-actions button.active{border-color:#0b6bdb;color:#0b6bdb;background:#f4f9ff}
.green-btn{
  margin-left:8px;
  background:var(--green)!important;
  border-color:var(--green)!important;
  color:#fff!important;
  border-radius:4px 0 0 4px!important;
  display:inline-flex;align-items:center;
}
.green-split{background:var(--green)!important;border-color:var(--green)!important;color:#fff!important;border-radius:0 4px 4px 0!important;padding:0 10px!important}
.page-tools{grid-column:3;grid-row:2;display:flex;align-items:center;gap:8px}
.page-tools span{font-size:14px;color:#111827;margin-right:6px}
.condition-row,.product-tabs{
  height:48px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;align-items:center;gap:8px;
  padding:0 16px;
}
.condition-row span{font-size:13px;color:#4b5563;margin-right:8px}
.condition-row input,.condition-row select,.product-tabs input,.product-tabs select{
  height:32px;border:1px solid #c8cdd3;border-radius:3px;padding:0 10px;background:#fff;
}
.condition-row input{width:300px}.condition-row select{width:180px}
.product-tabs .active{background:#eaf2ff;color:#0b66d8;border-color:#eaf2ff}
.product-tabs input{margin-left:auto;width:240px}
.hidden-filter{display:none}
.pd-kpi-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(220px,1fr));
  gap:8px;
  padding:12px 16px;
  background:#f5f6f8;
  border-bottom:1px solid var(--line);
}
.pd-kpi-row div{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  min-height:78px;
  padding:14px 16px;
}
.pd-kpi-row span{display:block;color:#596070;font-size:13px;margin-bottom:7px}
.pd-kpi-row strong{font-size:28px;color:#111827}

.compact-pagebar{min-height:96px;grid-template-rows:44px 52px}
.search-title{
  gap:10px;
  color:#4b5563;
  font-size:14px;
}
.search-title span{font-weight:400}
.search-title strong{
  font-size:18px;
  color:#20242c;
}
.search-row input{width:420px}
.search-shell{
  padding:16px;
  display:grid;
  gap:14px;
}
.search-section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.search-section header{
  height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  border-bottom:1px solid var(--line);
}
.search-section h2{margin:0;font-size:18px}
.search-section header span{
  min-width:28px;
  height:24px;
  border-radius:12px;
  background:#eef4ff;
  color:#0b66d8;
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:12px;
}
.search-table th:first-child,.search-table td:first-child{width:36px}
.search-empty{
  min-height:340px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:8px;
  color:#596070;
}
.search-empty h2{margin:6px 0 0;font-size:22px;color:#20242c}
.search-empty p{margin:0}

.pd-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  table-layout:fixed;
}
.pd-table th,.pd-table td{
  border:1px solid var(--line);
  border-left:0;
  height:33px;
  padding:0 8px;
  text-align:left;
  vertical-align:middle;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pd-table th{background:#fff;font-weight:700;color:#2b313a}
.pd-table th:first-child,.pd-table td:first-child{width:34px;text-align:center}
.pd-table tr:hover td{background:#f3f8ff}
.pd-table a{color:#111827}
.pd-table input[type=checkbox]{width:16px;height:16px}
.warning{color:#a16207}
.empty{padding:28px!important;text-align:center;color:#6b7280!important}
.empty-state{
  width:min(430px,100%);
  margin:18px auto 12px;
  display:grid;
  justify-items:center;
  gap:8px;
  color:#4b5563;
}
.empty-state h2{
  margin:6px 0 0;
  font-size:20px;
  color:#20242c;
  font-weight:700;
}
.empty-state p{
  margin:0 0 8px;
  color:#6b7280;
  white-space:normal;
  line-height:1.45;
}
.empty-icon{
  width:56px;
  height:56px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#eef4ff;
  color:#0b66d8;
  font-size:34px;
  font-weight:300;
  border:1px solid #cfe0ff;
}
.empty-action{
  height:34px;
  padding:0 14px;
  border-radius:4px;
  background:var(--green);
  color:#fff!important;
  display:inline-flex;
  align-items:center;
  font-weight:700;
}
.empty-action:hover{background:var(--green-dark)}

.pipeline{
  height:calc(100vh - 190px);
  display:grid;
  grid-template-columns:repeat(7,minmax(250px,1fr));
  gap:8px;
  padding:0 14px;
  overflow:auto;
}
.repair-pipeline{
  grid-template-columns:repeat(4,minmax(250px,1fr)) minmax(280px,.85fr);
}
.lane{
  background:#f0f0f2;
  min-height:100%;
  padding:12px 8px;
}
.pipeline-side{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  min-height:100%;
  padding:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.pipeline-side h2{
  margin:0 0 4px;
  font-size:18px;
}
.pipeline-side p{
  margin:0 0 14px;
  color:#596070;
  font-size:13px;
}
.side-watch-card{
  display:block;
  border:1px solid var(--line);
  border-radius:4px;
  padding:10px 12px;
  margin-bottom:8px;
  color:#111827;
  background:#fff;
}
.side-watch-card strong{display:block}
.side-watch-card span{display:block;color:#596070;font-size:12px;margin-top:4px}
.lane h2{font-size:18px;margin:0;color:#111827}
.lane p{margin:4px 0 12px;color:#6b7280;font-size:13px}
.deal-card{
  display:block;
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  padding:10px 12px;
  margin-bottom:8px;
}
.deal-card strong{display:block;font-size:15px;color:#111827;margin-bottom:4px}
.deal-card span,.deal-card small,.deal-card b{display:block;color:#4b5563;font-size:12px;margin-top:3px}
.deal-card b{color:#111827;margin-top:8px;font-weight:600}
.lane-empty{
  border:1px dashed #c8cdd3;
  border-radius:4px;
  background:#fff;
  color:#6b7280;
  text-align:center;
  padding:18px 10px;
  font-size:13px;
}

.insights-shell{display:grid;grid-template-columns:256px 1fr;min-height:100%}
.insights-side{
  background:#f2f3f5;
  border-right:1px solid var(--line);
  padding:12px 8px;
}
.create-main{
  height:32px;
  background:var(--green);
  color:#fff;
  border-radius:4px;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;
  margin:0 8px 8px;
}
.side-search{
  height:36px;
  background:#fff;
  border:1px solid #c8cdd3;
  border-radius:4px;
  display:flex;align-items:center;
  padding:0 9px;
  margin:0 8px 22px;
}
.side-search input{border:0;outline:0;background:transparent;width:100%;font-size:14px}
.insights-side section{padding:0 8px 18px}
.insights-side h3{margin:0 0 10px;color:#3b414b;font-size:14px;display:flex;justify-content:space-between;align-items:center}
.insights-side h3 small{background:#e5e7eb;border-radius:99px;padding:2px 7px;color:#333}
.insights-side a{display:block;color:#596070;padding:7px 8px;border-radius:3px;font-size:14px}
.insights-side a.side-active{background:#e9f2ff;color:#0b66d8;font-weight:700}
.insights-side p{color:#8a8f98;margin:8px}
.insights-main{overflow:auto}
.accounting-insights .sample-banner,
.analytics-v2 .sample-banner{
  border-bottom-color:#d5dbe3;
}
.accounting-pagebar{
  border:0;
  border-bottom:1px solid var(--line);
  padding:20px 16px 12px;
  background:#f4f4f6;
}
.accounting-insights .accounting-shell{
  padding:12px 16px 24px;
}
.accounting-insights .accounting-filter{
  background:#fff;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.sample-banner{
  height:50px;
  background:#eaf4ff;
  border-bottom:1px solid #96c7ff;
  display:flex;align-items:center;
  padding:0 16px;
  gap:12px;
}
.sample-banner span{width:16px;height:16px;border-radius:50%;border:1px solid #0b66d8;color:#0b66d8;display:grid;place-items:center;font-size:12px}
.insights-toolbar{
  height:72px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 16px;
}
.insights-toolbar h1{font-size:18px;margin:0}
.insights-toolbar div{display:flex;gap:8px}
.insights-toolbar button,.ai-btn{
  height:34px;border:1px solid #c8cdd3;background:#fff;border-radius:4px;padding:0 12px;font-weight:700;display:inline-flex;align-items:center;
}
.ai-btn{color:#111827;box-shadow:0 0 8px rgba(107,87,255,.25)}
.insight-grid{display:grid;grid-template-columns:390px 1fr;gap:8px;padding:0 16px 16px}
.insight-card{
  min-height:332px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  padding:18px;
}
.chart-wide{grid-column:span 1}
.insight-card h2{margin:0;font-size:18px}
.insight-card small{display:block;margin-top:8px;color:#6b7280;font-size:11px;font-weight:700}
.value-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.value-card h2,.value-card small{align-self:flex-start;text-align:left}
.huge-money{font-size:42px;margin:70px 0 12px;color:#111827}
.bar-chart{height:210px;display:flex;align-items:flex-end;gap:36px;border-bottom:1px solid #e5e7eb;margin-top:22px;padding:0 32px}
.bar-chart div{display:grid;justify-items:center;gap:5px;min-width:80px}
.bar-chart span{display:block;width:78px;background:#ffd15c}
.bar-chart b{font-size:12px}.bar-chart em{font-style:normal;font-size:12px;color:#111827}
.legend{display:flex;align-items:center;gap:6px;color:#6b7280;font-size:12px;margin-top:14px}
.legend span{width:12px;height:12px;border-radius:50%;background:#ffd15c}.legend .green{background:#63bd7a}.legend .blue{background:#64b5e8}.legend .teal{background:#91d8d7}
.horizontal-chart{margin-top:90px;display:grid;grid-template-columns:100px 1fr 30px;align-items:center;gap:10px}
.horizontal-chart span{height:120px;background:#a8d8f0;display:block;max-width:100%}
.stacked-bar{height:120px;margin:70px 70px 20px;background:linear-gradient(180deg,#64b5e8 0 46%,#d9e86b 46% 66%,#91d8d7 66%);border-bottom:1px solid #ddd}
.compact-insight-card{
  min-height:220px;
}
.insight-money-list{
  margin:28px 0 0;
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px 18px;
  align-items:center;
}
.insight-money-list dt{
  color:#596070;
  font-weight:700;
}
.insight-money-list dd{
  margin:0;
  color:#111827;
  font-size:22px;
  font-weight:700;
}
.insight-card-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.insight-card-heading h2{margin:0}
.insight-card-heading a{
  color:#0b66d8;
  font-weight:700;
  text-decoration:none;
}
.dashboard-action-row{
  display:flex;
  gap:8px;
  margin-top:18px;
}
.dashboard-action-row .pd-btn{
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.legacy-import-form{
  display:flex;
  align-items:end;
  gap:12px;
  max-width:760px;
}
.legacy-import-form label{
  flex:1;
  display:grid;
  gap:8px;
  color:#4b5563;
  font-weight:600;
}
.legacy-import-form input{
  height:38px;
  border:1px solid #d6dbe3;
  background:#fff;
  padding:7px 10px;
}
.analytics-v2 .insights-main{
  background:#f4f4f6;
}
.analytics-period{
  display:flex;
  gap:8px;
  align-items:center;
}
.analytics-period input{
  height:32px;
  border:1px solid #d5dae0;
  border-radius:4px;
  padding:0 10px;
  background:#fff;
}
.analytics-grid{
  grid-template-columns:minmax(280px,.9fr) minmax(280px,.9fr) minmax(260px,.7fr) minmax(260px,.7fr);
}
.analytics-grid .chart-wide{
  grid-column:span 2;
}
.soft-card{
  background:#fbfcff;
}
.metric-stack{
  display:grid;
  gap:10px;
  margin-top:28px;
}
.metric-stack div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:44px;
  border:1px solid #edf0f3;
  border-radius:4px;
  padding:8px 10px;
  background:#fff;
}
.metric-stack strong{
  font-size:24px;
}
.metric-stack span{
  color:#596070;
  font-size:13px;
}
.analytics-bars{
  gap:22px;
  overflow:hidden;
}
.analytics-bars div{
  min-width:58px;
}
.analytics-bars span{
  width:48px;
  border-radius:3px 3px 0 0;
}
.status-list{
  display:grid;
  gap:8px;
  margin-top:18px;
}
.status-list div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #edf0f3;
  padding:8px 0;
}
.status-list span{
  color:#3d4654;
}
.status-list strong{
  font-size:18px;
}
.compact-status-list{
  margin-top:16px;
}
.compact-status-list strong{
  font-size:14px;
}
.activity-mini-list{
  display:grid;
  gap:10px;
  margin-top:18px;
}
.activity-mini-list div{
  border:1px solid #edf0f3;
  border-radius:4px;
  padding:10px;
  background:#fff;
}
.activity-mini-list strong,.activity-mini-list span{
  display:block;
}
.activity-mini-list span{
  margin-top:4px;
  color:#596070;
  font-size:13px;
}

.page-title,.kpis,.split,.panel,.toolbar{margin:16px}
.page-title{background:#fff;border:1px solid var(--line);border-radius:4px;padding:16px;display:flex;justify-content:space-between;align-items:center}
.page-title h1{margin:0;font-size:22px}.page-title p{margin:5px 0 0;color:#6b7280}
.btn,button{cursor:pointer}
.btn{
  min-height:34px;
  border:1px solid #c8cdd3;
  background:#fff;
  color:#111827;
  border-radius:4px;
  padding:7px 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.btn.primary{background:var(--green);border-color:var(--green);color:#fff}
.green-btn:hover,.create-main:hover{background:var(--green-dark)!important}
input,select,textarea{font:inherit}

.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.panel.pad,.pad{padding:16px}
.panel-head{
  height:44px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
}
.panel-head h2,.panel h2{margin:0;font-size:16px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.kpis div{background:#fff;border:1px solid var(--line);border-radius:4px;padding:14px}
.kpis span{display:block;color:#6b7280;font-size:12px}.kpis strong{display:block;margin-top:6px;font-size:25px}
.toolbar{background:#fff;border:1px solid var(--line);border-radius:4px;padding:10px;display:flex;gap:8px;align-items:center}
.toolbar input{flex:1}.toolbar select{width:220px}
.list{display:grid}.list-row{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:11px 14px;border-bottom:1px solid var(--line);align-items:center}.list-row:last-child{border-bottom:0}.list-row span{grid-column:1;color:#6b7280;font-size:12px}.list-row b{grid-row:1/3;grid-column:2}
.detail-hero{background:#fff;border:1px solid var(--line);border-radius:4px;padding:16px;margin:16px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.detail-hero h1{margin:0;font-size:26px;font-weight:400}.detail-hero p{margin:6px 0 0;color:#6b7280}
.avatar{width:58px;height:58px;border-radius:6px;background:#eaf2ff;color:#175cd3;display:grid;place-items:center;font-size:28px;font-weight:700}
.big-money{font-size:28px;font-weight:700}
.tag{display:inline-flex;border-radius:4px;background:#eef4ff;color:#175cd3;padding:4px 7px;font-size:11px;font-weight:700;text-transform:capitalize}
dl{display:grid;grid-template-columns:140px 1fr;gap:8px 12px}dt{color:#6b7280;font-weight:700}dd{margin:0}
input,select,textarea{min-height:34px;border:1px solid #c8cdd3;border-radius:4px;padding:7px 10px;background:#fff;color:#111827}
textarea{min-height:94px;resize:vertical}
.form-shell{display:grid;gap:12px;margin:16px}.form-grid{padding:16px;display:grid;gap:12px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid label{display:grid;gap:5px;color:#344054;font-size:12px;font-weight:700}.form-grid .wide{grid-column:1/-1}.form-actions{display:flex;gap:8px;justify-content:flex-end}
table:not(.pd-table){width:calc(100% - 32px);margin:16px;border-collapse:collapse;background:#fff}table:not(.pd-table) th,table:not(.pd-table) td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:middle}table:not(.pd-table) th{height:36px;background:#fbfcfd;color:#344054;font-size:12px}
.login-page{min-height:100vh;background:#f2f4f7;color:#172033;display:grid;place-items:center;padding:28px}
.login-shell{width:min(1120px,100%);min-height:640px;display:grid;grid-template-columns:minmax(0,1.05fr) 430px;background:#fff;border:1px solid #d9dde3;border-radius:8px;overflow:hidden;box-shadow:0 22px 70px rgba(19,31,53,.16)}
.login-brand-panel{position:relative;background:#f7f9fb;padding:44px;display:flex;flex-direction:column;justify-content:space-between;border-right:1px solid #d9dde3;overflow:hidden}
.login-brand-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(11,102,216,.08),rgba(47,143,78,.1) 58%,rgba(255,255,255,0));pointer-events:none}
.login-brand-top,.login-brand-copy,.login-status-grid{position:relative;z-index:1}
.login-brand-top{display:flex;align-items:center;justify-content:space-between;gap:18px}
.login-brand-top img{width:230px;max-width:58%;height:auto;object-fit:contain}
.login-brand-top span{border:1px solid #c8cdd3;background:#fff;border-radius:999px;padding:7px 12px;color:#344054;font-size:12px;font-weight:700}
.login-kicker{margin:0 0 12px;color:#0b66d8;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.login-brand-copy{max-width:620px}
.login-brand-copy h1{margin:0;font-size:44px;line-height:1.08;font-weight:800;letter-spacing:0;color:#101828}
.login-brand-copy p:not(.login-kicker){margin:18px 0 0;color:#475467;font-size:16px;line-height:1.55;max-width:560px}
.login-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.login-status-grid div{background:rgba(255,255,255,.86);border:1px solid #d9dde3;border-radius:6px;padding:14px}
.login-status-grid span{display:block;color:#667085;font-size:12px;font-weight:700}
.login-status-grid strong{display:block;margin-top:5px;font-size:18px;color:#101828}
.login-card-panel{background:#fff;display:grid;place-items:center;padding:42px}
.login-box{width:100%;display:grid;gap:18px}
.login-card-head{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.login-mark{width:48px;height:48px;border-radius:7px;background:#21194f;color:#fff;display:grid;place-items:center;font-size:26px;font-weight:900;font-family:Georgia,serif}
.login-box h2{margin:0;font-size:26px;line-height:1.15;color:#101828}
.login-box p{margin:0;color:#667085}
.login-box label{display:grid;gap:7px;font-size:13px;font-weight:800;color:#344054}
.login-box label span{display:block}
.login-box input{height:44px;border:1px solid #c8cdd3;border-radius:5px;background:#fff;padding:0 12px;font-size:14px;color:#101828;box-shadow:inset 0 1px 1px rgba(16,24,40,.03)}
.login-box input:focus{outline:2px solid rgba(11,102,216,.18);border-color:#0b66d8}
.login-box button{width:100%;background:#2f8f4e;border:1px solid #23723d;color:#fff;border-radius:5px;height:44px;font-weight:800;font-size:15px;cursor:pointer}
.login-box button:hover{background:#23723d}
.login-footnote{font-size:12px;text-align:center;color:#667085}
.login-box .flash{border-radius:5px;padding:10px 12px;font-weight:700}
@media (max-width:900px){
  .login-page{padding:16px;place-items:start center}
  .login-shell{grid-template-columns:1fr;min-height:auto}
  .login-brand-panel{padding:28px;border-right:0;border-bottom:1px solid #d9dde3;gap:36px}
  .login-brand-top img{width:190px}
  .login-brand-copy h1{font-size:32px}
  .login-card-panel{padding:28px}
}
@media (max-width:560px){
  .login-brand-top{align-items:flex-start;flex-direction:column}
  .login-brand-top img{max-width:100%}
  .login-status-grid{grid-template-columns:1fr}
}

.settings-shell{display:grid;grid-template-columns:256px 1fr;min-height:100%}
.settings-nav{
  background:#f2f3f5;
  border-right:1px solid var(--line);
  padding:18px 8px;
}
.settings-nav h2{font-size:18px;margin:0 14px 18px}
.settings-nav a{
  display:block;
  padding:10px 14px;
  color:#4b5563;
  border-radius:4px;
  font-weight:600;
}
.settings-nav a.side-active{background:#e9f2ff;color:#0b66d8}
.settings-main{padding:16px;overflow:auto}
.settings-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}
.settings-head h1{margin:0;font-size:22px}
.settings-head p{margin:5px 0 0;color:#6b7280}
.settings-head button,.settings-grid button,.record-actions button{
  height:34px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  background:#fff;
  padding:0 12px;
  font-weight:700;
}
.settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.settings-grid article{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.settings-grid h3{margin:0 0 8px;font-size:16px}
.settings-grid p{min-height:42px;margin:0 0 14px;color:#596070}
.settings-v2 .settings-main{
  background:#f4f4f6;
}
.pipedrive-settings-head{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding:16px;
}
.settings-head-actions{
  display:flex;
  gap:8px;
}
.settings-overview{
  display:grid;
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:12px;
  margin-bottom:16px;
}
.settings-overview article{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding:14px 16px;
}
.settings-overview span{
  display:block;
  color:#596070;
  font-size:13px;
  margin-bottom:8px;
}
.settings-overview strong{
  font-size:28px;
}
.settings-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  margin-top:16px;
  overflow:hidden;
}
.settings-panel header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px;
  border-bottom:1px solid var(--line);
}
.settings-panel h2,.settings-panel p{
  margin:0;
}
.settings-panel p{
  margin-top:4px;
  color:#596070;
}
.settings-panel button{
  height:34px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  background:#fff;
  padding:0 12px;
  font-weight:700;
}
.settings-panel code{
  color:#344054;
  font-size:12px;
}
.settings-action-grid article{
  min-height:180px;
}
.template-list{
  display:grid;
  gap:8px;
  margin-top:10px;
}
.template-list div{
  border:1px solid #edf0f3;
  border-radius:4px;
  padding:9px 10px;
  background:#fbfcfd;
}
.template-list strong,.template-list span{
  display:block;
}
.whatsapp-grid{
  display:grid;
  grid-template-columns:minmax(360px,520px) 1fr;
  gap:16px;
  align-items:start;
}
.whatsapp-send-card .pd-filter-row{
  margin:16px;
  padding:0;
  border:0;
  background:transparent;
}
.compact-whatsapp-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  padding:0 16px 16px;
}
.compact-whatsapp-form label{
  display:grid;
  gap:6px;
  font-size:13px;
  color:#3b414b;
  font-weight:700;
}
.compact-whatsapp-form .wide,
.single-column-editor .pd-flat-wide{
  grid-column:1/-1;
}
.compact-whatsapp-form button{
  justify-self:start;
}
.embedded-editor{
  min-height:auto;
  background:transparent;
}
.single-column-editor{
  grid-template-columns:minmax(0,1fr) 360px;
  margin-top:0;
}
.checkbox-label{
  display:flex !important;
  align-items:center;
  gap:8px;
  min-height:34px;
}
.checkbox-label input{
  min-height:auto;
}
.template-list span{
  margin-top:4px;
  color:#596070;
  font-size:13px;
}
.settings-env{
  display:grid;
  grid-template-columns:92px 1fr;
  gap:8px 12px;
  margin:10px 0 0;
}
.settings-env dt{
  color:#596070;
  font-size:12px;
  font-weight:700;
}
.settings-env dd{
  margin:0;
  word-break:break-word;
}
.catalog-editor-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(180px,1fr));
  gap:12px;
}
.catalog-editor-grid article{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding:14px;
}
.catalog-editor-grid h3{
  margin:0;
  font-size:15px;
}
.tag-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.record-title{
  height:128px;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:20px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
}
.record-title h1{font-size:28px;font-weight:400;margin:0;color:#111827}
.record-title p{margin:8px 0 0;color:#4b5563}
.record-heading{display:flex;align-items:center;gap:14px}
.record-actions{display:flex;gap:8px}
.inventory-detail-title{
  min-height:130px!important;
  height:auto!important;
  align-items:flex-start!important;
  gap:16px!important;
}
.inventory-detail-title>div:first-child{
  min-width:0!important;
}
.inventory-detail-title h1{
  max-width:860px!important;
  font-size:25px!important;
  line-height:1.2!important;
}
.inventory-detail-title .owner-actions{
  flex:0 0 auto!important;
  justify-content:flex-end!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  max-width:780px!important;
  row-gap:8px!important;
}
.inventory-detail-title .owner-actions button,
.inventory-detail-title .owner-actions .pd-btn,
.inventory-detail-title .owner-actions .danger-btn{
  height:34px!important;
  min-width:auto!important;
  max-width:130px!important;
  padding:0 12px!important;
  border-radius:4px!important;
  white-space:normal!important;
  line-height:1.05!important;
  text-align:center!important;
}
.inventory-detail-title .owner-actions form{
  margin:0!important;
}
.inventory-detail-title .owner-pill{
  flex:0 0 auto!important;
  max-width:170px!important;
  white-space:nowrap!important;
}
.record-actions .green-btn{
  margin-left:0;
  border-radius:4px!important;
  height:34px;
  padding:0 14px;
}
.record-actions .danger{background:#df3b3b;color:#fff;border-color:#df3b3b}
.record-actions .big-money{padding:6px 10px;background:#f5f6f8;border-radius:4px}
.stage-bar{
  height:48px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(8,1fr);
  overflow:hidden;
}
.stage-bar span{
  position:relative;
  display:grid;
  place-items:center;
  background:#ddd;
  color:#4b5563;
  font-size:13px;
  font-weight:700;
}
.stage-bar span.active{background:var(--green);color:#fff}
.stage-bar span:not(:last-child):after{
  content:"";
  position:absolute;
  right:-12px;
  z-index:2;
  width:24px;
  height:24px;
  background:inherit;
  transform:rotate(45deg);
  border-top:2px solid #fff;
  border-right:2px solid #fff;
}
.record-layout{
  display:grid;
  grid-template-columns:330px 1fr;
  min-height:calc(100vh - 184px);
}
.record-side{
  background:#fff;
  border-right:1px solid var(--line);
  padding:18px 16px;
  overflow:auto;
}
.record-side h2{font-size:18px;margin:0 0 18px}
.record-side .side-section{margin-top:28px}
.side-note{color:#596070;line-height:1.5}
.record-side dl{grid-template-columns:110px 1fr}
.record-main{
  background:#f4f4f6;
  overflow:auto;
  padding:0 16px 16px;
}
.record-tabs{
  height:50px;
  display:flex;
  align-items:flex-end;
  gap:0;
}
.record-tabs a{
  height:44px;
  padding:0 16px;
  display:flex;
  align-items:center;
  color:#4b5563;
  border-bottom:2px solid transparent;
}
.record-tabs a.active{color:#0b66d8;border-bottom-color:#0b66d8;background:#fff}
.activity-box{
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
  margin-bottom:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.activity-box nav{
  height:40px;
  border-bottom:1px solid var(--line);
  display:flex;
}
.activity-box nav a{
  min-width:92px;
  padding:0 14px;
  display:flex;
  align-items:center;
  color:#596070;
  border-bottom:2px solid transparent;
}
.activity-box nav a.active{color:#0b66d8;border-bottom-color:#0b66d8}
.activity-box div{height:58px;display:flex;align-items:center;padding:0 16px;color:#8a8f98}
.activity-box .crm-tab-panel{
  height:auto;
  min-height:0;
  display:block;
  padding:16px;
  color:#111827;
}
.activity-box .crm-tab-panel[hidden]{display:none!important}
.activity-box .crm-tab-panel.active{display:block}
.crm-tabs-card,.repair-workspace-card{
  overflow:visible;
}
.quick-note-line{
  min-height:58px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  color:#8a8f98;
  display:flex;
  align-items:center;
  padding:0 16px;
  margin-bottom:20px;
}
.note-panel{
  padding:18px;
  min-height:120px;
  color:#4b5563;
  white-space:pre-wrap;
}
.note-compose{
  display:grid;
  grid-template-columns:1fr auto;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fff;
  margin-bottom:20px;
  overflow:hidden;
}
.note-compose textarea{
  min-height:70px;
  border:0;
  resize:vertical;
  padding:14px 16px;
  font:inherit;
  color:#111827;
}
.note-compose button{
  align-self:center;
  margin:0 12px;
}
.pd-section-heading{
  margin:6px 0 12px;
  font-size:18px;
  font-weight:700;
  color:#111827;
}
.focus-feed{margin-bottom:16px}
.focus-feed h2{font-size:18px;margin:0 0 10px}
.feed-card{
  display:block;
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
  padding:12px 14px;
  margin-bottom:8px;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.feed-card strong{display:block;color:#111827}
.feed-card span{display:block;color:#596070;margin-top:5px;font-size:13px}
.record-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.record-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
  overflow:hidden;
}
.record-card header{
  min-height:46px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
}
.record-card h2{margin:0;font-size:17px}
.record-card header span{
  min-width:24px;
  height:22px;
  border-radius:11px;
  background:#eef4ff;
  color:#0b66d8;
  display:grid;
  place-items:center;
  padding:0 7px;
  font-size:12px;
  font-weight:700;
}
.detail-list{display:grid}
.detail-row{
  min-height:45px;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr auto;
  gap:3px 14px;
  align-items:center;
  padding:8px 14px;
}
.detail-row:last-child{border-bottom:0}
.detail-row strong{color:#111827}
.detail-row span{
  grid-column:1;
  color:#596070;
  font-size:13px;
}
.detail-row b{
  grid-column:2;
  grid-row:1/3;
  color:#111827;
}
.detail-row:hover{background:#f3f8ff}
.detail-empty{
  min-height:74px;
  display:grid;
  place-items:center;
  color:#6b7280;
  padding:18px;
}
.detail-dl{
  margin:0;
  padding:14px;
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px 14px;
}
.detail-dl dt{color:#596070;font-size:12px;font-weight:700;text-transform:uppercase}
.detail-dl dd{margin:0;color:#111827;white-space:pre-wrap}
.device-secret{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  align-items:center;
  padding:3px 8px;
  border-radius:4px;
  background:#fff7d6;
  color:#6f4d00;
  font-weight:700;
  letter-spacing:.02em;
}
.money-summary{
  padding:18px;
  display:grid;
  gap:8px;
}
.money-summary strong{font-size:34px;color:#111827}
.money-summary span{color:#596070}
.timeline-list{padding:12px 14px;display:grid;gap:12px}
.timeline-item{
  position:relative;
  padding-left:22px;
  color:#111827;
}
.timeline-item:before{
  content:"";
  position:absolute;
  left:0;
  top:5px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#0b66d8;
}
.timeline-item:after{
  content:"";
  position:absolute;
  left:4px;
  top:18px;
  bottom:-14px;
  width:1px;
  background:#d7dce1;
}
.timeline-item:last-child:after{display:none}
.timeline-item strong{display:block}
.timeline-item span{display:block;color:#596070;font-size:12px;margin-top:3px}
.timeline-item p{margin:5px 0 0;color:#4b5563}
.text-block{
  padding:16px;
  color:#4b5563;
  white-space:pre-wrap;
  line-height:1.5;
}
.table-card{margin-bottom:14px}
.table-card .pd-table th:first-child,.table-card .pd-table td:first-child{width:auto;text-align:left}
.product-photo{
  width:240px;
  height:240px;
  border:1px solid #d7dce1;
  border-radius:4px;
  margin:0 auto 24px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#eef4ff,#fff);
}
.product-photo span{
  width:84px;
  height:84px;
  border-radius:50%;
  background:#21194f;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:40px;
  font-weight:800;
}

.slim-record-title{height:108px}
.customer-editor{
  display:grid;
  grid-template-columns:320px 1fr;
  min-height:calc(100vh - 164px);
}
.customer-editor-side{
  background:#fff;
  border-right:1px solid var(--line);
  padding:16px;
  overflow:auto;
}
.customer-editor-side h2{font-size:18px;margin:0 0 18px}
.customer-editor-side h3{
  margin:0 0 12px;
  font-size:18px;
}
.customer-editor-side label{
  display:grid;
  gap:6px;
  color:#4b5563;
  margin-top:14px;
}
.customer-editor-side select{
  height:34px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  padding:0 9px;
  background:#fff;
}
.customer-avatar{
  width:92px;
  height:92px;
  border-radius:6px;
  border:1px solid #d7dce1;
  background:#eef4ff;
  color:#0b66d8;
  display:grid;
  place-items:center;
  font-size:36px;
  font-weight:700;
  margin-bottom:12px;
}
.customer-editor-main{
  padding:16px;
  overflow:auto;
  display:grid;
  gap:12px;
  align-content:start;
}
.pd-form-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
  overflow:hidden;
}
.pd-form-card header{
  min-height:52px;
  border-bottom:1px solid var(--line);
  padding:10px 16px;
}
.pd-form-card h2{margin:0;font-size:18px}
.pd-form-card header span{display:block;margin-top:3px;color:#6b7280;font-size:13px}
.pd-form-grid{
  display:grid;
  gap:12px;
  padding:16px;
}
.pd-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.pd-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.pd-form-grid label{
  display:grid;
  gap:6px;
  color:#4b5563;
  font-size:13px;
  font-weight:700;
}
.pd-form-grid .wide{grid-column:1/-1}
.pd-form-grid input,.pd-form-grid select,.pd-form-grid textarea{
  width:100%;
  min-height:34px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  padding:7px 9px;
  background:#fff;
}
.pd-form-grid textarea{min-height:110px;resize:vertical}
.pd-form-grid input:focus,.pd-form-grid select:focus,.pd-form-grid textarea:focus{
  outline:0;
  border-color:#0b6bdb;
  box-shadow:0 0 0 1px #0b6bdb;
}
.pd-form-grid .check-row{
  min-height:34px;
  display:flex;
  align-items:center;
  gap:8px;
  padding-top:20px;
}
.pd-form-grid .check-row input{
  width:16px;
  min-height:16px;
  height:16px;
}

.modal-open{overflow:hidden}
.modal-backdrop[hidden]{display:none!important}
.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(33,37,43,.54);
  display:grid;
  place-items:center;
  padding:24px;
}
.pd-modal{
  width:664px;
  max-width:calc(100vw - 48px);
  height:min(768px, calc(100vh - 48px));
  max-height:calc(100vh - 48px);
  background:#fff;
  border-radius:4px;
  box-shadow:0 20px 70px rgba(0,0,0,.28);
  display:grid;
  grid-template-rows:46px 1fr 48px;
  overflow:hidden;
}
.pd-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 15px;
  border-bottom:1px solid #d7dce1;
  background:#fff;
}
.pd-modal-head h2{margin:0;font-size:18px;font-weight:700;color:#20242a}
.modal-close{
  width:28px;
  height:28px;
  border:0;
  background:transparent;
  color:#5d6570;
  font-size:20px;
  line-height:1;
  border-radius:3px;
}
.modal-close:hover{background:#f0f1f3}
.pd-modal-body{
  display:grid;
  grid-template-columns:320px 1fr;
  min-height:0;
  overflow:auto;
}
.pd-modal-left,.pd-modal-right{
  padding:14px 16px 18px;
  display:grid;
  align-content:start;
  gap:9px;
}
.pd-modal-right{border-left:1px solid #d7dce1}
.pd-modal label{
  display:grid;
  gap:5px;
  color:#4b5563;
  font-size:14px;
  font-weight:400;
}
.pd-modal label span{color:#6b7280}
.pd-modal input,.pd-modal select{
  width:100%;
  height:32px;
  min-height:32px;
  border:1px solid #c7ccd1;
  border-radius:4px;
  padding:4px 9px;
  background:#fff;
  color:#111827;
  box-shadow:inset 0 1px 1px rgba(0,0,0,.03);
}
.pd-modal input:focus,.pd-modal select:focus{
  outline:0;
  border-color:#0b6bdb;
  box-shadow:0 0 0 1px #0b6bdb;
}
.pd-modal textarea{
  width:100%;
  min-height:72px;
  border:1px solid #c7ccd1;
  border-radius:4px;
  padding:8px 9px;
  resize:vertical;
  font:inherit;
}
.modal-pair{
  display:grid;
  grid-template-columns:1fr 140px;
  gap:8px;
}
.pd-modal-right h3{
  display:flex;
  align-items:center;
  gap:10px;
  margin:12px 0 8px;
  color:#111827;
  font-size:12px;
  letter-spacing:.02em;
}
.pd-modal-right h3:after{
  content:"";
  height:1px;
  background:#d7dce1;
  flex:1;
}
.modal-inline{
  display:grid;
  grid-template-columns:1fr 143px;
  gap:8px;
}
.link-add{
  justify-self:start;
  height:24px;
  border:0;
  background:transparent;
  color:#4b5563;
  font-weight:700;
  padding:0;
}
.link-add:hover{color:#0b6bdb}
.pd-modal-foot{
  border-top:1px solid #d7dce1;
  background:#f7f7f8;
  display:flex;
  align-items:center;
  padding:0 15px;
  gap:8px;
}
.pd-modal-foot button{
  height:32px;
  border-radius:4px;
  border:1px solid #c8cdd3;
  background:#fff;
  padding:0 14px;
  font-weight:700;
  color:#111827;
}
.pd-modal-foot .import-btn{
  border:0;
  background:transparent;
  color:#4b5563;
  margin-right:auto;
  padding-left:0;
}
.modal-count{color:#111827;font-size:14px}
.pd-modal-foot .btn-save{
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}
.pd-modal-foot .btn-save:hover{background:var(--green-dark)}
.pcplus-customer-modal .pd-modal-body{grid-template-columns:320px 1fr}
.modal-segmented{
  display:flex;
  border:1px solid #c7ccd1;
  border-radius:4px;
  overflow:hidden;
}
.modal-segmented label{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  height:34px;
  gap:6px;
  font-weight:700;
  color:#2f3742;
}
.modal-segmented label + label{border-left:1px solid #c7ccd1}
.modal-segmented input{width:auto;height:auto;min-height:0}
.segmented-control{display:inline-flex;border:1px solid #c7ccd1;border-radius:4px;overflow:hidden}
.segmented-control label{height:34px;padding:0 14px;display:flex;align-items:center;gap:6px;font-weight:700}
.segmented-control label + label{border-left:1px solid #c7ccd1}
.segmented-control input{width:auto;min-height:0}

.contact-detail-shell{
  display:grid;
  grid-template-columns:184px 1fr;
  min-height:calc(100vh - var(--topbar-h));
  background:#f4f4f6;
}
.contact-module-nav{
  background:#f5f6f8;
  border-right:1px solid var(--line);
  padding:10px 8px;
}
.contact-module-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  height:40px;
  border-radius:4px;
  padding:0 12px;
  color:#3f4752;
  font-weight:600;
}
.contact-module-nav a.active{background:#e8f2ff;color:#0b66d8}
.contact-module-nav span{width:18px;text-align:center;color:#596070}
.contact-record{
  min-width:0;
  display:grid;
  grid-template-rows:auto 1fr;
}
.compact-record-title{
  min-height:74px;
  padding:12px 16px;
  align-items:center;
}
.compact-record-title h1{font-size:24px;font-weight:600}
.compact-record-title p{margin-top:4px}
.round-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  font-size:20px;
}
.owner-actions{align-items:center}
.owner-pill{
  display:flex;
  align-items:center;
  gap:8px;
  color:#20242c;
  font-size:12px;
  line-height:1.15;
  padding-right:8px;
  white-space:nowrap;
}
.owner-pill:before{
  content:"";
  display:inline-block;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#d9dce1;
}
.owner-pill small{color:#6b7280}
.contact-layout,.deal-layout{
  grid-template-columns:360px 1fr;
  min-height:calc(100vh - 130px);
}
.deal-layout{
  grid-template-columns:320px minmax(0,1fr);
  min-height:calc(100vh - 162px);
}
.pipedrive-side{padding:0;background:#fff}
.side-block{
  border-bottom:1px solid var(--line);
  padding:16px;
}
.side-block h2{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:16px;
  margin:0 0 14px;
}
.side-block h2 button{
  border:0;
  background:transparent;
  color:#596070;
  font-weight:700;
}
.side-block dl{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:9px 12px;
  margin:0;
}
.side-block dt{color:#596070;font-size:12px;font-weight:700}
.side-block dd{margin:0;color:#111827}
.side-line{margin:9px 0;color:#0b66d8;font-weight:600}
.side-line small{color:#596070;font-weight:400}
.field-btn{
  height:32px;
  border:1px solid #c8cdd3;
  background:#fff;
  border-radius:4px;
  padding:0 10px;
  font-weight:700;
  color:#20242c;
}
.pipedrive-main{padding:0;background:#f4f4f6}
.detail-column{
  max-width:1280px;
  margin:22px 24px 28px 24px;
}
.detail-column .activity-box{margin-bottom:24px}
.detail-column .activity-box nav a{min-width:auto}
.activity-compose{
  min-height:58px;
  color:#6b7280;
  display:flex;
  align-items:center;
}
.focus-feed{
  position:relative;
  display:grid;
  grid-template-columns:32px 1fr;
  gap:10px;
  align-items:center;
  margin:0 0 18px;
}
.focus-feed .feed-dot{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#fff;
  border:1px solid #d7dce1;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.focus-feed article{
  background:#fff;
  border:1px solid #d7dce1;
  border-radius:4px;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
  min-height:48px;
  padding:10px 14px;
  display:grid;
  gap:3px;
}
.focus-feed span{color:#596070;font-size:13px}
.wide-record-card{max-width:none}
.focus-feed .focus-card{
  grid-column:2;
  margin-left:0;
}
.focus-feed .focus-card:before{display:none}
.focus-feed .slim-empty{grid-column:1 / -1}
.tab-panel[hidden]{display:none!important}

.customer-picker{display:block}
.customer-picker-button{
  width:100%;
  min-height:42px;
  border:1px solid #cbd2d9;
  background:#fff;
  border-radius:4px;
  padding:7px 10px;
  text-align:left;
  display:grid;
  gap:2px;
  cursor:pointer;
}
.customer-picker-button:focus{
  outline:0;
  border-color:#6b4df6;
  box-shadow:0 0 0 1px #6b4df6;
}
.customer-picker-button span{font-weight:700;color:#172033}
.customer-picker-button small{color:#69717d;font-size:12px}
.customer-picker-backdrop[hidden]{display:none!important}
.customer-picker-backdrop{
  position:fixed;
  inset:0;
  z-index:90;
  background:rgba(33,37,43,.54);
  display:grid;
  align-items:start;
  justify-items:center;
  padding:76px 24px 24px;
  overflow:auto;
}
.customer-picker-modal{
  width:680px;
  max-width:calc(100vw - 48px);
  max-height:calc(100vh - 104px);
  background:#fff;
  border-radius:4px;
  box-shadow:0 20px 70px rgba(0,0,0,.28);
  display:grid;
  grid-template-rows:auto auto minmax(220px,1fr) 48px;
  overflow:hidden;
  margin:0 auto;
}
.customer-picker-modal header{
  min-height:56px;
  border-bottom:1px solid #d7dce1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
}
.customer-picker-modal h2{margin:0;font-size:18px}
.customer-picker-modal p{margin:2px 0 0;color:#6b7280}
.customer-picker-modal header button{
  border:0;
  background:transparent;
  font-size:22px;
  color:#5b6470;
}
.customer-picker-search{
  height:54px;
  border-bottom:1px solid #d7dce1;
  display:flex;
  align-items:center;
  padding:9px 14px;
  gap:8px;
}
.customer-picker-search input{
  width:100%;
  height:34px;
  border:1px solid #c7ccd1;
  border-radius:4px;
  padding:0 10px;
}
.customer-picker-list{overflow:auto;padding:8px}
.customer-picker-option{
  width:100%;
  border:0;
  background:#fff;
  border-radius:4px;
  min-height:56px;
  display:grid;
  grid-template-columns:40px 1fr;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  text-align:left;
}
.customer-picker-option:hover,.customer-picker-option:focus{background:#eef6ff;outline:0}
.customer-picker-option span:last-child{display:grid;gap:2px}
.customer-picker-option small{color:#6b7280}
.avatar-mini{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#e8f2ff;
  color:#0b66d8;
  display:grid;
  place-items:center;
  font-weight:800;
}
.customer-picker-modal footer{
  border-top:1px solid #d7dce1;
  background:#f7f7f8;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:0 14px;
}
.section-line-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.section-line-title h2{margin:0;font-size:18px}
.section-line-title label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#4b5563;
  font-size:13px;
}
.section-line-title label span{
  width:28px;
  height:16px;
  border-radius:10px;
  background:#c4c8ce;
  display:inline-block;
}
.focus-card{
  margin-left:48px;
  position:relative;
}
.focus-card:before{
  content:"";
  position:absolute;
  left:-48px;
  top:12px;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#fff;
  border:1px solid #e0e3e7;
}
.timeline-panel{margin-top:28px}
.timeline-panel h2{margin:0 0 12px;font-size:18px}
.timeline-panel nav{
  display:flex;
  gap:2px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.timeline-panel nav a{
  padding:6px 8px;
  border-radius:3px;
  color:#111827;
  font-weight:700;
  font-size:12px;
}
.timeline-panel nav a.active{background:#eaf2ff;color:#0b66d8}
.timeline-panel .timeline-list{padding-left:44px}
.timeline-panel .timeline-item{
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
  padding:12px 14px 12px 16px;
  margin-bottom:10px;
}
.timeline-panel .timeline-item:before{left:-32px;top:16px;background:#fff;border:1px solid #d7dce1}
.timeline-panel .timeline-item:after{left:-27px;top:29px;bottom:-16px}
.timeline-panel .timeline-list[hidden]{display:none!important}
.embedded-timeline{
  margin-top:0;
}
.yellow-note{background:#fff4cb!important;border-color:#ead991!important}
.slim-empty{
  min-height:54px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
}
.focus-feed .focus-card{
  background:#fff;
  grid-column:2;
  margin-left:0;
}
.focus-feed .focus-card:before{display:none}
.compact-detail-grid{margin-top:18px}
.compact-detail-grid.no-top{margin-top:0}
.repair-detail-column{
  max-width:1220px;
}
.repair-workspace-card{
  margin-bottom:0;
}
.checkout-panel-form{
  display:grid;
  gap:12px;
  padding:18px;
}
.checkout-panel-form select{
  height:36px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  background:#fff;
  padding:0 10px;
}
.repair-title + .stage-bar{height:30px}
.stage-bar{height:32px}
.stage-bar span{font-size:12px}
.stage-bar span:not(:last-child):after{
  right:-9px;
  width:18px;
  height:18px;
}
.product-detail-layout,.supplier-detail-layout{
  grid-template-columns:360px 1fr;
  min-height:calc(100vh - 130px);
}
.product-title,.order-title{min-height:76px}
.product-title h1,.order-title h1{max-width:920px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wide-detail-column{
  max-width:1120px;
}
.flush-tabs{
  height:48px;
  align-items:flex-end;
  margin-bottom:10px;
}
.flush-tabs a{
  height:42px;
  background:transparent!important;
}
.pd-content-card{
  border-color:#d9dde3;
}
.pd-content-card header{
  min-height:52px;
  background:#fff;
}
.pd-content-card .pd-table td small{
  display:block;
  color:#596070;
  margin-top:4px;
}
.product-image-block{
  display:grid;
  gap:12px;
}
.pipedrive-product-photo{
  width:238px;
  height:238px;
  margin:0 auto 8px;
  background:#fff;
}
.pipedrive-product-photo span{
  width:72px;
  height:72px;
  font-size:34px;
}
.order-flow{
  height:32px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  background:#fff;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.order-flow span{
  position:relative;
  display:grid;
  place-items:center;
  background:#ddd;
  color:#4b5563;
  font-size:12px;
  font-weight:700;
}
.order-flow span.active{
  background:var(--green);
  color:#fff;
}
.order-flow span:not(:last-child):after{
  content:"";
  position:absolute;
  right:-9px;
  z-index:2;
  width:18px;
  height:18px;
  background:inherit;
  transform:rotate(45deg);
  border-top:2px solid #fff;
  border-right:2px solid #fff;
}
.pd-editor-page{
  min-height:calc(100vh - var(--topbar-h));
  background:#f4f4f6;
}
.pd-editor-head{
  min-height:94px;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:18px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.pd-editor-head h1{
  margin:0;
  font-size:26px;
  font-weight:500;
  color:#111827;
}
.pd-editor-head p{margin:8px 0 0;color:#596070}
.pd-editor-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.pd-btn{
  height:32px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  background:#fff;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  color:#111827;
  font-weight:700;
}

.danger-btn{
  border:1px solid #d92d20;
  background:#d92d20;
  color:#fff;
  border-radius:4px;
  padding:8px 12px;
  font-weight:700;
  cursor:pointer;
}
.row-actions{
  display:flex;
  align-items:center;
  gap:6px;
}
.record-actions form,
.row-actions form{
  margin:0;
}
.split-save{background:#5f55b8;border-color:#5f55b8}
.pd-editor-tabs{
  height:52px;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:0 16px;
  display:flex;
  align-items:flex-end;
  gap:24px;
}
.pd-editor-tabs a{
  height:44px;
  display:flex;
  align-items:center;
  border-bottom:2px solid transparent;
  color:#4b5563;
  font-weight:700;
}
.pd-editor-tabs a.active{color:#5f55b8;border-bottom-color:#5f55b8}
.pd-product-editor,.pd-document-editor{
  display:grid;
  grid-template-columns:minmax(640px,960px) minmax(280px,1fr);
  min-height:calc(100vh - 198px);
}
.pd-product-main{
  background:#fff;
  border-right:1px solid var(--line);
  padding:26px 32px 44px;
}
.pd-flat-section{
  border-bottom:1px solid var(--line);
  padding:0 0 28px;
  margin-bottom:28px;
}
.pd-flat-section h2{
  margin:0 0 18px;
  font-size:20px;
  font-weight:500;
}
.pd-flat-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 32px;
}
.pd-flat-grid label,.pd-flat-wide{
  display:grid;
  gap:7px;
  color:#111827;
  font-size:13px;
}
.pd-flat-grid input,.pd-flat-grid select,.pd-flat-wide textarea{
  width:100%;
  min-height:40px;
  border:1px solid #d5dae0;
  border-radius:3px;
  background:#fff;
  padding:8px 12px;
  color:#111827;
}
.pd-flat-wide{margin-top:18px}
.pd-flat-grid input:focus,.pd-flat-grid select:focus,.pd-flat-wide textarea:focus{
  outline:0;
  border-color:#5f55b8;
  box-shadow:0 0 0 1px #5f55b8;
}
.pd-section-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}
.pd-section-title-row h2{margin:0}
.teal-btn{
  height:34px;
  border:0;
  border-radius:17px;
  background:#22b8ae;
  color:#fff;
  padding:0 16px;
  font-weight:700;
}
.pd-product-aside{
  background:#f4f4f6;
  padding:24px;
}
.pd-product-aside section{
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:4px;
  padding:16px;
  margin-bottom:14px;
}
.pd-product-aside h3{margin:0 0 14px;font-size:16px}
.pd-product-aside dl{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:10px 12px;
  margin:0;
}
.pd-product-aside dt{font-size:12px;color:#596070;font-weight:700}
.pd-product-aside dd{margin:0}
.pd-product-aside p{margin:0;color:#596070;line-height:1.45}
.pd-inline-placeholder{
  min-height:92px;
  border:1px dashed #c8cdd3;
  border-radius:4px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:7px;
  color:#596070;
  background:#fbfcfd;
}
.pd-inline-placeholder strong{color:#111827}
.catalog-grid article{
  min-height:150px;
}
.mini-form{
  display:grid;
  gap:8px;
  margin-top:10px;
}
.mini-form input,.mini-form select{
  min-height:34px;
  border:1px solid #d5dae0;
  border-radius:4px;
  padding:7px 10px;
  background:#fff;
}
.mini-form button{
  justify-self:start;
  height:32px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  background:#fff;
  font-weight:700;
  padding:0 12px;
}
.side-form{
  display:grid;
  gap:8px;
}
.side-form .full-width{
  width:100%;
  justify-content:center;
}
.side-form select,.side-form input,.side-form textarea{
  width:100%;
  min-height:34px;
  border:1px solid #d5dae0;
  border-radius:4px;
  padding:7px 10px;
  background:#fff;
}
.side-form textarea{
  resize:vertical;
  font:inherit;
}
.compact-side-form{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.side-money{
  margin-bottom:12px;
}
.repair-note-box form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  padding:0;
}
.repair-note-box textarea{
  min-height:54px;
  border:0;
  border-right:1px solid var(--line);
  padding:14px 16px;
  resize:vertical;
}
.repair-note-box textarea:focus{
  outline:0;
  box-shadow:inset 0 0 0 1px #0b74de;
}
.repair-note-box button{
  align-self:center;
  margin-right:12px;
}
.inline-row-form{
  display:flex;
  gap:8px;
  align-items:center;
}
.inline-row-form input{
  min-height:34px;
  border:1px solid #d5dae0;
  border-radius:4px;
  padding:7px 10px;
}
.parts-form{
  display:grid;
  grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) 80px 110px 110px auto;
  gap:8px;
  padding:14px;
  border-bottom:1px solid var(--line);
}
.parts-form input,.parts-form select{
  min-height:34px;
  border:1px solid #d5dae0;
  border-radius:4px;
  padding:7px 10px;
  background:#fff;
}
.count-badge{
  min-width:22px;
  height:22px;
  display:inline-grid;
  place-items:center;
  border-radius:11px;
  background:#edf5ff;
  color:#0b74de;
  font-size:12px;
  font-weight:700;
}
.empty-table{
  text-align:center;
  color:#596070;
  padding:24px;
}
.document-page .pd-product-main{
  max-width:none;
}
.document-lines-section{
  padding-bottom:22px;
}
.document-lines{
  border:1px solid var(--line);
  border-radius:4px;
  overflow:hidden;
  background:#fff;
}
.document-line-head,.document-line{
  display:grid;
  grid-template-columns:120px minmax(190px,1.1fr) minmax(220px,1.4fr) 72px 110px 110px;
  gap:0;
}
.document-line-head{
  background:#f6f7f9;
  color:#4b5563;
  font-size:12px;
  font-weight:700;
  border-bottom:1px solid var(--line);
}
.document-line-head span{
  padding:10px;
  border-right:1px solid var(--line);
}
.document-line{
  border-bottom:1px solid var(--line);
}
.document-line:last-child{
  border-bottom:0;
}
.document-line input,.document-line select{
  min-height:38px;
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  padding:8px 10px;
  background:#fff;
}
.document-line input:focus,.document-line select:focus{
  outline:0;
  box-shadow:inset 0 0 0 1px #0b74de;
}
.supplier-line-head,.supplier-line{
  grid-template-columns:minmax(220px,1.2fr) minmax(260px,1.5fr) 80px 120px 120px;
}
.accounting-shell{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:12px;
}
.accounting-shell main{
  min-width:0;
}
.accounting-kpis{
  grid-template-columns:repeat(4,minmax(180px,1fr));
}
.accounting-filter{
  align-items:center;
}
.accounting-filter input[type=date]{
  width:150px;
}
.pd-tabs-strip{
  display:flex;
  gap:0;
  align-items:center;
  min-height:48px;
  padding:0 16px;
  background:#fff;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.pd-tabs-strip a{
  height:48px;
  display:flex;
  align-items:center;
  padding:0 14px;
  color:#3d4654;
  border-bottom:2px solid transparent;
  font-weight:600;
}
.pd-tabs-strip a.active{
  color:#0b66d8;
  border-bottom-color:#0b74de;
}
.device-form{
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr)) auto;
  gap:8px;
  padding:12px;
  border-bottom:1px solid var(--line);
}
.device-form input{
  height:34px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  padding:0 10px;
}
.device-form input[name=notes]{
  grid-column:span 2;
}
.device-row{
  grid-template-columns:minmax(220px,1fr) minmax(160px,.7fr) auto;
}
.accounting-table td strong{
  display:block;
  font-weight:600;
}
.accounting-table td small{
  display:block;
  margin-top:3px;
  color:#667085;
}
.money-positive{color:#087443;font-weight:700}
.money-negative{color:#b42318;font-weight:700}
.income-tag{background:#dcfae6;color:#087443}
.expense-tag{background:#fee4e2;color:#b42318}
.accounting-side{
  display:grid;
  gap:12px;
  align-content:start;
  padding-right:12px;
}
.accounting-side section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding:16px;
}
.accounting-side h2{
  margin:0 0 14px;
  font-size:16px;
}
.accounting-side dl{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin:0;
}
.accounting-side dt{
  color:#596070;
  font-size:12px;
  font-weight:700;
}
.accounting-side dd{
  margin:0 0 6px;
  font-weight:700;
}
.due-row{
  border-top:1px solid var(--line);
  padding:10px 0;
}
.due-row:first-of-type{border-top:0}
.due-row strong,.due-row span{
  display:block;
}
.due-row span{
  margin-top:4px;
  color:#596070;
  font-size:13px;
}
.product-list-head{
  padding-bottom:18px;
}
.product-stats-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(170px,1fr));
  gap:10px;
  padding:16px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#f6f7f9;
}
.product-stats-strip div{
  background:#fff;
  border:1px solid var(--line);
  border-radius:4px;
  padding:14px 16px;
}
.product-stats-strip span{
  display:block;
  color:#596070;
  font-size:13px;
  margin-bottom:8px;
}
.product-stats-strip strong{
  font-size:22px;
  line-height:1;
}
.product-filterbar{
  display:grid;
  grid-template-columns:auto minmax(240px,1.2fr) repeat(4,minmax(150px,1fr)) auto auto;
  gap:8px;
  align-items:center;
  padding:12px 16px;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.product-filterbar input,.product-filterbar select{
  min-height:34px;
  border:1px solid #cfd6df;
  border-radius:3px;
  padding:7px 10px;
  background:#fff;
}
.product-filter-tabs{
  display:flex;
  gap:4px;
}
.product-filter-tabs button{
  min-height:34px;
  border:1px solid transparent;
  border-radius:3px;
  background:transparent;
  padding:0 12px;
  font-weight:600;
  color:#1f2937;
}
.product-filter-tabs button.active{
  background:#eaf3ff;
  color:#0b66d8;
}
.primary-filter{
  color:#fff;
  background:#0b74de;
  border-color:#0b74de;
}
.product-list-table td small{
  display:block;
  color:#596070;
  margin-top:3px;
}
.table-main-link{
  font-weight:700;
}
.qty-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:24px;
  border-radius:12px;
  background:#dcfae6;
  color:#087443;
  font-weight:700;
}
.qty-pill.warn{
  background:#fff6d6;
  color:#9a6700;
}
.qty-pill.danger{
  background:#fee4e2;
  color:#b42318;
}
.product-create-page .pd-product-main{
  max-width:900px;
}
.split-editor{
  grid-template-columns:minmax(620px,1fr) 360px;
}
.sticky-aside{
  position:sticky;
  top:54px;
  align-self:start;
}
.auto-price-note{
  color:#596070;
  font-size:13px;
}
.tech-grid{
  grid-template-columns:repeat(3,minmax(160px,1fr));
}
.file-drop{
  display:grid;
  place-items:center;
  min-height:130px;
  border:1px dashed #b9c2cf;
  border-radius:4px;
  color:#596070;
  cursor:pointer;
  text-align:center;
}
.file-drop input{
  display:none;
}
.file-drop span{
  color:#0b66d8;
  font-weight:700;
}
.file-drop small{
  display:block;
  margin-top:4px;
}
.product-photo-form input{
  display:none;
}
.real-photo{
  overflow:hidden;
  cursor:pointer;
}
.real-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.stock-movement-card{
  margin-top:12px;
}
.stock-movement-card header span{
  color:#596070;
  font-size:13px;
}
.stock-movement-form{
  display:grid;
  grid-template-columns:160px 100px 120px minmax(180px,1fr) auto;
  gap:8px;
  padding:14px;
}
.stock-movement-form input,.stock-movement-form select{
  min-height:34px;
  border:1px solid #cfd6df;
  border-radius:3px;
  padding:7px 10px;
  background:#fff;
}
.movement-row span{
  color:#596070;
}
.supplier-list-head{
  padding-bottom:18px;
}
.supplier-stats-strip strong{
  font-size:22px;
}
.supplier-filterbar{
  display:grid;
  grid-template-columns:auto minmax(260px,1.2fr) repeat(3,minmax(150px,1fr)) auto auto;
  gap:8px;
  align-items:center;
  padding:12px 16px;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.supplier-filterbar span{
  color:#596070;
  white-space:nowrap;
}
.supplier-filterbar input,.supplier-filterbar select{
  min-height:34px;
  border:1px solid #cfd6df;
  border-radius:3px;
  padding:7px 10px;
  background:#fff;
}
.supplier-list-table td small{
  display:block;
  color:#596070;
  margin-top:3px;
}
.amazon-import-page .pd-product-main{
  max-width:880px;
}
.amazon-drop-zone{
  padding:12px 0 18px;
}
.large-file-drop{
  min-height:180px;
  background:#fbfcfd;
}
.import-preview-card{
  margin-top:12px;
}
.import-steps{
  display:grid;
  gap:8px;
  padding:14px;
}
.import-steps div{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:4px;
  padding:10px 12px;
  background:#fff;
}
.import-steps strong{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eaf3ff;
  color:#0b66d8;
  font-size:12px;
}
.document-list-head{
  padding-bottom:18px;
}
.document-stats-strip strong{
  font-size:22px;
}
.document-filterbar input{
  min-width:240px;
}
.document-list-table td small{
  display:block;
  margin-top:3px;
  color:#596070;
}
.attachment-form{
  display:grid;
  grid-template-columns:minmax(220px,320px) 1fr auto;
  gap:8px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}
.attachment-form input{
  min-height:34px;
  border:1px solid #cfd6df;
  border-radius:3px;
  padding:7px 10px;
  background:#fff;
}
.attachment-list{
  display:grid;
}
.attachment-row,.backup-row{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(180px,auto) auto auto;
  gap:10px;
  align-items:center;
  padding:10px 14px;
  border-bottom:1px solid var(--line);
}
.attachment-row span,.backup-row span{
  color:#596070;
  font-size:13px;
}
.inline-receive-form{
  display:flex;
  align-items:center;
  gap:6px;
}
.inline-receive-form input{
  width:64px;
  min-height:30px;
  border:1px solid #cfd6df;
  border-radius:3px;
  padding:5px 7px;
}
.serials-card{
  margin-top:12px;
}
.serial-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) 180px minmax(220px,1fr) auto;
  gap:8px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:#fff;
}
.serial-form input,
.serial-form select,
.serial-inline-form select{
  min-height:34px;
  border:1px solid #cfd6df;
  border-radius:3px;
  padding:7px 10px;
  background:#fff;
}
.serial-inline-form{
  margin:0;
}
.danger-text{
  color:#c92a2a;
}
.backup-actions{
  display:flex;
  gap:8px;
  align-items:center;
  margin:10px 0;
}
.backup-list{
  border:1px solid var(--line);
  border-radius:4px;
  overflow:hidden;
  background:#fff;
}

@media(max-width:1100px){
  .crumb{min-width:240px}.top-search{width:330px}
  .insights-shell{grid-template-columns:1fr}.insights-side{display:none}
  .insight-grid{grid-template-columns:1fr}.pipeline{grid-template-columns:repeat(3,minmax(240px,1fr))}
  .contact-detail-shell{grid-template-columns:1fr}
  .contact-module-nav{display:none}
  .contact-layout,.deal-layout,.product-detail-layout,.supplier-detail-layout{grid-template-columns:1fr}
  .pipedrive-side{display:none}
  .detail-column{margin:14px;max-width:none}
  .pd-product-editor,.pd-document-editor{grid-template-columns:1fr}
  .pd-product-aside{display:none}
  .pd-product-main{border-right:0;padding:18px}
  .pd-flat-grid{grid-template-columns:1fr}
  .parts-form,.repair-note-box form{grid-template-columns:1fr}
  .repair-note-box textarea{border-right:0;border-bottom:1px solid var(--line)}
  .document-line-head{display:none}
  .document-line{grid-template-columns:1fr}
  .document-line input,.document-line select{border-right:0;border-bottom:1px solid var(--line)}
  .accounting-shell{grid-template-columns:1fr}
  .accounting-side{padding:0 12px 12px}
  .accounting-kpis{grid-template-columns:1fr}
  .product-stats-strip{grid-template-columns:1fr 1fr}
  .product-filterbar{grid-template-columns:1fr}
  .product-filter-tabs{overflow:auto}
  .split-editor{grid-template-columns:1fr}
  .tech-grid{grid-template-columns:1fr}
  .stock-movement-form{grid-template-columns:1fr}
  .serial-form{grid-template-columns:1fr}
  .supplier-filterbar{grid-template-columns:1fr}
  .settings-shell{grid-template-columns:1fr}
  .settings-nav{display:none}
  .settings-overview{grid-template-columns:1fr 1fr}
  .catalog-editor-grid{grid-template-columns:1fr}
  .settings-grid{grid-template-columns:1fr}
  .attachment-form,.attachment-row,.backup-row{grid-template-columns:1fr}
}


.task-shell,.ops-shell,.task-form-shell{min-height:100%;background:#f4f4f6;padding-bottom:28px}.task-pagebar{grid-template-columns:1fr auto;grid-template-rows:1fr}.task-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px}.task-kpis a{background:#fff;border:1px solid #dfe3e8;border-radius:6px;padding:14px;color:#20242c}.task-kpis span{display:block;color:#6b7280;font-size:12px;font-weight:700;text-transform:uppercase}.task-kpis strong{display:block;margin-top:6px;font-size:28px}.task-kpis .danger strong,.task-badge.danger{color:#b42318}.task-kpis .warning strong,.task-badge.warning{color:#b54708}.task-filter{margin:0 16px 12px;background:#fff;border:1px solid #dfe3e8;border-radius:6px;padding:12px;display:grid;grid-template-columns:1fr 170px 170px 170px auto;gap:10px}.task-filter input,.task-filter select,.task-form-grid input,.task-form-grid select,.task-form-grid textarea,.task-actions select{height:36px;border:1px solid #c8cdd3;border-radius:4px;padding:0 10px;background:#fff;color:#20242c}.task-table-wrap{margin:0 16px;background:#fff;border:1px solid #dfe3e8;border-radius:6px;overflow:hidden}.task-table td small{display:block;color:#6b7280;margin-top:4px}.task-badge{display:inline-flex;align-items:center;height:24px;border-radius:99px;background:#eef2f7;color:#344054;padding:0 9px;font-weight:700;font-size:12px}.priority-alta,.priority-urgente{background:#fff1f3;color:#b42318}.priority-normale{background:#eff8ff;color:#175cd3}.priority-bassa{background:#ecfdf3;color:#067647}.status-completata{background:#ecfdf3;color:#067647}.status-annullata{background:#f2f4f7;color:#667085}.task-actions{display:flex;gap:8px;align-items:center}.task-actions form{display:flex;gap:6px}.empty-row{text-align:center;color:#6b7280;padding:26px!important}.task-form-head,.ops-head{margin:16px}.task-form-grid{margin:0 16px;background:#fff;border:1px solid #dfe3e8;border-radius:6px;padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.task-form-grid label{display:grid;gap:6px;color:#344054;font-weight:700}.task-form-grid .wide{grid-column:1/-1}.task-form-grid textarea{height:auto;min-height:132px;padding-top:9px}.task-delete-row{margin:14px 16px}.task-delete-row .danger{height:36px;border:1px solid #fda29b;background:#fff1f3;color:#b42318;border-radius:4px;padding:0 12px;font-weight:700}.ops-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.ops-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 16px}.ops-panel{background:#fff;border:1px solid #dfe3e8;border-radius:6px;padding:14px}.ops-panel:first-child{grid-row:span 2}.ops-panel header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eef0f3;padding-bottom:10px;margin-bottom:10px}.ops-panel h2{font-size:16px;margin:0}.ops-panel header a,.ops-panel article a{color:#0b66d8;font-weight:700}.ops-panel article{padding:10px 0;border-bottom:1px solid #f1f3f5}.ops-panel article:last-child{border-bottom:0}.ops-panel article strong,.ops-panel article span{display:block}.ops-panel article span{color:#6b7280;margin-top:3px}.ops-status{display:flex;justify-content:space-between;align-items:center;background:#f8fafc;border:1px solid #eef0f3;border-radius:4px;padding:10px;margin-bottom:8px}.ops-status strong{font-size:22px}@media(max-width:1000px){.task-filter{grid-template-columns:1fr 1fr}.task-kpis,.ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-grid,.task-form-grid{grid-template-columns:1fr}.ops-panel:first-child{grid-row:auto}}

.customer-drawer-backdrop[hidden],.customer-drawer-shell[hidden]{display:none!important}.customer-drawer-backdrop{position:fixed;inset:0;background:rgba(16,24,40,.18);z-index:70}.customer-drawer-shell{position:fixed;top:56px;right:0;bottom:0;width:min(1120px,calc(100vw - 56px));background:#f4f4f6;border-left:1px solid #cfd4dc;box-shadow:-18px 0 40px rgba(16,24,40,.18);z-index:80;overflow:auto;animation:drawerIn .18s ease-out}.drawer-loading{padding:24px;color:#596070}.customer-drawer-card{min-height:100%;display:flex;flex-direction:column}.drawer-head{height:92px;background:#fff;border-bottom:1px solid #dfe3e8;display:flex;align-items:center;gap:14px;padding:16px}.drawer-head h2{margin:0;font-size:24px;font-weight:700}.drawer-head p{margin:4px 0 0;color:#596070}.drawer-head button{margin-left:auto;width:34px;height:34px;border:1px solid #c8cdd3;background:#fff;border-radius:4px}.drawer-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e9eef5;color:#20242c;font-weight:800}.drawer-actions{height:54px;background:#fff;border-bottom:1px solid #dfe3e8;display:flex;align-items:center;gap:8px;padding:0 16px}.drawer-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#fff;border-bottom:1px solid #dfe3e8}.drawer-summary article{padding:13px 16px;border-right:1px solid #eef0f3}.drawer-summary span{display:block;color:#596070;font-size:12px;font-weight:700}.drawer-summary strong{font-size:18px}.drawer-body{display:grid;grid-template-columns:360px 1fr;min-height:0;flex:1}.drawer-side{background:#fff;border-right:1px solid #dfe3e8;overflow:auto}.drawer-side section{padding:18px 16px;border-bottom:1px solid #eef0f3}.drawer-side h3,.drawer-main h3{margin:0 0 12px;font-size:16px}.drawer-side p{margin:8px 0;color:#344054}.drawer-side dl{display:grid;grid-template-columns:120px 1fr;gap:8px;margin:0}.drawer-side dt{color:#596070;font-size:12px}.drawer-side dd{margin:0}.drawer-main{padding:18px 24px;overflow:auto}.drawer-tabs{display:flex;gap:0;background:#fff;border:1px solid #dfe3e8;border-radius:5px 5px 0 0;overflow:hidden}.drawer-tabs button{height:42px;border:0;border-right:1px solid #dfe3e8;background:#fff;padding:0 16px;color:#344054;font-weight:700}.drawer-tabs button.active{color:#0b66d8;box-shadow:inset 0 -2px 0 #0b66d8}.drawer-note{background:#fff;border:1px solid #dfe3e8;border-top:0;border-radius:0 0 5px 5px;padding:18px;color:#8a8f98;margin-bottom:24px}.drawer-feed{display:block;background:#fff;border:1px solid #dfe3e8;border-radius:5px;padding:13px 16px;margin-bottom:10px;color:#20242c}.drawer-feed strong,.drawer-feed span{display:block}.drawer-feed span{color:#596070;margin-top:4px}.drawer-empty{background:#fff;border:1px dashed #c8cdd3;border-radius:5px;padding:16px;color:#596070;margin-bottom:20px}.product-picker-backdrop{z-index:95}.product-picker-modal{width:min(760px,calc(100vw - 32px));max-height:78vh;background:#fff;border:1px solid #cfd4dc;border-radius:6px;box-shadow:0 24px 80px rgba(16,24,40,.28);display:flex;flex-direction:column}.product-picker-modal header{height:56px;display:flex;align-items:center;padding:0 16px;border-bottom:1px solid #dfe3e8}.product-picker-modal h2{margin:0;font-size:18px}.product-picker-modal header button{margin-left:auto;width:32px;height:32px;border:1px solid #c8cdd3;background:#fff;border-radius:4px}.product-picker-search{display:flex;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid #eef0f3}.product-picker-search input{height:38px;flex:1;border:1px solid #c8cdd3;border-radius:4px;padding:0 10px}.product-picker-search span{color:#596070}.product-picker-results{overflow:auto;padding:8px}.product-result{width:100%;display:grid;grid-template-columns:1fr auto;gap:4px 12px;text-align:left;background:#fff;border:1px solid transparent;border-bottom-color:#eef0f3;padding:12px;border-radius:4px}.product-result:hover{background:#f3f8ff;border-color:#b2ddff}.product-result strong{font-size:14px}.product-result span{color:#596070}.product-result b{grid-column:2;grid-row:1/3;align-self:center}.product-empty{padding:20px;text-align:center;color:#596070}.line-product-picker{width:100%;height:36px;border:1px solid #c8cdd3;background:#fff;color:#0b66d8;border-radius:0;text-align:left;padding:0 10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes drawerIn{from{transform:translateX(40px);opacity:.8}to{transform:translateX(0);opacity:1}}@media(max-width:900px){.customer-drawer-shell{width:calc(100vw - 56px)}.drawer-body{grid-template-columns:1fr}.drawer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.drawer-side{border-right:0;border-bottom:1px solid #dfe3e8}.drawer-tabs{overflow:auto}}


.qr-side-block img{width:132px;height:132px;border:1px solid #dfe3e8;border-radius:6px;background:#fff;padding:6px;display:block;margin-bottom:10px}.repair-part-picker-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start}.repair-part-picker-line{display:grid;grid-template-columns:210px 1fr 70px 100px 100px;border:1px solid #dfe3e8;border-radius:5px;overflow:hidden;background:#fff}.repair-part-picker-line input,.repair-part-picker-line button{border:0;border-right:1px solid #dfe3e8}.repair-part-picker-line input:last-child{border-right:0}.repair-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:12px 0 18px}.repair-photo-grid article{border:1px solid #dfe3e8;border-radius:6px;background:#fff;padding:8px}.repair-photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px;background:#eef0f3}.repair-photo-grid strong,.repair-photo-grid span{display:block;margin-top:6px}.repair-photo-grid span{color:#596070;font-size:12px}.repair-photo-grid form{margin-top:8px}.files-subtitle{margin:18px 0 10px;font-size:15px}@media(max-width:900px){.repair-part-picker-form,.repair-part-picker-line{grid-template-columns:1fr}.repair-part-picker-line input,.repair-part-picker-line button{border-right:0;border-bottom:1px solid #dfe3e8}}


.quote-pipeline-board{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:12px;padding:16px;min-height:calc(100vh - 160px);overflow:auto}.quote-stage{background:#f8fafc;border:1px solid #dfe3e8;border-radius:6px;display:flex;flex-direction:column;min-height:520px}.quote-stage header{padding:12px;border-bottom:1px solid #dfe3e8;display:flex;justify-content:space-between;gap:10px;background:#fff;border-radius:6px 6px 0 0}.quote-stage h2{margin:0;font-size:15px}.quote-stage header span{color:#596070;font-size:12px}.quote-stage header strong{white-space:nowrap}.quote-stage-list{padding:10px;display:grid;gap:10px}.quote-card{background:#fff;border:1px solid #dfe3e8;border-radius:6px;padding:10px;color:#20242c;display:grid;gap:4px}.quote-card:hover{border-color:#9ec5fe;background:#f3f8ff}.quote-card span,.quote-card small{color:#596070}.quote-card b{font-size:16px}.empty-stage{color:#8a8f98;border-style:dashed}.reorder-page{min-height:100%;background:#f4f4f6}.reorder-toolbar{margin:16px;background:#fff;border:1px solid #dfe3e8;border-radius:6px;padding:14px;display:flex;align-items:end;gap:18px}.reorder-toolbar label{display:grid;gap:6px;font-weight:700}.reorder-toolbar input,.reorder-table input{height:34px;border:1px solid #c8cdd3;border-radius:4px;padding:0 9px}.reorder-toolbar p{margin:0;color:#596070}.reorder-table{margin:0 16px;width:calc(100% - 32px)}.reorder-table td small{display:block;color:#596070;margin-top:3px}@media(max-width:1100px){.quote-pipeline-board{grid-template-columns:repeat(2,minmax(220px,1fr))}.reorder-toolbar{display:grid}}

/* Pipedrive visual refresh - PC Plus */
:root{
  --pd-ink:#17202a;
  --pd-soft:#f5f5f7;
  --pd-soft-2:#f0f1f3;
  --pd-border:#d9dde3;
  --pd-border-dark:#c5cbd3;
  --pd-blue:#0b66d8;
  --pd-green:#2d8f4e;
}
body.pd-ui{background:#f4f4f6;color:var(--pd-ink);font-size:14px}
.workspace{background:#f4f4f6}
.topbar{height:55px;border-bottom-color:#e0e3e7;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.top-search{height:40px;width:392px;border-color:#bfc6cf;background:#fff}
.crumb{font-size:18px;font-weight:700;min-width:320px}
.top-plus{width:40px;height:40px;font-size:26px}
.rail{width:56px;background:#21194f}.workspace,.topbar{left:56px}.rail nav a{height:42px;border-radius:5px}.rail nav a.active{background:#6553df}
.pd-pagebar{min-height:102px;background:#fff;border-bottom:1px solid #dfe3e8;padding:0 16px;grid-template-rows:46px 54px}
.pd-pagebar h1{font-size:20px;font-weight:700;color:#07111f}
.page-actions{align-self:center}.page-actions button,.page-actions a,.page-tools button,.pd-btn,.settings-pipe-section button{height:32px;border:1px solid #c8cdd3;background:#fff;border-radius:3px;color:#111827;padding:0 12px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center}
.page-actions button.active,.product-filter-tabs button.active,.pd-tabs-strip a.active{border-color:#0b66d8;background:#f1f7ff;color:#005ad6}
.green-btn{height:32px;background:#2d8f4e!important;border-color:#2d8f4e!important;color:#fff!important;border-radius:4px!important;font-weight:700;padding:0 12px;margin-left:8px;display:inline-flex;align-items:center;justify-content:center}
.green-split{height:32px;border-radius:0 4px 4px 0!important;margin-left:-1px}.green-btn + .green-split{margin-left:-1px}.page-actions .green-btn{border-radius:4px 0 0 4px!important}
.page-tools{gap:8px}.page-tools span{color:#111827;font-size:14px}
.pd-kpi-row{grid-template-columns:repeat(4,minmax(180px,1fr));gap:8px;padding:16px;background:#f4f4f6;border-bottom:1px solid #dfe3e8}
.pd-kpi-row div{border-color:#d9dde3;border-radius:4px;min-height:70px;padding:12px 14px;box-shadow:none}.pd-kpi-row span{font-size:12px;color:#344054}.pd-kpi-row strong{font-size:22px;line-height:1.1;color:#07111f}
.supplier-filterbar,.document-filterbar,.product-filterbar{background:#fff;border-bottom:1px solid #d9dde3;border-top:0;margin:0;padding:10px 16px;gap:8px;align-items:center}.supplier-filterbar span{color:#344054;font-size:13px;margin-right:0}.supplier-filterbar input,.supplier-filterbar select,.product-filterbar input,.product-filterbar select,.condition-row input,.condition-row select{height:32px;border:1px solid #c8cdd3;border-radius:3px;background:#fff;padding:0 10px;color:#111827}.primary-filter{background:#0b66d8!important;border-color:#0b66d8!important;color:#fff!important}.product-filterbar{grid-template-columns:auto minmax(260px,1.2fr) repeat(6,minmax(130px,1fr)) 120px 120px}.product-filter-tabs{gap:0}.product-filter-tabs button{height:32px;border-radius:0;border:0;background:transparent;padding:0 11px}.product-filter-tabs button.active{background:#eaf2ff;border-radius:3px}
.pd-table{background:#fff;border-collapse:collapse;border-spacing:0;width:100%;table-layout:fixed;margin:0;border:0}.pd-table th,.pd-table td{border-right:1px solid #d9dde3;border-bottom:1px solid #d9dde3;padding:8px 10px;height:38px;vertical-align:middle}.pd-table th{background:#fff;color:#111827;font-size:13px;font-weight:700}.pd-table td{background:#fff;color:#111827}.pd-table tr:hover td{background:#f3f8ff}.pd-table td small{display:block;margin-top:2px;color:#596070;font-size:11px}.table-main-link{color:#005ad6!important;font-weight:700}.tag{border-radius:4px;padding:3px 7px;font-size:11px;font-weight:700;background:#eaf2ff;color:#0b66d8}.income-tag{background:#dff7e8!important;color:#0f7a3b!important}
.empty-state,.empty-table{background:#fff;border-top:0;min-height:236px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#344054}.empty-state h2,.empty-table h2{font-size:20px;margin:8px 0 4px}.empty-state p,.empty-table p{max-width:420px;text-align:center;color:#596070}.empty-state .plus,.empty-table .plus{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;border:1px solid #bfd7ff;color:#005ad6;font-size:28px}
.pd-editor-page{background:#f4f4f6;min-height:100%;display:flex;flex-direction:column}.pd-editor-head{height:82px;background:#fff;border-bottom:1px solid #dfe3e8;padding:12px 24px 12px 16px;display:flex;align-items:flex-start;justify-content:space-between}.pd-editor-head h1{font-size:26px;font-weight:400;line-height:1.2;margin:0 0 6px;color:#07111f}.pd-editor-head p{margin:0;color:#344054;font-size:13px}.pd-editor-actions{display:flex;align-items:center;gap:8px}.pd-editor-actions .green-btn{margin-left:0;height:30px;border-radius:3px!important}.pd-editor-actions .split-save{background:#2d8f4e!important;border-color:#2d8f4e!important}.pd-editor-tabs{height:48px;background:#fff;border-bottom:1px solid #dfe3e8;padding:0 16px;display:flex;align-items:flex-end;gap:22px}.pd-editor-tabs a{height:35px;display:flex;align-items:center;color:#344054;font-weight:700;border-bottom:2px solid transparent}.pd-editor-tabs a.active{color:#4d3ec7;border-bottom-color:#6754e2}
.pd-document-editor{display:grid;grid-template-columns:minmax(560px,1fr) minmax(360px,52%);min-height:calc(100vh - 185px);background:#f4f4f6}.pd-product-main{background:#fff;padding:22px 28px;border-right:1px solid #d9dde3}.pd-product-aside{background:#f4f4f6;padding:22px;display:flex;flex-direction:column;gap:12px}.pd-product-aside section{background:#fff;border:1px solid #d3d8df;border-radius:4px;padding:16px}.pd-product-aside h3{margin:0 0 14px;font-size:15px}.pd-product-aside p{color:#344054;line-height:1.45}.pd-product-aside dl{display:grid;grid-template-columns:86px 1fr;gap:10px 12px;margin:0}.pd-product-aside dt{color:#344054;font-size:12px;font-weight:700}.pd-product-aside dd{margin:0;color:#07111f}.pd-flat-section{border:0;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid #dfe3e8}.pd-flat-section h2{font-size:21px;font-weight:400;margin:0 0 18px;color:#07111f}.pd-flat-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 30px;max-width:840px}.pd-flat-grid label,.pd-flat-wide{display:grid;gap:7px;color:#111827;font-size:12px;font-weight:700}.pd-flat-grid input,.pd-flat-grid select,.pd-flat-wide textarea,.customer-picker-button{height:36px;border:1px solid #c8cdd3;border-radius:3px;background:#fff;padding:0 12px;color:#07111f}.pd-flat-wide textarea{height:auto;padding:10px 12px;resize:vertical}.pd-section-title-row{display:flex;align-items:center;justify-content:space-between;max-width:840px}.document-lines{max-width:900px;border:1px solid #d9dde3;border-bottom:0;background:#fff}.document-line-head,.document-line{display:grid;grid-template-columns:110px 190px minmax(220px,1fr) 66px 100px 100px}.document-line-head span{height:32px;background:#f7f8fa;border-right:1px solid #d9dde3;border-bottom:1px solid #d9dde3;padding:8px 10px;font-size:12px;font-weight:700;color:#344054}.document-line>*{height:36px;border:0;border-right:1px solid #d9dde3;border-bottom:1px solid #d9dde3;border-radius:0;background:#fff;padding:0 10px}.document-line .line-product-picker{justify-content:flex-start;color:#005ad6;font-weight:700;background:#fff}.document-line input:focus,.document-line select:focus,.pd-flat-grid input:focus,.pd-flat-grid select:focus{outline:1px solid #0b66d8;outline-offset:-1px}
.settings-pipe{display:grid;grid-template-columns:240px 1fr;min-height:100%;background:#fff}.settings-pipe-nav{background:#f4f4f6;border-right:1px solid #d9dde3;padding:22px 8px;overflow:auto}.settings-pipe-group{margin-bottom:26px}.settings-pipe-group h3{margin:0 12px 10px;color:#596070;font-size:12px;font-weight:800}.settings-pipe-group a{min-height:42px;display:flex;align-items:center;gap:12px;border-radius:4px;padding:8px 12px;color:#07111f;font-size:15px}.settings-pipe-group a.active{background:#dcebff;color:#005ad6;font-weight:700}.settings-pipe-group a:hover{background:#e9edf3}.settings-pipe-ico{width:24px;color:#6b7280;text-align:center}.settings-pipe-main{background:#fff;overflow:auto}.settings-pipe-title{padding:28px 0 0 24px;border-bottom:1px solid #dfe3e8}.settings-pipe-title h1{font-size:28px;font-weight:400;margin:0 0 14px}.settings-pipe-tabs{display:flex;gap:26px;height:40px}.settings-pipe-tabs a{height:40px;color:#344054;border-bottom:2px solid transparent;font-weight:500}.settings-pipe-tabs a.active{color:#005ad6;border-bottom-color:#0b66d8}.settings-form-panel{max-width:920px;margin:24px auto 30px;display:grid;gap:16px}.settings-form-row{display:grid;grid-template-columns:280px 1fr;align-items:start;gap:16px}.settings-form-row label{text-align:right;padding-top:8px;color:#07111f}.settings-form-row input{height:34px;border:1px solid #c8cdd3;border-radius:3px;padding:0 10px;background:#fff}.settings-form-row p{grid-column:2;margin:4px 0 0;color:#596070;font-size:13px}.settings-inline-control{display:grid;grid-template-columns:1fr 38px;gap:8px}.settings-inline-control button{height:34px;border:1px solid #c8cdd3;background:#fff;border-radius:4px}.settings-form-actions .green-btn{width:max-content;margin-left:0}.settings-pipe-section{margin:0 24px 24px;border:1px solid #d9dde3;border-radius:4px;background:#fff}.settings-pipe-section header{min-height:64px;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #dfe3e8}.settings-pipe-section h2{margin:0 0 4px;font-size:18px}.settings-pipe-section p{margin:0;color:#344054}.settings-two-cols{display:grid;grid-template-columns:1fr 1fr;border:0;gap:12px}.settings-two-cols article{border:1px solid #d9dde3;border-radius:4px;padding:16px}.settings-template-list{padding:12px 16px}.settings-row-actions{display:flex;gap:8px;align-items:center}.settings-row-actions form{margin:0}.settings-pipe-env{margin:16px;grid-template-columns:160px 1fr}.settings-users-table code{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:1100px){.pd-document-editor{grid-template-columns:1fr}.pd-product-aside{border-top:1px solid #d9dde3}.settings-pipe{grid-template-columns:1fr}.settings-pipe-nav{display:none}.pd-kpi-row{grid-template-columns:repeat(2,1fr)}}
/* pipedrive-hard-refresh v32: stronger visual delta on the real pcplus_crm app */
:root{--pd-rail:#21194f;--pd-purple:#6754e2;--pd-bg:#f4f4f6;--pd-line:#d9dde3;--pd-blue:#0b66d8;--pd-green:#2d8f4e;--pd-text:#07111f;--pd-muted:#596070}
body.pd-ui{background:var(--pd-bg)!important;color:var(--pd-text)!important;font-size:14px!important;overflow:hidden!important}.workspace{background:var(--pd-bg)!important}.topbar{height:56px!important;background:#fff!important;border-bottom:1px solid #dfe3e8!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important}.rail{background:var(--pd-rail)!important}.rail nav a{border-radius:5px!important}.rail nav a.active{background:var(--pd-purple)!important}.logo{font-size:34px!important;font-weight:900!important}.crumb{font-size:18px!important;color:#20242c!important;font-weight:700!important}.top-search{width:392px!important;height:40px!important;border:1px solid #bfc6cf!important;border-radius:22px!important;background:#fff!important}.top-search input{font-size:14px!important}.top-plus{width:40px!important;height:40px!important;border:1px solid #c8cdd3!important;background:#fff!important;color:#344054!important}
.pd-pagebar,.document-list-head,.product-list-head{min-height:112px!important;background:#fff!important;border-bottom:1px solid #dfe3e8!important;padding:0 16px!important;grid-template-rows:50px 62px!important}.pd-pagebar h1{font-size:20px!important;line-height:1.1!important;color:#07111f!important;font-weight:700!important}.page-actions{height:62px!important;align-items:center!important}.page-actions button,.page-actions a,.page-tools button,.pd-btn{height:32px!important;border:1px solid #c8cdd3!important;background:#fff!important;color:#111827!important;border-radius:3px!important;font-size:13px!important;font-weight:700!important;padding:0 12px!important;box-shadow:none!important}.page-actions button{border-radius:0!important;margin-left:-1px!important}.page-actions button:first-child{border-radius:4px 0 0 4px!important;margin-left:0!important}.page-actions button.active,.page-actions a.active{background:#f1f7ff!important;border-color:#0b66d8!important;color:#005ad6!important;position:relative!important;z-index:2!important}.green-btn{height:32px!important;background:var(--pd-green)!important;border-color:var(--pd-green)!important;color:#fff!important;border-radius:4px!important;font-weight:700!important;margin-left:8px!important}.page-actions .green-btn{border-radius:4px 0 0 4px!important}.green-split{height:32px!important;border-radius:0 4px 4px 0!important;margin-left:-1px!important;background:var(--pd-green)!important;border-color:var(--pd-green)!important;color:#fff!important}.page-tools{height:62px!important;align-items:center!important}.page-tools span{font-size:14px!important;color:#111827!important}
.pd-kpi-row{grid-template-columns:repeat(4,minmax(180px,1fr))!important;gap:8px!important;padding:16px!important;background:#f4f4f6!important;border-bottom:1px solid #dfe3e8!important}.pd-kpi-row div{background:#fff!important;border:1px solid #d9dde3!important;border-radius:4px!important;min-height:70px!important;padding:12px 14px!important;box-shadow:none!important}.pd-kpi-row span{font-size:12px!important;color:#344054!important;margin-bottom:7px!important}.pd-kpi-row strong{font-size:22px!important;line-height:1.1!important;color:#07111f!important}
.supplier-filterbar,.document-filterbar,.product-filterbar{margin:0!important;padding:10px 16px!important;background:#fff!important;border-top:0!important;border-bottom:1px solid #d9dde3!important;gap:8px!important}.supplier-filterbar span{font-size:13px!important;color:#344054!important}.supplier-filterbar input,.supplier-filterbar select,.product-filterbar input,.product-filterbar select{height:32px!important;border:1px solid #c8cdd3!important;border-radius:3px!important;background:#fff!important;padding:0 10px!important;color:#111827!important}.primary-filter{background:#0b66d8!important;border-color:#0b66d8!important;color:#fff!important}.product-filter-tabs button{height:32px!important;border:0!important;background:transparent!important;border-radius:3px!important;color:#111827!important}.product-filter-tabs button.active{background:#eaf2ff!important;color:#005ad6!important}.pd-table{border-collapse:collapse!important;border-spacing:0!important;background:#fff!important;width:100%!important;table-layout:fixed!important;border:0!important;margin:0!important}.pd-table th,.pd-table td{height:38px!important;border-right:1px solid #d9dde3!important;border-bottom:1px solid #d9dde3!important;padding:8px 10px!important;background:#fff!important;color:#111827!important;vertical-align:middle!important}.pd-table th{font-size:13px!important;font-weight:700!important}.pd-table tr:hover td{background:#f3f8ff!important}.table-main-link,.pd-table a{color:#005ad6!important;font-weight:700!important}.pd-table td small{display:block!important;color:#596070!important;font-size:11px!important;margin-top:2px!important}.tag,.income-tag,.expense-tag{border-radius:4px!important;padding:3px 7px!important;font-size:11px!important;font-weight:700!important;background:#eaf2ff!important;color:#0b66d8!important}.income-tag{background:#dff7e8!important;color:#0f7a3b!important}
.empty-state,.empty-table{background:#fff!important;border-top:0!important;min-height:260px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;color:#344054!important}.empty-state h2,.empty-table h2{font-size:20px!important;margin:8px 0 4px!important}.empty-state p,.empty-table p{max-width:420px!important;text-align:center!important;color:#596070!important}.empty-state:before,.empty-table:before{content:"+";width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;border:1px solid #bfd7ff;color:#005ad6;font-size:28px;margin-bottom:8px}
.pd-editor-page{background:#f4f4f6!important;min-height:100%!important}.pd-editor-head{height:86px!important;background:#fff!important;border-bottom:1px solid #dfe3e8!important;padding:14px 24px 12px 16px!important;align-items:flex-start!important}.pd-editor-head h1{font-size:26px!important;font-weight:400!important;color:#07111f!important;margin:0 0 6px!important}.pd-editor-head p{font-size:13px!important;color:#344054!important}.pd-editor-tabs{height:48px!important;background:#fff!important;border-bottom:1px solid #dfe3e8!important;padding:0 16px!important;align-items:flex-end!important;gap:22px!important}.pd-editor-tabs a{height:35px!important;color:#344054!important;font-weight:700!important;border-bottom:2px solid transparent!important}.pd-editor-tabs a.active{color:#4d3ec7!important;border-bottom-color:#6754e2!important}.pd-document-editor{grid-template-columns:minmax(560px,1fr) minmax(360px,52%)!important;min-height:calc(100vh - 190px)!important;background:#f4f4f6!important}.pd-product-main{background:#fff!important;border-right:1px solid #d9dde3!important;padding:24px 28px!important}.pd-product-aside{background:#f4f4f6!important;padding:22px!important;gap:12px!important}.pd-product-aside section{background:#fff!important;border:1px solid #d3d8df!important;border-radius:4px!important;padding:16px!important}.pd-flat-section{border:0!important;border-bottom:1px solid #dfe3e8!important;margin:0 0 24px!important;padding:0 0 24px!important}.pd-flat-section h2{font-size:21px!important;font-weight:400!important;color:#07111f!important;margin:0 0 18px!important}.pd-flat-grid{grid-template-columns:1fr 1fr!important;gap:16px 30px!important;max-width:840px!important}.pd-flat-grid label,.pd-flat-wide{font-size:12px!important;font-weight:700!important;color:#111827!important;gap:7px!important}.pd-flat-grid input,.pd-flat-grid select,.pd-flat-wide textarea,.customer-picker-button{height:36px!important;border:1px solid #c8cdd3!important;border-radius:3px!important;background:#fff!important;padding:0 12px!important;color:#07111f!important}.document-lines{max-width:900px!important;border:1px solid #d9dde3!important;border-bottom:0!important;background:#fff!important}.document-line-head,.document-line{grid-template-columns:110px 190px minmax(220px,1fr) 66px 100px 100px!important}.document-line-head span{height:32px!important;background:#f7f8fa!important;border-right:1px solid #d9dde3!important;border-bottom:1px solid #d9dde3!important;padding:8px 10px!important;font-size:12px!important;font-weight:700!important;color:#344054!important}.document-line>*{height:36px!important;border:0!important;border-right:1px solid #d9dde3!important;border-bottom:1px solid #d9dde3!important;border-radius:0!important;background:#fff!important;padding:0 10px!important}.document-line .line-product-picker{justify-content:flex-start!important;color:#005ad6!important;font-weight:700!important;background:#fff!important}
.settings-pipe{grid-template-columns:240px 1fr!important;background:#fff!important}.settings-pipe-nav{background:#f4f4f6!important;border-right:1px solid #d9dde3!important}.settings-pipe-title h1{font-size:28px!important;font-weight:400!important;color:#07111f!important}.settings-form-panel{max-width:920px!important}.settings-pipe-section{border-radius:4px!important;border:1px solid #d9dde3!important}.settings-pipe-group a.active{background:#dcebff!important;color:#005ad6!important}
@media(max-width:1100px){.pd-document-editor{grid-template-columns:1fr!important}.pd-kpi-row{grid-template-columns:repeat(2,1fr)!important}.pd-product-aside{border-top:1px solid #d9dde3!important}.settings-pipe{grid-template-columns:1fr!important}.settings-pipe-nav{display:none!important}}
/* ENEA feature import forms */
.backup-restore-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:12px 16px;padding:12px;border:1px solid #d9dde3;background:#f8fafc;border-radius:4px}.backup-restore-form label{display:grid;gap:6px;font-weight:700;color:#344054}.backup-restore-form input{height:34px}.settings-user-grid{padding:16px;max-width:860px}.check-row{display:flex!important;align-items:center;gap:8px}.check-row input{width:auto;height:auto}.user-form-panel .form-actions{padding:0 16px 16px}

.atp-entry-card{margin:12px 0}.atp-form-row{border:1px solid #d9dde3;margin:0;padding:10px;background:#fff;display:grid;grid-template-columns:150px 150px 150px 120px minmax(220px,1fr) auto;gap:8px}.atp-login-card{max-width:680px;margin:24px auto}.atp-login-page{min-height:100%}
@media(max-width:1100px){.atp-form-row{grid-template-columns:1fr 1fr}}


.document-lines.sale-lines-with-serial{max-width:1040px!important}
.document-lines.sale-lines-with-serial .document-line-head,
.document-lines.sale-lines-with-serial .document-line{grid-template-columns:110px 180px 160px minmax(220px,1fr) 66px 92px 92px!important}
@media (max-width: 980px){
  .document-lines.sale-lines-with-serial .document-line{grid-template-columns:1fr!important}
}

.repair-device-presets{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-width:840px;
  margin:0 0 18px;
}
.repair-device-presets button{
  height:32px;
  border:1px solid #c8cdd3;
  background:#fff;
  border-radius:4px;
  padding:0 10px;
  color:#344054;
  font-weight:700;
  cursor:pointer;
}
.repair-device-presets button:hover{
  border-color:#0b66d8;
  background:#eaf2ff;
  color:#005ad6;
}
.repair-money-panel{
  max-width:980px;
}
.repair-money-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.repair-money-grid label{
  display:grid;
  gap:7px;
  color:#111827;
  font-size:12px;
  font-weight:700;
}
.repair-money-grid input{
  height:36px;
  border:1px solid #c8cdd3;
  border-radius:3px;
  padding:0 12px;
  background:#fff;
  color:#101828;
}
.repair-money-grid input[readonly]{
  background:#f7f8fa;
  color:#344054;
}
.repair-parts-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:8px 0 10px;
}
.repair-parts-head h3{
  margin:0;
  font-size:16px;
}
.repair-parts-head p{
  margin:3px 0 0;
  color:#667085;
  font-size:12px;
}
.repair-acceptance-lines{
  max-width:980px!important;
}
.repair-acceptance-lines .document-line-head,
.repair-acceptance-lines .document-line{
  grid-template-columns:110px 190px minmax(220px,1fr) 66px 100px 100px!important;
}
.repair-acceptance-lines .document-line input,
.repair-acceptance-lines .document-line select,
.repair-acceptance-lines .document-line button{
  min-width:0;
}
.repair-acceptance-lines .line-product-picker{
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  background:#fff;
  color:#005ad6;
  font-weight:700;
  text-align:left;
  padding:8px 10px;
  cursor:pointer;
}
.repair-acceptance-lines .line-product-picker:hover{
  background:#f0f6ff;
}
@media (max-width: 980px){
  .repair-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .repair-parts-head{align-items:flex-start;flex-direction:column}
  .repair-acceptance-lines .document-line-head{display:none}
  .repair-acceptance-lines .document-line{grid-template-columns:1fr!important}
  .repair-acceptance-lines .document-line input,
  .repair-acceptance-lines .document-line select,
  .repair-acceptance-lines .document-line button{border-right:0;border-bottom:1px solid var(--line)}
}
@media (max-width: 640px){
  .customer-picker-backdrop{padding:64px 10px 10px}
  .customer-picker-modal{max-width:calc(100vw - 20px);max-height:calc(100vh - 74px)}
  .repair-money-grid{grid-template-columns:1fr}
}


.top-notification-link{position:relative;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:inherit}
.top-badge{position:absolute;top:-7px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#d92d20;color:#fff;font-size:10px;line-height:16px;text-align:center;font-weight:700}
.unread-row td{background:#f5f9ff}
.row-actions{display:flex;gap:6px;justify-content:flex-end}


/* Codex visual QA responsive pass */
@media(max-width:1100px){
  .pd-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .product-filterbar,.supplier-filterbar,.document-filterbar{display:grid!important;grid-template-columns:1fr!important}
  .product-filter-tabs{overflow:auto!important;white-space:nowrap!important}
  .page-actions,.page-tools,.record-actions,.owner-actions{flex-wrap:wrap!important;height:auto!important;min-height:36px!important}
  .record-title,.compact-record-title{height:auto!important;min-height:112px!important;align-items:flex-start!important;gap:12px!important}
  .pd-document-editor{grid-template-columns:1fr!important}
  .pd-flat-grid{grid-template-columns:1fr!important}
  .document-line-head{display:none!important}
  .document-line,
  .document-lines.sale-lines-with-serial .document-line{grid-template-columns:1fr!important}
  .document-line>*{border-right:0!important;border-bottom:1px solid #d9dde3!important;min-width:0!important}
  .settings-form-row{grid-template-columns:1fr!important}
  .settings-form-row label{text-align:left!important;padding-top:0!important}
  .settings-form-row p{grid-column:1!important}
  .settings-two-cols,.settings-overview,.settings-grid{grid-template-columns:1fr!important}
  .settings-pipe-section header{align-items:flex-start!important;gap:10px!important;flex-wrap:wrap!important}
  .record-card,.pd-content-card{min-width:0!important}
}

@media(max-width:700px){
  .rail{width:48px!important}
  .rail .logo{width:48px!important}
  .rail nav a{width:38px!important;height:38px!important}
  .topbar,.workspace{left:48px!important}
  .topbar{gap:6px!important;padding:0 8px!important}
  .crumb{min-width:0!important;max-width:96px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important}
  .top-search{position:static!important;transform:none!important;width:min(150px,42vw)!important;height:34px!important;flex:0 1 auto!important}
  .top-search input{min-width:0!important}
  .top-plus{display:none!important}
  .ai-orb{display:none!important}
  .top-icons{gap:8px!important;margin-left:0!important}
  .top-icons .shop,.top-icons .help{display:none!important}
  .profile{width:30px!important;height:30px!important}
  .pd-kpi-row{grid-template-columns:1fr!important}
  .pd-pagebar,.document-list-head,.product-list-head{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;min-height:0!important;height:auto!important;padding:10px!important;gap:8px!important}
  .pd-pagebar h1,.document-list-head h1,.product-list-head h1{font-size:18px!important}
  .page-actions{grid-column:1!important;grid-row:auto!important;overflow:auto!important;white-space:nowrap!important;flex-wrap:nowrap!important;padding-bottom:4px!important}
  .page-tools{justify-content:flex-start!important;overflow:auto!important;white-space:nowrap!important}
  .pd-table-wrap,.table-card,.supplier-table-wrap,.product-table-wrap{overflow:auto!important}
  .pd-table{min-width:720px!important}
  .form-grid.two,.form-grid.three,.split,.kpis{grid-template-columns:1fr!important}
  .pd-product-main{padding:16px!important}
  .pd-product-aside{display:none!important}
  .pd-editor-head{height:auto!important;min-height:82px!important;gap:10px!important;flex-wrap:wrap!important}
  .pd-editor-actions{flex-wrap:wrap!important}
  .pd-editor-tabs{overflow:auto!important;white-space:nowrap!important}
  .document-lines{max-width:none!important}
  .document-line>*{height:38px!important}
  .settings-pipe-title{padding:18px 14px 0!important}
  .settings-form-panel{margin:16px 14px!important}
  .settings-pipe-section{margin:0 14px 16px!important}
  .settings-template-list{padding:10px!important}
}

/* Dashboard and accounting operational refresh v35 */
.dashboard-toolbar p{margin:4px 0 0;color:#596070;font-size:13px}.dashboard-toolbar>div:first-child{display:block}.dash-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:16px;background:#f4f4f6;border-bottom:1px solid #dfe3e8}.dash-kpi-grid article{background:#fff;border:1px solid #d9dde3;border-radius:4px;min-height:82px;padding:12px 14px}.dash-kpi-grid span{display:block;color:#344054;font-size:12px;font-weight:700}.dash-kpi-grid strong{display:block;margin-top:8px;color:#07111f;font-size:22px;line-height:1.1}.dash-kpi-grid em{display:block;margin-top:7px;color:#596070;font-size:12px;font-style:normal}.dash-kpi-grid em.good{color:#0f7a3b}.dash-kpi-grid em.bad{color:#b42318}.dashboard-grid,.accounting-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 16px 18px}.dashboard-span-2,.accounting-span-2{grid-column:span 2}.pipe-card{background:#fff;border:1px solid #d9dde3;border-radius:4px;min-width:0;box-shadow:0 1px 2px rgba(16,24,40,.03)}.pipe-card header{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #eef0f3}.pipe-card h2{margin:0 0 4px;font-size:16px;color:#07111f}.pipe-card h3{margin:0 0 8px;font-size:13px;color:#344054}.pipe-card small,.pipe-card p,.muted{color:#596070}.pipe-card header a{color:#005ad6;font-weight:700}.big-number{font-size:28px;font-weight:800;padding:16px 14px 0;color:#07111f}.pipe-card>p{margin:8px 14px 14px}.trend-chart{min-height:230px;display:flex;align-items:end;gap:14px;padding:18px 18px 10px;border-bottom:1px solid #eef0f3;overflow:auto}.trend-month{min-width:78px;text-align:center}.trend-bars{height:158px;display:flex;align-items:end;justify-content:center;gap:5px;border-bottom:1px solid #d9dde3}.trend-bars span{width:13px;border-radius:3px 3px 0 0;display:block}.bar-sales{background:#82c7ee}.bar-income{background:#2d8f4e}.bar-expense{background:#f06f64}.trend-month b{display:block;margin-top:8px;font-size:12px}.trend-month small{display:block;margin-top:3px;font-size:11px}.chart-legend{display:flex;align-items:center;gap:8px;padding:10px 14px;color:#596070;font-size:12px}.chart-legend span{width:12px;height:12px;border-radius:2px;display:inline-block}.status-list,.status-bars,.rank-list,.mini-table,.breakdown-list,.source-list,.due-list,.shop-score-list{padding:10px 14px;display:grid;gap:8px}.status-list div,.rank-list div,.breakdown-list div,.source-list div,.shop-score-list a,.due-list a,.mini-table a{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;padding:9px 10px;border:1px solid #eef0f3;border-radius:4px;background:#fbfcfd;color:#07111f}.status-list div em,.rank-list div span,.mini-table a span,.due-list a span,.breakdown-list div em,.source-list div em{grid-column:1;color:#596070;font-style:normal;font-size:12px}.status-list div strong,.rank-list div b,.mini-table a b,.due-list a b,.breakdown-list div strong,.source-list div strong,.shop-score-list a strong{grid-column:2;grid-row:1/3;align-self:center}.status-bars div{display:grid;grid-template-columns:105px 1fr 34px;gap:8px;align-items:center}.status-bars b{height:16px;max-width:100%;background:#82c7ee;border-radius:3px;display:block}.alert-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:14px}.alert-grid a{background:#fbfcfd;border:1px solid #eef0f3;border-radius:4px;padding:12px;color:#07111f}.alert-grid span{display:block;color:#596070;font-size:12px;font-weight:700}.alert-grid strong{display:block;margin-top:7px;font-size:24px}.alert-grid a.danger{background:#fff1f3;border-color:#fda29b}.alert-grid a.warn{background:#fff8e6;border-color:#ffd666}.alert-grid a.ok{background:#f0fbf4;border-color:#b7e4c7}.activity-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}.activity-columns section{min-width:0}.activity-columns a{display:block;padding:9px 0;border-bottom:1px solid #eef0f3;color:#07111f}.activity-columns a span{display:block;margin-top:3px;color:#596070;font-size:12px}.accounting-kpis-wide{grid-template-columns:repeat(6,minmax(0,1fr))!important}.accounting-kpis-wide em{display:block;margin-top:6px;color:#596070;font-style:normal;font-size:12px}.accounting-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding-top:12px}.accounting-trend{min-height:220px}.shop-score-list a{grid-template-columns:1fr auto}.shop-score-list span{color:#596070;font-size:12px;font-weight:700}.due-list a.late{background:#fff1f3;border-color:#fda29b}.breakdown-list.expense strong,.source-list .uscita strong,.money-negative{color:#b42318}.source-list .entrata strong,.money-positive{color:#0f7a3b}.accounting-table{margin-top:0!important}
@media(max-width:1300px){.dash-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-kpis-wide{grid-template-columns:repeat(3,minmax(0,1fr))!important}.accounting-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.alert-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.dash-kpi-grid,.dashboard-grid,.accounting-grid,.activity-columns,.alert-grid{grid-template-columns:1fr}.dashboard-span-2,.accounting-span-2{grid-column:auto}.accounting-kpis-wide{grid-template-columns:1fr!important}.trend-month{min-width:64px}.pipe-card header{align-items:flex-start}.status-bars div{grid-template-columns:90px 1fr 28px}}

/* Single report pages v36 */
.report-toolbar>div:first-child{display:block}.report-toolbar p{margin:4px 0 0;color:#596070;font-size:13px}.report-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:16px;background:#f4f4f6;border-bottom:1px solid #dfe3e8}.report-kpis article{background:#fff;border:1px solid #d9dde3;border-radius:4px;min-height:78px;padding:12px 14px}.report-kpis span{display:block;color:#344054;font-size:12px;font-weight:700}.report-kpis strong{display:block;margin-top:7px;font-size:23px;line-height:1.1;color:#07111f}.report-kpis em{display:block;margin-top:6px;color:#596070;font-size:12px;font-style:normal}.report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 16px 20px}.report-span-2{grid-column:span 2}.report-bars{min-height:224px;display:flex;align-items:end;gap:14px;padding:20px 18px 14px;overflow:auto}.report-bars div{min-width:78px;text-align:center}.report-bars span{width:34px;display:block;margin:0 auto;border-radius:3px 3px 0 0;background:#82c7ee}.ticket-bars span{background:#9bdbd6}.sales-bars span{background:#ffd15c}.report-bars b{display:block;margin-top:8px;font-size:12px}.report-bars small{display:block;margin-top:3px;color:#596070;font-size:11px}.report-list{display:grid;gap:8px;padding:10px 14px}.report-list div,.report-list a{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;padding:9px 10px;border:1px solid #eef0f3;border-radius:4px;background:#fbfcfd;color:#07111f}.report-list em{grid-column:1;color:#596070;font-size:12px;font-style:normal}.report-list strong{grid-column:2;grid-row:1/3;align-self:center}.report-table{table-layout:auto!important}.report-table td.empty{text-align:center;color:#596070;padding:22px!important}.report-page .analytics-period a{height:32px}
@media(max-width:1300px){.report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.report-kpis,.report-grid{grid-template-columns:1fr}.report-span-2{grid-column:auto}.report-bars div{min-width:62px}.report-kpis strong{font-size:20px}}

/* Inventory category sidebar v37 */
.inventory-pipe-layout{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100%;background:#f4f4f6}.inventory-pipe-sidebar{background:#f4f4f6;border-right:1px solid #d9dde3;padding:18px 8px;overflow:auto}.inventory-side-title{padding:0 12px 14px}.inventory-side-title h2{margin:0 0 4px;font-size:20px;color:#07111f}.inventory-side-title span{color:#596070;font-size:12px}.inventory-category-nav{display:grid;gap:2px}.inventory-category-nav a{display:grid;grid-template-columns:1fr auto;gap:3px 8px;align-items:center;min-height:42px;border-radius:4px;padding:8px 10px;color:#07111f}.inventory-category-nav a:hover{background:#e9edf3}.inventory-category-nav a.active{background:#dcebff;color:#005ad6;font-weight:700}.inventory-category-nav strong{font-size:12px;color:inherit;background:#eef2f7;border-radius:999px;padding:2px 7px}.inventory-category-nav em{grid-column:1/-1;color:#b54708;font-size:11px;font-style:normal}.inventory-pipe-main{min-width:0;background:#f4f4f6;overflow:auto}.inventory-category-summary{display:grid;grid-template-columns:1.3fr repeat(4,minmax(0,1fr));gap:8px;padding:12px 16px;background:#f4f4f6;border-bottom:1px solid #dfe3e8}.inventory-category-summary div{background:#fff;border:1px solid #d9dde3;border-radius:4px;padding:10px 12px;min-height:60px}.inventory-category-summary span{display:block;color:#344054;font-size:12px}.inventory-category-summary strong{display:block;margin-top:6px;color:#07111f;font-size:17px}.inventory-filterbar{grid-template-columns:auto minmax(240px,1.2fr) repeat(6,minmax(120px,1fr)) 120px 120px!important}.inventory-table-wrap{background:#fff;overflow:auto}
@media(max-width:1100px){.inventory-pipe-layout{grid-template-columns:1fr}.inventory-pipe-sidebar{border-right:0;border-bottom:1px solid #d9dde3;padding:10px 12px}.inventory-category-nav{display:flex;gap:6px;overflow:auto}.inventory-category-nav a{min-width:150px}.inventory-category-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-filterbar{grid-template-columns:1fr!important}}
@media(max-width:680px){.inventory-category-summary{grid-template-columns:1fr}.inventory-category-nav a{min-width:132px}.inventory-side-title h2{font-size:18px}}

/* Detail visual stability and customer drawer tabs v38 */
.record-layout,.record-main,.record-side,.detail-column,.activity-box,.record-card,.wide-record-card,.repair-workspace-card{min-width:0}.record-main{max-width:100%;overflow:auto}.detail-column{width:auto;max-width:1220px}.deal-layout .detail-column{max-width:1180px}.pd-table-wrap,.inventory-table-wrap{width:100%;max-width:100%;overflow:auto!important}.pd-table-wrap .pd-table{min-width:760px}.sale-activity-box,.focus-feed,.record-card{max-width:100%}.attachment-form{grid-template-columns:minmax(180px,260px) minmax(180px,1fr) auto;align-items:center;max-width:100%;overflow:hidden}.photo-upload-form{grid-template-columns:minmax(180px,280px) 180px minmax(180px,1fr) auto}.attachment-form input,.attachment-form select,.attachment-form button{min-width:0}.repair-part-picker-form{max-width:100%;overflow:hidden}.repair-part-picker-line{grid-template-columns:minmax(170px,220px) minmax(180px,1fr) 70px 96px 96px;max-width:100%}.stage-bar{grid-template-columns:repeat(4,minmax(160px,1fr));overflow:auto}.drawer-main{min-width:0}.drawer-tab-panel{background:#fff;border:1px solid #dfe3e8;border-top:0;border-radius:0 0 5px 5px;padding:18px;margin-bottom:22px}.drawer-tab-panel[hidden]{display:none!important}.drawer-tabs button.active{background:#fff;color:#0b66d8;box-shadow:inset 0 -2px 0 #0b66d8}.drawer-tabs button{white-space:nowrap}.drawer-feed{overflow-wrap:anywhere}.drawer-empty{overflow-wrap:anywhere}.drawer-note{margin-bottom:18px}.activity-box nav{overflow:auto}.activity-box nav a{white-space:nowrap}.timeline-item,.feed-card,.detail-row{overflow-wrap:anywhere}
@media(max-width:1200px){.deal-layout,.contact-layout{grid-template-columns:300px minmax(0,1fr)}.detail-column{margin:16px;max-width:none}.photo-upload-form,.attachment-form{grid-template-columns:1fr 1fr}.photo-upload-form button,.attachment-form button{grid-column:auto}.repair-part-picker-line{grid-template-columns:1fr}.repair-part-picker-line>*{border-right:0!important;border-bottom:1px solid #dfe3e8}}
@media(max-width:900px){.deal-layout,.contact-layout{grid-template-columns:1fr}.pipedrive-side{display:none}.record-title{height:auto;min-height:96px;gap:12px;flex-wrap:wrap}.record-actions{flex-wrap:wrap}.photo-upload-form,.attachment-form{grid-template-columns:1fr}.stage-bar{grid-template-columns:repeat(4,minmax(140px,1fr))}.drawer-tab-panel{padding:14px}.drawer-actions{height:auto;min-height:54px;flex-wrap:wrap;padding:10px 16px}.drawer-tabs{overflow:auto}}



/* Customers inbox Pipedrive-style table v39 */
.contacts-inbox-layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100%;background:#f4f4f6}
.contacts-inbox-side{background:#f4f4f6;border-right:1px solid #d9dde3;padding:14px 8px;overflow:auto}
.contacts-side-item,.contacts-side-group a{min-height:38px;display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center;border-radius:4px;padding:8px 10px;color:#07111f}
.contacts-side-item:hover,.contacts-side-group a:hover{background:#e9edf3}
.contacts-side-item.active,.contacts-side-group a.active{background:#dcebff;color:#005ad6;font-weight:700}
.contacts-side-item strong,.contacts-side-group strong{background:#eef2f7;color:inherit;border-radius:999px;padding:2px 7px;font-size:11px}
.contacts-side-group{margin-top:22px}.contacts-side-group h3{margin:0 10px 7px;color:#596070;font-size:12px;letter-spacing:.02em}.contacts-side-group a{grid-template-columns:1fr auto}.side-icon{width:20px;height:20px;border:1px solid #91b7ea;border-radius:3px;display:grid;place-items:center;color:#005ad6;background:#eaf2ff;font-size:12px}
.contacts-inbox-main{min-width:0;background:#fff;overflow:auto}.contacts-inbox-toolbar{height:54px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 16px;border-bottom:1px solid #d9dde3;background:#fff}.contacts-view-buttons,.contacts-page-tools{display:flex;align-items:center;gap:8px}.contacts-view-buttons button,.contacts-page-tools button,.contacts-page-tools a{height:32px;border:1px solid #c8cdd3;background:#fff;border-radius:3px;padding:0 11px;color:#111827;font-weight:700}.contacts-view-buttons button.active{border-color:#0b66d8;background:#eaf2ff;color:#005ad6}.contacts-page-tools span{color:#111827;font-size:14px}
.contacts-filterbar{height:48px;display:grid;grid-template-columns:auto minmax(260px,520px) 92px;gap:8px;align-items:center;padding:8px 16px;border-bottom:1px solid #d9dde3;background:#fff}.contacts-filterbar label{color:#344054;font-size:13px}.contacts-filterbar input{height:32px;border:1px solid #c8cdd3;border-radius:3px;padding:0 10px;background:#fff}.contacts-filterbar button{height:32px;border:1px solid #0b66d8;border-radius:3px}
.contacts-table-wrap{background:#fff;overflow:auto}.contacts-inbox-table{min-width:1120px;table-layout:fixed}.contacts-inbox-table th,.contacts-inbox-table td{height:32px;padding:6px 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contacts-inbox-table th{background:#fff;color:#344054}.contacts-inbox-table .check-col{width:36px;text-align:center}.contacts-inbox-table th:nth-child(2){width:210px}.contacts-inbox-table th:nth-child(3){width:170px}.contacts-inbox-table th:nth-child(4){width:150px}.contacts-inbox-table th:nth-child(5){width:180px}.contacts-inbox-table th:nth-child(6){width:155px}.contacts-inbox-table th:nth-child(7){width:150px}.contacts-inbox-table th:nth-child(8){width:150px}.contacts-inbox-table tr{cursor:pointer}.contacts-inbox-table .table-main-link{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.next-activity{display:inline-flex;align-items:center;gap:5px;min-width:0;color:#596070}.next-activity.ok{color:#0f7a3b;font-weight:700}.next-activity i{width:16px;height:16px;border-radius:50%;background:#f7b731;color:#fff;display:inline-grid;place-items:center;font-size:11px;font-style:normal;font-weight:800}.contact-tag{display:inline-flex;align-items:center;height:22px;border-radius:4px;background:#eef2f7;color:#344054;padding:0 7px;margin-right:4px;font-size:11px;font-weight:700}.contact-tag.imported{background:#fff4d6;color:#8a5a00}.source-pill{display:inline-flex;align-items:center;gap:5px;color:#344054}.source-pill:before{content:"";width:12px;height:12px;border-radius:50%;background:#667085;display:inline-block}.contacts-inbox-table .empty{text-align:center;color:#596070;padding:26px!important}
@media(max-width:1100px){.contacts-inbox-layout{grid-template-columns:1fr}.contacts-inbox-side{border-right:0;border-bottom:1px solid #d9dde3;padding:10px;display:flex;gap:8px;overflow:auto}.contacts-side-group{margin-top:0;display:flex;gap:8px}.contacts-side-group h3{display:none}.contacts-side-item,.contacts-side-group a{min-width:150px}.contacts-inbox-toolbar{height:auto;min-height:54px;align-items:flex-start;flex-wrap:wrap;padding:10px 16px}.contacts-filterbar{grid-template-columns:1fr}}
@media(max-width:700px){.contacts-page-tools,.contacts-view-buttons{overflow:auto;white-space:nowrap;max-width:100%}.contacts-inbox-table{min-width:960px}}


/* Inventory photo grid view v41 */
.inventory-view-switch{display:inline-flex;align-items:center;border:1px solid #c8cdd3;border-radius:3px;overflow:hidden;background:#fff}
.inventory-view-switch a{width:34px;height:30px;display:grid;place-items:center;color:#344054;border-right:1px solid #c8cdd3;font-size:15px;font-weight:800}
.inventory-view-switch a:last-child{border-right:0}.inventory-view-switch a.active{background:#eaf2ff;color:#005ad6}
.inventory-grid-view{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;padding:14px 16px 22px;background:#f4f4f6}
.inventory-product-card{min-width:0;background:#fff;border:1px solid #d9dde3;border-radius:4px;color:#07111f;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.inventory-product-card:hover{border-color:#9ec5fe;background:#fbfdff}
.inventory-product-photo{height:154px;background:#eef2f7;position:relative;display:grid;place-items:center;overflow:hidden}
.inventory-product-photo img{width:100%;height:100%;object-fit:contain;display:block;background:#fff;padding:8px}.inventory-product-photo>span{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#005ad6;border:1px solid #cfe1ff;font-size:22px;font-weight:800}
.inventory-product-photo strong{position:absolute;right:10px;top:10px;min-width:30px;height:26px;border-radius:999px;display:grid;place-items:center;padding:0 8px;background:#dff7e8;color:#0f7a3b;border:1px solid #b7e4c7}.inventory-product-photo strong.warn{background:#fff8e6;color:#b54708;border-color:#ffd666}.inventory-product-photo strong.danger{background:#fff1f3;color:#b42318;border-color:#fda29b}
.inventory-product-body{padding:12px 12px 10px;display:grid;gap:7px;min-height:142px}.inventory-product-body h2{margin:0;font-size:15px;line-height:1.25;color:#07111f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.inventory-product-body p{margin:0;color:#596070;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inventory-product-meta{display:flex;gap:6px;flex-wrap:wrap}.inventory-product-meta span{background:#eef2f7;border-radius:4px;color:#344054;padding:3px 7px;font-size:11px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-product-specs{color:#596070;font-size:12px;line-height:1.35;min-height:32px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.inventory-product-card footer{margin-top:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #eef0f3;background:#fbfcfd}.inventory-product-card footer div{min-width:0;padding:9px 8px;border-right:1px solid #eef0f3}.inventory-product-card footer div:last-child{border-right:0}.inventory-product-card footer span{display:block;color:#596070;font-size:11px;font-weight:700}.inventory-product-card footer strong{display:block;margin-top:3px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inventory-grid-empty{grid-column:1/-1;min-height:260px;border:1px solid #d9dde3}
@media(max-width:700px){.inventory-grid-view{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));padding:10px}.inventory-product-photo{height:128px}.inventory-product-card footer{grid-template-columns:1fr}.inventory-product-card footer div{border-right:0;border-bottom:1px solid #eef0f3}}


/* Repair cards color system and global icon foundation v42 */
.icon-action{display:inline-flex!important;align-items:center;gap:7px}.icon-action:before,.quick-icon:before,.mini-ico:before{content:"";display:inline-block;flex:0 0 auto}.icon-action:before{width:15px;height:15px;border:2px solid currentColor;border-radius:3px;box-sizing:border-box}.icon-add:before{content:"+";width:16px;height:16px;border:0;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:16px;line-height:16px}.icon-pipeline:before{border-radius:2px;box-shadow:6px 0 0 -2px currentColor,12px 0 0 -2px currentColor}.icon-list:before{height:12px;border-left:0;border-right:0;border-radius:0;box-shadow:0 5px 0 -2px currentColor,0 -5px 0 -2px currentColor}.icon-archive:before{height:13px;border-radius:2px;box-shadow:inset 0 4px 0 -2px currentColor}.icon-filter:before{width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:11px solid currentColor;border-bottom:0;border-radius:0}.icon-lab:before{width:13px;height:16px;border-radius:0 0 4px 4px;border-top:0}.quick-icon:before{width:22px;height:22px;border-radius:4px;background:#eef2f7;color:#344054;display:grid;place-items:center;margin-right:10px;font-size:13px;font-weight:800}.quick-customer:before{content:"U"}.quick-repair:before{content:"T";background:#eaf2ff;color:#005ad6}.quick-sale:before{content:"€";background:#e8f7ee;color:#0f7a3b}.quick-quote:before{content:"✓";background:#f1efff;color:#5b4ee6}.quick-product:before{content:"□";background:#fff8e6;color:#b54708}.quick-order:before{content:"↗";background:#f0fbf4;color:#0f7a3b}.quick-pc:before{content:"PC";font-size:10px;background:#eef2f7;color:#344054}
.mini-ico{width:15px;height:15px;display:inline-grid;place-items:center;color:#667085}.mini-ico:before{width:13px;height:13px;border:2px solid currentColor;box-sizing:border-box}.icon-device:before{border-radius:2px}.icon-user:before{border-radius:50%}.icon-money:before{content:"€";border:0;font-weight:800;font-size:13px;line-height:1}.icon-open:before{content:"›";border:0;font-weight:900;font-size:18px;line-height:1}
.repair-pipeline{grid-template-columns:repeat(4,minmax(250px,1fr)) 260px!important;gap:12px;padding:14px 16px 22px;background:#f4f4f6}.repair-lane{background:#f8fafc;border:1px solid #d9dde3;border-radius:6px;min-width:0;padding:0 10px 12px}.repair-lane-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 4px 10px;border-bottom:3px solid #d9dde3;margin-bottom:10px}.repair-lane-head h2{margin:0;font-size:16px;color:#07111f}.repair-lane-head p{margin:3px 0 0;color:#596070;font-size:12px}.repair-lane-head strong{min-width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:#fff;border:1px solid #d9dde3;color:#344054}.lane-accettata .repair-lane-head{border-bottom-color:#5aa8ff}.lane-diagnosi .repair-lane-head{border-bottom-color:#7c6cf2}.lane-attesa_ricambio .repair-lane-head{border-bottom-color:#f7b731}.lane-pronto .repair-lane-head{border-bottom-color:#2d8f4e}
.repair-ticket-card{position:relative;display:block;background:#fff;border:1px solid #d9dde3;border-left:5px solid #9aa4b2;border-radius:6px;margin-bottom:10px;padding:0;box-shadow:0 2px 7px rgba(16,24,40,.06);overflow:hidden;color:#07111f}.repair-ticket-card:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(16,24,40,.12);border-color:#b8c1cc}.repair-ticket-card header{display:grid;grid-template-columns:14px 1fr auto;gap:8px;align-items:center;padding:11px 12px 8px}.repair-ticket-card header strong{font-size:14px}.repair-ticket-card header em{font-style:normal;font-size:11px;font-weight:800;border-radius:999px;padding:3px 8px;background:#eef2f7;color:#344054;white-space:nowrap}.repair-state-dot{width:10px;height:10px;border-radius:50%;background:#9aa4b2;display:inline-block;box-shadow:0 0 0 3px rgba(154,164,178,.16)}.repair-card-device,.repair-card-customer{display:flex;align-items:center;gap:7px;padding:0 12px 7px;min-width:0}.repair-card-device b,.repair-card-customer span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repair-card-device b{font-size:13px}.repair-card-customer{color:#596070;font-size:12px}.repair-ticket-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:3px;padding:9px 12px;background:#fbfcfd;border-top:1px solid #eef0f3;color:#344054;font-size:12px;font-weight:800}.repair-ticket-card footer span{display:inline-flex;align-items:center;gap:5px;min-width:0}
.status-accettata{border-left-color:#5aa8ff}.status-accettata .repair-state-dot{background:#5aa8ff;box-shadow:0 0 0 3px rgba(90,168,255,.16)}.status-accettata header em{background:#eaf4ff;color:#005ad6}.status-diagnosi{border-left-color:#7c6cf2}.status-diagnosi .repair-state-dot{background:#7c6cf2;box-shadow:0 0 0 3px rgba(124,108,242,.16)}.status-diagnosi header em{background:#f1efff;color:#5b4ee6}.status-attesa_ricambio{border-left-color:#f7b731}.status-attesa_ricambio .repair-state-dot{background:#f7b731;box-shadow:0 0 0 3px rgba(247,183,49,.22)}.status-attesa_ricambio header em{background:#fff8e6;color:#9a6700}.status-pronto{border-left-color:#2d8f4e}.status-pronto .repair-state-dot{background:#2d8f4e;box-shadow:0 0 0 3px rgba(45,143,78,.16)}.status-pronto header em{background:#e8f7ee;color:#0f7a3b}.status-consegnata,.status-chiusa{border-left-color:#667085}.status-consegnata .repair-state-dot,.status-chiusa .repair-state-dot{background:#667085}.status-annullata{border-left-color:#d92d20}.status-annullata .repair-state-dot{background:#d92d20}
.pipeline-side{background:#fff;border:1px solid #d9dde3;border-radius:6px;padding:12px;min-width:0}.pipeline-side h2{margin:0 0 4px;font-size:16px}.pipeline-side>p{margin:0 0 10px;color:#596070;font-size:12px}.side-watch-card{display:block;border-left:4px solid #9aa4b2;border-top:1px solid #eef0f3;padding:10px 8px;color:#07111f}.side-watch-card strong{display:flex;align-items:center;gap:7px}.side-watch-card span{display:block;margin-top:3px;color:#596070;font-size:12px}
.repair-filter-row span.icon-action:before{color:#596070}.green-btn.icon-action:before{color:#fff}.page-tools .icon-action:before{width:14px;height:14px}
@media(max-width:1300px){.repair-pipeline{grid-template-columns:repeat(2,minmax(250px,1fr))!important}.pipeline-side{grid-column:1/-1}}@media(max-width:760px){.repair-pipeline{grid-template-columns:1fr!important;padding:10px}.repair-ticket-card header{grid-template-columns:14px 1fr}.repair-ticket-card header em{grid-column:2;justify-self:start}.quick-create-menu{right:16px}}


/* Broader action icon pass v43 */
.icon-money-btn:before{content:"€";border:0!important;width:15px;height:15px;display:grid!important;place-items:center;font-weight:900;font-size:14px}.icon-chart-btn:before{width:15px!important;height:15px!important;border:0!important;border-left:3px solid currentColor!important;border-bottom:3px solid currentColor!important;border-radius:0!important;box-shadow:5px -3px 0 -1px currentColor,10px -7px 0 -1px currentColor}.icon-order:before{width:15px!important;height:15px!important;border-radius:3px!important;box-shadow:inset 0 -5px 0 -3px currentColor}.icon-check-btn:before{width:15px!important;height:15px!important;border-radius:3px!important}.icon-check-btn:after{content:"";width:8px;height:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin-left:-17px;margin-right:7px;margin-top:-1px;display:inline-block}
.pd-btn.icon-action,.page-actions .icon-action,.page-tools .icon-action,.drawer-actions .icon-action{gap:7px}.pd-btn.icon-action:before{color:currentColor}


/* Clean colored action icons v44 */
.icon-action{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
}
.icon-action:before,
.pd-btn.icon-action:before,
.page-actions .icon-action:before,
.page-tools .icon-action:before,
.drawer-actions .icon-action:before{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  border:0!important;
  border-radius:5px!important;
  display:inline-grid!important;
  place-items:center!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  margin:0!important;
  transform:none!important;
}
.icon-action:after,
.icon-check-btn:after{
  content:none!important;
  display:none!important;
}
.icon-add:before{content:"+"!important;background:#2d8f4e!important;font-size:16px!important}
.green-btn.icon-add:before{background:#176b38!important}
.icon-list:before{content:"≡"!important;background:#0b66d8!important;font-size:15px!important}
.icon-pipeline:before{content:"▦"!important;background:#6553df!important;font-size:13px!important}
.icon-archive:before{content:"▣"!important;background:#667085!important;font-size:12px!important}
.icon-filter:before{content:"F"!important;background:#0b66d8!important;font-size:11px!important}
.icon-lab:before{content:"⚙"!important;background:#7c6cf2!important;font-size:13px!important}
.icon-money-btn:before{content:"€"!important;background:#2d8f4e!important;font-size:13px!important}
.icon-chart-btn:before{content:"↗"!important;background:#f59f00!important;font-size:14px!important}
.icon-order:before{content:"↧"!important;background:#0f7a3b!important;font-size:14px!important}
.icon-check-btn:before{content:"✓"!important;background:#6553df!important;font-size:13px!important}
.quick-icon:before{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  border-radius:6px!important;
  color:#fff!important;
  border:0!important;
  box-shadow:none!important;
}
.quick-customer:before{background:#0b66d8!important;color:#fff!important}
.quick-repair:before{background:#7c6cf2!important;color:#fff!important}
.quick-sale:before{background:#2d8f4e!important;color:#fff!important}
.quick-quote:before{background:#6553df!important;color:#fff!important}
.quick-product:before{background:#f59f00!important;color:#fff!important}
.quick-order:before{background:#0f7a3b!important;color:#fff!important}
.quick-pc:before{background:#344054!important;color:#fff!important}
.page-actions button.icon-action,
.page-actions a.icon-action,
.page-tools button.icon-action,
.page-tools a.icon-action,
.pd-btn.icon-action{
  padding-left:10px!important;
}


/* Dashboard lab bars and Pipedrive customer table cleanup v45 */
.dashboard-grid .status-bars{overflow:hidden}
.dashboard-grid .status-bars div{
  grid-template-columns:104px minmax(0,1fr) 26px!important;
  width:100%;
  min-width:0;
}
.dashboard-grid .status-bars span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dashboard-grid .status-bars b.dashboard-lab-bar{
  width:min(100%, calc(12% + (var(--bar-count) * 4%)))!important;
  min-width:24px;
  max-width:100%;
  justify-self:start;
}
.dashboard-grid .status-bars strong{
  text-align:right;
}
.contacts-inbox-toolbar{
  min-height:64px;
  height:64px;
  padding:0 16px;
}
.contacts-filterbar{
  min-height:48px;
}
.contacts-inbox-table{
  min-width:980px!important;
  table-layout:fixed;
}
.contacts-inbox-table th,
.contacts-inbox-table td{
  height:33px!important;
  padding:6px 10px!important;
}
.contacts-inbox-table .check-col{width:40px!important}
.contacts-inbox-table th:nth-child(2){width:250px!important}
.contacts-inbox-table th:nth-child(3){width:200px!important}
.contacts-inbox-table th:nth-child(4){width:160px!important}
.contacts-inbox-table th:nth-child(5){width:170px!important}
.contacts-inbox-table th:nth-child(6){width:160px!important}
.contacts-inbox-table th:nth-child(7){width:44px!important}
.contacts-inbox-table .actions-col,
.contacts-inbox-table .row-menu{
  width:44px!important;
  text-align:center;
  color:#596070;
  letter-spacing:1px;
  font-weight:800;
}
.contacts-inbox-table .contact-tag.imported,
.contacts-inbox-table .source-pill{
  display:none!important;
}
.contacts-inbox-table .contact-tag{
  background:#eef2f7;
  color:#344054;
}
.contacts-inbox-table .table-main-link{
  color:#005ad6!important;
  font-weight:700;
}
.contacts-inbox-table td small{
  color:#596070;
  font-size:11px;
}
@media(max-width:700px){
  .contacts-inbox-table{min-width:820px!important}
  .dashboard-grid .status-bars div{grid-template-columns:92px minmax(0,1fr) 24px!important}
}


/* Pipedrive customer inbox density pass v46 */
.contacts-inbox-layout{
  grid-template-columns:240px minmax(0,1fr)!important;
  background:#fff!important;
}
.contacts-inbox-side{
  background:#f4f5f7!important;
  border-right:1px solid #d9dde3!important;
  padding:12px 8px!important;
}
.contacts-side-item{
  height:42px!important;
  min-height:42px!important;
  border-radius:4px!important;
  padding:0 10px!important;
}
.contacts-side-group{
  margin-top:24px!important;
}
.contacts-side-group h3{
  margin:0 10px 12px!important;
  font-size:12px!important;
  color:#596070!important;
}
.contacts-side-group a{
  min-height:38px!important;
  padding:0 10px!important;
  border-radius:4px!important;
}
.contacts-inbox-toolbar{
  height:56px!important;
  min-height:56px!important;
  padding:0 12px 0 16px!important;
  border-bottom:1px solid #d9dde3!important;
  background:#fff!important;
}
.contacts-view-buttons button,
.contacts-view-buttons a,
.contacts-page-tools button,
.contacts-page-tools a{
  height:32px!important;
  border-radius:4px!important;
  padding:0 11px!important;
  font-size:13px!important;
}
.contacts-view-buttons{
  gap:8px!important;
}
.contacts-page-tools{
  gap:8px!important;
}
.contacts-page-tools span{
  margin-right:4px;
}
.contacts-page-tools .pd-label-filter{
  min-width:156px;
  justify-content:flex-start;
}
.contacts-filterbar{
  display:none!important;
}
.contacts-table-wrap{
  background:#fff!important;
  overflow:auto!important;
}
.contacts-inbox-table{
  min-width:100%!important;
  width:100%!important;
  table-layout:fixed!important;
  border-top:0!important;
}
.contacts-inbox-table th,
.contacts-inbox-table td{
  height:32px!important;
  min-height:32px!important;
  padding:0 9px!important;
  line-height:32px!important;
  border-right:1px solid #d8dde5!important;
  border-bottom:1px solid #d8dde5!important;
  vertical-align:middle!important;
  font-size:14px!important;
}
.contacts-inbox-table th{
  color:#1f2937!important;
  font-weight:700!important;
  background:#fff!important;
}
.contacts-inbox-table td{
  color:#2f3540!important;
  background:#fff!important;
}
.contacts-inbox-table .check-col{
  width:36px!important;
  padding:0!important;
}
.contacts-inbox-table input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
  vertical-align:middle;
}
.contacts-inbox-table th:nth-child(2){width:210px!important}
.contacts-inbox-table th:nth-child(3){width:170px!important}
.contacts-inbox-table th:nth-child(4){width:160px!important}
.contacts-inbox-table th:nth-child(5){width:170px!important}
.contacts-inbox-table th:nth-child(6){width:160px!important}
.contacts-inbox-table th:nth-child(7){width:auto!important}
.contacts-inbox-table .actions-col,
.contacts-inbox-table .row-menu{
  width:44px!important;
  max-width:44px!important;
  text-align:center!important;
  color:#596070!important;
  letter-spacing:1px!important;
}
.contacts-inbox-table .table-main-link{
  color:#2f3540!important;
  font-weight:400!important;
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.contacts-inbox-table td small{
  display:none!important;
}
.next-activity{
  height:32px!important;
  line-height:32px!important;
  font-weight:400!important;
  color:#7a4a00!important;
}
.next-activity.ok{
  color:#2f3540!important;
  font-weight:400!important;
}
.next-activity.muted-activity{
  color:#7a4a00!important;
}
.next-activity i{
  width:15px!important;
  height:15px!important;
  line-height:15px!important;
  font-size:10px!important;
  background:#f5a400!important;
}
.contact-tag{
  height:20px!important;
  padding:0 7px!important;
  font-size:11px!important;
  line-height:20px!important;
  border-radius:4px!important;
  background:#eef2f7!important;
  color:#344054!important;
}
.contacts-inbox-table tr:hover td{
  background:#f7fbff!important;
}
.contacts-view-buttons .green-btn{
  margin-left:8px!important;
  border-radius:4px 0 0 4px!important;
}
.contacts-view-buttons .green-split{
  width:32px!important;
  padding:0!important;
  border-radius:0 4px 4px 0!important;
  margin-left:-8px!important;
}
@media(max-width:900px){
  .contacts-inbox-layout{grid-template-columns:1fr!important}
  .contacts-inbox-table{min-width:860px!important}
}


/* Pipedrive font/table tuning and sales drawer v47 */
body.pd-ui,
button,input,select,textarea{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
}
.pipedrive-compact-table,
.contacts-inbox-table{
  font-size:14px!important;
}
.pipedrive-compact-table th,
.pipedrive-compact-table td,
.contacts-inbox-table th,
.contacts-inbox-table td{
  height:32px!important;
  line-height:32px!important;
  padding:0 8px!important;
}
.contacts-inbox-table th:nth-child(7),
.contacts-inbox-table .actions-col,
.contacts-inbox-table .row-menu,
.pipedrive-compact-table .actions-col,
.pipedrive-compact-table .row-menu{
  width:34px!important;
  max-width:34px!important;
  padding:0!important;
  text-align:center!important;
}
.contacts-inbox-table th:nth-child(2){width:200px!important}
.contacts-inbox-table th:nth-child(3){width:170px!important}
.contacts-inbox-table th:nth-child(4){width:150px!important}
.contacts-inbox-table th:nth-child(5){width:160px!important}
.contacts-inbox-table th:nth-child(6){width:150px!important}
.contacts-inbox-table th:nth-child(7){width:34px!important}
.contacts-inbox-table .row-menu{letter-spacing:0!important;color:#44546a!important}
.document-list-head{height:56px!important;min-height:56px!important;grid-template-rows:56px!important}
.document-list-head h1{display:none!important}
.sales-compact-table{table-layout:fixed;width:100%;background:#fff}
.sales-compact-table th:first-child{width:36px}.sales-compact-table th:nth-child(2){width:190px}.sales-compact-table th:nth-child(3){width:210px}.sales-compact-table th:nth-child(4){width:145px}.sales-compact-table th:nth-child(5){width:120px}.sales-compact-table th:nth-child(6){width:145px}.sales-compact-table th:nth-child(7){width:120px}.sales-compact-table th:nth-child(8){width:120px}.sales-compact-table th:nth-child(9){width:34px}
.sales-compact-table .table-main-link{color:#2f3540!important;font-weight:400!important}
.sales-compact-table td small{display:none!important}
.sales-compact-table td small.sale-linked-ticket{display:block!important;margin-top:2px;color:#596070!important;font-size:11px!important;font-weight:500!important}
.sales-compact-table .tag{height:20px;line-height:20px;padding:0 7px;border-radius:4px;font-size:11px}
.sale-drawer-backdrop[hidden],.sale-drawer-shell[hidden]{display:none!important}
.sale-drawer-backdrop{position:fixed;inset:0;background:rgba(16,24,40,.18);z-index:70}
.sale-drawer-shell{position:fixed;top:56px;right:0;bottom:0;width:min(1180px,calc(100vw - 56px));background:#f4f4f6;border-left:1px solid #cfd4dc;box-shadow:-18px 0 40px rgba(16,24,40,.18);z-index:80;overflow:auto;animation:drawerIn .18s ease-out}
.sale-drawer-form{min-height:100%;background:#f4f4f6}
.sale-drawer-head{height:82px;background:#fff;border-bottom:1px solid #dfe3e8;padding:14px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.sale-drawer-head h2{margin:0 0 5px;font-size:24px;font-weight:400;color:#07111f}
.sale-drawer-head p{margin:0;color:#344054;font-size:13px}
.sale-drawer-head button{width:34px;height:34px;border:1px solid #c8cdd3;background:#fff;border-radius:4px}
.sale-drawer-actions{height:50px;background:#fff;border-bottom:1px solid #dfe3e8;display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:0 16px}
.sale-drawer-body{display:grid;grid-template-columns:minmax(0,1fr);padding:22px 28px;background:#fff;min-height:calc(100vh - 188px)}
.sale-drawer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 30px;max-width:840px}
.sale-drawer-grid label{display:grid;gap:7px;color:#111827;font-size:12px;font-weight:700}
.sale-drawer-grid input,.sale-drawer-grid select{height:36px;border:1px solid #c8cdd3;border-radius:3px;background:#fff;padding:0 12px;color:#07111f}
.sale-drawer-lines{max-width:1040px!important}
.sale-drawer-lines .document-line-head,.sale-drawer-lines .document-line{grid-template-columns:110px 180px 160px minmax(220px,1fr) 66px 92px 92px!important}
@media(max-width:900px){.sale-drawer-shell{width:calc(100vw - 48px)}.sale-drawer-body{padding:16px}.sale-drawer-grid{grid-template-columns:1fr}.sale-drawer-lines .document-line{grid-template-columns:1fr!important}.sale-drawer-lines .document-line-head{display:none!important}}


/* Sales table aligned to customers v48 */
.sales-inbox-toolbar{
  height:56px;
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 12px 0 16px;
  border-bottom:1px solid #d9dde3;
  background:#fff;
}
.sales-view-buttons,
.sales-page-tools{
  display:flex;
  align-items:center;
  gap:8px;
}
.sales-view-buttons button,
.sales-view-buttons a,
.sales-page-tools button,
.sales-page-tools a{
  height:32px!important;
  border:1px solid #c8cdd3!important;
  background:#fff;
  border-radius:4px!important;
  color:#111827;
  padding:0 11px!important;
  font-weight:700;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.sales-view-buttons button.active{
  border-color:#0b66d8!important;
  background:#eaf2ff!important;
  color:#005ad6!important;
}
.sales-view-buttons .green-btn{
  margin-left:8px!important;
  border-radius:4px 0 0 4px!important;
}
.sales-view-buttons .green-split{
  width:32px!important;
  padding:0!important;
  margin-left:-8px!important;
  border-radius:0 4px 4px 0!important;
}
.sales-page-tools span{
  color:#111827;
  margin-right:4px;
}
.sales-compact-table{
  margin:0!important;
  border-top:0!important;
  table-layout:fixed!important;
  width:100%!important;
  min-width:100%!important;
}
.sales-compact-table th,
.sales-compact-table td{
  height:32px!important;
  min-height:32px!important;
  line-height:32px!important;
  padding:0 8px!important;
  border-right:1px solid #d8dde5!important;
  border-bottom:1px solid #d8dde5!important;
  font-size:14px!important;
  vertical-align:middle!important;
  background:#fff!important;
}
.sales-compact-table th{
  color:#1f2937!important;
  font-weight:700!important;
}
.sales-compact-table td{
  color:#2f3540!important;
}
.sales-compact-table th:first-child,
.sales-compact-table td:first-child{
  width:36px!important;
  padding:0!important;
  text-align:center!important;
}
.sales-compact-table th:nth-child(2){width:190px!important}
.sales-compact-table th:nth-child(3){width:240px!important}
.sales-compact-table th:nth-child(4){width:150px!important}
.sales-compact-table th:nth-child(5){width:120px!important}
.sales-compact-table th:nth-child(6){width:140px!important}
.sales-compact-table th:nth-child(7){width:120px!important}
.sales-compact-table th:nth-child(8){width:120px!important}
.sales-compact-table th:nth-child(9),
.sales-compact-table .actions-col,
.sales-compact-table .row-menu{
  width:34px!important;
  max-width:34px!important;
  padding:0!important;
  text-align:center!important;
  letter-spacing:0!important;
}
.sales-compact-table input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
  vertical-align:middle;
}
.sales-compact-table .table-main-link{
  color:#2f3540!important;
  font-weight:400!important;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sales-compact-table .tag{
  height:20px!important;
  line-height:20px!important;
  padding:0 7px!important;
  border-radius:4px!important;
  font-size:11px!important;
}
.sales-compact-table tr:hover td{
  background:#f7fbff!important;
}
@media(max-width:900px){
  .sales-inbox-toolbar{height:auto;min-height:56px;flex-wrap:wrap;padding:10px 12px}
  .sales-page-tools,.sales-view-buttons{overflow:auto;white-space:nowrap;max-width:100%}
  .sales-compact-table{min-width:980px!important}
}

/* Sales internal sidebar and refined table v49 */
.sales-pipe-layout{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  min-height:calc(100vh - 50px);
  background:#fff;
  border-top:1px solid #d9dde3;
}
.sales-pipe-sidebar{
  background:#f4f5f7;
  border-right:1px solid #d9dde3;
  padding:14px 10px;
  overflow:auto;
}
.sales-side-title{
  padding:0 10px 12px;
  color:#4b5563;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}
.sales-type-nav{
  display:grid;
  gap:2px;
}
.sales-type-nav a{
  display:grid;
  gap:3px;
  padding:8px 10px;
  color:#111827;
  text-decoration:none;
  border-radius:4px;
  font-size:14px;
}
.sales-type-nav a:hover{
  background:#eef4ff;
}
.sales-type-nav a.active{
  background:#ddebff;
  color:#005ad6;
  font-weight:700;
}
.sales-type-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.sales-type-main strong{
  min-width:22px;
  height:18px;
  border-radius:9px;
  background:#eef2f7;
  color:#111827;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
}
.sales-type-nav a.active .sales-type-main strong{
  background:#fff;
  color:#005ad6;
}
.sales-type-nav small{
  color:#667085;
  font-size:11px;
}
.sales-side-section{
  margin-top:20px;
  padding-top:14px;
  border-top:1px solid #d9dde3;
  display:grid;
  gap:4px;
}
.sales-side-section span{
  padding:0 10px 8px;
  color:#667085;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}
.sales-side-section a{
  padding:7px 10px;
  color:#344054;
  text-decoration:none;
  border-radius:4px;
  font-size:14px;
}
.sales-side-section a:hover{
  background:#eef4ff;
  color:#005ad6;
}
.sales-pipe-main{
  min-width:0;
  overflow:auto;
  background:#fff;
}
.sales-pipe-main .sales-inbox-toolbar{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  margin:0!important;
}
.sales-pipe-main .sales-page-tools{
  margin-left:auto;
}
.sales-pipe-main .sales-compact-table{
  width:100%!important;
  min-width:1180px!important;
}
.sales-pipe-main .sales-compact-table th:first-child,
.sales-pipe-main .sales-compact-table td:first-child{width:36px!important}
.sales-pipe-main .sales-compact-table th:nth-child(2){width:180px!important}
.sales-pipe-main .sales-compact-table th:nth-child(3){width:210px!important}
.sales-pipe-main .sales-compact-table th:nth-child(4){width:170px!important}
.sales-pipe-main .sales-compact-table th:nth-child(5){width:130px!important}
.sales-pipe-main .sales-compact-table th:nth-child(6){width:110px!important}
.sales-pipe-main .sales-compact-table th:nth-child(7){width:110px!important}
.sales-pipe-main .sales-compact-table th:nth-child(8){width:110px!important}
.sales-pipe-main .sales-compact-table th:nth-child(9){width:150px!important}
.sales-pipe-main .sales-compact-table th:nth-child(10),
.sales-pipe-main .sales-compact-table td:nth-child(10),
.sales-pipe-main .sales-compact-table .actions-col,
.sales-pipe-main .sales-compact-table .row-menu{
  width:34px!important;
  max-width:34px!important;
  min-width:34px!important;
  padding:0!important;
  text-align:center!important;
}
.sales-pipe-main .sales-compact-table th:nth-child(9),
.sales-pipe-main .sales-compact-table td:nth-child(9){
  width:150px!important;
  min-width:150px!important;
  max-width:150px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.sales-pipe-main .sales-compact-table th,
.sales-pipe-main .sales-compact-table td{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:13px!important;
  height:32px!important;
  line-height:32px!important;
}
.sale-type-pill{
  display:inline-flex;
  align-items:center;
  max-width:150px;
  height:20px;
  padding:0 7px;
  border-radius:4px;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:middle;
}
.sale-type-pill.store{background:#eaf2ff;color:#005ad6}
.sale-type-pill.repair{background:#fff4de;color:#925400}
.sale-type-pill.quote{background:#edf7ed;color:#176b3a}
.sale-type-pill.pc{background:#f0edff;color:#5b35b1}
@media(max-width:1000px){
  .sales-pipe-layout{grid-template-columns:1fr}
  .sales-pipe-sidebar{border-right:0;border-bottom:1px solid #d9dde3}
  .sales-type-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Clean accounting page v51 */
.accounting-clean-page .insights-main{
  background:#f4f5f7;
}
.accounting-clean-head{
  min-height:64px!important;
  background:#fff!important;
  border-bottom:1px solid #d9dde3!important;
}
.accounting-clean-head h1{
  margin:0;
  font-size:22px;
  font-weight:700;
}
.accounting-clean-head p{
  margin:3px 0 0;
  color:#667085;
  font-size:12px;
}
.accounting-clean-kpis{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  padding:14px 16px 10px;
}
.accounting-clean-kpis article{
  min-height:86px;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:4px;
  padding:12px 14px;
  display:grid;
  align-content:center;
  gap:5px;
}
.accounting-clean-kpis span{
  color:#475467;
  font-size:12px;
}
.accounting-clean-kpis strong{
  color:#101828;
  font-size:24px;
  line-height:1.1;
}
.accounting-clean-kpis em{
  color:#667085;
  font-size:12px;
  font-style:normal;
}
.accounting-clean-kpis article.income strong{color:#067647}
.accounting-clean-kpis article.expense strong{color:#b42318}
.accounting-clean-filter{
  margin:0 16px 12px;
  padding:10px;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:4px;
  display:grid;
  grid-template-columns:minmax(260px,1fr) 150px 150px 140px 140px auto auto;
  gap:8px;
  align-items:center;
}
.accounting-clean-filter input,
.accounting-clean-filter select{
  height:32px;
  border:1px solid #c8cdd3;
  border-radius:3px;
  background:#fff;
  padding:0 10px;
}
.accounting-clean-filter button{
  height:32px;
  border:1px solid #0b66d8;
  border-radius:3px;
  background:#0b66d8;
  color:#fff;
  font-weight:700;
  padding:0 14px;
}
.accounting-clean-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:10px;
  padding:0 16px 12px;
}
.accounting-clean-card,
.accounting-movements-panel{
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:4px;
}
.accounting-clean-card header,
.accounting-movements-panel header{
  min-height:54px;
  border-bottom:1px solid #e4e7ec;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.accounting-clean-card h2,
.accounting-movements-panel h2{
  margin:0;
  font-size:15px;
  font-weight:700;
}
.accounting-clean-card small,
.accounting-movements-panel small{
  color:#667085;
  font-size:12px;
}
.accounting-clean-chart{
  grid-row:span 2;
}
.accounting-clean-chart .trend-chart{
  padding:18px 22px 8px;
  min-height:230px;
}
.accounting-shop-list,
.accounting-breakdown,
.accounting-due-list{
  padding:10px;
  display:grid;
  gap:7px;
}
.accounting-shop-list a,
.accounting-breakdown div,
.accounting-due-list a{
  min-height:42px;
  border:1px solid #edf0f3;
  border-radius:4px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:4px 12px;
  color:#1f2937;
  text-decoration:none;
  background:#fbfcfd;
}
.accounting-shop-list a:hover,
.accounting-due-list a:hover{
  background:#f0f6ff;
  border-color:#c9ddff;
}
.accounting-shop-list span,
.accounting-breakdown span,
.accounting-due-list span{
  color:#475467;
  font-size:12px;
}
.accounting-shop-list strong,
.accounting-breakdown strong,
.accounting-due-list b{
  font-size:13px;
  text-align:right;
}
.accounting-breakdown em{
  color:#667085;
  font-size:11px;
  font-style:normal;
}
.clean-income strong{color:#067647}
.clean-expense strong{color:#b42318}
.accounting-due-list a.late{
  border-color:#fecdca;
  background:#fff6f5;
}
.accounting-movements-panel{
  margin:0 16px 18px;
  overflow:auto;
}
.accounting-clean-table{
  margin:0!important;
  min-width:1060px;
  table-layout:fixed;
}
.accounting-clean-table th,
.accounting-clean-table td{
  height:34px!important;
  line-height:34px!important;
  padding:0 8px!important;
  font-size:13px!important;
  border-right:1px solid #d9dde3!important;
  border-bottom:1px solid #d9dde3!important;
  vertical-align:middle!important;
}
.accounting-clean-table th:first-child,
.accounting-clean-table td:first-child{width:36px!important;text-align:center!important;padding:0!important}
.accounting-clean-table th:nth-child(2){width:110px}
.accounting-clean-table th:nth-child(3){width:90px}
.accounting-clean-table th:nth-child(4){width:150px}
.accounting-clean-table th:nth-child(5){width:360px}
.accounting-clean-table th:nth-child(6){width:120px}
.accounting-clean-table th:nth-child(7){width:105px}
.accounting-clean-table th:nth-child(8){width:125px}
.accounting-clean-table th:nth-child(9),
.accounting-clean-table td:nth-child(9){width:34px!important;text-align:center!important;padding:0!important}
.accounting-clean-table td strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:600;
}
.accounting-clean-table td small{
  display:block;
  margin-top:-8px;
  color:#667085;
  font-size:11px;
  line-height:12px;
}
.accounting-clean-table .row-menu a{
  color:#344054;
  text-decoration:none;
  font-weight:700;
}
@media(max-width:1200px){
  .accounting-clean-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .accounting-clean-grid{grid-template-columns:1fr}
  .accounting-clean-chart{grid-row:auto}
  .accounting-clean-filter{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .accounting-clean-kpis{grid-template-columns:1fr}
  .accounting-clean-filter{grid-template-columns:1fr}
}

/* Pipedrive-style customer drawer v52 */
.customer-drawer-shell{
  width:min(1120px,calc(100vw - 56px))!important;
  background:#f4f5f7!important;
}
.pc-contact-drawer{
  min-height:100%;
  display:flex;
  flex-direction:column;
  background:#f4f5f7;
  color:#101828;
}
.pc-contact-head{
  height:96px;
  background:#fff;
  border-bottom:1px solid #d9dde3;
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 16px;
}
.pc-contact-avatar{
  width:54px;
  height:54px;
  border-radius:50%;
  background:#eaf2ff;
  color:#005ad6;
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:800;
  box-shadow:inset 0 0 0 1px #d5e6ff;
}
.pc-contact-title{
  min-width:0;
  flex:1;
}
.pc-contact-title h2{
  margin:0;
  font-size:24px;
  line-height:1.15;
  font-weight:700;
  color:#07111f;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pc-contact-sub{
  margin-top:6px;
  color:#475467;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.cd-dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#98a2b3;
}
.pc-contact-close{
  width:34px;
  height:34px;
  border:1px solid #c8cdd3;
  background:#fff;
  border-radius:4px;
  color:#344054;
}
.pc-contact-actions{
  min-height:54px;
  background:#fff;
  border-bottom:1px solid #d9dde3;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  flex-wrap:wrap;
}
.pc-action{
  height:32px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  background:#fff;
  color:#101828;
  text-decoration:none;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  font-weight:700;
}
.pc-action.green{
  background:#218a46;
  border-color:#218a46;
  color:#fff;
}
.pc-action:hover{
  background:#f0f6ff;
  border-color:#9ac4ff;
}
.pc-action.green:hover{
  background:#1d7b3f;
}
.pc-action-ico,
.cd-icon{
  width:18px;
  height:18px;
  border-radius:5px;
  display:inline-grid;
  place-items:center;
  flex:0 0 18px;
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:1;
}
.pc-action-ico.repair,.cd-icon.repair{background:#218a46}
.pc-action-ico.sale,.cd-icon.sale,.cd-icon.money{background:#0d9488}
.pc-action-ico.quote,.cd-icon.quote{background:#6957d9}
.pc-action-ico.open,.cd-icon.overview{background:#0b66d8}
.cd-icon.phone{background:#eaf2ff;color:#005ad6}
.cd-icon.mail{background:#edf7ed;color:#176b3a}
.cd-icon.pin{background:#fff4de;color:#925400}
.cd-icon.device{background:#f0edff;color:#5b35b1}
.cd-icon.note{background:#f2f4f7;color:#344054}
.cd-icon.file{background:#eaf2ff;color:#005ad6}
.pc-action-ico.repair::before,.cd-icon.repair::before{content:"+"}
.pc-action-ico.sale::before,.cd-icon.sale::before,.cd-icon.money::before{content:"€"}
.pc-action-ico.quote::before,.cd-icon.quote::before{content:"✓"}
.pc-action-ico.open::before,.cd-icon.overview::before{content:"i"}
.cd-icon.phone::before{content:"☎"}
.cd-icon.mail::before{content:"@"}
.cd-icon.pin::before{content:"•"}
.cd-icon.device::before{content:"□"}
.cd-icon.note::before{content:"N"}
.cd-icon.file::before{content:"F"}
.pc-contact-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  background:#fff;
  border-bottom:1px solid #d9dde3;
}
.pc-contact-stats article{
  min-height:66px;
  padding:12px 16px;
  border-right:1px solid #e4e7ec;
  display:flex;
  align-items:center;
  gap:10px;
}
.pc-contact-stats small{
  display:block;
  color:#475467;
  font-size:12px;
  font-weight:700;
}
.pc-contact-stats strong{
  display:block;
  margin-top:2px;
  font-size:20px;
  line-height:1;
}
.pc-contact-body{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
}
.pc-contact-side{
  background:#fff;
  border-right:1px solid #d9dde3;
  overflow:auto;
}
.pc-side-section{
  padding:18px 16px;
  border-bottom:1px solid #e4e7ec;
}
.pc-side-section h3,
.pc-focus-card h3{
  margin:0;
  font-size:16px;
  font-weight:700;
}
.pc-info-list{
  display:grid;
  gap:9px;
  margin-top:12px;
}
.pc-info-list div{
  display:grid;
  grid-template-columns:22px 90px minmax(0,1fr);
  align-items:center;
  gap:8px;
}
.pc-info-list p{
  margin:0;
  color:#667085;
  font-size:12px;
  font-weight:700;
}
.pc-info-list strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:500;
}
.pc-detail-list{
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:9px 12px;
  margin:12px 0 0;
}
.pc-detail-list dt{
  color:#667085;
  font-size:12px;
  font-weight:700;
}
.pc-detail-list dd{
  margin:0;
  color:#101828;
  font-size:13px;
  overflow-wrap:anywhere;
}
.pc-device-list{
  margin-top:12px;
  display:grid;
  gap:8px;
}
.pc-device-list a{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:4px 8px;
  padding:8px;
  border:1px solid #edf0f3;
  border-radius:4px;
  color:#101828;
  text-decoration:none;
  background:#fbfcfd;
}
.pc-device-list a:hover{
  background:#f0f6ff;
  border-color:#c9ddff;
}
.pc-device-list small{
  grid-column:2;
  color:#667085;
}
.pc-empty-line{
  margin:10px 0 0;
  color:#667085;
  font-size:13px;
}
.pc-contact-main{
  min-width:0;
  overflow:auto;
  padding:18px 24px 24px;
}
.pc-contact-tabs{
  display:flex;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:4px 4px 0 0;
  overflow:auto;
}
.pc-contact-tabs button{
  height:42px;
  border:0;
  border-right:1px solid #d9dde3;
  background:#fff;
  color:#344054;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  font-size:13px;
  font-weight:700;
}
.pc-contact-tabs button.active{
  color:#005ad6;
  box-shadow:inset 0 -2px 0 #0b66d8;
}
.pc-tab-panel{
  background:#fff;
  border:1px solid #d9dde3;
  border-top:0;
  border-radius:0 0 4px 4px;
  padding:18px;
}
.pc-tab-panel[hidden]{
  display:none!important;
}
.pc-note-box{
  min-height:56px;
  border:1px solid #d9dde3;
  border-radius:4px;
  color:#8a8f98;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  margin-bottom:16px;
}
.pc-focus-card{
  border-top:1px solid #edf0f3;
  padding-top:16px;
  margin-top:16px;
}
.pc-focus-card:first-child{
  border-top:0;
  padding-top:0;
  margin-top:0;
}
.pc-focus-card header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}
.pc-focus-card header span{
  color:#667085;
  font-size:12px;
}
.pc-feed-item{
  display:grid;
  grid-template-columns:26px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-height:58px;
  border:1px solid #d9dde3;
  border-radius:4px;
  padding:10px 12px;
  margin-bottom:9px;
  background:#fff;
  color:#101828;
  text-decoration:none;
}
.pc-feed-item:hover{
  background:#f7fbff;
  border-color:#b8d7ff;
}
.pc-feed-item strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.pc-feed-item small{
  display:block;
  margin-top:4px;
  color:#667085;
  font-size:12px;
}
.pc-feed-item.repair{border-left:3px solid #218a46}
.pc-feed-item.sale{border-left:3px solid #0d9488}
.pc-feed-item.quote{border-left:3px solid #6957d9}
.pc-feed-item.file{border-left:3px solid #0b66d8}
.pc-empty-box,
.pc-note-content{
  border:1px dashed #c8cdd3;
  border-radius:4px;
  padding:16px;
  color:#667085;
  background:#fbfcfd;
  overflow-wrap:anywhere;
}

/* Ticket customer picker and sales detail refresh v54 */
.customer-picker-modal{
  grid-template-rows:auto auto minmax(220px,1fr) auto!important;
}
.customer-picker-list,
.customer-picker-create{
  grid-row:3;
  min-height:0;
}
.customer-picker-modal footer{
  grid-row:4;
}
.customer-picker-option strong{
  font-weight:500!important;
}
.customer-picker-option small{
  font-weight:400!important;
}
.customer-picker-create{
  overflow:auto;
  padding:14px 16px 16px;
  background:#fff;
}
.picker-create-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.picker-create-header strong{
  font-size:15px;
}
.picker-type-toggle{
  display:inline-flex;
  border:1px solid #c8cdd3;
  border-radius:4px;
  overflow:hidden;
  margin-bottom:14px;
}
.picker-type-toggle label{
  min-width:96px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-weight:700;
  color:#344054;
  background:#fff;
  border-right:1px solid #c8cdd3;
}
.picker-type-toggle label:last-child{border-right:0}
.picker-type-toggle label:has(input:checked){
  background:#eaf2ff;
  color:#005ad6;
}
.picker-type-toggle input{
  width:13px;
  height:13px;
}
.picker-create-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.picker-create-grid label{
  display:grid;
  gap:6px;
  color:#111827;
  font-size:12px;
  font-weight:700;
}
.picker-create-grid input{
  height:34px;
  border:1px solid #c8cdd3;
  border-radius:3px;
  padding:0 10px;
  color:#07111f;
  background:#fff;
}
.picker-create-grid input:focus{
  outline:1px solid #0b66d8;
  outline-offset:-1px;
}
.picker-create-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}
.picker-create-error{
  margin:12px 0 0;
  padding:9px 10px;
  background:#fff1f0;
  border:1px solid #ffccc7;
  color:#b42318;
  border-radius:4px;
  font-weight:700;
}
.ticket-tab-link{
  gap:8px!important;
}
.ticket-tab-ico,
.ticket-section-ico,
.sale-kpi-ico,
.sale-line-ico{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:6px;
  color:#fff;
  font-weight:900;
  line-height:1;
}
.ticket-tab-ico{
  width:22px;
  height:22px;
  font-size:12px;
}
.ticket-section-ico{
  width:26px;
  height:26px;
  margin-right:8px;
  font-size:12px;
}
.ticket-section-title,
.pd-product-aside h3,
.repair-parts-head h3{
  display:flex!important;
  align-items:center!important;
}
.ticket-tab-ico.customer,.ticket-section-ico.customer{background:#0b66d8}
.ticket-tab-ico.device,.ticket-section-ico.device{background:#7c6cf2}
.ticket-tab-ico.work,.ticket-section-ico.work{background:#f59f00}
.ticket-tab-ico.money,.ticket-section-ico.money{background:#2d8f4e}
.ticket-tab-ico.parts,.ticket-section-ico.parts{background:#0d9488}
.ticket-tab-ico.summary,.ticket-section-ico.summary{background:#667085}
.ticket-section-ico.progress{background:#9b59b6}
.ticket-tab-ico.customer:before,.ticket-section-ico.customer:before{content:"C"}
.ticket-tab-ico.device:before,.ticket-section-ico.device:before{content:"PC";font-size:10px}
.ticket-tab-ico.work:before,.ticket-section-ico.work:before{content:"L"}
.ticket-tab-ico.money:before,.ticket-section-ico.money:before{content:"E"}
.ticket-tab-ico.parts:before,.ticket-section-ico.parts:before{content:"R"}
.ticket-tab-ico.summary:before,.ticket-section-ico.summary:before{content:"i"}
.ticket-section-ico.progress:before{content:">"}
.repair-device-presets button{
  position:relative;
  padding-left:32px!important;
}
.repair-device-presets button:before{
  content:"";
  position:absolute;
  left:10px;
  top:7px;
  width:17px;
  height:17px;
  border-radius:5px;
  background:#eaf2ff;
  box-shadow:inset 0 0 0 2px #0b66d8;
}
.repair-device-presets button:nth-child(2):before{background:#f1efff;box-shadow:inset 0 0 0 2px #7c6cf2}
.repair-device-presets button:nth-child(3):before{background:#e8f7ee;box-shadow:inset 0 0 0 2px #2d8f4e}
.repair-device-presets button:nth-child(4):before{background:#fff8e6;box-shadow:inset 0 0 0 2px #f59f00}
.repair-device-presets button:nth-child(5):before{background:#eef2f7;box-shadow:inset 0 0 0 2px #667085}
.repair-device-presets button:nth-child(6):before{background:#e6fffb;box-shadow:inset 0 0 0 2px #0d9488}
.icon-print:before{content:"P"!important;background:#0b66d8!important;font-size:12px!important}
.icon-cancel:before{content:"X"!important;background:#d92d20!important;font-size:12px!important}
.sale-detail-page{
  min-height:100%;
  background:#f4f4f6;
  color:#07111f;
}
.sale-detail-head{
  min-height:108px;
  background:#fff;
  border-bottom:1px solid #dfe3e8;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:20px 24px;
}
.sale-title-group{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.sale-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  background:#e8f7ee;
  color:#0f7a3b;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
}
.sale-title-group h1{
  margin:0;
  font-size:26px;
  font-weight:600;
}
.sale-title-group p{
  margin:6px 0 0;
  color:#596070;
}
.sale-detail-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.sale-detail-actions form{margin:0}
.sale-kpi-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  background:#fff;
  border-bottom:1px solid #dfe3e8;
}
.sale-kpi-strip article{
  min-height:74px;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:4px 10px;
  align-content:center;
  padding:12px 18px;
  border-right:1px solid #dfe3e8;
}
.sale-kpi-strip article:last-child{border-right:0}
.sale-kpi-strip small{
  color:#344054;
  font-size:12px;
  font-weight:700;
}
.sale-kpi-strip strong{
  font-size:20px;
  line-height:1.1;
}
.sale-kpi-ico{
  grid-row:1 / span 2;
  width:30px;
  height:30px;
  font-size:12px;
}
.sale-kpi-ico.total{background:#2d8f4e}
.sale-kpi-ico.margin{background:#0d9488}
.sale-kpi-ico.cost{background:#f59f00}
.sale-kpi-ico.status{background:#6553df}
.sale-kpi-ico.total:before{content:"E"}
.sale-kpi-ico.margin:before{content:"M"}
.sale-kpi-ico.cost:before{content:"C"}
.sale-kpi-ico.status:before{content:"S"}
.sale-detail-layout{
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  min-height:calc(100vh - 238px);
}
.sale-detail-side{
  background:#fff;
  border-right:1px solid #d9dde3;
  overflow:auto;
}
.sale-detail-side section{
  padding:18px 16px;
  border-bottom:1px solid #edf0f3;
}
.sale-detail-side h2{
  display:flex;
  align-items:center;
  margin:0 0 14px;
  font-size:16px;
}
.sale-detail-side dl{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:10px 12px;
  margin:0;
}
.sale-detail-side dt{
  color:#667085;
  font-size:12px;
  font-weight:800;
}
.sale-detail-side dd{
  margin:0;
  overflow-wrap:anywhere;
}
.sale-status-pill{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  border-radius:999px;
  padding:2px 8px;
  background:#e8f7ee;
  color:#0f7a3b;
  font-weight:800;
  font-size:12px;
}
.sale-status-pill.annullata{background:#fff1f0;color:#b42318}
.sale-status-pill.da_pagare{background:#fff8e6;color:#9a6700}
.sale-detail-main{
  min-width:0;
  padding:18px 24px 28px;
  overflow:auto;
}
.sale-detail-tabs{
  display:flex;
  align-items:center;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:5px 5px 0 0;
  overflow:auto;
}
.sale-detail-tabs button{
  height:42px;
  border:0;
  border-right:1px solid #d9dde3;
  background:#fff;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 16px;
  color:#344054;
  font-weight:800;
  cursor:pointer;
}
.sale-detail-tabs button.active{
  color:#005ad6;
  box-shadow:inset 0 -2px 0 #0b66d8;
}
.sale-tab-panel{
  background:#fff;
  border:1px solid #d9dde3;
  border-top:0;
  border-radius:0 0 5px 5px;
  padding:18px;
}
.sale-tab-panel[hidden]{display:none!important}
.sale-panel-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.sale-panel-title h2{
  margin:0;
  font-size:18px;
}
.sale-panel-title p{
  margin:4px 0 0;
  color:#667085;
}
.sale-lines-list{
  display:grid;
  gap:10px;
}
.sale-line-card{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) minmax(360px,auto);
  align-items:center;
  gap:12px;
  min-height:72px;
  padding:12px;
  border:1px solid #d9dde3;
  border-left:4px solid #2d8f4e;
  border-radius:5px;
  background:#fff;
}
.sale-line-ico{
  width:30px;
  height:30px;
  background:#e8f7ee;
  color:#0f7a3b;
  font-size:12px;
}
.sale-line-ico.manual{
  background:#eef2f7;
  color:#344054;
}
.sale-line-card strong{
  display:block;
  font-size:14px;
}
.sale-line-card small{
  display:block;
  margin-top:4px;
  color:#667085;
}
.sale-line-card dl{
  display:grid;
  grid-template-columns:repeat(4,auto);
  gap:2px 16px;
  margin:0;
  text-align:right;
}
.sale-line-card dt{
  color:#667085;
  font-size:11px;
  font-weight:800;
}
.sale-line-card dd{
  margin:0;
  font-weight:800;
}
.sale-line-card .positive{color:#0f7a3b}
.sale-note-box{
  display:grid;
  gap:6px;
  border:1px solid #d9dde3;
  border-left:4px solid #f7b731;
  border-radius:5px;
  padding:14px;
  background:#fffdf2;
}
.sale-detail-table .pd-table{
  min-width:760px;
}
@media(max-width:1100px){
  .sale-detail-layout{grid-template-columns:1fr}
  .sale-detail-side{border-right:0;border-bottom:1px solid #d9dde3}
  .sale-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .picker-create-grid{grid-template-columns:1fr}
  .sale-detail-head{align-items:flex-start;flex-direction:column}
  .sale-kpi-strip{grid-template-columns:1fr}
  .sale-line-card{grid-template-columns:36px minmax(0,1fr)}
  .sale-line-card dl{grid-column:1 / -1;text-align:left;grid-template-columns:repeat(2,1fr)}
  .sale-detail-main{padding:12px}
}
@media(max-width:900px){
  .customer-drawer-shell{width:calc(100vw - 56px)!important}
  .pc-contact-body{grid-template-columns:1fr}
  .pc-contact-side{border-right:0;border-bottom:1px solid #d9dde3}
  .pc-contact-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pc-contact-main{padding:14px}
}

/* v55: picker cliente separato e tabelle CRM compatte */
.customer-picker-modal{
  width:680px!important;
  max-width:calc(100vw - 48px)!important;
  max-height:calc(100vh - 104px)!important;
  grid-template-rows:auto auto minmax(240px,1fr) 48px!important;
}
.customer-picker-list{
  grid-row:auto!important;
  min-height:0!important;
  overflow:auto!important;
  padding:8px 10px!important;
}
.customer-picker-option{
  grid-template-columns:38px minmax(0,1fr)!important;
  min-height:56px!important;
  padding:8px 10px!important;
}
.customer-picker-option strong{
  font-size:13px!important;
  font-weight:500!important;
}
.customer-picker-option small{
  font-size:11px!important;
  color:#596579!important;
}
.customer-picker-modal footer{
  grid-row:auto!important;
  min-height:48px!important;
}
.customer-create-backdrop[hidden]{display:none!important}
.customer-create-backdrop{
  position:fixed;
  inset:0;
  z-index:95;
  display:grid;
  align-items:start;
  justify-items:center;
  overflow:auto;
  padding:76px 24px 24px;
  background:rgba(33,37,43,.54);
}
.customer-create-modal{
  width:760px;
  max-width:calc(100vw - 48px);
  max-height:calc(100vh - 104px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto;
  overflow:hidden;
  background:#fff;
  border:1px solid #d4d9e1;
  border-radius:5px;
  box-shadow:0 20px 70px rgba(0,0,0,.28);
}
.customer-create-modal header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  min-height:74px;
  padding:16px 18px 12px;
  border-bottom:1px solid #d9dde3;
}
.customer-create-modal h2{
  margin:0;
  font-size:22px;
  font-weight:500;
}
.customer-create-modal p{
  margin:6px 0 0;
  color:#596579;
}
.customer-create-modal header button{
  width:30px;
  height:30px;
  border:1px solid #c7ced8;
  border-radius:4px;
  background:#fff;
  cursor:pointer;
}
.picker-create-body{
  min-height:0;
  overflow:auto;
  display:grid;
  gap:14px;
  padding:16px 18px;
}
.picker-type-toggle{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:34px;
  padding:6px 10px;
  background:#f7f8fa;
  border:1px solid #d9dde3;
  border-radius:4px;
}
.picker-type-toggle label{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-weight:700;
}
.picker-create-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 14px;
}
.picker-create-grid label{
  display:grid;
  gap:6px;
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.picker-create-grid input{
  height:36px;
  border:1px solid #c7ced8;
  border-radius:3px;
  padding:0 10px;
  font:inherit;
}
.picker-create-error{
  margin:0 18px 12px!important;
  padding:9px 10px;
  color:#9a3412!important;
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:4px;
}
.customer-create-modal footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-height:52px;
  padding:10px 18px;
  background:#f7f8fa;
  border-top:1px solid #d9dde3;
}
.crm-list-layout{
  min-height:calc(100vh - 49px);
  background:#f4f4f6;
}
.crm-list-main{
  min-width:0;
  background:#fff;
}
.crm-list-toolbar{
  position:relative;
  z-index:3;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:0 16px;
  background:#fff;
  border-bottom:1px solid #d9dde3;
}
.crm-view-buttons,.crm-page-tools{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.crm-view-buttons > *, .crm-page-tools > *{
  flex:0 0 auto;
}
.crm-view-buttons button,
.crm-view-buttons a,
.crm-page-tools button,
.crm-page-tools a{
  height:32px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 12px!important;
  border:1px solid #c7ced8;
  border-radius:4px;
  background:#fff;
  color:#172033;
  font-weight:800;
  font-size:13px;
  line-height:1;
  text-decoration:none;
}
.crm-view-buttons .active{
  color:#005ad6;
  border-color:#0b66d8;
  background:#eef5ff;
}
.crm-view-buttons .green-btn,
.crm-page-tools .green-btn{
  color:#fff!important;
  border-color:#27874c!important;
  background:#27874c!important;
}
.crm-view-buttons .green-split{
  min-width:32px;
  width:32px;
  padding:0!important;
  color:#fff;
  border-color:#27874c;
  background:#27874c;
}
.crm-page-tools span{
  color:#172033;
  font-weight:500;
  white-space:nowrap;
}
.crm-kpi-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:12px 16px;
  background:#f4f4f6;
  border-bottom:1px solid #d9dde3;
}
.crm-kpi-row article{
  min-height:68px;
  display:grid;
  align-content:center;
  gap:6px;
  padding:12px 14px;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:4px;
}
.crm-kpi-row span{
  color:#344054;
  font-size:12px;
}
.crm-kpi-row strong{
  color:#0b1220;
  font-size:22px;
  line-height:1;
}
.crm-filterbar{
  display:grid;
  grid-template-columns:auto minmax(260px,1fr) minmax(180px,240px) minmax(180px,240px) 92px 74px;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  background:#fff;
  border-bottom:1px solid #d9dde3;
}
.crm-filterbar-wide{
  grid-template-columns:auto minmax(260px,1.2fr) minmax(170px,.8fr) minmax(170px,.8fr) minmax(170px,.8fr) 72px 70px;
}
.crm-filterbar label{
  margin:0;
  color:#344054;
  font-size:12px;
  font-weight:500;
  white-space:nowrap;
}
.crm-filterbar input,
.crm-filterbar select,
.crm-filterbar button,
.crm-filterbar a{
  height:32px;
  min-width:0;
  border:1px solid #c7ced8;
  border-radius:3px;
  padding:0 10px;
  background:#fff;
  color:#172033;
  font:inherit;
  font-size:13px;
}
.crm-filterbar .primary-filter{
  color:#fff;
  border-color:#0b66d8;
  background:#0b66d8;
  font-weight:800;
}
.crm-filterbar a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:800;
}
.crm-table-wrap{
  overflow:auto;
  background:#fff;
}
.crm-table{
  min-width:1080px;
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}
.crm-table th,
.crm-table td{
  height:36px!important;
  padding:6px 9px!important;
  border-color:#d9dde3!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:13px;
  line-height:1.25;
}
.crm-table th{
  color:#0b1220;
  font-weight:800;
  background:#fff;
}
.crm-table td small{
  display:block;
  margin-top:3px;
  color:#596579;
  font-size:10px;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
}
.crm-table .check-col{
  width:38px!important;
  text-align:center;
}
.crm-table .actions-col,
.crm-table .row-menu{
  width:44px!important;
  max-width:44px!important;
  text-align:center;
}
.crm-table .row-menu{
  color:#344054;
  font-size:16px;
  font-weight:900;
  letter-spacing:1px;
}
.crm-table .table-main-link{
  display:inline-block;
  max-width:100%;
  color:#005ad6;
  font-weight:800;
  text-decoration:none;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:bottom;
}
.quotes-crm-table th:nth-child(2){width:210px}
.quotes-crm-table th:nth-child(3){width:220px}
.quotes-crm-table th:nth-child(4){width:150px}
.quotes-crm-table th:nth-child(5){width:150px}
.quotes-crm-table th:nth-child(6){width:150px}
.quotes-crm-table th:nth-child(7){width:150px}
.orders-crm-table th:nth-child(2){width:210px}
.orders-crm-table th:nth-child(3){width:190px}
.orders-crm-table th:nth-child(4){width:140px}
.orders-crm-table th:nth-child(5){width:140px}
.orders-crm-table th:nth-child(6){width:130px}
.orders-crm-table th:nth-child(7){width:140px}
.orders-crm-table th:nth-child(8){width:210px}
.suppliers-crm-table th:nth-child(2){width:230px}
.suppliers-crm-table th:nth-child(3){width:190px}
.suppliers-crm-table th:nth-child(4){width:240px}
.suppliers-crm-table th:nth-child(5){width:160px}
.suppliers-crm-table th:nth-child(6){width:auto}
@media(max-width:1100px){
  .crm-list-toolbar{
    align-items:flex-start;
    flex-direction:column;
    padding:10px 12px;
  }
  .crm-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm-filterbar,
  .crm-filterbar-wide{grid-template-columns:1fr}
}
@media(max-width:760px){
  .customer-create-modal,.customer-picker-modal{max-width:calc(100vw - 24px)!important}
  .customer-create-backdrop{padding:64px 12px 12px}
  .picker-create-grid{grid-template-columns:1fr}
  .crm-kpi-row{grid-template-columns:1fr}
}

/* v56: ordini fornitori evoluti e creazione cliente visibile */
.customer-picker{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:end;
}
.customer-picker .customer-picker-button{
  min-width:0;
}
.customer-picker-create-inline{
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  border:1px solid #27874c;
  border-radius:4px;
  background:#27874c;
  color:#fff;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
.supplier-line-head-v2,
.supplier-line-v2{
  grid-template-columns:210px minmax(230px,1fr) 70px 100px 100px!important;
}
.supplier-line-v2{
  align-items:stretch;
}
.supplier-product-cell{
  min-height:58px!important;
  display:grid!important;
  grid-template-rows:32px 22px;
  gap:4px;
  padding:4px 6px!important;
}
.supplier-product-cell .line-product-picker{
  height:32px!important;
  border:1px solid #c8cdd3!important;
  border-radius:3px!important;
}
.supplier-create-item-toggle{
  height:22px!important;
  justify-content:flex-start;
  border:0!important;
  background:transparent!important;
  color:#0b66d8!important;
  padding:0 4px!important;
  font-size:12px!important;
  font-weight:800!important;
  cursor:pointer;
}
.supplier-create-item-toggle.active{
  color:#0f7a3b!important;
}
.supplier-new-item-panel{
  grid-column:1 / -1;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  padding:10px!important;
  background:#f7fbff!important;
  border-right:1px solid #d9dde3!important;
  border-bottom:1px solid #d9dde3!important;
}
.supplier-new-item-panel[hidden]{display:none!important}
.supplier-new-item-panel label{
  display:grid;
  gap:4px;
  color:#344054;
  font-size:11px;
  font-weight:800;
}
.supplier-new-item-panel input{
  height:32px!important;
  min-width:0;
  border:1px solid #c8cdd3!important;
  border-radius:3px!important;
  padding:0 8px!important;
  background:#fff!important;
}
.supplier-order-title-v2{
  min-height:106px;
}
.supplier-flow-v2 span{
  min-height:28px;
}
.supplier-order-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  background:#fff;
  border-bottom:1px solid #d9dde3;
}
.supplier-order-kpis article{
  min-height:64px;
  display:grid;
  align-content:center;
  gap:5px;
  padding:12px 18px;
  border-right:1px solid #dfe3e8;
}
.supplier-order-kpis article:last-child{border-right:0}
.supplier-order-kpis span{
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.supplier-order-kpis strong{
  font-size:22px;
  line-height:1;
}
.supplier-order-kpis .warn strong{color:#b54708}
.supplier-order-kpis .ok strong{color:#0f7a3b}
.supplier-detail-v2{
  min-height:calc(100vh - 250px)!important;
}
.supplier-detail-table{
  min-width:980px;
  table-layout:fixed;
}
.supplier-detail-table th,
.supplier-detail-table td{
  height:40px!important;
  padding:7px 10px!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.supplier-detail-table td strong,
.supplier-detail-table td small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}
.supplier-detail-table td small{
  margin-top:3px;
  color:#596579;
}
.supplier-detail-table .line-pending td{
  background:#fffdf7;
}
.missing-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}
.missing-pill.warn{
  background:#fff3cd;
  color:#9a6700;
}
.missing-pill.ok{
  background:#dff7e8;
  color:#0f7a3b;
}
.inline-receive-form{
  display:flex;
  align-items:center;
  gap:6px;
}
.inline-receive-form input{
  width:54px;
  height:30px;
  border:1px solid #c8cdd3;
  border-radius:3px;
  padding:0 8px;
}
.inline-receive-form button{
  height:30px!important;
  padding:0 10px!important;
}
@media(max-width:1100px){
  .supplier-order-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .supplier-line-head-v2,.supplier-line-v2{grid-template-columns:180px minmax(190px,1fr) 70px 90px 90px!important}
  .supplier-new-item-panel{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .customer-picker{grid-template-columns:1fr}
  .customer-picker-create-inline{width:100%}
  .supplier-order-kpis{grid-template-columns:1fr}
  .supplier-new-item-panel{grid-template-columns:1fr}
}

/* v57: ordine fornitore piu leggibile */
.supplier-line-head-v2,
.supplier-line-v2{
  grid-template-columns:190px minmax(260px,1fr) 64px 90px 90px!important;
}
.supplier-product-cell{
  min-height:54px!important;
  grid-template-rows:30px 20px!important;
  gap:2px!important;
  padding:4px 6px!important;
}
.supplier-product-cell .line-product-picker{
  height:30px!important;
}
.supplier-create-item-toggle{
  height:20px!important;
  font-size:11px!important;
  line-height:1!important;
}
.supplier-create-item-toggle.active{
  color:#0f7a3b!important;
  background:#e8f7ee!important;
  border-radius:3px!important;
  padding-left:6px!important;
}
.supplier-item-modal-backdrop[hidden]{display:none!important}
.supplier-item-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:110;
  display:grid;
  align-items:start;
  justify-items:center;
  overflow:auto;
  padding:78px 24px 24px;
  background:rgba(33,37,43,.54);
}
.supplier-item-modal{
  width:720px;
  max-width:calc(100vw - 48px);
  background:#fff;
  border:1px solid #d4d9e1;
  border-radius:5px;
  box-shadow:0 20px 70px rgba(0,0,0,.28);
  overflow:hidden;
}
.supplier-item-modal header{
  min-height:72px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px 12px;
  border-bottom:1px solid #d9dde3;
}
.supplier-item-modal h2{
  margin:0;
  font-size:22px;
  font-weight:500;
}
.supplier-item-modal p{
  margin:5px 0 0;
  color:#596579;
}
.supplier-item-modal header button{
  width:30px;
  height:30px;
  border:1px solid #c7ced8;
  border-radius:4px;
  background:#fff;
}
.supplier-item-modal-body{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px 14px;
  padding:18px;
}
.supplier-item-modal-body label{
  display:grid;
  gap:6px;
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.supplier-item-modal-body label.wide{
  grid-column:1 / -1;
}
.supplier-item-modal-body input{
  height:36px;
  border:1px solid #c7ced8;
  border-radius:3px;
  padding:0 10px;
  font:inherit;
}
.supplier-item-modal footer{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:10px 18px;
  background:#f7f8fa;
  border-top:1px solid #d9dde3;
}
.supplier-detail-table{
  min-width:1180px!important;
}
.supplier-lines-card .supplier-detail-table th:first-child,
.supplier-lines-card .supplier-detail-table td:first-child{
  width:38px!important;
  text-align:center!important;
}
.supplier-lines-card .supplier-detail-table th:nth-child(2){
  width:360px!important;
}
.supplier-lines-card .supplier-detail-table td:nth-child(2){
  width:360px!important;
  white-space:normal!important;
  overflow:visible!important;
}
.supplier-lines-card .supplier-detail-table td:nth-child(2) strong,
.supplier-lines-card .supplier-detail-table td:nth-child(2) small{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.25;
}
.supplier-lines-card .supplier-detail-table th:nth-child(9){
  width:132px!important;
}
.supplier-detail-table th,
.supplier-detail-table td{
  height:auto!important;
  min-height:40px!important;
}
.linked-documents-card .pd-table-wrap{
  overflow:auto;
}
.linked-documents-table{
  min-width:780px!important;
  table-layout:fixed!important;
}
.linked-documents-table th:first-child,
.linked-documents-table td:first-child{
  width:310px!important;
  min-width:310px!important;
  text-align:left!important;
}
.linked-documents-table th:nth-child(2){width:170px!important}
.linked-documents-table th:nth-child(3){width:140px!important}
.linked-documents-table th:nth-child(4){width:180px!important}
.linked-documents-table th:nth-child(5){width:90px!important}
.linked-documents-table td:first-child a{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:760px){
  .supplier-item-modal-backdrop{padding:64px 12px 12px}
  .supplier-item-modal{max-width:calc(100vw - 24px)}
  .supplier-item-modal-body{grid-template-columns:1fr}
}

/* v58: modali cliente affidabili e lista ordini fornitori piu compatta */
.customer-create-backdrop{
  z-index:1200!important;
  padding:76px 24px 24px!important;
}
.customer-picker-backdrop{
  z-index:1100!important;
}
.customer-create-modal{
  width:760px!important;
  max-height:calc(100vh - 112px)!important;
}
.orders-crm-table th,
.orders-crm-table td{
  height:32px!important;
  padding:5px 10px!important;
}
.orders-crm-table .check-col{
  width:34px!important;
}
.orders-crm-table .table-main-link{
  display:inline-flex!important;
  align-items:center!important;
  min-height:20px!important;
  line-height:20px!important;
}
.orders-crm-table .tag{
  padding:2px 6px!important;
  line-height:16px!important;
}
.orders-crm-table .missing-pill{
  height:20px!important;
  min-width:24px!important;
  padding:0 7px!important;
}
.orders-crm-table .row-menu{
  width:42px!important;
  text-align:center!important;
}

/* v59: nuovo ordine fornitore riorganizzato */
.supplier-order-page{
  min-height:100%;
  background:#f4f4f6;
}
.supplier-order-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:14px;
  padding:14px 16px 24px;
}
.supplier-order-main{
  display:grid;
  gap:14px;
  min-width:0;
}
.supplier-order-panel{
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:5px;
}
.supplier-order-panel>header{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border-bottom:1px solid #e3e7ec;
}
.supplier-order-panel h2{
  margin:0 0 3px;
  font-size:18px;
  font-weight:700;
}
.supplier-order-panel p{
  margin:0;
  color:#596579;
  font-size:13px;
}
.panel-icon{
  width:30px;
  height:30px;
  border-radius:6px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
}
.panel-icon.blue{background:#0b66d8}
.panel-icon.green{background:#27874c}
.supplier-order-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:14px 18px;
  padding:16px;
}
.supplier-order-grid label,
.supplier-item-modal-grid-v3 label{
  display:grid;
  gap:6px;
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.supplier-order-grid .wide,
.supplier-item-modal-grid-v3 .wide{
  grid-column:1 / -1;
}
.supplier-order-grid input,
.supplier-order-grid select,
.supplier-order-grid textarea,
.supplier-item-modal-grid-v3 input,
.supplier-item-modal-grid-v3 select,
.supplier-item-modal-grid-v3 textarea{
  min-width:0;
  border:1px solid #c7ced8;
  border-radius:3px;
  background:#fff;
  color:#07111f;
  font:inherit;
}
.supplier-order-grid input,
.supplier-order-grid select,
.supplier-item-modal-grid-v3 input,
.supplier-item-modal-grid-v3 select{
  height:36px;
  padding:0 10px;
}
.supplier-order-grid textarea,
.supplier-item-modal-grid-v3 textarea{
  padding:9px 10px;
  resize:vertical;
}
.supplier-order-lines-v3{
  display:grid;
  gap:8px;
  padding:12px 16px 16px;
}
.supplier-order-line-card{
  display:grid;
  grid-template-columns:38px minmax(280px,1fr) minmax(280px,420px);
  align-items:stretch;
  gap:0;
  border:1px solid #d9dde3;
  border-radius:5px;
  background:#fff;
  overflow:hidden;
}
.supplier-line-index{
  display:grid;
  place-items:center;
  background:#f7f8fa;
  border-right:1px solid #d9dde3;
  color:#596579;
  font-weight:800;
}
.supplier-line-product{
  display:grid;
  gap:8px;
  padding:10px;
  border-right:1px solid #d9dde3;
}
.supplier-line-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.supplier-line-actions .line-product-picker{
  min-width:170px;
  justify-content:flex-start;
  color:#005ad6!important;
  font-weight:800!important;
}
.supplier-create-item-toggle.active{
  background:#e5f7ed!important;
  color:#0f7a3b!important;
  border-color:#a7e6bf!important;
}
.supplier-line-product input{
  height:34px;
  border:1px solid #c7ced8;
  border-radius:3px;
  padding:0 10px;
}
.supplier-line-state{
  min-height:18px;
  color:#596579;
  font-size:12px;
}
.supplier-line-numbers{
  display:grid;
  grid-template-columns:72px 1fr 1fr;
  gap:8px;
  padding:10px;
  background:#fbfcfd;
}
.supplier-line-numbers label{
  display:grid;
  gap:5px;
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.supplier-line-numbers input{
  height:34px;
  min-width:0;
  border:1px solid #c7ced8;
  border-radius:3px;
  padding:0 8px;
}
.supplier-order-aside{
  display:grid;
  align-content:start;
  gap:12px;
}
.supplier-order-aside section{
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:5px;
  padding:14px;
}
.supplier-order-aside h3{
  margin:0 0 10px;
  font-size:15px;
}
.supplier-order-aside p{
  margin:0;
  color:#344054;
  line-height:1.45;
}
.supplier-order-aside ol{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.supplier-order-aside li{
  display:grid;
  gap:2px;
  padding-left:14px;
  border-left:3px solid #dcebff;
}
.supplier-order-aside span{
  color:#596579;
  font-size:12px;
}
.supplier-item-modal-v3{
  width:980px!important;
}
.supplier-item-modal-grid-v3{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  max-height:calc(100vh - 220px);
  overflow:auto;
}
.supplier-item-modal-grid-v3 .double-input{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.supplier-item-modal-grid-v3 input[type=file]{
  padding:7px 10px;
}
.orders-crm-table{
  font-size:13px!important;
}
.orders-crm-table th,
.orders-crm-table td{
  height:28px!important;
  padding:4px 9px!important;
  line-height:1.2!important;
}
.orders-crm-table td small{
  display:none!important;
}
@media(max-width:1180px){
  .supplier-order-shell{grid-template-columns:1fr}
  .supplier-order-aside{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .supplier-order-grid,
  .supplier-item-modal-grid-v3{grid-template-columns:1fr!important}
  .supplier-order-line-card{grid-template-columns:34px minmax(0,1fr)}
  .supplier-line-numbers{grid-column:2;grid-template-columns:1fr 1fr 1fr;border-top:1px solid #d9dde3}
  .supplier-order-aside{grid-template-columns:1fr}
}

/* v60: ordine fornitore meno pesante e modale articolo pulita */
.supplier-order-page,
.supplier-order-page input,
.supplier-order-page select,
.supplier-order-page textarea,
.supplier-item-modal-v3,
.supplier-item-modal-v3 input,
.supplier-item-modal-v3 select,
.supplier-item-modal-v3 textarea{
  font-weight:400!important;
}
.supplier-order-panel h2,
.supplier-order-panel h3,
.supplier-order-aside h3,
.supplier-item-modal-v3 h2{
  font-weight:500!important;
}
.supplier-order-grid label,
.supplier-item-modal-grid-v3 label,
.supplier-line-numbers label{
  font-weight:500!important;
}
.supplier-order-grid input::placeholder,
.supplier-order-grid textarea::placeholder,
.supplier-item-modal-grid-v3 input::placeholder,
.supplier-item-modal-grid-v3 textarea::placeholder{
  font-weight:400!important;
  color:#6b7280!important;
}

/* v61: scheda prodotto unificata e combobox CRM senza menu nativi */
.product-editor-v2,
.product-editor-v2 input,
.product-editor-v2 textarea,
.product-editor-v2 button{
  font-family:Arial, Helvetica, sans-serif!important;
  font-size:14px!important;
}
.product-form-shell{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:14px!important;
  padding:14px 16px 28px!important;
  background:#f4f4f6!important;
}
.product-form-main{
  display:grid!important;
  gap:14px!important;
  min-width:0!important;
}
.product-form-panel,
.product-form-aside section{
  background:#fff!important;
  border:1px solid #d9dde3!important;
  border-radius:5px!important;
}
.product-form-panel>header{
  min-height:58px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px 16px!important;
  border-bottom:1px solid #dfe3e8!important;
}
.product-form-panel h2{
  margin:0 0 3px!important;
  font-size:18px!important;
  font-weight:500!important;
  color:#07111f!important;
}
.product-form-panel p{
  margin:0!important;
  color:#596579!important;
  font-size:13px!important;
}
.product-form-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(220px,1fr))!important;
  gap:14px 18px!important;
  padding:16px!important;
}
.product-form-grid.compact{
  grid-template-columns:repeat(4,minmax(120px,1fr))!important;
}
.product-form-grid label,
.pcp-combo-field{
  display:grid!important;
  gap:6px!important;
  color:#344054!important;
  font-weight:500!important;
  min-width:0!important;
  position:relative!important;
}
.product-form-grid label>span,
.pcp-combo-field>span{
  font-size:12px!important;
  color:#344054!important;
}
.product-form-grid .wide{
  grid-column:1 / -1!important;
}
.product-form-grid input,
.product-form-grid textarea,
.pcp-combo-control input{
  width:100%!important;
  min-width:0!important;
  border:1px solid #c8cdd3!important;
  border-radius:3px!important;
  background:#fff!important;
  color:#07111f!important;
  box-shadow:none!important;
  font-weight:400!important;
}
.product-form-grid input,
.pcp-combo-control input{
  height:36px!important;
  padding:0 10px!important;
}
.product-form-grid textarea{
  min-height:78px!important;
  padding:9px 10px!important;
  resize:vertical!important;
}
.product-form-grid input::placeholder,
.product-form-grid textarea::placeholder{
  color:#6b7280!important;
  font-weight:400!important;
}
.pcp-combo-control{
  display:grid!important;
  grid-template-columns:1fr 34px!important;
}
.pcp-combo-control input{
  border-radius:3px 0 0 3px!important;
}
.pcp-combo-toggle{
  width:34px!important;
  height:36px!important;
  border:1px solid #c8cdd3!important;
  border-left:0!important;
  border-radius:0 3px 3px 0!important;
  background:#fff!important;
  color:#344054!important;
  padding:0!important;
  font-size:15px!important;
}
.pcp-combo-field small{
  color:#667085!important;
  font-size:11px!important;
  font-weight:400!important;
}
.pcp-combo-menu{
  position:absolute!important;
  z-index:80!important;
  top:58px!important;
  left:0!important;
  right:0!important;
  max-height:238px!important;
  overflow:auto!important;
  background:#fff!important;
  border:1px solid #bfc6cf!important;
  border-radius:4px!important;
  box-shadow:0 10px 24px rgba(16,24,40,.18)!important;
  padding:4px!important;
}
.pcp-combo-menu button,
.pcp-combo-menu .empty{
  width:100%!important;
  min-height:30px!important;
  display:flex!important;
  align-items:center!important;
  border:0!important;
  background:#fff!important;
  color:#07111f!important;
  text-align:left!important;
  border-radius:3px!important;
  padding:6px 9px!important;
  font-weight:400!important;
}
.pcp-combo-menu button:hover{
  background:#eef6ff!important;
  color:#005ad6!important;
}
.pcp-combo-menu button.create{
  color:#0f7a3b!important;
  font-weight:600!important;
}
.pcp-combo-menu .empty{
  color:#667085!important;
  font-size:12px!important;
}
.product-form-aside{
  display:grid!important;
  align-content:start!important;
  gap:12px!important;
}
.product-form-aside section{
  padding:14px!important;
}
.product-form-aside h3{
  margin:0 0 12px!important;
  font-size:15px!important;
  font-weight:500!important;
}
.product-form-aside dl{
  display:grid!important;
  grid-template-columns:86px 1fr!important;
  gap:9px 10px!important;
  margin:0!important;
}
.product-form-aside dt{
  color:#344054!important;
  font-size:12px!important;
  font-weight:600!important;
}
.product-form-aside dd{
  margin:0!important;
}
.product-photo-drop{
  min-height:132px!important;
  display:grid!important;
  place-items:center!important;
  text-align:center!important;
}
.product-photo-drop span{
  color:#005ad6!important;
  font-weight:600!important;
}
@media(max-width:1100px){
  .product-form-shell{grid-template-columns:1fr!important}
  .product-form-aside{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .product-form-grid,
  .product-form-grid.compact{grid-template-columns:1fr!important}
  .product-form-aside{grid-template-columns:1fr!important}
}
.supplier-line-actions .line-product-picker,
.supplier-create-item-toggle,
.supplier-line-index,
.supplier-line-state{
  font-weight:500!important;
}

/* v62: specifiche prodotto dinamiche e nuova pagina PC assemblato */
.category-tech-hint{
  margin:0 0 14px!important;
  padding:9px 12px!important;
  border:1px solid #d7e5fb!important;
  border-radius:4px!important;
  background:#f1f7ff!important;
  color:#26415f!important;
  font-size:13px!important;
}
.product-form-grid [data-tech-field][hidden],
.product-form-grid [data-tech-field].is-hidden{
  display:none!important;
}
.pc-build-page{
  background:#f4f4f6!important;
}
.pc-build-shell{
  display:grid!important;
  grid-template-columns:minmax(680px,1fr) 340px!important;
  gap:0!important;
  min-height:calc(100vh - 188px)!important;
  background:#f4f4f6!important;
}
.pc-build-main{
  background:#fff!important;
  border-right:1px solid #d9dde3!important;
  padding:20px 24px 32px!important;
}
.pc-build-aside{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  padding:20px!important;
  background:#f4f4f6!important;
}
.pc-build-panel,
.pc-build-aside section{
  border:1px solid #d5dbe3!important;
  border-radius:4px!important;
  background:#fff!important;
}
.pc-build-panel{
  margin:0 0 14px!important;
  overflow:visible!important;
}
.pc-build-panel>header{
  min-height:58px!important;
  padding:13px 16px!important;
  border-bottom:1px solid #dfe3e8!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}
.pc-build-panel h2,
.pc-build-aside h3{
  margin:0!important;
  color:#07111f!important;
  font-size:17px!important;
  font-weight:700!important;
}
.pc-build-panel header p{
  margin:3px 0 0!important;
  color:#596579!important;
  font-size:13px!important;
}
.pc-build-icon{
  width:28px!important;
  height:28px!important;
  border-radius:5px!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:700!important;
  flex:0 0 28px!important;
}
.pc-build-icon.blue{background:#0b74de!important}
.pc-build-icon.green{background:#2d8f4e!important}
.pc-build-icon.purple{background:#6754e2!important}
.pc-build-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(220px,1fr))!important;
  gap:14px 24px!important;
  padding:16px!important;
}
.pc-build-grid.compact{
  grid-template-columns:repeat(2,minmax(180px,260px))!important;
}
.pc-build-grid label,
.pc-wide-field,
.pc-component-card label{
  display:grid!important;
  gap:6px!important;
  color:#344054!important;
  font-size:12px!important;
  font-weight:500!important;
}
.pc-build-grid input,
.pc-build-grid select,
.pc-wide-field textarea,
.pc-component-card input,
.pc-component-card select{
  width:100%!important;
  min-width:0!important;
  height:36px!important;
  border:1px solid #c7ced8!important;
  border-radius:3px!important;
  background:#fff!important;
  padding:0 10px!important;
  color:#07111f!important;
  font-size:13px!important;
}
.pc-wide-field{
  margin:0 16px 16px!important;
}
.pc-wide-field textarea{
  min-height:76px!important;
  height:auto!important;
  padding:9px 10px!important;
  resize:vertical!important;
}
.pc-component-list{
  display:grid!important;
  gap:10px!important;
  padding:14px 16px 16px!important;
}
.pc-component-card.document-line{
  display:grid!important;
  grid-template-columns:36px minmax(190px,230px) minmax(250px,1fr) minmax(240px,320px)!important;
  align-items:stretch!important;
  gap:0!important;
  border:1px solid #d9dde3!important;
  border-radius:4px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.pc-component-card.document-line>*{
  height:auto!important;
  min-height:0!important;
  border:0!important;
  border-right:1px solid #dfe3e8!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:#fff!important;
  padding:10px!important;
}
.pc-component-card.document-line>*:last-child{
  border-right:0!important;
}
.pc-component-index{
  display:grid!important;
  place-items:center!important;
  background:#f7f9fc!important;
  color:#344054!important;
  font-weight:700!important;
}
.pc-component-product{
  display:grid!important;
  gap:8px!important;
}
.pc-product-picker{
  height:34px!important;
  min-height:34px!important;
  justify-content:flex-start!important;
  border:1px solid #c7ced8!important;
  border-radius:3px!important;
  background:#fff!important;
  color:#005ad6!important;
  font-weight:500!important;
  padding:0 10px!important;
}
.pc-component-description input{
  height:70px!important;
}
.pc-component-numbers{
  display:grid!important;
  grid-template-columns:72px 1fr 1fr!important;
  gap:10px!important;
}
.pc-build-aside section{
  padding:14px!important;
}
.pc-build-aside dl{
  display:grid!important;
  grid-template-columns:92px 1fr!important;
  gap:9px 12px!important;
  margin:12px 0 0!important;
}
.pc-build-aside dt{
  color:#596579!important;
  font-size:12px!important;
  font-weight:700!important;
}
.pc-build-aside dd{
  margin:0!important;
  color:#07111f!important;
}
.pc-build-aside p{
  margin:10px 0 0!important;
  color:#344054!important;
  line-height:1.45!important;
}
.pc-build-flow{
  list-style:none!important;
  display:grid!important;
  gap:10px!important;
  margin:12px 0 0!important;
  padding:0!important;
}
.pc-build-flow li{
  display:grid!important;
  grid-template-columns:26px 1fr!important;
  column-gap:10px!important;
  align-items:start!important;
}
.pc-build-flow span{
  width:24px!important;
  height:24px!important;
  border-radius:50%!important;
  background:#e8f2ff!important;
  color:#005ad6!important;
  display:grid!important;
  place-items:center!important;
  font-weight:700!important;
}
.pc-build-flow strong{
  font-size:13px!important;
  color:#07111f!important;
}
.pc-build-flow small{
  display:block!important;
  margin-top:2px!important;
  color:#596579!important;
}
@media(max-width:1180px){
  .pc-build-shell{grid-template-columns:1fr!important}
  .pc-build-aside{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .pc-build-main{border-right:0!important}
}
@media(max-width:860px){
  .pc-build-grid,
  .pc-build-grid.compact{grid-template-columns:1fr!important}
  .pc-component-card.document-line{grid-template-columns:34px minmax(0,1fr)!important}
  .pc-component-description,
  .pc-component-numbers{grid-column:2!important}
  .pc-component-card.document-line>*{border-right:0!important;border-bottom:1px solid #dfe3e8!important}
  .pc-component-card.document-line>*:last-child{border-bottom:0!important}
  .pc-build-aside{grid-template-columns:1fr!important}
}

/* v63: picker prodotto globale con filtri e picker cliente sul PC assemblato */
.product-picker-modal{
  width:min(1080px,calc(100vw - 46px))!important;
  max-height:calc(100vh - 54px)!important;
}
.product-picker-search-v2{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:12px!important;
  align-items:center!important;
}
.product-picker-filters{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(150px,1fr))!important;
  gap:8px!important;
  padding:10px 16px!important;
  border-bottom:1px solid #d9dde3!important;
  background:#f8fafc!important;
}
.product-picker-filters select{
  height:34px!important;
  border:1px solid #c7ced8!important;
  border-radius:3px!important;
  background:#fff!important;
  padding:0 9px!important;
  font-size:13px!important;
}
.product-picker-body{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  min-height:420px!important;
  max-height:calc(100vh - 220px)!important;
}
.product-picker-categories{
  border-right:1px solid #d9dde3!important;
  background:#f4f6f8!important;
  overflow:auto!important;
  padding:8px!important;
}
.product-picker-categories button{
  width:100%!important;
  min-height:34px!important;
  border:0!important;
  border-radius:4px!important;
  background:transparent!important;
  color:#253041!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:7px 9px!important;
  text-align:left!important;
  font-size:13px!important;
}
.product-picker-categories button.active,
.product-picker-categories button:hover{
  background:#dcebff!important;
  color:#005ad6!important;
}
.product-picker-categories span{
  min-width:26px!important;
  height:20px!important;
  border-radius:999px!important;
  background:#e8edf4!important;
  color:#344054!important;
  display:grid!important;
  place-items:center!important;
  font-size:11px!important;
}
.product-picker-results{
  max-height:calc(100vh - 220px)!important;
  overflow:auto!important;
}
.product-result{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(150px,220px) 100px!important;
  gap:14px!important;
  align-items:center!important;
  min-height:58px!important;
}
.product-result-main{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}
.product-result-main strong,
.product-result strong{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.product-result-main small,
.product-result-tags{
  color:#596579!important;
  font-size:12px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.pc-build-customer-field{
  display:grid!important;
  gap:6px!important;
  color:#344054!important;
  font-size:12px!important;
  font-weight:500!important;
}
.pc-build-customer-field .customer-picker{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:8px!important;
}
.pc-build-customer-field .customer-picker-button{
  min-height:36px!important;
}
.pc-build-flow strong,
.pc-build-flow small{
  grid-column:2!important;
}
.pc-build-flow li{
  grid-template-columns:28px minmax(0,1fr)!important;
}
@media(max-width:820px){
  .product-picker-body{grid-template-columns:1fr!important}
  .product-picker-categories{display:none!important}
  .product-picker-filters{grid-template-columns:1fr 1fr!important}
  .product-result{grid-template-columns:1fr 88px!important}
  .product-result-tags{display:none!important}
}
.supplier-item-modal-grid-v3 select option{
  font-weight:400!important;
}

/* v65: pipeline a 4 colonne, storico ticket e scheda riparazione pulita */
.repair-pipeline{
  grid-template-columns:repeat(4,minmax(250px,1fr))!important;
  height:auto!important;
  min-height:420px;
  overflow:visible!important;
  padding-bottom:14px;
}
.repair-history-card{
  margin:0 14px 18px;
  border:1px solid #d9dde3;
  border-radius:5px;
  background:#fff;
  overflow:hidden;
}
.repair-history-card>header{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px;
  border-bottom:1px solid #dfe3e8;
}
.repair-history-card h2{
  margin:0;
  font-size:18px;
  font-weight:600;
}
.repair-history-card p{
  margin:3px 0 0;
  color:#596070;
}
.repair-history-card>header>span{
  color:#596070;
  white-space:nowrap;
}
.repair-history-table-wrap{
  max-height:420px;
  overflow:auto!important;
}
.repair-history-table{
  min-width:1040px!important;
}
.repair-history-table td,
.repair-history-table th{
  height:38px;
  padding-top:7px;
  padding-bottom:7px;
  vertical-align:middle;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:2px 8px;
  border-radius:999px;
  background:#eef2f7;
  color:#344054;
  font-size:12px;
  font-weight:600;
}
.status-pill.status-accettata{background:#eaf2ff;color:#0b66d8}
.status-pill.status-diagnosi{background:#fff4d6;color:#9a5b00}
.status-pill.status-attesa_ricambio{background:#fff1e8;color:#b54708}
.status-pill.status-pronto{background:#dcfce7;color:#087443}
.table-action-link{
  color:#005ad6;
  font-weight:600;
  text-decoration:none;
}
.repair-workspace-card,
.repair-workspace-card .crm-tab-panel,
.repair-workspace-card .record-card{
  min-width:0!important;
  max-width:100%!important;
}
.repair-workspace-card .crm-tab-panel{
  padding:16px;
  overflow:visible!important;
}
.repair-parts-card,
.files-card{
  overflow:visible!important;
}
.repair-part-picker-form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:start!important;
  max-width:100%!important;
  overflow:visible!important;
}
.repair-part-picker-line{
  display:grid!important;
  grid-template-columns:minmax(190px,1.2fr) minmax(180px,1fr) 78px 108px 108px!important;
  gap:8px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:visible!important;
  min-width:0!important;
}
.repair-part-picker-line>*{
  min-width:0!important;
  height:38px!important;
  border:1px solid #c8d0da!important;
  border-radius:4px!important;
  background:#fff!important;
  padding:0 10px!important;
}
.repair-part-picker-line .line-product-picker{
  justify-content:flex-start!important;
  color:#005ad6!important;
  font-weight:600!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.repair-part-picker-form>.green-btn{
  min-height:38px!important;
  white-space:nowrap!important;
}
.files-card .attachment-form,
.files-card .photo-upload-form{
  display:grid!important;
  grid-template-columns:minmax(180px,250px) minmax(160px,190px) minmax(220px,1fr) auto!important;
  gap:10px!important;
  align-items:end!important;
  max-width:100%!important;
  overflow:visible!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.files-card .attachment-form label{
  display:grid!important;
  gap:5px!important;
  min-width:0!important;
  color:#344054;
  font-size:12px;
  font-weight:600;
}
.files-card .attachment-form label span{
  display:block!important;
}
.files-card .attachment-form input,
.files-card .attachment-form select{
  width:100%!important;
  min-width:0!important;
  height:38px!important;
  border:1px solid #c8d0da!important;
  border-radius:4px!important;
  background:#fff!important;
  padding:0 10px!important;
}
.files-card .attachment-form button{
  min-height:38px!important;
  white-space:nowrap!important;
}
.repair-photo-grid{
  min-height:118px;
  border:1px dashed #d9dde3;
  border-radius:5px;
  padding:12px;
  background:#fbfcfd;
}
.repair-photo-grid>.empty-table,
.attachment-list>.empty-table{
  margin:0;
  padding:18px;
  text-align:center;
  color:#596070;
}
.attachment-list{
  margin-top:12px;
}
.attachment-row{
  min-width:0!important;
  grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) auto!important;
}
@media(max-width:1100px){
  .repair-pipeline{grid-template-columns:repeat(2,minmax(250px,1fr))!important}
  .repair-part-picker-form,
  .files-card .attachment-form,
  .files-card .photo-upload-form{grid-template-columns:1fr!important}
  .repair-part-picker-line{grid-template-columns:1fr 1fr!important}
}
@media(max-width:720px){
  .repair-pipeline{grid-template-columns:1fr!important}
  .repair-part-picker-line{grid-template-columns:1fr!important}
}

/* v64: flusso drag and drop riparazioni con conferma */
.repair-ticket-card{
  cursor:grab;
  position:relative;
}
.repair-ticket-card:active,
.repair-ticket-card.is-dragging{
  cursor:grabbing;
}
.repair-ticket-card.is-dragging{
  opacity:.55;
  transform:scale(.985);
}
.repair-ticket-card .drag-hint{
  display:block;
  margin-top:8px;
  color:#6b7280;
  font-size:11px;
}
.repair-lane.is-drop-target{
  outline:2px solid #2f80ed;
  outline-offset:-2px;
  background:#eef6ff;
}
.repair-flow-backdrop[hidden]{
  display:none!important;
}
.repair-flow-backdrop{
  position:fixed;
  inset:0;
  z-index:130;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:72px 18px 18px;
  background:rgba(17,24,39,.48);
}
.repair-flow-modal{
  width:min(980px,calc(100vw - 36px));
  max-height:calc(100vh - 96px);
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #cfd6df;
  border-radius:6px;
  box-shadow:0 24px 80px rgba(17,24,39,.28);
  overflow:hidden;
  color:#111827;
}
.repair-flow-modal header{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border-bottom:1px solid #dfe3e8;
  background:#fff;
}
.repair-flow-modal h2{
  margin:2px 0 0;
  font-size:20px;
  font-weight:600;
}
.flow-kicker{
  color:#596070;
  font-size:12px;
}
#repairFlowClose{
  width:32px;
  height:32px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  background:#fff;
}
.repair-flow-body{
  display:grid;
  grid-template-columns:300px 1fr;
  min-height:0;
  overflow:auto;
  background:#f4f4f6;
}
.repair-flow-summary{
  padding:18px;
  border-right:1px solid #dfe3e8;
  background:#fff;
}
.flow-ticket-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:2px 8px;
  border-radius:4px;
  background:#eaf2ff;
  color:#0b67d1;
  font-weight:700;
  font-size:12px;
}
.repair-flow-summary h3{
  margin:14px 0 2px;
  font-size:20px;
  font-weight:600;
}
.repair-flow-summary p{
  margin:0 0 16px;
  color:#596070;
}
.repair-flow-summary dl{
  margin:0;
  display:grid;
  gap:10px;
}
.repair-flow-summary dt{
  color:#596070;
  font-size:11px;
  text-transform:uppercase;
}
.repair-flow-summary dd{
  margin:2px 0 0;
  font-weight:500;
  overflow-wrap:anywhere;
}
.flow-open-link{
  display:inline-flex;
  margin-top:18px;
  color:#0b67d1;
  font-weight:600;
  text-decoration:none;
}
.repair-flow-main{
  display:grid;
  gap:14px;
  align-content:start;
  padding:18px;
}
.repair-flow-main label{
  display:grid;
  gap:6px;
  color:#1f2937;
  font-size:12px;
  font-weight:600;
}
.repair-flow-main input,
.repair-flow-main textarea{
  width:100%;
  min-height:36px;
  border:1px solid #c9d1dc;
  border-radius:4px;
  padding:8px 10px;
  background:#fff;
  color:#111827;
  font:inherit;
  font-weight:400;
}
.repair-flow-main textarea{
  min-height:78px;
  resize:vertical;
}
.flow-info-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px;
  border:1px solid #d8dee8;
  border-left:4px solid #6b7280;
  border-radius:5px;
  background:#fff;
}
.flow-info-card h3{
  margin:0 0 4px;
  font-size:15px;
  font-weight:600;
}
.flow-info-card p{
  margin:0;
  color:#596070;
}
.flow-info-card.tone-blue{border-left-color:#2f80ed}
.flow-info-card.tone-orange{border-left-color:#f59e0b}
.flow-info-card.tone-green{border-left-color:#299b55}
.flow-icon{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eaf2ff;
  color:#0b67d1;
  font-weight:700;
}
.flow-grid-2,
.flow-grid-3{
  display:grid;
  gap:12px;
}
.flow-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.flow-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.flow-grid-2 .wide{grid-column:1/-1}
.flow-check{
  display:flex!important;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:8px!important;
  font-weight:500!important;
}
.flow-check input{
  width:16px!important;
  min-height:16px!important;
}
.flow-product-search{
  display:grid;
  gap:8px;
}
.flow-selected-part{
  min-height:32px;
  display:flex;
  align-items:center;
  padding:7px 10px;
  border:1px dashed #c9d1dc;
  border-radius:4px;
  color:#596070;
  background:#fff;
}
.flow-product-results{
  display:grid;
  max-height:240px;
  overflow:auto;
  border:1px solid #dfe3e8;
  border-radius:4px;
  background:#fff;
}
.flow-product-results:empty{
  display:none;
}
.flow-product-results button{
  display:grid;
  grid-template-columns:1fr auto;
  gap:2px 12px;
  text-align:left;
  border:0;
  border-bottom:1px solid #edf0f3;
  background:#fff;
  padding:10px 12px;
  cursor:pointer;
}
.flow-product-results button:hover{
  background:#f2f7ff;
}
.flow-product-results strong{
  font-weight:600;
}
.flow-product-results span{
  color:#596070;
}
.flow-product-results em{
  grid-row:1/3;
  grid-column:2;
  align-self:center;
  font-style:normal;
  font-weight:600;
}
.flow-supplier-order{
  border:1px solid #dfe3e8;
  border-radius:5px;
  background:#fff;
}
.flow-supplier-order summary{
  cursor:pointer;
  padding:10px 12px;
  font-weight:600;
}
.flow-supplier-order .flow-grid-2{
  padding:0 12px 12px;
}
.flow-total-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:52px;
  padding:12px;
  border:1px solid #dfe3e8;
  border-radius:5px;
  background:#fff;
}
.flow-total-panel span{
  color:#596070;
}
.flow-total-panel strong{
  font-size:22px;
}
.flow-existing-parts{
  padding:12px;
  border:1px solid #dfe3e8;
  border-radius:5px;
  background:#fff;
}
.flow-existing-parts h3{
  margin:0 0 8px;
  font-size:14px;
}
.flow-existing-parts p{
  margin:4px 0;
  color:#596070;
}
.repair-flow-modal footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-height:56px;
  padding:12px 18px;
  border-top:1px solid #dfe3e8;
  background:#fff;
}
.repair-flow-modal footer button{
  min-height:34px;
  padding:0 14px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  background:#fff;
  font-weight:600;
}
.repair-flow-modal footer .green-btn{
  border-color:#23824b;
  background:#23824b;
  color:#fff;
}
.repair-flow-error{
  margin-right:auto;
  color:#c62828;
  font-weight:600;
}
@media (max-width:900px){
  .repair-flow-backdrop{padding:58px 8px 8px}
  .repair-flow-body{grid-template-columns:1fr}
  .repair-flow-summary{border-right:0;border-bottom:1px solid #dfe3e8}
  .flow-grid-2,.flow-grid-3{grid-template-columns:1fr}
}

/* Smoke-test fixes v66 */
.inventory-filterbar{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  overflow:visible!important;
}
.inventory-filterbar .product-filter-tabs{
  flex:0 0 auto!important;
}
.inventory-filterbar input[name="q"]{
  flex:1 1 320px!important;
  min-width:240px!important;
}
.inventory-filterbar select{
  flex:1 1 145px!important;
  min-width:118px!important;
  max-width:220px!important;
}
.inventory-filterbar .pd-btn{
  flex:0 0 96px!important;
}
.report-page .pipe-card,
.report-page .report-span-2{
  min-width:0!important;
  overflow:hidden!important;
}
.report-page .report-table{
  table-layout:fixed!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.report-page .report-table th,
.report-page .report-table td{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Step 1 - catalogo e selettori uniformi */
.pcp-combo-menu,
.supplier-item-modal,
.product-picker-modal {
  color-scheme: light;
}
.pcp-combo-menu {
  background: #fff !important;
  border-color: #cfd4dc !important;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .16) !important;
}
.pcp-combo-menu button,
.pcp-combo-menu .empty,
.product-result strong,
.supplier-item-modal-v3 input,
.supplier-item-modal-v3 select,
.supplier-item-modal-v3 textarea {
  font-weight: 500 !important;
}
.pcp-combo-menu button {
  color: #172033 !important;
  background: #fff !important;
}
.pcp-combo-menu button:hover,
.pcp-combo-menu button.create {
  color: #005ad6 !important;
  background: #eef5ff !important;
}
.product-result strong {
  color: #172033 !important;
}
.product-result b {
  font-weight: 600 !important;
}
.category-tech-hint {
  background: #eef5ff;
  border: 1px solid #b7d8ff;
  color: #123b65;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.order-combo-field {
  position: relative;
  display: grid;
  gap: 7px;
}
.order-combo-field > span,
.order-combo-field {
  font-weight: 600;
}
.order-combo-control {
  display: grid;
  grid-template-columns: 1fr 34px;
  border: 1px solid #c8cdd3;
  border-radius: 4px;
  background: #fff;
}
.order-combo-control input {
  border: 0 !important;
  height: 36px !important;
  min-width: 0;
  padding: 0 10px !important;
  font-weight: 500 !important;
}
.order-combo-control button {
  border: 0;
  border-left: 1px solid #dfe3e8;
  background: #fff;
  color: #344054;
  cursor: pointer;
}
.order-combo-menu {
  position: absolute;
  z-index: 130;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #cfd4dc;
  border-radius: 5px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .16);
  padding: 4px;
  color-scheme: light;
}
.order-combo-menu[hidden] {
  display: none !important;
}
.order-combo-menu button,
.order-combo-menu .empty {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #172033;
  text-align: left;
  padding: 7px 9px;
  font-weight: 500;
}
.order-combo-menu button:hover,
.order-combo-menu button.create {
  color: #005ad6;
  background: #eef5ff;
}
.order-combo-menu .empty {
  color: #596070;
}

/* Step 3 - PC assemblati */
.pc-build-flow strong,
.pc-build-flow small {
  min-width: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: normal !important;
}
.pc-build-flow li {
  align-items: flex-start !important;
}
.pc-component-card .line-product-picker {
  font-weight: 600 !important;
}

/* Step 4 - operational tables */
.orders-crm-table th,
.orders-crm-table td {
  height: 32px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  font-size: 13px !important;
}

.orders-crm-table td small {
  display: none !important;
}

.orders-crm-table .table-main-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
}

.orders-crm-table .missing-pill {
  min-width: 22px !important;
  height: 20px !important;
  padding: 0 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.repair-history-card {
  margin-top: 16px !important;
}

.repair-history-table th,
.repair-history-table td {
  height: 34px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* Step 5 - cleaner pickers and detail pages */
.customer-picker {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: start !important;
}

.customer-picker-option strong,
.product-result strong,
.product-result-main strong {
  font-weight: 500 !important;
}

.customer-picker-option {
  min-height: 46px !important;
  padding: 8px 12px !important;
}

.customer-picker-list {
  max-height: min(520px, calc(100vh - 250px)) !important;
}

.customer-picker-create-inline {
  height: 36px !important;
  white-space: nowrap !important;
}

.customer-create-modal {
  max-height: calc(100vh - 96px) !important;
  overflow: auto !important;
}

.product-picker-modal {
  width: min(980px, calc(100vw - 36px)) !important;
  max-height: calc(100vh - 74px) !important;
}

.product-result {
  min-height: 52px !important;
  padding: 9px 12px !important;
}

.product-result-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}

.product-result-tags em {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 120px !important;
  height: 22px !important;
  padding: 0 7px !important;
  border-radius: 4px !important;
  background: #eef5ff !important;
  color: #0b66d8 !important;
  font-style: normal !important;
  font-size: 11px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.product-result b {
  font-weight: 600 !important;
  color: #07111f !important;
}

.supplier-lines-card .supplier-detail-table td:nth-child(2) {
  white-space: normal !important;
}

.supplier-lines-card .supplier-detail-table td:nth-child(2) strong {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-weight: 600 !important;
}

.supplier-lines-card .supplier-detail-table td,
.supplier-lines-card .supplier-detail-table th {
  height: 34px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.linked-documents-table th:first-child,
.linked-documents-table td:first-child {
  width: 320px !important;
  min-width: 320px !important;
  max-width: none !important;
  text-align: left !important;
}

.linked-documents-table th:first-child {
  white-space: nowrap !important;
}

/* Step 6 - opportunity center */
.action-center-card {
  margin: 14px 0 18px;
}

.action-center-card > header {
  padding-bottom: 10px;
}

.action-center-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 10px;
}

.action-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border: 1px solid #d8dde6;
  border-left-width: 4px;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.action-card.ok {
  border-left-color: #2f8f4e;
}

.action-card.warn {
  border-left-color: #f0a202;
}

.action-card.danger {
  border-left-color: #d92d20;
}

.action-card-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 12px;
  border-bottom: 1px solid #edf0f5;
}

.action-card-head h3 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.25;
}

.action-card-head p {
  margin: 0;
  color: #596070;
  font-size: 12px;
  line-height: 1.35;
}

.action-card-head strong {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eef5ff;
  color: #005ad6;
  font-size: 14px;
}

.action-card.warn .action-card-head strong {
  background: #fff4d6;
  color: #9a6700;
}

.action-card.danger .action-card-head strong {
  background: #fee4e2;
  color: #b42318;
}

.action-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  border-radius: 7px;
  background: #eef5ff;
  position: relative;
}

.action-icon:before,
.action-icon:after {
  content: "";
  position: absolute;
}

.action-icon.target:before {
  inset: 7px;
  border: 2px solid #6f5ee8;
  border-radius: 50%;
}

.action-icon.check:before {
  left: 8px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #2f8f4e;
  border-bottom: 2px solid #2f8f4e;
  transform: rotate(-45deg);
}

.action-icon.megaphone:before {
  left: 7px;
  top: 8px;
  width: 13px;
  height: 10px;
  border-radius: 3px;
  background: #0b66d8;
  clip-path: polygon(0 20%, 70% 0, 70% 100%, 0 80%);
}

.action-icon.money:before {
  left: 8px;
  top: 5px;
  color: #16863c;
  content: "€";
  font-weight: 700;
  font-size: 16px;
}

.action-icon.card:before {
  left: 7px;
  top: 8px;
  width: 14px;
  height: 12px;
  border: 2px solid #0b66d8;
  border-radius: 3px;
}

.action-card-list {
  flex: 1;
  padding: 6px 8px;
}

.action-card-list a {
  display: grid;
  gap: 2px;
  padding: 7px 6px;
  border-radius: 5px;
  color: #172033;
  text-decoration: none;
}

.action-card-list a:hover {
  background: #f3f7ff;
}

.action-card-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.action-card-list small,
.action-empty {
  color: #667085;
  font-size: 11px;
}

.action-empty {
  flex: 1;
  padding: 14px 12px;
}

.action-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-top: 1px solid #edf0f5;
  background: #fbfcfe;
  color: #005ad6;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

@media (max-width: 1400px) {
  .action-center-grid {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
  }
}

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

/* Step 7 - customer insight strip */
.customer-action-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  border-top: 1px solid #d8dde6;
  border-bottom: 1px solid #d8dde6;
  background: #fff;
}

.customer-action {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 11px 14px;
  border-right: 1px solid #e2e6ee;
  color: #172033;
  text-decoration: none;
}

.customer-action:last-child {
  border-right: 0;
}

.customer-action span {
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}

.customer-action strong {
  color: #07111f;
  font-size: 18px;
  line-height: 1.1;
}

.customer-action small {
  color: #667085;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-action.ok {
  box-shadow: inset 0 3px 0 #2f8f4e;
}

.customer-action.warn {
  box-shadow: inset 0 3px 0 #f0a202;
}

.customer-action.danger {
  box-shadow: inset 0 3px 0 #d92d20;
}

.customer-action:hover {
  background: #f7faff;
}

.focus-feed .sale-dot {
  background: #2f8f4e;
  border-color: #d1fadf;
}

@media (max-width: 1100px) {
  .customer-action-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pc-check-field {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
  min-height: 38px;
}

.pc-check-field input {
  flex: 0 0 auto;
}

.pc-total-tools {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
}

.pc-total-tools span {
  color: var(--muted);
  font-size: 12px;
}

.pc-live-total dl dd {
  font-weight: 700;
}

.pc-live-total dl dt:last-of-type,
.pc-live-total dl dd:last-of-type {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 8px;
}

.pc-build-table-wrap .pd-table {
  min-width: 860px!important;
}

.pc-build-table-wrap .pd-table th:first-child,
.pc-build-table-wrap .pd-table td:first-child {
  text-align: left!important;
  width: auto!important;
}

.pc-components-table .pc-component-col {
  width: 42%;
}

.pc-components-table .pc-role-col {
  width: 15%;
}

.pc-components-table .pc-qty-col {
  width: 8%;
}

.pc-components-table .pc-money-col {
  width: 14%;
}

.pc-components-table .pc-status-col {
  width: 11%;
}

.pc-movements-table .pc-date-col {
  width: 190px;
}

.pc-movements-table .pc-role-col {
  width: 150px;
}

.pc-movements-table .pc-qty-col {
  width: 90px;
}

.pc-movements-table .pc-reference-col {
  width: auto;
}

.pc-components-table td:first-child,
.pc-movements-table td:last-child {
  white-space: normal!important;
  overflow-wrap: anywhere!important;
}

.pc-components-table td,
.pc-movements-table td {
  height: 44px!important;
}

/* v76: global polish pass - clean colored icons, compact tables, safer controls */
body.pd-ui {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif!important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.pd-ui * {
  letter-spacing: 0!important;
}

body.pd-ui a,
body.pd-ui button,
body.pd-ui input,
body.pd-ui select,
body.pd-ui textarea {
  font-family: inherit!important;
}

body.pd-ui select,
body.pd-ui option {
  background: #fff!important;
  color: #111827!important;
  font-weight: 400!important;
}

body.pd-ui button:disabled,
body.pd-ui .disabled,
body.pd-ui [aria-disabled="true"] {
  cursor: not-allowed!important;
  opacity: .56!important;
}

body.pd-ui a:focus-visible,
body.pd-ui button:focus-visible,
body.pd-ui input:focus-visible,
body.pd-ui select:focus-visible,
body.pd-ui textarea:focus-visible {
  outline: 2px solid #0b66d8!important;
  outline-offset: 2px!important;
}

/* Rail icons stay simple and crisp: no icon font, no oversized symbols. */
.rail nav a {
  color: rgba(255,255,255,.86)!important;
}

.rail nav a.active,
.rail nav a:hover {
  color: #fff!important;
}

.rail .ico {
  width: 20px!important;
  height: 20px!important;
  color: currentColor!important;
  opacity: .98!important;
}

.rail .ico.money:before,
.rail .ico.more:before {
  font-family: Inter, "Segoe UI", Arial, sans-serif!important;
  font-size: 19px!important;
  line-height: 20px!important;
}

.rail nav a:nth-child(1).active { box-shadow: inset 3px 0 0 #74c0fc; }
.rail nav a:nth-child(2).active { box-shadow: inset 3px 0 0 #4dabf7; }
.rail nav a:nth-child(3).active { box-shadow: inset 3px 0 0 #8ce99a; }
.rail nav a:nth-child(4).active { box-shadow: inset 3px 0 0 #ffd43b; }
.rail nav a:nth-child(5).active { box-shadow: inset 3px 0 0 #b197fc; }
.rail nav a:nth-child(6).active { box-shadow: inset 3px 0 0 #63e6be; }
.rail nav a:nth-child(7).active { box-shadow: inset 3px 0 0 #91a7ff; }
.rail nav a:nth-child(8).active { box-shadow: inset 3px 0 0 #ffa94d; }
.rail nav a:nth-child(9).active { box-shadow: inset 3px 0 0 #ced4da; }

.small-ico {
  color: #475467!important;
}

.small-ico:hover,
.top-notification-link:hover {
  color: #0b66d8!important;
}

.top-plus {
  display: grid!important;
  place-items: center!important;
  font-size: 0!important;
  position: relative!important;
}

.top-plus:before,
.top-plus:after {
  content: ""!important;
  position: absolute!important;
  left: 50%!important;
  top: 50%!important;
  width: 14px!important;
  height: 2px!important;
  background: #344054!important;
  border-radius: 999px!important;
  transform: translate(-50%,-50%)!important;
}

.top-plus:after {
  transform: translate(-50%,-50%) rotate(90deg)!important;
}

/* Button/action icons: colored chips, not heavy pictograms. */
.icon-action {
  display: inline-flex!important;
  align-items: center!important;
  justify-content: center!important;
  gap: 7px!important;
}

.icon-action:before,
.pd-btn.icon-action:before,
.page-actions .icon-action:before,
.page-tools .icon-action:before,
.drawer-actions .icon-action:before {
  width: 16px!important;
  height: 16px!important;
  min-width: 16px!important;
  border: 0!important;
  border-radius: 4px!important;
  display: inline-grid!important;
  place-items: center!important;
  color: #fff!important;
  font-size: 10px!important;
  line-height: 16px!important;
  font-weight: 800!important;
  box-shadow: none!important;
  background: #667085!important;
  box-sizing: border-box!important;
}

.icon-add:before { content: "+"!important; background: #2d8f4e!important; }
.icon-list:before { content: ""!important; background: linear-gradient(#fff 0 0) 4px 4px/8px 2px no-repeat, linear-gradient(#fff 0 0) 4px 7px/8px 2px no-repeat, linear-gradient(#fff 0 0) 4px 10px/8px 2px no-repeat, #0b66d8!important; }
.icon-pipeline:before { content: ""!important; background: linear-gradient(#fff 0 0) 4px 4px/3px 8px no-repeat, linear-gradient(#fff 0 0) 8px 4px/3px 8px no-repeat, linear-gradient(#fff 0 0) 12px 4px/3px 8px no-repeat, #6553df!important; }
.icon-archive:before { content: ""!important; background: linear-gradient(#fff 0 0) 4px 5px/8px 2px no-repeat, linear-gradient(#fff 0 0) 4px 9px/8px 2px no-repeat, #667085!important; }
.icon-filter:before { content: ""!important; background: linear-gradient(135deg, transparent 0 36%, #fff 37% 62%, transparent 63%) center/12px 12px no-repeat, #0b66d8!important; }
.icon-lab:before { content: ""!important; background: radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 4px), #7c6cf2!important; }
.icon-money-btn:before { content: "E"!important; background: #2d8f4e!important; }
.icon-chart-btn:before { content: ""!important; background: linear-gradient(#fff 0 0) 4px 9px/2px 4px no-repeat, linear-gradient(#fff 0 0) 7px 6px/2px 7px no-repeat, linear-gradient(#fff 0 0) 10px 4px/2px 9px no-repeat, #f59f00!important; }
.icon-order:before { content: ""!important; background: linear-gradient(#fff 0 0) 4px 5px/8px 2px no-repeat, linear-gradient(#fff 0 0) 4px 9px/8px 2px no-repeat, #0f7a3b!important; }
.icon-check-btn:before { content: ""!important; background: linear-gradient(135deg, transparent 0 43%, #fff 44% 55%, transparent 56%) 2px 5px/10px 7px no-repeat, #6553df!important; }
.icon-check-btn:after { display: none!important; }
.icon-print:before { content: ""!important; background: linear-gradient(#fff 0 0) 4px 4px/8px 3px no-repeat, linear-gradient(#fff 0 0) 4px 9px/8px 4px no-repeat, #0b66d8!important; }
.icon-cancel:before { content: "x"!important; background: #d92d20!important; }

.quick-icon:before {
  width: 22px!important;
  height: 22px!important;
  min-width: 22px!important;
  border-radius: 6px!important;
  margin-right: 10px!important;
  display: inline-grid!important;
  place-items: center!important;
  color: #fff!important;
  font-size: 11px!important;
  font-weight: 800!important;
  line-height: 22px!important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25)!important;
}

.quick-customer:before { content: "C"!important; background: #0b66d8!important; }
.quick-repair:before { content: "T"!important; background: #6553df!important; }
.quick-sale:before { content: "E"!important; background: #2d8f4e!important; }
.quick-quote:before { content: "P"!important; background: #7c6cf2!important; }
.quick-product:before { content: "M"!important; background: #f59f00!important; }
.quick-order:before { content: "O"!important; background: #0f7a3b!important; }
.quick-pc:before { content: "PC"!important; background: #344054!important; font-size: 9px!important; }

/* Tables: Pipedrive-like density and predictable action column. */
.pd-table {
  font-size: 14px!important;
  line-height: 1.25!important;
}

.pd-table th,
.pd-table td {
  height: 36px!important;
  min-height: 36px!important;
  padding: 6px 10px!important;
  font-weight: 400!important;
}

.pd-table th {
  font-weight: 600!important;
  color: #111827!important;
}

.pd-table td {
  overflow: hidden!important;
  text-overflow: ellipsis!important;
}

.pd-table td small {
  font-weight: 400!important;
}

.pd-table td:last-child:has(.row-menu),
.pd-table th:last-child:has(.row-menu),
.pd-table td:last-child:has(.dots-btn),
.pd-table th:last-child:has(.dots-btn) {
  width: 44px!important;
  max-width: 44px!important;
  min-width: 44px!important;
  text-align: center!important;
  padding-left: 4px!important;
  padding-right: 4px!important;
}

.row-menu,
.dots-btn,
button[aria-label="Azioni"] {
  width: 30px!important;
  min-width: 30px!important;
  height: 28px!important;
  display: inline-grid!important;
  place-items: center!important;
  border-radius: 4px!important;
}

.table-main-link,
.pd-table a {
  font-weight: 500!important;
}

.tag,
.income-tag,
.expense-tag,
.task-badge,
.count-badge {
  height: 20px!important;
  min-height: 20px!important;
  line-height: 20px!important;
  padding: 0 7px!important;
  border-radius: 5px!important;
  font-size: 11px!important;
  font-weight: 600!important;
  white-space: nowrap!important;
}

.tag.status-pronta,
.tag.status-consegnato,
.status-completata,
.income-tag {
  background: #dff7e8!important;
  color: #0f7a3b!important;
}

.tag.status-diagnosi,
.tag.status-in-diagnosi,
.tag.status-ordinato {
  background: #eaf2ff!important;
  color: #0b66d8!important;
}

.tag.status-attesa,
.tag.status-in-attesa-ricambio,
.tag.status-da-ricevere,
.task-badge.warning {
  background: #fff3cd!important;
  color: #8a5a00!important;
}

.tag.status-annullato,
.tag.status-annullata,
.expense-tag,
.task-badge.danger {
  background: #ffe3e3!important;
  color: #b42318!important;
}

/* Pickers/modals: lighter text and better spacing on shared selection dialogs. */
.customer-picker-option strong,
.product-result strong,
.supplier-item-modal-v3,
.supplier-item-modal-v3 input,
.supplier-item-modal-v3 select,
.supplier-item-modal-v3 textarea,
.customer-picker-modal,
.customer-create-modal,
.product-picker-modal {
  font-weight: 400!important;
}

.customer-picker-option strong,
.product-result strong {
  font-weight: 500!important;
}

.customer-picker-option,
.product-result {
  min-height: 46px!important;
}

.customer-picker-modal,
.customer-create-modal,
.product-picker-modal,
.supplier-item-modal,
.supplier-item-modal-v3 {
  border-radius: 8px!important;
}

.customer-picker-search input,
.product-picker-search input,
.product-picker-filters select,
.customer-create-modal input,
.supplier-item-modal-v3 input,
.supplier-item-modal-v3 select,
.supplier-item-modal-v3 textarea {
  font-weight: 400!important;
}

.product-picker-categories button,
.product-picker-results button {
  font-weight: 500!important;
}

/* File/upload strips often overflow: keep them tidy globally. */
.attachment-form,
.photo-upload-form,
.repair-part-picker-form,
.linked-documents-card form {
  min-width: 0!important;
}

.attachment-form input,
.photo-upload-form input,
.repair-part-picker-line input,
.repair-part-picker-line button,
.linked-documents-card input,
.linked-documents-card button {
  min-width: 0!important;
}

input[type="file"] {
  max-width: 100%!important;
}

/* Detail tables with product names need room to breathe. */
.pc-components-table td,
.pc-movements-table td,
.sale-detail-table .pd-table td,
.orders-crm-table td {
  height: 38px!important;
}

.pc-components-table td:first-child,
.sale-detail-table .pd-table td:first-child,
.orders-crm-table td:first-child {
  overflow: visible!important;
  text-overflow: clip!important;
  white-space: normal!important;
}

/* v77: wider left navigation with visible labels */
:root {
  --rail-wide: 208px;
}

body.pd-ui .rail {
  width: var(--rail-wide)!important;
  align-items: stretch!important;
  padding: 0 8px!important;
}

body.pd-ui .topbar,
body.pd-ui .workspace {
  left: var(--rail-wide)!important;
}

body.pd-ui .rail .logo {
  width: auto!important;
  height: 56px!important;
  margin: 0 8px 4px!important;
  justify-content: flex-start!important;
  display: flex!important;
  align-items: center!important;
  padding-left: 8px!important;
  font-size: 34px!important;
}

body.pd-ui .rail nav {
  width: 100%!important;
  padding: 6px 0!important;
  gap: 3px!important;
}

body.pd-ui .rail nav a {
  width: auto!important;
  height: 40px!important;
  display: flex!important;
  align-items: center!important;
  justify-content: flex-start!important;
  gap: 12px!important;
  padding: 0 12px!important;
  border-radius: 6px!important;
  color: rgba(255,255,255,.86)!important;
  text-decoration: none!important;
}

body.pd-ui .rail nav a:hover {
  background: rgba(255,255,255,.10)!important;
}

body.pd-ui .rail nav a.active {
  background: #6553df!important;
  color: #fff!important;
}

body.pd-ui .rail .ico {
  flex: 0 0 20px!important;
  width: 20px!important;
  height: 20px!important;
}

body.pd-ui .rail .nav-label {
  display: block!important;
  min-width: 0!important;
  overflow: hidden!important;
  text-overflow: ellipsis!important;
  white-space: nowrap!important;
  font-size: 13px!important;
  font-weight: 600!important;
  line-height: 1!important;
}

body.pd-ui .rail .user-dot {
  width: auto!important;
  height: 38px!important;
  margin: auto 0 10px!important;
  border-radius: 6px!important;
  display: flex!important;
  align-items: center!important;
  justify-content: flex-start!important;
  gap: 10px!important;
  padding: 0 12px!important;
  background: rgba(255,255,255,.10)!important;
  color: #fff!important;
  font-weight: 700!important;
  text-decoration: none!important;
}

body.pd-ui .rail .user-dot:after {
  content: "Account";
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  :root {
    --rail-wide: 56px;
  }

  body.pd-ui .rail {
    width: 56px!important;
    padding: 0!important;
    align-items: center!important;
  }

  body.pd-ui .rail .logo {
    width: 56px!important;
    justify-content: center!important;
    padding-left: 0!important;
    margin: 0!important;
  }

  body.pd-ui .rail nav {
    padding: 6px 5px!important;
  }

  body.pd-ui .rail nav a {
    width: 42px!important;
    height: 42px!important;
    justify-content: center!important;
    padding: 0!important;
  }

  body.pd-ui .rail .nav-label,
  body.pd-ui .rail .user-dot:after {
    display: none!important;
  }

  body.pd-ui .rail .user-dot {
    width: 34px!important;
    height: 34px!important;
    justify-content: center!important;
    padding: 0!important;
  }
}

/* v78: settings split into dedicated pages */
.settings-pages .settings-pipe-main {
  background: #fff!important;
}

.settings-pages .settings-pipe-group a {
  text-decoration: none!important;
}

.settings-pages .settings-pipe-ico {
  width: 24px!important;
  height: 24px!important;
  min-width: 24px!important;
  border-radius: 6px!important;
  display: inline-grid!important;
  place-items: center!important;
  background: #eef4ff!important;
  color: #0b66d8!important;
  font-size: 11px!important;
  font-weight: 800!important;
}

.settings-pages .settings-pipe-group a.active .settings-pipe-ico {
  background: #0b66d8!important;
  color: #fff!important;
}

.settings-single-page {
  margin-left: 24px!important;
  margin-right: 24px!important;
  max-width: 980px!important;
}

.settings-overview-grid {
  border: 0!important;
  display: grid!important;
  grid-template-columns: repeat(4, minmax(0, 1fr))!important;
  gap: 12px!important;
  background: transparent!important;
}

.settings-overview-grid article {
  background: #fff!important;
  border: 1px solid #d9dde3!important;
  border-radius: 6px!important;
  padding: 16px!important;
  display: grid!important;
  gap: 6px!important;
}

.settings-overview-grid span {
  color: #596070!important;
  font-size: 12px!important;
  font-weight: 700!important;
}

.settings-overview-grid strong {
  font-size: 28px!important;
  line-height: 1!important;
}

.settings-overview-grid a {
  color: #005ad6!important;
  font-weight: 700!important;
  text-decoration: none!important;
}

.settings-detail-card {
  max-width: 1080px!important;
}

.settings-card-actions {
  border-top: 1px solid #eef0f3!important;
  padding: 14px 16px!important;
}

.settings-info-list {
  display: grid!important;
  gap: 10px!important;
  padding: 16px!important;
}

.settings-info-list article {
  border: 1px solid #edf0f5!important;
  border-radius: 6px!important;
  padding: 12px!important;
  display: grid!important;
  gap: 3px!important;
}

.settings-info-list span {
  color: #596070!important;
}

.settings-backup-grid {
  display: grid!important;
  grid-template-columns: 1fr 1fr!important;
  gap: 12px!important;
  padding: 16px!important;
}

.settings-backup-grid .backup-restore-form {
  border: 1px solid #dfe3e8!important;
  border-radius: 6px!important;
  padding: 14px!important;
  margin: 0!important;
}

.settings-backup-grid .danger-zone {
  border-color: #fda29b!important;
  background: #fffafa!important;
}

@media (max-width: 1100px) {
  .settings-overview-grid,
  .settings-backup-grid {
    grid-template-columns: 1fr!important;
  }
}

/* v79: unified settings navigation and PC Plus CRM wordmark */
body.pd-ui .rail .logo.logo-wordmark {
  align-items: center!important;
  color: #fff!important;
  display: flex!important;
  gap: 9px!important;
  height: 58px!important;
  justify-content: flex-start!important;
  margin: 0 6px 6px!important;
  padding-left: 6px!important;
  text-decoration: none!important;
}

body.pd-ui .rail .logo-mark {
  align-items: center!important;
  background: #fff!important;
  border-radius: 7px!important;
  color: #21194f!important;
  display: inline-flex!important;
  flex: 0 0 34px!important;
  font-size: 12px!important;
  font-weight: 900!important;
  height: 34px!important;
  justify-content: center!important;
  line-height: 1!important;
  width: 34px!important;
}

body.pd-ui .rail .logo-text {
  color: #fff!important;
  display: block!important;
  font-size: 14px!important;
  font-weight: 800!important;
  line-height: 1.05!important;
  overflow: hidden!important;
  text-overflow: ellipsis!important;
  white-space: nowrap!important;
}

.settings-pages {
  display: grid!important;
  grid-template-columns: 240px minmax(0, 1fr)!important;
  min-height: calc(100vh - 56px)!important;
}

.settings-pages .settings-pipe-nav {
  background: #f1f3f6!important;
  border-right: 1px solid #d9dde3!important;
  padding: 22px 8px!important;
}

.settings-pages .settings-pipe-main {
  min-width: 0!important;
  overflow: auto!important;
}

.settings-pages .settings-head,
.settings-pages .pipedrive-settings-head {
  background: #fff!important;
  border: 1px solid #d9dde3!important;
  border-radius: 6px!important;
  margin: 18px 24px 16px!important;
  min-height: 72px!important;
  padding: 16px!important;
}

.settings-pages .settings-head h1,
.settings-pages .pipedrive-settings-head h1 {
  font-size: 24px!important;
  margin: 0 0 4px!important;
}

.settings-pages .settings-panel,
.settings-pages .settings-overview,
.settings-pages .catalog-editor-grid,
.settings-pages .whatsapp-grid {
  margin-left: 24px!important;
  margin-right: 24px!important;
}

@media (max-width: 900px) {
  body.pd-ui .rail .logo.logo-wordmark {
    justify-content: center!important;
    margin: 0!important;
    padding-left: 0!important;
  }

  body.pd-ui .rail .logo-text {
    display: none!important;
  }

  .settings-pages {
    grid-template-columns: 1fr!important;
  }

  .settings-pages .settings-pipe-nav {
    border-bottom: 1px solid #d9dde3!important;
    border-right: 0!important;
  }
}

/* v80: dashboard opportunity radar */
.revenue-opportunity-grid {
  display: grid!important;
  grid-template-columns: repeat(2, minmax(0, 1fr))!important;
  gap: 10px!important;
}

.revenue-opportunity {
  background: #fff!important;
  border: 1px solid #d9dde3!important;
  border-radius: 6px!important;
  min-width: 0!important;
  overflow: hidden!important;
}

.revenue-opportunity-head {
  align-items: center!important;
  border-bottom: 1px solid #eef0f3!important;
  display: grid!important;
  gap: 10px!important;
  grid-template-columns: 28px minmax(0, 1fr) auto!important;
  min-height: 60px!important;
  padding: 10px 12px!important;
  text-decoration: none!important;
}

.revenue-opportunity-head > span {
  border-radius: 8px!important;
  display: block!important;
  height: 28px!important;
  position: relative!important;
  width: 28px!important;
}

.revenue-opportunity-head > span:after {
  color: #fff!important;
  content: "+"!important;
  font-size: 16px!important;
  font-weight: 800!important;
  left: 50%!important;
  line-height: 1!important;
  position: absolute!important;
  top: 50%!important;
  transform: translate(-50%, -50%)!important;
}

.revenue-opportunity.good .revenue-opportunity-head > span { background: #2d8f4e!important; }
.revenue-opportunity.warn .revenue-opportunity-head > span { background: #f0a202!important; }
.revenue-opportunity.danger .revenue-opportunity-head > span { background: #d92d20!important; }
.revenue-opportunity.neutral .revenue-opportunity-head > span { background: #0b66d8!important; }

.revenue-opportunity-head strong,
.revenue-opportunity-head small {
  display: block!important;
  min-width: 0!important;
  overflow: hidden!important;
  text-overflow: ellipsis!important;
  white-space: nowrap!important;
}

.revenue-opportunity-head strong {
  color: #111827!important;
  font-size: 14px!important;
  font-weight: 700!important;
}

.revenue-opportunity-head small {
  color: #667085!important;
  font-size: 12px!important;
  margin-top: 2px!important;
}

.revenue-opportunity-head b {
  color: #111827!important;
  font-size: 16px!important;
  font-weight: 800!important;
  white-space: nowrap!important;
}

.revenue-opportunity-list {
  display: grid!important;
  gap: 0!important;
  padding: 4px 8px 8px!important;
}

.revenue-opportunity-list a {
  align-items: center!important;
  border-radius: 4px!important;
  color: #1f2937!important;
  display: grid!important;
  gap: 8px!important;
  grid-template-columns: minmax(0, 1fr) auto!important;
  min-height: 30px!important;
  padding: 5px 6px!important;
  text-decoration: none!important;
}

.revenue-opportunity-list a:hover {
  background: #f3f7ff!important;
}

.revenue-opportunity-list span,
.revenue-opportunity-list em {
  min-width: 0!important;
  overflow: hidden!important;
  text-overflow: ellipsis!important;
  white-space: nowrap!important;
}

.revenue-opportunity-list span {
  font-size: 12px!important;
}

.revenue-opportunity-list em {
  color: #667085!important;
  font-size: 11px!important;
  font-style: normal!important;
}

.revenue-opportunity-list p {
  color: #667085!important;
  font-size: 12px!important;
  margin: 8px 6px 4px!important;
}

@media (max-width: 1200px) {
  .revenue-opportunity-grid {
    grid-template-columns: 1fr!important;
  }
}

/* v81: product health and recent sales */
.product-health-card {
  background: #fff!important;
  border: 1px solid #d9dde3!important;
  border-radius: 6px!important;
  margin-top: 14px!important;
  overflow: hidden!important;
}

.product-health-card > header {
  align-items: center!important;
  border-bottom: 1px solid #eef0f3!important;
  display: flex!important;
  gap: 12px!important;
  justify-content: space-between!important;
  min-height: 60px!important;
  padding: 12px 14px!important;
}

.product-health-card h2 {
  font-size: 16px!important;
  margin: 0!important;
}

.product-health-card header p {
  color: #667085!important;
  font-size: 12px!important;
  margin: 4px 0 0!important;
}

.product-health-badge {
  border-radius: 999px!important;
  font-size: 12px!important;
  font-weight: 700!important;
  padding: 5px 10px!important;
  white-space: nowrap!important;
}

.product-health-badge.ok { background: #dff6e8!important; color: #087443!important; }
.product-health-badge.warn { background: #fff1cc!important; color: #a15c00!important; }
.product-health-badge.danger { background: #ffe3e0!important; color: #b42318!important; }
.product-health-badge.neutral { background: #e8f1ff!important; color: #0b66d8!important; }

.product-health-grid {
  display: grid!important;
  gap: 0!important;
  grid-template-columns: repeat(4, minmax(0, 1fr))!important;
}

.product-health-grid > div {
  border-bottom: 1px solid #eef0f3!important;
  border-right: 1px solid #eef0f3!important;
  min-width: 0!important;
  padding: 12px 14px!important;
}

.product-health-grid > div:last-child {
  border-right: 0!important;
}

.product-health-grid small,
.product-health-grid span {
  color: #667085!important;
  display: block!important;
  font-size: 12px!important;
  overflow: hidden!important;
  text-overflow: ellipsis!important;
  white-space: nowrap!important;
}

.product-health-grid strong {
  color: #111827!important;
  display: block!important;
  font-size: 20px!important;
  font-weight: 800!important;
  line-height: 1.2!important;
  margin: 5px 0 3px!important;
}

.product-health-alerts {
  display: grid!important;
  gap: 8px!important;
  padding: 12px 14px 14px!important;
}

.product-health-alert {
  border: 1px solid #d9dde3!important;
  border-left-width: 4px!important;
  border-radius: 5px!important;
  display: grid!important;
  gap: 3px!important;
  padding: 9px 10px!important;
}

.product-health-alert b {
  font-size: 13px!important;
}

.product-health-alert span {
  color: #4b5563!important;
  font-size: 12px!important;
}

.product-health-alert.ok { border-left-color: #2d8f4e!important; }
.product-health-alert.warn { border-left-color: #f0a202!important; }
.product-health-alert.danger { border-left-color: #d92d20!important; }
.product-health-alert.neutral { border-left-color: #0b66d8!important; }

.recent-product-sales-card {
  margin-top: 14px!important;
}

.compact-pd-table th,
.compact-pd-table td {
  height: 34px!important;
  padding-bottom: 6px!important;
  padding-top: 6px!important;
}

@media (max-width: 1200px) {
  .product-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))!important;
  }

  .product-health-grid > div:nth-child(2n) {
    border-right: 0!important;
  }
}

@media (max-width: 700px) {
  .product-health-grid {
    grid-template-columns: 1fr!important;
  }

  .product-health-grid > div {
    border-right: 0!important;
  }
}

/* v82: sale profitability control */
.sale-health-strip {
  align-items: flex-start!important;
  background: #fff!important;
  border-bottom: 1px solid #d9dde3!important;
  border-top: 1px solid #d9dde3!important;
  display: grid!important;
  gap: 10px!important;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr)!important;
  padding: 12px 16px!important;
}

.sale-health-main {
  align-items: center!important;
  display: grid!important;
  gap: 10px!important;
  grid-template-columns: 34px minmax(0, 1fr)!important;
}

.sale-health-icon {
  border-radius: 8px!important;
  display: block!important;
  height: 34px!important;
  position: relative!important;
  width: 34px!important;
}

.sale-health-icon:after {
  color: #fff!important;
  content: "%"!important;
  font-size: 15px!important;
  font-weight: 800!important;
  left: 50%!important;
  position: absolute!important;
  top: 50%!important;
  transform: translate(-50%, -50%)!important;
}

.sale-health-strip.ok .sale-health-icon { background: #2d8f4e!important; }
.sale-health-strip.warn .sale-health-icon { background: #f0a202!important; }
.sale-health-strip.danger .sale-health-icon { background: #d92d20!important; }

.sale-health-main strong {
  color: #111827!important;
  display: block!important;
  font-size: 14px!important;
}

.sale-health-main p {
  color: #667085!important;
  font-size: 12px!important;
  margin: 2px 0 0!important;
}

.sale-health-alerts {
  align-items: center!important;
  display: flex!important;
  flex-wrap: wrap!important;
  gap: 8px!important;
  justify-content: flex-end!important;
}

.sale-health-alerts span {
  border-radius: 999px!important;
  font-size: 12px!important;
  line-height: 1.25!important;
  max-width: 360px!important;
  overflow: hidden!important;
  padding: 6px 10px!important;
  text-overflow: ellipsis!important;
  white-space: nowrap!important;
}

.sale-health-alerts .ok { background: #dff6e8!important; color: #087443!important; }
.sale-health-alerts .warn { background: #fff1cc!important; color: #a15c00!important; }
.sale-health-alerts .danger { background: #ffe3e0!important; color: #b42318!important; }

.sale-line-card dl dd.ok,
.sale-line-card dl dd.positive {
  color: #087443!important;
}

.sale-line-card dl dd.warn {
  color: #a15c00!important;
}

.sale-line-card dl dd.danger {
  color: #b42318!important;
}

.sale-line-card dl dd small {
  color: inherit!important;
  display: inline!important;
  font-size: 11px!important;
  margin-left: 4px!important;
}

.sale-detail-table .pd-table td strong,
.sale-detail-table .pd-table td small {
  display: block!important;
  min-width: 0!important;
  overflow: hidden!important;
  text-overflow: ellipsis!important;
  white-space: nowrap!important;
}

.sale-detail-table .pd-table td small {
  color: #667085!important;
  font-size: 11px!important;
  margin-top: 2px!important;
}

@media (max-width: 1000px) {
  .sale-health-strip {
    grid-template-columns: 1fr!important;
  }

  .sale-health-alerts {
    justify-content: flex-start!important;
  }
}

/* v83: customer next actions */
.customer-insights-card {
  background: #fff!important;
  border: 1px solid #d9dde3!important;
  border-radius: 6px!important;
  margin: 12px 0 18px!important;
  overflow: hidden!important;
}

.customer-insights-card header {
  align-items: center!important;
  border-bottom: 1px solid #eef0f3!important;
  display: flex!important;
  justify-content: space-between!important;
  min-height: 46px!important;
  padding: 10px 14px!important;
}

.customer-insights-card h2 {
  font-size: 15px!important;
  margin: 0!important;
}

.customer-insights-card header span {
  background: #eaf2ff!important;
  border-radius: 999px!important;
  color: #0b66d8!important;
  font-size: 12px!important;
  font-weight: 800!important;
  min-width: 24px!important;
  padding: 4px 8px!important;
  text-align: center!important;
}

.customer-insights-list {
  display: grid!important;
  gap: 0!important;
}

.customer-insight {
  align-items: center!important;
  border-bottom: 1px solid #eef0f3!important;
  color: #111827!important;
  display: grid!important;
  gap: 10px!important;
  grid-template-columns: 30px minmax(0, 1fr)!important;
  min-height: 58px!important;
  padding: 10px 14px!important;
  text-decoration: none!important;
}

.customer-insight:last-child {
  border-bottom: 0!important;
}

.customer-insight:hover {
  background: #f3f8ff!important;
}

.customer-insight > span {
  border-radius: 8px!important;
  display: block!important;
  height: 30px!important;
  position: relative!important;
  width: 30px!important;
}

.customer-insight > span:after {
  color: #fff!important;
  content: "i"!important;
  font-size: 15px!important;
  font-weight: 900!important;
  left: 50%!important;
  position: absolute!important;
  top: 50%!important;
  transform: translate(-50%, -50%)!important;
}

.customer-insight.ok > span { background: #2d8f4e!important; }
.customer-insight.warn > span { background: #f0a202!important; }
.customer-insight.danger > span { background: #d92d20!important; }
.customer-insight.neutral > span { background: #0b66d8!important; }

.customer-insight strong,
.customer-insight small {
  display: block!important;
  min-width: 0!important;
  overflow: hidden!important;
  text-overflow: ellipsis!important;
  white-space: nowrap!important;
}

.customer-insight strong {
  font-size: 13px!important;
  font-weight: 700!important;
}

.customer-insight small {
  color: #667085!important;
  font-size: 12px!important;
  margin-top: 2px!important;
}

/* v84: customer edit access */
.contacts-inbox-table th:nth-child(7),
.contacts-inbox-table .contacts-row-actions {
  max-width: 108px!important;
  min-width: 108px!important;
  padding: 0 8px!important;
  width: 108px!important;
}

.contacts-row-actions {
  align-items: center!important;
  display: flex!important;
  gap: 8px!important;
  justify-content: flex-end!important;
}

.contacts-row-actions .row-action-link {
  background: #fff!important;
  border: 1px solid #c8cdd3!important;
  border-radius: 4px!important;
  color: #005ad6!important;
  font-size: 12px!important;
  font-weight: 700!important;
  height: 26px!important;
  line-height: 24px!important;
  padding: 0 8px!important;
  text-decoration: none!important;
}

.contacts-row-actions .row-action-link:hover {
  background: #eaf2ff!important;
  border-color: #9ac4ff!important;
}

.contacts-row-actions .row-action-dots {
  color: #344054!important;
  font-size: 18px!important;
  font-weight: 800!important;
  line-height: 1!important;
  text-decoration: none!important;
}

.pc-action-ico.edit {
  background: #f0a202!important;
}

.pc-action-ico.edit:before {
  content: "✎"!important;
}
.supplier-line-product-cell {
  min-width: 360px;
}

.supplier-line-name-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.supplier-line-name-form input {
  height: 32px;
  border: 1px solid #cfd7e3;
  border-radius: 4px;
  padding: 0 10px;
  font: inherit;
  color: #17233c;
  background: #fff;
}

.supplier-line-name-form .pd-btn {
  height: 32px;
  white-space: nowrap;
}

.pc-linked-repair-banner {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #b7d3ff;
  background: #f2f7ff;
  border-radius: 6px;
  padding: 12px;
  color: #17233c;
}

.pc-linked-repair-banner strong,
.linked-pc-row strong {
  display: block;
  font-weight: 600;
}

.pc-linked-repair-banner small,
.linked-pc-row span {
  display: block;
  margin-top: 3px;
  color: #5d687a;
}

.linked-pc-card {
  margin: 14px 0;
}

.linked-pc-row {
  display: block;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.linked-pc-row + .linked-pc-row {
  margin-top: 8px;
}

.linked-pc-row:hover {
  border-color: #0b66e4;
  background: #f8fbff;
}

.linked-repair-card {
  border-left: 3px solid #0b66e4;
}

.assign-customer-title {
  background: #fff;
}

.assign-customer-page {
  align-items: flex-start;
}

.assign-customer-card header,
.assign-summary-card h2,
.assignment-list-card header,
.assigned-items-card header {
  align-items: center;
  gap: 12px;
}

.assign-customer-card header p,
.assignment-list-card header p,
.assigned-items-card header p {
  margin: 3px 0 0;
  color: #5f6b7a;
  font-size: 13px;
}

.assign-picker-wrap .customer-picker {
  max-width: 620px;
}

.assign-product-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dfe5ee;
  background: #f8fafc;
  margin-bottom: 16px;
}

.assign-product-row img,
.assignment-product-avatar {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border: 1px solid #d7dee8;
  background: #fff;
}

.assignment-product-avatar {
  display: grid;
  place-items: center;
  color: #0b66d8;
  background: #eaf3ff;
  font-weight: 700;
}

.assign-product-row strong,
.assignment-row strong {
  display: block;
  color: #172033;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assign-product-row small,
.assignment-row span {
  color: #5f6b7a;
}

.assignment-stock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e6f4ea;
  color: #137333;
  font-size: 12px;
  font-weight: 700;
}

.assign-summary-card dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  margin: 12px 0 0;
}

.assign-summary-card dt {
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 700;
}

.assign-summary-card dd {
  margin: 0;
  color: #172033;
}

.assignment-detail-list .assignment-row {
  grid-template-columns: minmax(160px, 1.2fr) minmax(220px, 1.6fr) auto;
}

.supplier-detail-table .assign-line-btn {
  margin: 0 0 6px;
  width: 100%;
  justify-content: center;
}

.assign-customer-page{
  display:grid!important;
  grid-template-columns:minmax(620px,1fr) 320px!important;
  gap:16px!important;
  padding:18px!important;
  background:#f4f4f6!important;
  align-items:start!important;
}
.assign-customer-main,.assign-customer-side{display:grid!important;gap:14px!important;min-width:0!important}
.assign-customer-card,.assign-summary-card{border-radius:5px!important;overflow:hidden!important}
.assign-customer-card header{min-height:62px!important;padding:14px 16px!important;border-bottom:1px solid #dfe3e8!important;background:#fff!important}
.assign-picker-wrap{padding:16px!important;background:#fff!important}
.assign-picker-wrap .customer-picker{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;max-width:760px!important}
.assign-picker-wrap .customer-picker-button{width:100%!important;text-align:left!important;min-height:42px!important}
.assign-product-row{margin:0 16px 16px!important;border-radius:5px!important;background:#f8fafc!important}
.assign-fields-grid{display:grid!important;grid-template-columns:160px minmax(220px,1fr)!important;gap:12px!important;padding:0 16px 14px!important}
.assign-fields-grid label,.assign-note-field{display:grid!important;gap:6px!important;color:#344054!important;font-size:12px!important;font-weight:700!important}
.assign-fields-grid input,.assign-fields-grid select,.assign-note-field textarea{height:36px!important;border:1px solid #c8cdd3!important;border-radius:4px!important;background:#fff!important;padding:0 10px!important;color:#07111f!important}
.assign-note-field{padding:0 16px 16px!important}
.assign-note-field textarea{height:92px!important;padding:9px 10px!important;resize:vertical!important}
.assign-form-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;padding:0!important}
.assignment-stock-pill.warning{background:#fff4d6!important;color:#8a4b00!important}
.assign-summary-card{padding:16px!important;background:#fff!important}
.assign-summary-card h2{margin:0 0 12px!important;font-size:17px!important}
.assign-side-note{margin:14px 0 0!important;border-left:3px solid #f59e0b!important;background:#fff8e6!important;padding:10px!important;color:#5f3b00!important;line-height:1.4!important}

.supplier-line-editor{
  display:grid!important;
  grid-template-columns:minmax(320px,1.4fr) 150px minmax(260px,1fr) auto!important;
  gap:10px!important;
  align-items:end!important;
  width:100%!important;
  max-width:1040px!important;
  background:#f8fafc!important;
  border:1px solid #d9dee7!important;
  border-radius:4px!important;
  padding:10px!important;
}
.supplier-line-editor label{
  display:grid!important;
  gap:4px!important;
  color:#596070!important;
  font-size:11px!important;
  font-weight:700!important;
}
.supplier-line-editor input{
  height:34px!important;
  border:1px solid #c8cdd3!important;
  border-radius:4px!important;
  background:#fff!important;
  padding:0 9px!important;
  min-width:0!important;
  color:#07111f!important;
}
.supplier-line-editor input[type=file]{
  height:auto!important;
  min-height:34px!important;
  padding:6px!important;
  font-size:12px!important;
  line-height:1.2!important;
}
.supplier-line-editor button{height:34px!important;white-space:nowrap!important}
.supplier-line-product-cell small{display:block!important;margin-top:6px!important;color:#6b7280!important;font-size:11px!important;font-weight:500!important}
.supplier-line-product-cell strong{
  display:block!important;
  max-width:420px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.supplier-line-edit-row td{
  background:#f8fafc!important;
  border-top:0!important;
  padding:10px 12px!important;
}

@media(max-width:1100px){
  .assign-customer-page{grid-template-columns:1fr!important}
  .supplier-line-editor{grid-template-columns:1fr!important}
  .supplier-line-editor .line-photo-field,.supplier-line-editor button{grid-column:1/-1!important}
  .inventory-detail-title .owner-actions{justify-content:flex-start!important}
}

.product-title.inventory-detail-title h1{
  max-width:860px!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.product-title.inventory-detail-title .owner-actions{
  min-width:520px!important;
}
.product-title.inventory-detail-title .owner-actions button,
.product-title.inventory-detail-title .owner-actions .pd-btn,
.product-title.inventory-detail-title .owner-actions .danger-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:70px!important;
  max-width:126px!important;
}
.product-title.inventory-detail-title .owner-actions .danger-btn{
  background:#fff!important;
  border-color:#d92d20!important;
  color:#b42318!important;
}

/* Inventory grid and dashboard clarity v92 */
.inventory-product-photo{
  height:168px!important;
  background:#f8fafc!important;
  padding:8px!important;
}
.inventory-product-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
  background:#fff!important;
  border-radius:4px!important;
}
.inventory-product-card{
  border-radius:6px!important;
}
.inventory-product-body{
  min-height:136px!important;
}

.shop-overview{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(300px,.9fr);
  gap:12px;
  padding:16px;
  background:#f4f4f6;
  border-bottom:1px solid #dfe3e8;
}
.shop-overview-main,
.shop-overview-side{
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:6px;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
.shop-overview-main{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.shop-overview-main>div{
  min-width:0;
  padding:18px 18px 16px;
  border-right:1px solid #eef0f3;
}
.shop-overview-main>div:last-child{border-right:0}
.overview-icon{
  width:34px;
  height:34px;
  border-radius:8px;
  display:grid;
  place-items:center;
  margin-bottom:12px;
  color:#fff;
  font-weight:900;
}
.overview-icon.sales{background:#0b66d8}
.overview-icon.sales:before{content:"E"}
.overview-icon.margin{background:#0f7a3b}
.overview-icon.margin:before{content:"M"}
.overview-icon.cash{background:#6553df}
.overview-icon.cash:before{content:"C"}
.shop-overview p,
.shop-overview span{
  margin:0;
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.shop-overview strong{
  display:block;
  margin-top:8px;
  color:#07111f;
  font-size:30px;
  line-height:1.05;
  letter-spacing:0;
}
.shop-overview em{
  display:block;
  margin-top:8px;
  color:#596070;
  font-size:12px;
  font-style:normal;
}
.shop-overview em.good{color:#0f7a3b}
.shop-overview em.bad{color:#b42318}
.shop-overview-side{
  display:grid;
}
.shop-overview-side a{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid #eef0f3;
  color:#07111f;
}
.shop-overview-side a:last-child{border-bottom:0}
.shop-overview-side strong{
  grid-column:2;
  grid-row:1/3;
  align-self:center;
  font-size:22px;
}
.shop-overview-side em{
  grid-column:1;
}

.today-focus-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding:0 16px 16px;
  background:#f4f4f6;
  border-bottom:1px solid #dfe3e8;
}
.focus-tile{
  position:relative;
  min-height:92px;
  background:#fff;
  border:1px solid #d9dde3;
  border-left:5px solid #9aa4b2;
  border-radius:6px;
  padding:14px 14px 12px 46px;
  color:#07111f;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
.focus-tile:before{
  position:absolute;
  left:14px;
  top:15px;
  width:22px;
  height:22px;
  border-radius:6px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  font-size:12px;
}
.focus-tile.cash{border-left-color:#2d8f4e}.focus-tile.cash:before{content:"E";background:#2d8f4e}
.focus-tile.quote{border-left-color:#6553df}.focus-tile.quote:before{content:"P";background:#6553df}
.focus-tile.order{border-left-color:#0b66d8}.focus-tile.order:before{content:"O";background:#0b66d8}
.focus-tile.alert{border-left-color:#f59f00}.focus-tile.alert:before{content:"!";background:#f59f00}
.focus-tile span{
  display:block;
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.focus-tile strong{
  display:block;
  margin-top:6px;
  font-size:24px;
  color:#07111f;
}
.focus-tile em{
  display:block;
  margin-top:4px;
  color:#596070;
  font-size:12px;
  font-style:normal;
}
.clean-action-list{
  display:grid;
  gap:8px;
  padding:12px 14px 14px;
}
.clean-action-list a{
  display:grid;
  grid-template-columns:1fr auto;
  gap:3px 12px;
  min-height:58px;
  padding:10px 12px;
  border:1px solid #eef0f3;
  border-left:4px solid #cfd6df;
  border-radius:5px;
  background:#fbfcfd;
  color:#07111f;
}
.clean-action-list a.danger{border-left-color:#d92d20;background:#fff8f8}
.clean-action-list a.warn{border-left-color:#f59f00;background:#fffaf0}
.clean-action-list a.ok{border-left-color:#2d8f4e;background:#f7fdf9}
.clean-action-list span{
  color:#07111f;
  font-weight:800;
  font-size:13px;
}
.clean-action-list strong{
  grid-column:2;
  grid-row:1/3;
  align-self:center;
  min-width:30px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#eef2f7;
  color:#07111f;
}
.clean-action-list em{
  grid-column:1;
  color:#596070;
  font-style:normal;
  font-size:12px;
  line-height:1.35;
}
.dashboard-grid{
  padding-top:16px!important;
}

@media(max-width:1280px){
  .shop-overview{grid-template-columns:1fr}
  .today-focus-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .shop-overview-main,
  .today-focus-grid{grid-template-columns:1fr}
  .shop-overview-main>div{border-right:0;border-bottom:1px solid #eef0f3}
  .shop-overview-main>div:last-child{border-bottom:0}
  .shop-overview strong{font-size:25px}
}

/* Quotes delete and accounting command center v93 */
.quote-row-actions{
  width:124px!important;
  min-width:124px!important;
  padding:0 8px!important;
  white-space:nowrap;
}
.quote-row-actions a,
.quote-row-actions button{
  border:0;
  background:transparent;
  color:#005ad6;
  font:inherit;
  font-weight:700;
  padding:0 5px;
  cursor:pointer;
}
.quote-row-actions form{
  display:inline;
}
.quote-row-actions button{
  color:#b42318;
}

.accounting-command-page .insights-main{
  background:#f4f4f6;
}
.accounting-command-head{
  min-height:86px;
  padding:18px 20px;
  background:#fff;
  border-bottom:1px solid #dfe3e8;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.accounting-command-head h1{
  margin:0;
  font-size:25px;
  color:#07111f;
}
.accounting-command-head p{
  margin:5px 0 0;
  color:#596070;
}
.accounting-head-actions{
  display:flex;
  gap:8px;
  align-items:center;
}
.accounting-health-strip{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  padding:14px 16px;
}
.accounting-health-strip article{
  min-height:104px;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:6px;
  padding:13px 14px;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
.accounting-health-strip span{
  display:block;
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.accounting-health-strip strong{
  display:block;
  margin-top:8px;
  font-size:25px;
  color:#07111f;
}
.accounting-health-strip em{
  display:block;
  margin-top:6px;
  color:#596070;
  font-size:12px;
  font-style:normal;
}
.accounting-health-strip .is-income strong{color:#067647}
.accounting-health-strip .is-expense strong{color:#b42318}
.accounting-health-strip .is-warning{border-left:4px solid #f59f00}

.accounting-command-filter{
  margin:0 16px 14px;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:6px;
  padding:10px;
  display:grid;
  grid-template-columns:1.4fr 170px 170px 150px 150px auto auto;
  gap:8px;
}
.accounting-command-filter input,
.accounting-command-filter select,
.accounting-command-filter button{
  height:34px;
  border:1px solid #c8cdd3;
  border-radius:4px;
  background:#fff;
  padding:0 9px;
  color:#07111f;
}
.accounting-command-filter button{
  background:#0b66d8;
  color:#fff;
  border-color:#0b66d8;
  font-weight:800;
}

.accounting-command-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:12px;
  padding:0 16px 14px;
}
.accounting-command-card,
.accounting-ledger-panel{
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:6px;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
  overflow:hidden;
}
.accounting-command-chart{
  grid-row:span 2;
}
.accounting-command-card header,
.accounting-ledger-panel header{
  min-height:58px;
  padding:13px 14px;
  border-bottom:1px solid #eef0f3;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.accounting-command-card h2,
.accounting-ledger-panel h2{
  margin:0;
  font-size:16px;
  color:#07111f;
}
.accounting-command-card small,
.accounting-ledger-panel small{
  color:#596070;
}
.accounting-check-list,
.accounting-split-list,
.accounting-due-stack{
  display:grid;
  gap:8px;
  padding:12px 14px 14px;
}
.accounting-check-list a,
.accounting-split-list div,
.accounting-due-stack a{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  align-items:center;
  min-height:48px;
  padding:9px 10px;
  border:1px solid #eef0f3;
  border-radius:5px;
  background:#fbfcfd;
  color:#07111f;
}
.accounting-check-list span,
.accounting-split-list span,
.accounting-due-stack span{
  color:#596070;
  font-size:12px;
}
.accounting-check-list strong,
.accounting-split-list strong,
.accounting-due-stack b{
  grid-column:2;
  grid-row:1/3;
  align-self:center;
  color:#07111f;
}
.accounting-split-list em{
  color:#596070;
  font-size:12px;
  font-style:normal;
}
.accounting-split-list.income strong{color:#067647}
.accounting-split-list.expense strong{color:#b42318}
.accounting-due-stack a.late{
  border-left:4px solid #d92d20;
  background:#fff8f8;
}
.accounting-due-stack strong{
  color:#07111f;
  font-size:13px;
}
.accounting-ledger-panel{
  margin:0 16px 18px;
}
.accounting-ledger-table th,
.accounting-ledger-table td{
  height:42px!important;
  padding:8px 10px!important;
  vertical-align:middle;
}
.accounting-ledger-table th:first-child,
.accounting-ledger-table td:first-child{
  width:36px!important;
  text-align:center!important;
}
.accounting-ledger-table th:last-child,
.accounting-ledger-table td:last-child{
  width:64px!important;
  text-align:center!important;
}
.accounting-ledger-table td strong{
  display:block;
  font-size:13px;
  color:#07111f;
}
.accounting-ledger-table td small{
  display:block;
  margin-top:3px;
  color:#596070;
  font-size:11px;
}

@media(max-width:1350px){
  .accounting-health-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .accounting-command-grid{grid-template-columns:1fr 1fr}
  .accounting-command-chart{grid-column:1/-1;grid-row:auto}
}
@media(max-width:900px){
  .accounting-command-head{display:grid}
  .accounting-health-strip,
  .accounting-command-grid{grid-template-columns:1fr}
  .accounting-command-filter{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .accounting-command-filter{grid-template-columns:1fr}
  .accounting-head-actions{flex-wrap:wrap}
}

/* v94: repair and quote cleanup */
.quotes-crm-table th.actions-col,
.quotes-crm-table td.quote-actions-cell{
  width:150px!important;
  min-width:150px!important;
  max-width:150px!important;
  padding:0 10px!important;
  overflow:visible!important;
}
.quote-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  width:100%;
}
.quote-actions form{
  margin:0;
}
.quote-open-link,
.quote-delete-btn{
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  padding:0 10px;
  font-size:12px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.quote-open-link{
  border:1px solid #c8d0da;
  background:#fff;
  color:#005ad6!important;
}
.quote-delete-btn{
  border:1px solid #f4b4ae;
  background:#fff1f0;
  color:#b42318;
}
.quote-delete-btn:hover{
  background:#fee4e2;
}
.repair-search-row{
  grid-template-columns:120px minmax(260px,460px) 190px!important;
  gap:10px!important;
  align-items:center!important;
  padding:10px 16px!important;
}
.repair-search-row label{
  color:#344054;
  font-weight:600;
}
.repair-search-row input,
.repair-search-row select{
  height:36px!important;
}
.repair-history-table{
  min-width:1120px!important;
}
.repair-history-table .ticket-number-col,
.repair-history-table .ticket-number-cell{
  width:170px!important;
  min-width:170px!important;
  max-width:170px!important;
  text-align:left!important;
}
.repair-history-table .ticket-number-cell{
  padding-left:12px!important;
}
.repair-history-table .ticket-number-cell a{
  display:block;
  color:#005ad6!important;
  white-space:nowrap;
  overflow:visible;
}
.repair-history-table th:last-child,
.repair-history-table td:last-child{
  width:72px!important;
  min-width:72px!important;
  text-align:center!important;
}

.ticket-command-center{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:16px auto 0;
  max-width:1220px;
}
.ticket-command-card{
  position:relative;
  min-height:88px;
  background:#fff;
  border:1px solid #d9dde3;
  border-radius:6px;
  padding:13px 14px 12px 18px;
  box-shadow:0 1px 2px rgba(16,24,40,.05);
  overflow:hidden;
}
.ticket-command-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:#0b66d8;
}
.ticket-command-status:before{background:#2d8f4e}
.ticket-command-client:before{background:#0b66d8}
.ticket-command-device:before{background:#7a5af8}
.ticket-command-money:before{background:#f79009}
.ticket-command-card span{
  display:block;
  color:#596070;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.ticket-command-card strong{
  display:block;
  margin-top:6px;
  color:#07111f;
  font-size:19px;
  line-height:1.18;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ticket-command-card small{
  display:block;
  margin-top:5px;
  color:#596070;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.repair-detail-column{
  max-width:1220px!important;
  margin-top:12px!important;
}
.repair-workspace-card{
  border-color:#d9dde3!important;
  border-radius:6px!important;
  box-shadow:0 2px 8px rgba(16,24,40,.06)!important;
}
.repair-workspace-card>nav{
  min-height:42px;
  background:#fff;
}
.repair-workspace-card>nav a{
  font-weight:600;
}
.ticket-section-title{
  display:flex;
  align-items:center;
  gap:8px;
}
.ticket-section-title:before{
  content:"";
  width:9px;
  height:9px;
  border-radius:50%;
  display:inline-block;
}
.ticket-section-title.work{color:#175cd3}
.ticket-section-title.work:before{background:#2e90fa}
.ticket-section-title.device{color:#5925dc}
.ticket-section-title.device:before{background:#7a5af8}
.ticket-section-title.money{color:#b54708}
.ticket-section-title.money:before{background:#f79009}
.repair-device-access-card .detail-dl dd,
.record-card .detail-dl dd{
  color:#111827;
}
.repair-title + .stage-bar{
  position:relative;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  grid-template-columns:repeat(5,minmax(220px,1fr))!important;
}
.repair-title + .stage-bar::-webkit-scrollbar{
  height:8px;
}
.repair-title + .stage-bar::-webkit-scrollbar-thumb{
  background:#98a2b3;
  border-radius:999px;
}

@media(max-width:1280px){
  .ticket-command-center{
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-left:16px;
    margin-right:16px;
  }
}
@media(max-width:760px){
  .repair-search-row{
    grid-template-columns:1fr!important;
  }
  .ticket-command-center{
    grid-template-columns:1fr;
  }
}
