[data-page="mailPurchaseOrders"]{max-width:none}
[data-page="mailPurchaseOrders"] .panel-head{align-items:center}
#purchaseInboxError:empty,#mailPurchaseOrdersFeedback:empty{display:none}
.po-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid #ccd9d2;padding-bottom:12px;margin:16px 0}
.po-tabs button{display:flex;align-items:center;gap:9px;background:#fff;color:#25463a;border:1px solid #c6d6ce;border-radius:5px;padding:10px 13px}
.po-tabs button.active{background:#205e46;color:#fff;border-color:#205e46}
.po-tabs button span,.po-nav-count{font-size:12px;border-radius:4px;background:#e5ece8;color:#214a39;padding:2px 6px;font-weight:700}
.po-nav-count{margin-left:7px;background:#ffe9a0;color:#594410}
.po-status-line{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:8px 0;font-size:13px;color:#52675d}
.po-status-line button{font-size:13px;padding:6px 9px}
.po-notice{background:#fff3bf;border-left:4px solid #b88613;padding:10px 14px;color:#5f4700;margin:12px 0}
.po-filters{display:grid;grid-template-columns:minmax(140px,1fr) minmax(145px,.8fr) minmax(210px,1.6fr) repeat(2,minmax(130px,.7fr)) 40px;gap:10px;align-items:end;margin:14px 0}
.po-filters label{min-width:0;margin:0}.po-filters input,.po-filters select{width:100%;min-width:0}
.po-history-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.po-history-filters label{min-width:0}
.po-icon{width:36px;min-width:36px;height:36px;padding:7px!important;display:inline-flex;align-items:center;justify-content:center;border-radius:5px}
.po-icon svg{height:19px;width:19px;flex-shrink:0}
.po-danger{color:#a32f36!important;border:1px solid #e2bec3!important;background:#fff5f5!important}
.po-table-scroll{overflow:auto;max-width:100%;border:1px solid #d9e2dd;border-radius:5px}
.po-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;min-width:800px}
.po-table th{font-size:12px;color:#4c6356;background:#edf2ef;text-align:left;padding:12px 10px;border-bottom:1px solid #cbd8d0}
.po-table th:nth-child(1){width:32%}.po-table th:nth-child(2){width:17%}.po-table th:nth-child(3){width:14%}.po-table th:nth-child(4){width:25%}.po-table th:nth-child(5){width:144px}
.po-table td{padding:13px 10px;vertical-align:top;border-bottom:1px solid #e0e7e3;overflow-wrap:anywhere;white-space:normal}
.po-table tr:last-child td{border-bottom:0}.po-table tr:hover{background:#f5f8f6}
.po-table td strong,.po-table td small,.po-table td time,.po-subject{display:block;line-height:1.4}
.po-table td small,.po-table time{font-size:12px;color:#62756b;margin:3px 0}
.po-subject,.po-reason{display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.po-subject{margin-top:5px;color:#52665c;font-size:12px}
.po-amount{font-weight:700;font-variant-numeric:tabular-nums}.po-amount small{font-weight:400}
.po-state{display:inline-block;background:#e5f0e9;color:#215339;font-size:12px;padding:3px 7px;border-radius:4px;font-weight:700;line-height:1.35}
.po-warn{background:#fff0bc;color:#6d5107}.po-uncertain{background:#fffcf2}.po-new td:first-child{box-shadow:inset 3px 0 #bb8918}
.po-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.po-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:14px;font-size:13px}
.po-pager .po-pager-buttons{display:flex;align-items:center;gap:8px}.po-pager select{width:88px}.po-pager label{display:flex;align-items:center;gap:8px;margin:0}
.po-menu{position:fixed;inset:auto;margin:0;padding:6px;width:245px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;border:1px solid #b9cabe;border-radius:5px;background:#fff;box-shadow:0 8px 30px #15362525}
.po-menu button{display:flex;gap:10px;align-items:center;width:100%;padding:10px;background:transparent;color:#274638;text-align:left;border:0;border-radius:3px;font-size:13px}.po-menu button:hover{background:#edf3ef}.po-menu svg{width:18px;height:18px;flex-shrink:0}
[data-page="mailPurchaseOrders"] [hidden]{display:none!important}
@media(max-width:1200px){.po-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.po-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.po-tabs button{flex:1 1 42%;justify-content:space-between}.po-status-line{align-items:flex-start}}
