.pl-table-wrap {
  overflow: auto;
  min-height: 0;
}
.pe-purchase-metadata.prm-sheet{max-width:calc(100vw - 24px)}
.prm-summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;border-bottom:1px solid #e2e9ef;padding:0 0 14px;margin-bottom:18px;font-size:13px;color:#8296ac}
.prm-summary b{color:#244d84;font-size:15px}.prm-summary small{flex:1 0 100%;color:#52708f;line-height:20px}
.prm-help{font-size:12px;line-height:19px;color:#698198;margin:14px 0 0}
.prm-sheet .pm-staff select{max-width:270px}
.prm-sheet>header{background:#0a4f9e}
.prm-sheet .prm-fields{grid-template-columns:minmax(0,2.35fr) minmax(0,1fr);gap:20px}
.prm-distributor{min-width:0;position:relative}.prm-distributor>small{display:block;color:#849bb5;min-height:18px;margin-top:3px}
.prm-note-tabs{display:flex;gap:0;border-bottom:1px solid #e2e2e2;margin-top:30px}
.prm-note-tabs>[role=tab]{border:0;border-bottom:2px solid transparent;box-shadow:none;background:#fff;color:#a0a0a0;border-radius:0;min-width:160px;padding:10px 18px 15px;font:600 16px/22px Manrope,Arial,sans-serif}
.prm-note-tabs>[aria-selected=true]{color:#24a2eb;border-bottom-color:#24a2eb}
.prm-sheet [role=tabpanel][hidden]{display:none}
.prm-sheet [role=tabpanel]>.pe-note{margin:0;min-height:172px;background:#fff1d7}
.prm-sheet [role=tabpanel]>.pe-note>span{color:#1d568c}.prm-sheet .pe-note svg{color:#ffba24}
.prm-sheet [role=tabpanel] textarea{height:120px;resize:vertical;font-size:16px}
.prm-note-tabs>[role=tab]:focus-visible{outline:2px solid #159de5;outline-offset:-3px}
@media(max-width:540px){.prm-sheet .prm-fields{grid-template-columns:1fr}.prm-note-tabs>[role=tab]{min-width:0;flex:1;padding:10px 6px;font-size:14px}}
.prm-sheet textarea:disabled,.prm-sheet select:disabled{opacity:.8;background:#f7f8fa;color:#62778c}
.prm-chooser>header{height:50px;min-height:50px;background:#0a4f9e;border-radius:4px 4px 0 0}
.prm-chooser>header h2{font-size:18px;line-height:26px}
.prm-chooser .pe-sheet-body{padding:20px 20px 60px}
.prm-chooser h3{font-size:20px;line-height:28px;font-weight:700;text-align:left;margin:0 0 28px}
.prm-chooser .pe-edit-choices{display:flex;flex-direction:column;gap:22px}
.prm-chooser .pe-edit-choices>section{padding:0;gap:0}
.prm-chooser .pe-edit-choices>section+section{border:0}
.prm-chooser .pe-edit-choices b{font-size:18px;line-height:25px;color:#23a1e9}
.prm-chooser .pe-edit-choices ul{min-height:0;font-size:14px;line-height:21px;color:#202020;margin:0 0 12px;padding-left:20px}
.prm-chooser .pe-edit-choices li{padding-bottom:4px}
.prm-chooser .pe-primary{background:#0ca1f6;font-size:16px;font-weight:600;padding:5px 23px;line-height:21px}
.prm-chooser .pe-primary:disabled{background:#e7edf3;color:#8c9dac;cursor:not-allowed}
.prm-detail .prm-change td{white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top;min-width:100px}.prm-detail .prm-help{margin-bottom:15px}
.pl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #23374d;
}
.pl-table th {
  height: 46px;
  text-align: left;
  background: #f5f7fa;
  color: #6b7886;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid #e0e6ed;
  padding: 10px 12px;
}
.pl-table td {
  padding: 12px;
  border-bottom: 1px solid #e6eaf0;
  vertical-align: middle;
  white-space: nowrap;
}
.pl-table tbody tr:hover {
  background: #f7fbff;
}
.pl-table td small {
  display: block;
  font-size: 11px;
  color: #7b8795;
  margin-top: 4px;
}
.pl-table input:not([type=checkbox]) {
  border: 1px solid #d6dee8;
  background: #fff;
  color: #22364a;
  border-radius: 3px;
  min-height: 34px;
  width: 85px;
  max-width: 100%;
  padding: 5px 8px;
  text-align: right;
  font: inherit;
}
.pl-table input:focus {
  outline: 2px solid #b1d9ff;
  border-color: #0786e8;
}
.pl-table input:disabled {
  border-color: transparent;
  background: transparent;
  color: #516070;
}
.pl-table a {
  color: #0785e5;
  text-decoration: none;
}
.pl-empty {
  text-align: center !important;
  padding: 65px 20px !important;
  color: #7a8795;
}
.pl-return-entry {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}
.pl-return-lines {
  flex: 1;
}
.pl-return-entry .pe-search-row {
  padding: 12px 20px;
}
.pl-return-entry .pe-search-row input {
  max-width: 640px;
  width: 100%;
  border: 1px solid #d6e1eb;
  padding: 11px 14px;
  border-radius: 4px;
}
.pl-return-entry .pe-party-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #cfd9e3;
  padding: 7px 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
}
.pl-pricing-label {
  font-size: 13px;
  color: #597087;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pl-return-entry .pe-date {
  max-width: 170px;
}
.pl-source-status {
  padding: 8px 20px;
  font-size: 12px;
  color: #637789;
}
.pl-source-status:empty {
  display: none;
}
.pl-source-status small {
  display: block;
  margin-top: 6px;
}
.pl-provenance {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 3px;
  color: #208268;
  background: #eef9f3;
}
.pl-warning {
  padding: 12px 15px;
  background: #fff6e5;
  border-left: 3px solid #e8a542;
  color: #8a632d;
  white-space: normal;
  line-height: 1.5;
  font-size: 13px;
}
.pl-effect {
  font-size: 14px;
  color: #526b82;
  background: #eff7ff;
  border-left: 3px solid #138ae3;
  padding: 14px;
  line-height: 1.6;
}
.pl-note {
  font-size: 12px;
  color: #6c7d8e;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 45%;
  flex: 1;
}
.pl-note input {
  padding: 8px;
  border: 1px solid #d8e1e9;
  border-radius: 3px;
  min-width: 130px;
  width: 100%;
  font-size: 13px;
  color: #23374d;
}
.pl-review-totals {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.pl-review-totals > span {
  background: #f6f9fc;
  border: 1px solid #e1e9f0;
  border-radius: 5px;
  flex: 1;
  min-width: 125px;
  padding: 13px 17px;
  color: #718397;
  font-size: 12px;
}
.pl-review-totals strong {
  display: block;
  font-size: 23px;
  line-height: 1.5;
  color: #233e58;
  font-weight: 600;
}
.pl-reference {
  display: block;
  color: #8b98a6;
  font-size: 10px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.pl-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.pl-reconciliation .pl-evidence-choice{display:grid;gap:8px;margin:20px 0 8px;color:#345780;font-size:13px}
.pl-reconciliation .pl-evidence-choice select{width:100%;padding:9px;border:1px solid #b9cbde;background:#fff;color:#244e78;font:inherit}
.pl-reconciliation [data-evidence-status]{font-size:12px;line-height:1.5;margin:0 0 20px;color:#627e9a}
.pl-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #647589;
}
.pl-form-grid input,
.pl-form-grid select,
.pl-form-grid textarea {
  padding: 10px;
  border: 1px solid #d4dee8;
  border-radius: 4px;
  color: #2b4054;
  background: #fff;
  font: inherit;
}
.pl-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #546b80;
  margin: 18px 0;
}
.pl-confirm input {
  margin-top: 3px;
}
.pl-credit-sheet,
.pl-review,
.pl-reconciliation,
.pl-payment,
.pl-credit-allocate {
  width: min(940px, 96vw);
}
.pl-credit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 5px 0 28px;
}
.pl-credit-summary h3 {
  margin: 8px 0;
  color: #23425d;
}
.pl-credit-summary > span {
  font-size: 12px;
  text-transform: capitalize;
  color: #0a85da;
}
.pl-credit-sheet h3 {
  font-size: 15px;
  color: #405c73;
  margin: 22px 0 12px;
}
.pl-badge {
  display: inline-block;
  font-size: 10px;
  color: #1a8ada;
  background: #eaf5ff;
  border: 1px solid #c5e2f6;
  border-radius: 3px;
  padding: 3px 5px;
  margin-left: 6px;
}
.pl-badge.pl-loss {
  color: #ad6f25;
  background: #fff5e6;
  border-color: #efdbb7;
}
.pl-status {
  font-size: 12px;
  text-transform: capitalize;
  color: #6f8192;
  border: 1px solid #d5e1ea;
  padding: 5px 9px;
  border-radius: 4px;
}
.pl-final {
  color: #269a75;
  border-color: #bee7d6;
}
.pl-challan {
  color: #0a87d8;
  border-color: #c0ddf4;
}
.pl-return-register .sales-register-filters {
  flex-wrap: wrap;
}
.pl-return-register .sales-register-filters > select {
  max-width: 215px;
}
.pl-return-saved {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 50px);
  --pw-accent:#dd4e5a;
  --pw-action:#0ca1f6;
}
.pl-return-saved .pw-breadcrumb a[href="#/purchasereturns"]{color:#dd4e5a}
.pl-return-saved .pl-saved-lines{background:linear-gradient(to left,#ffedef 150px,#fff 150px)}
.pl-return-saved .pl-table{color:#111;background:#fff;font-size:14px}
.pl-return-saved .pl-table th{height:36px;padding:8px 12px;background:#fff;color:#23558c;font-size:12px;text-transform:none;letter-spacing:0;border-bottom-color:#c2c7cc}
.pl-return-saved .pl-table td{height:48px;padding:6px 12px;border-bottom:0}
.pl-return-saved .pl-table td small{font-size:12px;line-height:17px;margin-top:0;color:#929292}
.pl-return-saved .pl-table td:first-child a{color:#185396;font-weight:600}
.pl-return-saved .pl-table td:last-child{min-width:150px;width:150px;text-align:right;background:#ffedef;color:#31568f;font-size:16px;font-weight:700;padding-right:20px}
.pl-return-saved .pl-table tbody tr:hover{background:#d8edff}
.pl-return-saved .pl-table tbody tr:hover td:last-child{background:#dddfee}
.pl-saved-lines {
  flex: 1;
  min-height: 260px;
}
.pl-saved-lines td {
  height: 85px;
}
.pl-saved-lines th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.pl-note-view {
  font-size: 12px;
  color: #758597;
  padding: 9px 18px;
  margin: 0;
  border-top: 1px solid #e1e8ed;
}
.pl-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
  max-height: 65vh;
  overflow: auto;
}
.pl-return-entry .pe-menu button,
.pl-credits .pe-outline {
  white-space: nowrap;
}
.pl-return-entry [data-net] {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0784da;
}
.pl-return-entry [data-net] b {
  font-size: 24px;
}
.pl-return-entry .pe-footer {
  margin-top: auto;
}
.pl-credits {
  background: #fff;
  border: 1px solid #e1e7ee;
  border-radius: 4px;
  padding: 20px;
}
.pl-return-saved .pw-meta {
  grid-template-columns: 143px 134px 1fr;
}
.pl-return-saved .pw-breadcrumb {
  font-size: 15px;
}
.pl-return-saved .pw-heading {
  gap: 16px;
}
.pl-return-saved .pw-meta b {
  font-size: 15px;
}
.pl-return-entry .pe-actions {
  flex-wrap: wrap;
}
.pl-return-entry .pe-date input {
  padding: 8px 0;
}
.pl-return-saved [data-adjustments] {
  color: #fff;
}
.pl-return-saved .pw-footer {
  margin-top: auto;
}
@media (max-width: 800px) {
  .pl-form-grid {
    grid-template-columns: 1fr;
  }
  .pl-return-entry .pe-party-strip {
    flex-wrap: wrap;
    gap: 16px;
  }
  .pl-return-entry .pe-footer {
    flex-wrap: wrap;
    gap: 14px;
  }
  .pl-note {
    max-width: 100%;
    flex-basis: 100%;
  }
  .pl-return-saved .pw-heading {
    flex-wrap: wrap;
  }
  .pl-return-saved .pw-meta {
    grid-template-columns: 1fr 1fr;
  }
  .pl-return-saved .pw-distributor {
    grid-column: 1/-1;
  }
  .pl-review-totals strong {
    font-size: 19px;
  }
  .pl-return-register .sales-register-filters > * {
    flex: 1;
    min-width: 140px;
  }
  .pl-return-register .pr-period {
    min-width: 290px;
  }
  .pl-return-saved .pw-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media print {
  .pl-return-saved .prm-internal-note{display:none!important}
  .pl-return-saved .pw-heading-actions,
  .pl-return-saved [data-adjustments] {
    display: none !important;
  }
  .pl-return-saved {
    display: block;
    min-height: 0;
  }
  .pl-return-saved .pl-table {
    font-size: 10px;
  }
  .pl-return-saved .pl-table td,
  .pl-return-saved .pl-table th {
    padding: 5px;
    white-space: normal;
    height: auto;
  }
  .pl-return-saved .pw-footer {
    position: static;
    display: flex;
  }
  .pl-saved-lines {
    overflow: visible;
  }
  .pl-return-saved .pw-breadcrumb a {
    color: #000;
  }
  .pl-return-saved .pw-bulb {
    display: none;
  }
}
.modal:has(.pl-review, .pl-credit-sheet, .pl-payment, .pl-reconciliation, .pl-files, .pl-credit-allocate, .pl-credit-refund, .pl-credit-picker) {
  align-items: center;
  padding: 16px;
}
.pe-sheet.pl-review,
.pe-sheet.pl-credit-sheet,
.pe-sheet.pl-payment,
.pe-sheet.pl-reconciliation,
.pe-sheet.pl-files,
.pe-sheet.pl-credit-allocate {
  width: min(940px, 96vw);
  max-width: 96vw;
  max-height: 92vh;
}
.pl-pricing-label input[type=checkbox],
.pl-confirm input[type=checkbox],
.pl-table input[type=checkbox] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: #1588d9;
}
.pl-upload-zone {
  display: block;
  border: 2px dashed #bed7eb;
  background: #f3f9fe;
  padding: 25px;
  border-radius: 5px;
  color: #397ba7;
  font-size: 14px;
  margin: 16px 0;
}
.pl-upload-zone input {
  display: block;
  margin-top: 12px;
  max-width: 100%;
}
.modal:has(.pl-conversion) {
  align-items: center;
  padding: 16px;
}
.pe-sheet.pl-conversion {
  width: min(940px, 96vw);
  max-width: 96vw;
  max-height: 92vh;
}
.pl-credit-actions {
  margin-top: 22px;
}
.modal:has(.pl-files) {
  align-items: end;
  padding: 0 12px;
}
.pe-sheet.pl-files {
  width: min(800px, 96vw);
  max-width: 96vw;
  max-height: 92vh;
}
.pl-files > header {
  background: #0753a4;
}
.pl-files .pe-sheet-body {
  padding: 20px;
}
.pl-photo-drop {
  border: 1px dashed #269ce5;
  border-radius: 12px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9db2d1;
  background: #fff;
  gap: 12px;
}
.pl-photo-drop.pl-drag-over {
  background: #eef8ff;
  border-width: 2px;
}
.pl-camera {
  width: 58px;
  height: 58px;
  color: #98d3fa;
}
.pl-camera svg {
  width: 100%;
  height: 100%;
}
.pl-photo-drop h3 {
  margin: 0;
  color: #164f93;
  font-size: 19px;
  font-weight: 700;
}
.pl-photo-drop p {
  font-size: 15px;
  margin: 0;
  color: #9db1ce;
  font-weight: 500;
}
.pl-photo-drop small {
  font-size: 10px;
  color: #8898ac;
}
.pl-photo-drop > button {
  font-size: 16px;
  padding: 8px 18px;
}
.pl-photo-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.pl-photo-card {
  position: relative;
  width: 145px;
  border: 1px solid #d4e2ee;
  border-radius: 5px;
  padding: 10px;
  margin-top: 15px;
}
.pl-photo-card > div {
  height: 100px;
  display: grid;
  place-items: center;
  background: #f3f7fb;
  font-size: 38px;
  color: #8ab6d8;
}
.pl-photo-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.pl-photo-card b {
  font-size: 11px;
  overflow-wrap: anywhere;
  display: block;
  margin-top: 8px;
  color: #366087;
}
.pl-photo-card small {
  font-size: 10px;
  color: #8093a7;
}
.pl-photo-card button {
  position: absolute;
  top: 1px;
  right: 2px;
  background: #fff;
}
.pl-existing-files {
  font-size: 14px;
  color: #31577e;
  margin: 20px 0 8px;
}
.pl-file-close-confirm {
  z-index: 12000;
}
