#compras{--pc-ink:#102e50;--pc-muted:#6e8094;--pc-line:#e0e9f2;color:var(--pc-ink)}.purchaseHead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.purchaseIdentity{display:flex;align-items:center;gap:15px}.purchaseIdentity>span{width:54px;height:54px;background:#e6f0ff;color:#0871e8;border-radius:15px;display:grid;place-items:center}.purchaseIdentity svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.purchaseIdentity h1{margin:0 0 4px;font-size:26px;letter-spacing:-.7px}.purchaseIdentity p{margin:0;color:var(--pc-muted);font-size:13px}.purchaseHeadActions{display:flex;gap:9px;flex-wrap:wrap}.purchaseKPIs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.purchaseKPI{background:#fff;border:1px solid var(--pc-line);border-radius:14px;padding:19px 20px;position:relative;overflow:hidden}.purchaseKPI:before{content:'';position:absolute;top:18px;bottom:18px;left:0;width:4px;background:var(--pc-accent,#1786ec);border-radius:0 3px 3px 0}.purchaseKPI span{font-size:12px;color:var(--pc-muted);display:block}.purchaseKPI b{font-size:30px;display:block;line-height:1.3;margin-top:6px;letter-spacing:-1px}.purchaseKPI small{display:block;margin-top:3px;color:var(--pc-muted);font-size:11px}.purchasePanel{padding:0!important;border-radius:15px;overflow:hidden;background:#fff;border:1px solid var(--pc-line)}.purchaseTabs{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px;border-bottom:1px solid var(--pc-line)}.purchaseTabs>div{display:flex;gap:24px}.purchaseTabs button{border:0;border-bottom:3px solid transparent;border-radius:0;padding:18px 1px 15px;background:transparent;color:var(--pc-muted);font-size:13px;font-weight:800;cursor:pointer}.purchaseTabs button.active{border-color:#0871e8;color:#086bd6}.purchaseTabs button span{padding:3px 7px;background:#edf3fa;border-radius:6px;margin-left:5px;font-size:11px}.purchaseTabs>small{color:var(--pc-muted);font-size:11px}.purchaseFilters{display:grid!important;grid-template-columns:minmax(240px,1fr) 170px 190px auto;gap:10px!important;padding:18px 20px;margin:0!important;border-bottom:1px solid var(--pc-line)}.purchaseFilters input,.purchaseFilters select{min-width:0;width:100%;height:42px;border:1px solid #d8e3ee;border-radius:9px;padding:0 12px;color:var(--pc-ink);background:#fff;font-size:12px}.purchaseFilters .btn{margin:0}.purchaseTableWrap{overflow:auto}.purchaseTable{width:100%;border-collapse:collapse;margin:0!important;min-width:1050px}.purchaseTable th{background:#f7f9fc;color:#6d8197;padding:13px 15px;font-size:10px;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.purchaseTable td{padding:17px 15px;border-bottom:1px solid #edf2f7;font-size:12px;vertical-align:top}.purchaseTable tbody tr:hover{background:#fbfdff}.purchaseTable td b{color:#163b60;font-size:12px}.purchaseTable small{display:block;color:var(--pc-muted);font-size:10px;margin-top:5px;line-height:1.5}.purchaseItemDescription{display:block;max-width:270px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.purchasePrefix{display:inline-flex;background:#eaf3ff;color:#066cd8;border-radius:6px;padding:5px 8px;font-weight:800}.purchaseTag{display:inline-flex;padding:4px 8px;border-radius:6px;background:#eef3f8;color:#5c728b;font-size:10px;font-weight:800;white-space:nowrap}.purchaseTag.urgent,.purchaseTag.late{background:#fff0f1;color:#b12a43}.purchaseTag.high{background:#fff5de;color:#a16b08}.purchaseTag.done{background:#e5f7ef;color:#087a58}.purchaseTag.ordered{background:#eaf2ff;color:#1769b5}.purchaseRowActions{display:flex;gap:5px;flex-wrap:wrap;max-width:180px}.purchaseRowActions .actbtn{margin:0;padding:7px 9px;font-size:10px}.purchaseFoot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 20px;color:var(--pc-muted);font-size:11px;background:#fafcfe}.purchaseFoot>div{display:flex;align-items:center;gap:10px}.purchaseEmpty{padding:60px 20px;text-align:center;color:var(--pc-muted)}.purchaseEmpty>span{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 15px;background:#edf5ff;color:#3584cf;border-radius:16px;font-size:27px}.purchaseEmpty b{display:block;color:var(--pc-ink);font-size:17px;margin-bottom:8px}.purchaseEmpty p{font-size:12px;line-height:1.6}.purchaseMessage{margin-bottom:15px;padding:12px 16px;border:1px solid #bfe7d8;border-radius:9px;background:#ecfaf4;color:#087454;font-size:13px}.purchaseMessage.error{background:#fff1f2;border-color:#f0bbc4;color:#a62c40}.purchaseDialog{width:min(810px,calc(100vw - 30px));max-height:90dvh;border:0;border-radius:16px;padding:0;color:var(--pc-ink,#102e50);box-shadow:0 25px 90px #05193245;background:#fff}.purchaseDialog::backdrop{background:#081d36a8}.purchaseDialogHead{display:flex;justify-content:space-between;align-items:center;padding:22px 25px;border-bottom:1px solid #e0e9f2}.purchaseDialogHead h2{font-size:20px;margin:0 0 4px}.purchaseDialogHead small{font-size:12px;color:#6e8094}.purchaseDialogHead button{background:#f1f5fa;border:0;border-radius:8px;width:32px;height:32px;color:#60758d;font-size:22px;cursor:pointer}.purchaseDialogBody{padding:22px 25px;overflow:auto;max-height:calc(90dvh - 165px)}.purchaseDialog fieldset{border:0;padding:0;margin:0;min-width:0}.purchaseFormGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.purchaseFormGrid .wide{grid-column:1/-1}.purchaseFormGrid .double{grid-column:span 2}.purchaseFormGrid label{font-size:12px;font-weight:800;margin-bottom:7px;display:block}.purchaseFormGrid input,.purchaseFormGrid select,.purchaseFormGrid textarea{width:100%;min-width:0;border:1px solid #d5e0eb;border-radius:8px;padding:10px 12px;min-height:41px;background:#fff;color:#173959;font:13px Arial,sans-serif}.purchaseFormGrid textarea{resize:vertical;min-height:75px}.purchaseFormGroup{grid-column:1/-1;color:#6f849b;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;border-bottom:1px solid #e7edf4;padding:6px 0 10px}.purchaseFormHelp{font-size:11px;line-height:1.5;color:#6e8094;margin:16px 0 0}.purchaseDialogFoot{display:flex;justify-content:flex-end;gap:9px;padding:15px 25px;background:#f7faff;border-top:1px solid #e0e9f2}.purchaseHistoryEvent{border-left:2px solid #d7e9fc;margin:0 0 15px;padding:0 0 4px 15px}.purchaseHistoryEvent strong{font-size:13px}.purchaseHistoryEvent small{display:block;color:#6e8094;margin-top:4px;font-size:11px}.purchaseHistoryEvent ul{font-size:12px;padding-left:18px;overflow-wrap:anywhere;line-height:1.6}.purchaseHistoryEvent p{font-size:12px}.purchaseDialog :focus-visible,#compras :focus-visible{outline:3px solid #91bff5;outline-offset:2px}@media(max-width:1000px){.purchaseHead{align-items:flex-start}.purchaseKPIs{gap:10px}.purchaseFilters{grid-template-columns:1fr 150px 160px}.purchaseFilters .btn{grid-column:1/-1;justify-self:end}}@media(max-width:767px){.purchaseHead{flex-direction:column;gap:16px}.purchaseIdentity h1{font-size:23px}.purchaseIdentity p{font-size:12px}.purchaseHeadActions{width:100%}.purchaseHeadActions .btn{flex:1}.purchaseKPIs{grid-template-columns:1fr 1fr}.purchaseKPI{padding:15px}.purchaseKPI b{font-size:25px}.purchaseTabs{padding:0 14px}.purchaseTabs>small{display:none}.purchaseFilters{grid-template-columns:1fr 1fr;padding:14px}.purchaseFilters input{grid-column:1/-1}.purchaseFilters .btn{grid-column:1/-1;width:100%}.purchaseTable{min-width:0;display:block}.purchaseTable thead{display:none}.purchaseTable tbody{display:grid;gap:12px;padding:14px}.purchaseTable tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dfe8f2;border-radius:11px;padding:5px;background:#fff;gap:0}.purchaseTable td{display:block;border:0;padding:9px 10px;min-width:0}.purchaseTable td:before{content:attr(data-label);display:block;font-size:9px;letter-spacing:.4px;text-transform:uppercase;color:#8190a2;margin-bottom:5px}.purchaseTable td:nth-child(2),.purchaseTable td:last-child{grid-column:1/-1}.purchaseItemDescription{max-width:none}.purchaseRowActions{max-width:none}.purchaseRowActions button{min-height:36px;flex:1}.purchaseFoot{flex-direction:column;padding:14px}.purchaseFormGrid{grid-template-columns:1fr 1fr;gap:13px}.purchaseFormGrid .double{grid-column:1/-1}.purchaseDialogBody,.purchaseDialogHead{padding:18px}.purchaseDialogFoot{padding:14px 18px}.purchaseDialogHead h2{font-size:18px}}@media(prefers-reduced-motion:reduce){.purchaseDialog *{scroll-behavior:auto}}

.purchaseDialog[open]{display:flex;flex-direction:column;overflow:hidden}.purchaseDialog>form{display:flex;flex-direction:column;max-height:90dvh;min-height:0}.purchaseDialogHead,.purchaseDialogFoot{flex-shrink:0}.purchaseDialogBody{flex:1;min-height:0;max-height:none}
