#purchases-app{--purchase-line:#dce3f1;--purchase-ink:#13284b;--purchase-muted:#697c97;color:var(--purchase-ink)}
#purchases-app *{box-sizing:border-box}.pr-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:4px 0 24px}.pr-head h2{font-size:25px;margin:0 0 8px;letter-spacing:-.6px}.pr-head p{margin:0;color:var(--purchase-muted);font-size:13px;line-height:1.6}.pr-heading{display:flex;gap:15px;align-items:center}.pr-module-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:#eaf0ff;color:#0746f5;flex-shrink:0}.pr-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.pr-module-icon .pr-icon{width:28px;height:28px}.pr-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.pr-actions .btn{display:inline-flex;gap:7px;align-items:center}.pr-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.pr-stat{background:#fff;border:1px solid var(--purchase-line);border-radius:15px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between}.pr-stat span{display:block;color:var(--purchase-muted);font-size:12px}.pr-stat strong{display:block;font-size:27px;letter-spacing:-.6px;margin-top:8px}.pr-stat .pr-icon{color:#6c85b9;width:25px;height:25px}.pr-stat.attention{border-color:#f0d3b1;background:#fffcf6}.pr-tabs{display:flex;gap:22px;border-bottom:1px solid var(--purchase-line);margin-bottom:20px}.pr-tabs button{border:0;background:none;padding:12px 2px;color:var(--purchase-muted);font:inherit;font-size:13px;cursor:pointer;border-bottom:3px solid transparent}.pr-tabs button[aria-selected=true]{color:#0746f5;border-bottom-color:#0746f5;font-weight:700}.pr-panel{background:white;border:1px solid var(--purchase-line);border-radius:16px;overflow:hidden}.pr-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;padding:18px;border-bottom:1px solid var(--purchase-line);background:#fbfcff}.pr-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:150px}.pr-field.grow{flex:1}.pr-field input,.pr-field select,.pr-field textarea,.pr-line input,.pr-line select{font:inherit;font-size:13px;border:1px solid #cfd9e9;border-radius:8px;padding:10px 11px;background:white;color:var(--purchase-ink);width:100%;min-width:0}.pr-field textarea{min-height:78px;resize:vertical}.pr-field input:focus,.pr-field select:focus,.pr-field textarea:focus,.pr-line input:focus,.pr-line select:focus{outline:2px solid #cbd9ff;outline-offset:1px;border-color:#0746f5}.pr-field small,.pr-help{font-weight:400;color:var(--purchase-muted);font-size:12px;line-height:1.55}.pr-scroll{overflow:auto}.pr-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.pr-table th{padding:13px 18px;color:var(--purchase-muted);font-size:11px;letter-spacing:.4px;text-transform:uppercase;background:#fbfcff;border-bottom:1px solid var(--purchase-line);white-space:nowrap}.pr-table td{padding:17px 18px;border-bottom:1px solid #edf0f7;vertical-align:middle}.pr-table tr:last-child td{border-bottom:0}.pr-table tbody tr:hover{background:#f8faff}.pr-table small{display:block;margin-top:5px;color:var(--purchase-muted);font-size:11px}.pr-link{border:0;background:none;text-align:left;color:#0746f5;cursor:pointer;font:inherit;font-weight:700;padding:2px 0}.pr-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:600;background:#edf2fb;color:#47618a}.pr-badge.pending,.pr-badge.returned,.pr-badge.partial{background:#fff1d8;color:#90621c}.pr-badge.approved,.pr-badge.received,.pr-badge.closed{background:#e4f7ef;color:#157452}.pr-badge.problem,.pr-badge.rejected{background:#fff0ef;color:#ad443f}.pr-badge.purchased{background:#e9efff;color:#2056ba}.pr-empty{text-align:center;padding:58px 24px;color:var(--purchase-muted)}.pr-empty .pr-icon{width:42px;height:42px;color:#92a5c7;margin-bottom:12px}.pr-empty h3{color:var(--purchase-ink);margin:0 0 8px}.pr-empty p{margin:0;line-height:1.6;font-size:13px}.pr-alert{padding:12px 16px;border-radius:10px;background:#eaf5ee;color:#246b43;font-size:13px;margin-bottom:16px}.pr-alert.error{background:#fff0ef;color:#9a3530}.pr-dialog{border:1px solid var(--purchase-line);border-radius:18px;width:min(960px,calc(100vw - 32px));max-height:88vh;padding:0;color:var(--purchase-ink);box-shadow:0 25px 90px #11254438}.pr-dialog::backdrop{background:#152a4f70;backdrop-filter:blur(3px)}.pr-dialog header{padding:22px 25px;border-bottom:1px solid var(--purchase-line);display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.pr-dialog h2{font-size:21px;letter-spacing:-.4px;margin:0 0 6px}.pr-dialog header p{font-size:12px;color:var(--purchase-muted);margin:0;line-height:1.5}.pr-dialog-body{padding:24px}.pr-dialog footer{padding:17px 25px;background:#fbfcff;border-top:1px solid var(--purchase-line);display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.pr-close{border:0;cursor:pointer;background:#f0f3f9;color:#60708d;border-radius:9px;width:34px;height:34px;display:grid;place-items:center}.pr-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.pr-full{grid-column:1/-1}.pr-line{border:1px solid var(--purchase-line);background:#fafcff;border-radius:12px;padding:15px;margin-bottom:12px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.pr-line .pr-line-top{grid-column:1/-1;display:flex;gap:12px;align-items:center;justify-content:space-between}.pr-line-top select{max-width:calc(100% - 46px)}.pr-line label{font-size:11px;display:flex;flex-direction:column;gap:6px;color:var(--purchase-muted)}.pr-line .pr-item-name{grid-column:1/-1}.pr-dialog h3{font-size:15px;margin:23px 0 14px}.pr-progress{display:flex;gap:6px;margin:0 0 22px}.pr-step{flex:1;border-top:4px solid #e7edf6;padding-top:9px;font-size:11px;color:var(--purchase-muted)}.pr-step.done{border-color:#0746f5;color:#173f9c}.pr-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:20px}.pr-detail-grid div{background:#f7f9fd;padding:14px;border-radius:10px;font-size:13px;overflow-wrap:anywhere}.pr-detail-grid span{display:block;color:var(--purchase-muted);font-size:11px;margin-bottom:5px}.pr-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}.pr-timeline{margin:15px 0 0;padding-left:16px;border-left:2px solid #e3eaf6;list-style:none}.pr-timeline li{position:relative;padding:0 0 19px 6px;font-size:12px}.pr-timeline li:before{content:'';width:8px;height:8px;border-radius:50%;background:#6b8bd1;position:absolute;left:-21px;top:4px}.pr-timeline small{display:block;color:var(--purchase-muted);margin:5px 0}.pr-problem{padding:15px;border:1px solid #f0d4c3;background:#fffaf6;border-radius:11px;margin-bottom:10px}.pr-numeric{width:100px;padding:8px;border:1px solid #cfd9e9;border-radius:7px;font:inherit}.pr-dialog details{margin-top:20px}.pr-dialog summary{cursor:pointer;font-weight:600;font-size:13px}.pr-total{text-align:right;font-size:18px;font-weight:700;padding:16px 0}.pr-mobile-note{font-size:11px;color:var(--purchase-muted);padding:12px 18px}.pr-line button[disabled]{opacity:.4}button:focus-visible{outline:3px solid #9bb7ff;outline-offset:3px}
@media(max-width:760px){.pr-head{align-items:flex-start;flex-direction:column}.pr-stats{grid-template-columns:1fr 1fr}.pr-stat{padding:14px}.pr-stat strong{font-size:23px}.pr-form-grid,.pr-detail-grid{grid-template-columns:1fr}.pr-line{grid-template-columns:1fr 1fr}.pr-line .pr-item-name{grid-column:1/-1}.pr-dialog-body{padding:18px}.pr-dialog header,.pr-dialog footer{padding:16px 18px}.pr-progress{flex-wrap:wrap}.pr-step{min-width:70px}.pr-field{min-width:130px}.pr-head h2{font-size:22px}}
