.po-crm-page{max-width:1440px;margin:0 auto;padding:36px 28px 70px;color:#10213a}.po-crm-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.po-crm-header h1{margin:6px 0 6px;font-size:clamp(30px,4vw,46px);line-height:1.05}.po-crm-header p{margin:0;color:#64748b}.po-crm-card{background:#fff;border:1px solid #e5eaf2;border-radius:22px;padding:24px;margin-bottom:22px;box-shadow:0 12px 35px rgba(15,34,58,.06)}.po-crm-card h2{margin:0 0 20px;font-size:21px}.po-crm-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.po-crm-kpis article{background:#fff;border:1px solid #e5eaf2;border-radius:18px;padding:20px}.po-crm-kpis span,.po-crm-kpis strong{display:block}.po-crm-kpis span{font-size:13px;color:#64748b}.po-crm-kpis strong{font-size:28px;margin-top:5px}.po-crm-filters{display:grid;grid-template-columns:1fr 190px auto;gap:12px;margin-bottom:18px}.po-crm-page input,.po-crm-page select,.po-crm-page textarea{width:100%;box-sizing:border-box;border:1px solid #d8e0eb;border-radius:12px;background:#fff;padding:12px 14px;font:inherit;color:#10213a}.po-crm-page input:focus,.po-crm-page select:focus,.po-crm-page textarea:focus{outline:3px solid rgba(37,99,235,.15);border-color:#2563eb}.po-crm-table-wrap{overflow-x:auto}.po-crm-page table{width:100%;border-collapse:collapse;min-width:760px}.po-crm-page th,.po-crm-page td{text-align:left;padding:15px 12px;border-bottom:1px solid #edf1f6;vertical-align:middle}.po-crm-page th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#708096}.po-crm-page td a{color:#10213a;text-decoration:none}.po-crm-page td strong,.po-crm-page td small{display:block}.po-crm-page td small{margin-top:4px;color:#7b8798}.po-crm-status{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#eef3f8;color:#475569}.po-crm-status--active{background:#e8f8ef;color:#167548}.po-crm-status--inactive{background:#fff3d7;color:#936300}.po-crm-status--archived{background:#f0f2f5;color:#667085}.po-crm-pagination{display:flex;gap:8px;justify-content:flex-end;padding-top:18px}.po-crm-pagination a{display:grid;place-items:center;width:36px;height:36px;border:1px solid #d8e0eb;border-radius:10px;text-decoration:none}.po-crm-pagination a.is-active{background:#102a56;color:#fff;border-color:#102a56}.po-crm-empty{text-align:center;padding:32px;color:#7b8798}.po-crm-form{display:grid;gap:0}.po-crm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.po-crm-grid label{display:grid;gap:7px;font-size:13px;font-weight:600;color:#40506a}.po-span-2{grid-column:1/-1}.po-crm-form-actions{display:flex;gap:12px;justify-content:flex-end}.po-crm-flash{padding:14px 16px;border-radius:14px;background:#eaf3ff;color:#174c91;margin-bottom:18px;border:1px solid #cfe2ff}.po-crm-profile-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);gap:22px}.po-customer-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0 0}.po-customer-summary dl div{padding:14px;background:#f7f9fc;border-radius:14px}.po-customer-summary dt{font-size:12px;color:#708096}.po-customer-summary dd{margin:6px 0 0;font-weight:600;word-break:break-word}.po-crm-section-head{display:flex;align-items:center;justify-content:space-between}.po-crm-section-head span{display:grid;place-items:center;min-width:30px;height:30px;border-radius:999px;background:#edf4ff;color:#215ca8}.po-contact-list,.po-note-list{display:grid;gap:12px}.po-contact,.po-note{display:flex;justify-content:space-between;gap:16px;padding:16px;border:1px solid #e5eaf2;border-radius:16px}.po-contact strong,.po-contact span,.po-contact small{display:block}.po-contact span,.po-contact small{margin-top:4px;color:#6b7789}.po-contact button,.po-note button,.po-tag button{border:0;background:transparent;cursor:pointer;color:#8a96a8}.po-inline-create{margin-top:16px;border-top:1px solid #edf1f6;padding-top:16px}.po-inline-create summary{cursor:pointer;font-weight:700;color:#1d5ead;margin-bottom:14px}.po-note-form{display:grid;gap:10px;margin-bottom:18px}.po-note-form>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.po-note-form label{font-size:13px}.po-note.is-important{border-left:4px solid #f59e0b}.po-note-meta{display:flex;gap:10px;align-items:center;margin-bottom:8px}.po-note-meta span{font-size:11px;padding:3px 7px;border-radius:999px;background:#edf4ff;color:#1d5ead}.po-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.po-tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;background:color-mix(in srgb,var(--tag) 15%,white);border:1px solid color-mix(in srgb,var(--tag) 35%,white);color:#23334a}.po-tag-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}.po-tag-form input[type=color]{padding:3px;width:48px}.po-timeline{list-style:none;margin:0;padding:0;display:grid;gap:16px}.po-timeline li{display:grid;grid-template-columns:14px 1fr;gap:10px;position:relative}.po-timeline li>span{width:10px;height:10px;border-radius:50%;background:#2563eb;margin-top:5px}.po-timeline li:not(:last-child):before{content:"";position:absolute;left:4px;top:17px;bottom:-17px;width:2px;background:#dce6f3}.po-timeline p{margin:4px 0;color:#667085}.po-timeline small{color:#8a96a8}.po-danger-zone{border-color:#f0d8d8}.po-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:12px;text-decoration:none;border:1px solid transparent;font-weight:700;cursor:pointer}.po-button--primary{background:#102a56;color:#fff}.po-button--secondary{background:#fff;color:#16345f;border-color:#cfdae8}.po-crm-side{min-width:0}@media(max-width:900px){.po-crm-profile-grid{grid-template-columns:1fr}.po-crm-kpis{grid-template-columns:1fr 1fr}.po-crm-header{align-items:flex-start;flex-direction:column}.po-crm-header>div:last-child{width:100%}.po-crm-header .po-button{width:100%}}@media(max-width:640px){.po-crm-page{padding:24px 14px 50px}.po-crm-card{padding:18px;border-radius:17px}.po-crm-kpis{grid-template-columns:1fr}.po-crm-filters{grid-template-columns:1fr}.po-crm-grid,.po-customer-summary dl{grid-template-columns:1fr}.po-span-2{grid-column:auto}.po-crm-form-actions{flex-direction:column}.po-crm-form-actions .po-button{width:100%}.po-note-form>div{align-items:flex-start;flex-direction:column}.po-note-form .po-button{width:100%}.po-contact,.po-note{align-items:flex-start}.po-tag-form{grid-template-columns:1fr}.po-tag-form .po-button{width:100%}}

/* Build 0.33.10 — customer profile layout rebuild */
.po-crm-profile-grid{align-items:start}
.po-crm-main,.po-crm-side{min-width:0}
.po-crm-profile-grid .po-crm-card{padding:30px;margin-bottom:24px;overflow:hidden}
.po-crm-profile-grid .po-crm-card h2{margin:0 0 22px;line-height:1.25}

/* Contacts */
.po-inline-create{margin-top:22px;padding-top:20px}
.po-inline-create summary{display:flex;align-items:center;gap:8px;margin:0;padding:4px 0 18px;font-size:16px;line-height:1.3}
.po-inline-create[open] summary{margin-bottom:2px}
.po-inline-create .po-crm-grid{padding:22px;border:1px solid #e3eaf3;border-radius:18px;background:#fbfcfe;gap:20px}
.po-inline-create .po-crm-grid label{min-width:0}
.po-inline-create .po-crm-grid label:has(input[type="checkbox"]){display:flex;align-items:center;gap:10px;min-height:38px;font-size:14px;color:#263a58}
.po-inline-create input[type="checkbox"],
.po-note-form input[type="checkbox"]{width:20px!important;height:20px!important;min-width:20px;padding:0!important;margin:0;accent-color:#1769d2}
.po-inline-create .po-span-2{padding-top:2px}
.po-inline-create .po-button{min-width:156px}

/* Notes */
.po-note-form{gap:14px;margin-bottom:24px;padding:20px;border:1px solid #e3eaf3;border-radius:18px;background:#fbfcfe}
.po-note-form textarea{min-height:132px;resize:vertical}
.po-note-form>div{display:flex;align-items:center;gap:22px;min-height:46px}
.po-note-form>div label{display:inline-flex;align-items:center;gap:9px;font-size:14px;color:#263a58;white-space:nowrap}
.po-note-form>div .po-button{margin-left:4px}
.po-note-list .po-crm-empty{margin:0;padding:30px 20px;border:1px dashed #d8e2ef;border-radius:16px;background:#fafcff}

/* Tags */
.po-crm-side .po-crm-card{width:100%;box-sizing:border-box}
.po-tags:empty{display:none}
.po-tag-form{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.po-tag-form+ .po-tag-form{margin-top:16px!important;padding-top:16px!important;border-top:1px solid #edf1f6!important}
.po-tag-form:first-of-type{grid-template-columns:minmax(0,1fr) auto;align-items:stretch}
.po-tag-form:first-of-type .po-button{min-width:104px}
.po-tag-form:last-of-type{grid-template-columns:minmax(0,1fr) 58px;align-items:stretch}
.po-tag-form:last-of-type input[type="color"]{width:58px!important;height:48px!important;min-width:58px;padding:6px!important;border-radius:12px}
.po-tag-form:last-of-type .po-button{grid-column:1/-1;width:100%}
.po-tag-form select,.po-tag-form input:not([type="hidden"]){min-height:48px}

/* Timeline */
.po-timeline{width:100%;gap:0}
.po-timeline li{grid-template-columns:16px minmax(0,1fr);gap:12px;padding:0 0 22px;min-width:0;width:100%;box-sizing:border-box}
.po-timeline li:last-child{padding-bottom:0}
.po-timeline li>span{grid-column:1;width:10px;height:10px;margin:6px 0 0 2px}
.po-timeline li>div{grid-column:2;min-width:0;width:auto;word-break:normal!important;overflow-wrap:break-word!important;white-space:normal!important}
.po-timeline li>div strong,.po-timeline li>div p,.po-timeline li>div small{display:block;width:auto;max-width:100%;word-break:normal!important;overflow-wrap:break-word!important;white-space:normal!important;letter-spacing:normal!important}
.po-timeline li>div strong{font-size:14px;line-height:1.35}
.po-timeline p{margin:5px 0 6px;line-height:1.5}
.po-timeline small{line-height:1.4}
.po-timeline li:only-child:not(:has(>span)){display:block;padding:24px;border:1px dashed #d8e2ef;border-radius:16px;background:#fafcff;text-align:center}
.po-timeline li:only-child:not(:has(>span))>div{display:block}

/* Customer status */
.po-danger-zone{border-color:#e3eaf3;background:#fff}
.po-danger-zone form{margin:0!important;padding:18px!important;border:1px solid #e3eaf3!important;border-radius:16px!important;background:#fbfcfe!important;box-shadow:none!important}
.po-danger-zone .po-button{width:100%;justify-content:center}
.po-danger-zone:before{content:"Manage whether this customer remains active in your workspace.";display:block;margin:-8px 0 18px;color:#66758b;font-size:14px;line-height:1.5}

@media(max-width:1100px){
 .po-crm-profile-grid{grid-template-columns:minmax(0,1.45fr) minmax(290px,.8fr)}
 .po-crm-profile-grid .po-crm-card{padding:26px}
}
@media(max-width:900px){
 .po-crm-profile-grid{grid-template-columns:1fr}
 .po-crm-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .po-crm-side .po-crm-card{margin-bottom:0}
 .po-crm-side .po-danger-zone{grid-column:1/-1}
}
@media(max-width:640px){
 .po-crm-profile-grid .po-crm-card{padding:20px}
 .po-crm-side{grid-template-columns:1fr;gap:18px}
 .po-crm-side .po-danger-zone{grid-column:auto}
 .po-inline-create .po-crm-grid{padding:16px;gap:16px}
 .po-note-form{padding:16px}
 .po-note-form>div{align-items:stretch;gap:14px}
 .po-note-form>div label{width:100%}
 .po-note-form>div .po-button{margin-left:0}
 .po-tag-form:first-of-type,.po-tag-form:last-of-type{grid-template-columns:1fr}
 .po-tag-form:first-of-type .po-button,.po-tag-form:last-of-type .po-button{width:100%;grid-column:auto}
 .po-tag-form:last-of-type input[type="color"]{width:100%!important}
}

/* 0.59.6.48 — edit customer notes, tags and timeline polish */
.po-crm-profile-grid .po-note-list{
  gap:16px;
}
.po-crm-profile-grid .po-note{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:18px!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  padding:20px!important;
  overflow:hidden!important;
}
.po-crm-profile-grid .po-note>div{
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
.po-crm-profile-grid .po-note>div p{
  margin:8px 0 0!important;
  line-height:1.55!important;
}
.po-crm-profile-grid .po-note>form{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  width:auto!important;
  min-width:0!important;
  align-self:start!important;
}
.po-crm-profile-grid .po-note>form button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:84px!important;
  min-height:40px!important;
  margin:0!important;
  padding:8px 14px!important;
  border:1px solid #d8e0eb!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#64748b!important;
  font:inherit!important;
  font-weight:600!important;
  line-height:1.2!important;
}
.po-crm-profile-grid .po-note>form button:hover{
  border-color:#efb4b4!important;
  background:#fff7f7!important;
  color:#b42318!important;
}

.po-crm-side .po-crm-card{
  overflow:hidden!important;
}
.po-crm-side .po-tag-form{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  border-radius:0!important;
}
.po-crm-side .po-tag-form:first-of-type{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 110px!important;
  gap:10px!important;
}
.po-crm-side .po-tag-form:last-of-type{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 64px!important;
  gap:10px!important;
}
.po-crm-side .po-tag-form select,
.po-crm-side .po-tag-form input:not([type="hidden"]),
.po-crm-side .po-tag-form button{
  margin:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.po-crm-side .po-tag-form .po-button{
  min-height:50px!important;
  padding:10px 16px!important;
  border-radius:12px!important;
}
.po-crm-side .po-tag-form:last-of-type input[type="color"]{
  width:64px!important;
  height:50px!important;
  min-width:64px!important;
  padding:7px!important;
}
.po-crm-side .po-tag-form:last-of-type .po-button{
  grid-column:1/-1!important;
}

.po-crm-side .po-timeline{
  padding:2px 0 0!important;
  overflow:visible!important;
}
.po-crm-side .po-timeline li{
  grid-template-columns:18px minmax(0,1fr)!important;
  gap:14px!important;
  padding-bottom:26px!important;
}
.po-crm-side .po-timeline li:last-child{
  padding-bottom:0!important;
}
.po-crm-side .po-timeline li>span{
  margin-left:3px!important;
}
.po-crm-side .po-timeline li:not(:last-child):before{
  left:7px!important;
  top:18px!important;
  bottom:-8px!important;
}
.po-crm-side .po-timeline li>div strong{
  color:#40577a!important;
  font-size:15px!important;
}
.po-crm-side .po-timeline li>div small{
  display:block!important;
  margin-top:5px!important;
  color:#8290a5!important;
  font-size:13px!important;
}

@media(max-width:640px){
  .po-crm-profile-grid .po-note{
    grid-template-columns:1fr!important;
  }
  .po-crm-profile-grid .po-note>form button{
    width:100%!important;
  }
  .po-crm-side .po-tag-form:first-of-type,
  .po-crm-side .po-tag-form:last-of-type{
    grid-template-columns:1fr!important;
  }
  .po-crm-side .po-tag-form:last-of-type input[type="color"]{
    width:100%!important;
  }
  .po-crm-side .po-tag-form:last-of-type .po-button{
    grid-column:auto!important;
  }
}

/* 0.59.6.49 — rebuild customer tag controls */
.po-crm-side .po-crm-card:has(> h2:first-child){
  overflow:visible!important;
}
.po-crm-side .po-crm-card h2{
  margin-bottom:24px!important;
}
.po-crm-side .po-tag-form,
.po-crm-side .po-tag-form:first-of-type,
.po-crm-side .po-tag-form:last-of-type{
  display:grid!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.po-crm-side .po-tag-form:first-of-type{
  grid-template-columns:minmax(0,1fr) 132px!important;
  gap:12px!important;
  align-items:stretch!important;
}
.po-crm-side .po-tag-form:last-of-type{
  grid-template-columns:minmax(0,1fr) 72px!important;
  gap:12px!important;
  margin-top:20px!important;
  padding-top:20px!important;
  border-top:1px solid #e8edf4!important;
}
.po-crm-side .po-tag-form select,
.po-crm-side .po-tag-form input[type="text"],
.po-crm-side .po-tag-form input[name="tag_name"],
.po-crm-side .po-tag-form input[type="color"],
.po-crm-side .po-tag-form .po-button{
  width:100%!important;
  min-width:0!important;
  height:58px!important;
  min-height:58px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border:1px solid #cfdaea!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.po-crm-side .po-tag-form select,
.po-crm-side .po-tag-form input[type="text"],
.po-crm-side .po-tag-form input[name="tag_name"]{
  padding:0 18px!important;
  font-size:16px!important;
  line-height:1.2!important;
  color:#10213a!important;
}
.po-crm-side .po-tag-form input[type="color"]{
  padding:9px!important;
  cursor:pointer!important;
}
.po-crm-side .po-tag-form .po-button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 18px!important;
  color:#16345f!important;
  font-size:15px!important;
  font-weight:700!important;
}
.po-crm-side .po-tag-form .po-button:hover{
  border-color:#9fb4d0!important;
  background:#f8fbff!important;
}
.po-crm-side .po-tag-form:last-of-type .po-button{
  grid-column:1/-1!important;
  height:56px!important;
  min-height:56px!important;
}
@media(max-width:640px){
  .po-crm-side .po-tag-form:first-of-type,
  .po-crm-side .po-tag-form:last-of-type{
    grid-template-columns:1fr!important;
  }
  .po-crm-side .po-tag-form:last-of-type input[type="color"]{
    width:100%!important;
  }
}
