.po-quotes{max-width:1440px;margin:0 auto;color:#10213a}
.po-quote-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}
.po-quote-header h1{max-width:none;margin:7px 0 8px;font-size:clamp(30px,4vw,46px);line-height:1.05;letter-spacing:-.035em}
.po-quote-header p{max-width:760px;margin:0;color:#64748b;font-size:15px;line-height:1.6}
.po-quote-header .po-eyebrow{color:#2563eb;font-size:12px;font-weight:800;letter-spacing:.12em}
.po-crm-header-actions{display:flex;gap:10px;flex-wrap:wrap}
.po-quote-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.po-quote-stats article{padding:20px;background:#fff;border:1px solid #e5eaf2;border-radius:18px}
.po-quote-stats span{display:block;color:#64748b;font-size:13px;font-weight:600}.po-quote-stats strong{display:block;margin-top:7px;font-size:28px;letter-spacing:-.03em}
.po-quote-list-card,.po-quote-editor-card,.po-quote-totals,.po-quote-document,.po-quote-side>.po-crm-card{padding:24px;border-radius:22px}
.po-quote-filters{display:grid;grid-template-columns:minmax(260px,1fr) 220px auto;align-items:end;gap:14px;margin:0 0 20px}
.po-quote-filters label,.po-quote-editor label,.po-quote-side label,.po-catalogue-picker label{display:grid;gap:7px;color:#33445f;font-size:13px;font-weight:700}
.po-quote-filters input,.po-quote-filters select,.po-quote-editor input:not([type=hidden]),.po-quote-editor select,.po-quote-editor textarea,.po-quote-side select,.po-catalogue-picker select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cfd9e6;border-radius:10px;background:#fff;color:#10213a;font-size:14px;box-shadow:none}
.po-quote-filters input,.po-quote-filters select,.po-quote-editor input:not([type=hidden]),.po-quote-editor select,.po-quote-side select,.po-catalogue-picker select{height:44px;padding:9px 12px}
.po-quote-editor textarea{padding:11px 12px;line-height:1.45;resize:vertical}
.po-quote-filters input:focus,.po-quote-filters select:focus,.po-quote-editor input:focus,.po-quote-editor select:focus,.po-quote-editor textarea:focus{border-color:#2563eb;outline:3px solid rgba(37,99,235,.12)}
.po-quote-table td small,.po-quote-number+small{display:block;margin-top:4px;color:#718096}.po-quote-number{color:#174f99;font-weight:800;text-decoration:none}
.po-quote-status{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.po-quote-status.is-draft{background:#eef2f7;color:#536278}.po-quote-status.is-sent{background:#e8f1ff;color:#1d5ead}.po-quote-status.is-accepted{background:#dcf8e9;color:#137044}.po-quote-status.is-declined,.po-quote-status.is-expired{background:#fee9e7;color:#a1372b}
.po-quote-empty{min-height:320px;display:grid;place-items:center;align-content:center;text-align:center;gap:8px}.po-quote-empty h3{margin:0}.po-quote-empty p{margin:0 0 10px;color:#718096}
.po-quote-editor{display:grid;gap:22px}.po-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e8edf4}.po-section-heading h2{margin:0 0 4px;font-size:22px}.po-section-heading p{margin:0;color:#718096;font-size:14px}
.po-quote-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.po-span-2{grid-column:1/-1}
.po-catalogue-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:16px;margin-bottom:18px;background:#f6f8fb;border:1px solid #e5eaf2;border-radius:14px}
.po-quote-items{display:grid;gap:14px}.po-quote-item{padding:17px;border:1px solid #dfe6ef;border-radius:15px;background:#fbfcfe}.po-quote-item-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}.po-remove-item{width:34px;height:34px;border:0;border-radius:9px;background:#fee9e7;color:#a1372b;font-size:22px;cursor:pointer}
.po-quote-item-grid{display:grid;grid-template-columns:.7fr .8fr 1fr 1fr 1fr .8fr 1fr;gap:12px;align-items:end;margin-top:12px}.po-line-total{display:grid;gap:5px;align-content:end;min-height:44px;padding:7px 10px;border-radius:10px;background:#eef3f8}.po-line-total span{font-size:11px;color:#718096;font-weight:700}.po-line-total strong{font-size:15px}
.po-quote-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}.po-quote-editor-card>label{margin-top:16px}.po-quote-totals{position:sticky;top:90px}.po-quote-totals h2{margin:0 0 16px;font-size:22px}.po-quote-totals dl{margin:0}.po-quote-totals dl div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #edf1f6}.po-quote-totals dt{color:#64748b}.po-quote-totals dd{margin:0;font-weight:800}.po-quote-totals .po-total-row{margin-top:4px;padding-top:16px;border-top:2px solid #10213a;border-bottom:0;font-size:20px}.po-quote-totals .po-button{width:100%;margin-top:18px}
.po-quote-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.po-quote-doc-head{display:flex;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:2px solid #10213a}.po-quote-doc-head h2{margin:7px 0 0;font-size:30px}.po-quote-doc-head>div:last-child{display:grid;gap:5px;text-align:right;color:#64748b}.po-quote-doc-head>div:last-child strong{color:#10213a;font-size:18px}.po-quote-address{display:grid;grid-template-columns:1fr 1fr;gap:26px;padding:24px 0}.po-quote-address span{display:block;margin-bottom:6px;color:#718096;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.po-quote-address strong{font-size:16px}.po-quote-address p{margin:6px 0 0;color:#52627a;line-height:1.5}.po-quote-intro{padding:16px;border-radius:12px;background:#f6f8fb;color:#40506a;line-height:1.6}.po-document-totals{display:flex;justify-content:flex-end;padding:20px 0}.po-document-totals dl{width:320px;margin:0}.po-document-totals dl div{display:flex;justify-content:space-between;padding:8px 0}.po-document-totals dl div:last-child{margin-top:6px;padding-top:14px;border-top:2px solid #10213a;font-size:20px;font-weight:800}.po-document-totals dd{margin:0}.po-document-note{padding-top:18px;margin-top:18px;border-top:1px solid #e5eaf2}.po-document-note h3{margin:0 0 8px;font-size:16px}.po-document-note p{margin:0;color:#52627a;line-height:1.6}.po-quote-side{position:sticky;top:90px}.po-quote-side h2{margin:16px 0;font-size:20px}.po-quote-side form{display:grid;gap:12px;margin-bottom:12px}.po-quote-side .po-button{width:100%;margin-top:10px;text-align:center}
@media(max-width:1180px){.po-quote-item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.po-quote-bottom-grid,.po-quote-detail-grid{grid-template-columns:1fr}.po-quote-totals,.po-quote-side{position:static}.po-quote-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.po-quotes{padding:24px 14px 50px}.po-quote-header{align-items:flex-start;flex-direction:column}.po-crm-header-actions{width:100%}.po-crm-header-actions .po-button{flex:1}.po-quote-stats{grid-template-columns:1fr}.po-quote-list-card,.po-quote-editor-card,.po-quote-totals,.po-quote-document,.po-quote-side>.po-crm-card{padding:18px;border-radius:17px}.po-quote-filters,.po-quote-details-grid,.po-catalogue-picker,.po-quote-item-grid,.po-quote-address{grid-template-columns:1fr}.po-span-2{grid-column:auto}.po-section-heading{align-items:flex-start;flex-direction:column}.po-section-heading .po-button,.po-catalogue-picker .po-button{width:100%}.po-quote-doc-head{flex-direction:column}.po-quote-doc-head>div:last-child{text-align:left}.po-quote-lines{min-width:650px}}

/* Build 27.1 — Quote workspace layout polish and backend-style consistency. */
.po-app-content .po-quotes form{
  margin:0;
  padding:0;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.po-app-content .po-quotes .po-section-heading{
  display:flex;
  width:100%;
  max-width:none;
  margin:0 0 20px;
  padding:0 0 16px;
  text-align:left;
}
.po-app-content .po-quotes .po-section-heading h2{
  margin:0 0 5px;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.po-app-content .po-quotes .po-section-heading p{
  margin:0;
  font-size:14px;
  line-height:1.55;
}
.po-app-content .po-quote-list-card{
  min-height:0!important;
  padding:22px 24px!important;
}
.po-app-content .po-quote-filters{
  margin:0;
  padding:0;
  align-items:end;
}
.po-app-content .po-quote-filters label,
.po-app-content .po-catalogue-picker label,
.po-app-content .po-quote-item label{
  margin:0;
}
.po-app-content .po-quote-filters .po-button,
.po-app-content .po-catalogue-picker .po-button{
  min-height:44px;
  height:44px;
  padding:9px 20px;
}
.po-app-content .po-quote-editor-card{
  padding:26px!important;
}
.po-app-content .po-catalogue-picker{
  margin:0 0 20px;
  padding:18px;
  border-radius:14px;
  background:#f6f8fb;
}
.po-app-content .po-quote-items{
  gap:16px;
}
.po-app-content .po-quote-item{
  margin:0;
  padding:18px;
  overflow:hidden;
  border-radius:14px;
  background:#fff;
  box-shadow:none;
}
.po-app-content .po-quote-item-main{
  grid-template-columns:minmax(0,1fr) 38px;
  gap:14px;
}
.po-app-content .po-quote-item-main textarea{
  display:block;
  width:100%;
  min-height:82px!important;
  height:82px;
  max-height:180px;
  padding:11px 12px!important;
  resize:vertical;
}
.po-app-content .po-remove-item{
  width:38px;
  height:38px;
  margin-top:25px;
  display:grid;
  place-items:center;
  padding:0;
  line-height:1;
}
.po-app-content .po-quote-item-grid{
  grid-template-columns:minmax(86px,.65fr) minmax(110px,.8fr) minmax(120px,1fr) minmax(130px,1fr) minmax(120px,1fr) minmax(105px,.8fr) minmax(120px,.9fr);
  gap:12px;
  margin-top:15px;
}
.po-app-content .po-quote-item-grid input,
.po-app-content .po-quote-item-grid select{
  height:42px!important;
}
.po-app-content .po-line-total{
  min-height:42px;
  padding:7px 11px;
}
.po-app-content .po-quote-empty{
  min-height:250px;
  padding:38px 20px 30px;
}
.po-app-content .po-quote-empty h3{
  font-size:28px;
  line-height:1.2;
}
.po-app-content .po-quote-stats article{
  min-height:118px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.po-app-content .po-quote-bottom-grid{
  gap:20px;
}
.po-app-content .po-quote-totals{
  padding:22px!important;
}
@media(max-width:1280px){
  .po-app-content .po-quote-item-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .po-app-content .po-line-total{grid-column:auto}
}
@media(max-width:900px){
  .po-app-content .po-quote-filters{grid-template-columns:1fr 180px auto}
  .po-app-content .po-quote-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .po-app-content .po-quote-list-card,
  .po-app-content .po-quote-editor-card{padding:18px!important}
  .po-app-content .po-quote-filters,
  .po-app-content .po-catalogue-picker,
  .po-app-content .po-quote-item-grid{grid-template-columns:1fr}
  .po-app-content .po-quote-item-main{grid-template-columns:minmax(0,1fr) 36px}
  .po-app-content .po-remove-item{width:36px;height:36px}
  .po-app-content .po-quote-empty{min-height:220px}
}

/* Build 27.2 — compact, balanced quote line-item editor. */
.po-app-content .po-quote-item{
  position:relative;
  padding:20px!important;
  border:1px solid #dce5f0!important;
  border-radius:16px!important;
  background:#fff!important;
}
.po-app-content .po-quote-item-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 40px;
  gap:14px;
  align-items:start;
}
.po-app-content .po-quote-description{
  display:grid!important;
  gap:8px!important;
  min-width:0;
}
.po-app-content .po-quote-description textarea{
  min-height:76px!important;
  height:76px!important;
  max-height:150px!important;
  padding:12px 14px!important;
  border-radius:11px!important;
  line-height:1.45!important;
}
.po-app-content .po-remove-item{
  width:40px!important;
  height:40px!important;
  margin:25px 0 0!important;
  border-radius:10px!important;
  font-size:22px!important;
}
.po-app-content .po-quote-item-grid{
  display:grid!important;
  grid-template-columns:90px 120px minmax(130px,1fr) minmax(145px,1.1fr) minmax(130px,1fr) 110px minmax(130px,.9fr)!important;
  gap:14px!important;
  align-items:end!important;
  margin-top:18px!important;
  padding-top:18px;
  border-top:1px solid #e8edf4;
}
.po-app-content .po-quote-item-grid label{
  display:grid!important;
  gap:7px!important;
  min-width:0;
  font-size:12px!important;
  line-height:1.25!important;
}
.po-app-content .po-quote-item-grid input,
.po-app-content .po-quote-item-grid select{
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  padding:9px 12px!important;
  border-radius:10px!important;
}
.po-app-content .po-line-total{
  display:flex!important;
  min-width:0;
  min-height:44px!important;
  padding:8px 13px!important;
  flex-direction:column;
  justify-content:center;
  gap:2px!important;
  border:1px solid #dce5f0;
  border-radius:10px!important;
  background:#f1f5f9!important;
}
.po-app-content .po-line-total span{font-size:11px!important;line-height:1.2}
.po-app-content .po-line-total strong{font-size:16px!important;line-height:1.2}
@media(max-width:1320px){
  .po-app-content .po-quote-item-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:860px){
  .po-app-content .po-quote-item-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .po-app-content .po-line-total{min-height:62px!important}
}
@media(max-width:560px){
  .po-app-content .po-quote-item{padding:16px!important}
  .po-app-content .po-quote-item-main{grid-template-columns:minmax(0,1fr) 36px;gap:10px}
  .po-app-content .po-remove-item{width:36px!important;height:36px!important}
  .po-app-content .po-quote-item-grid{grid-template-columns:1fr!important;gap:12px!important}
  .po-app-content .po-quote-description textarea{height:88px!important;min-height:88px!important}
}

/* Build 28 — quote revisions and follow-up automation. */
.po-version-card,.po-followup-card{margin-top:18px;padding:22px!important}
.po-version-card h2,.po-followup-card h2{margin:8px 0 6px!important;font-size:20px!important;line-height:1.25}
.po-version-card>p,.po-followup-card>p{margin:0 0 18px;color:#64748b;font-size:14px;line-height:1.55}
.po-version-card form,.po-followup-card form{display:grid!important;gap:12px!important;margin:0!important}
.po-version-card label,.po-followup-card label{display:grid;gap:7px;margin:0;font-size:13px;font-weight:700;color:#263956}
.po-version-card input,.po-followup-card input,.po-followup-card textarea{width:100%;min-height:43px;padding:10px 12px;border:1px solid #d5dfeb;border-radius:11px;background:#fff;font:inherit;color:#10213a;box-sizing:border-box}
.po-followup-card textarea{min-height:96px;resize:vertical;line-height:1.45}
.po-version-list{display:grid;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid #e7edf4}
.po-version-list article{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e1e8f1;border-radius:12px;background:#f8fafc}
.po-version-list article>div{min-width:0}.po-version-list strong{display:block;font-size:14px}.po-version-list small{display:block;margin-top:3px;color:#718096;font-size:11px;line-height:1.4}.po-version-list p{margin:6px 0 0;color:#52627a;font-size:12px;line-height:1.4}.po-version-list form{display:block!important}.po-version-list .po-link-button{padding:5px 8px;white-space:nowrap}
.po-followup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.po-check-row{display:flex!important;align-items:center;gap:10px!important;padding:11px 12px;border:1px solid #dce5ef;border-radius:11px;background:#f8fafc}.po-check-row input{width:18px!important;min-height:0!important;height:18px!important;margin:0;padding:0}.po-check-row span{font-size:13px}
.po-followup-status{display:grid;grid-template-columns:auto 1fr;gap:7px 12px;margin:16px 0;padding:13px;border-radius:12px;background:#f3f6fa}.po-followup-status span{color:#718096;font-size:12px}.po-followup-status strong{text-align:right;font-size:12px}
.po-quote-side>.po-crm-card+.po-crm-card{margin-top:18px}
@media(min-width:1181px){.po-quote-detail-grid{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:520px){.po-followup-grid{grid-template-columns:1fr}.po-version-list article{flex-direction:column}.po-version-list form,.po-version-list .po-link-button{width:100%}}
