.purchases-page{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:#264130;padding-top:10px}
.purchase-page-intro{display:flex;justify-content:space-between;align-items:center;gap:22px;margin:12px 0 25px}.purchase-eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:650;color:#8e9e84}.purchase-page-intro h2{font-size:24px;letter-spacing:-.7px;font-weight:600;line-height:1.3;margin:9px 0}.purchase-page-intro p{font-size:12px;color:#8c9986;margin:0;line-height:1.7}.purchase-page-actions{display:flex;gap:10px;flex-shrink:0}.purchases-page .button{font-family:inherit;font-size:12px;font-weight:550;min-height:41px;border-radius:9px;box-shadow:none;padding:11px 16px}.purchases-page .primary{background:#087744}.purchases-page .secondary{background:white;border-color:#e0e6dc;color:#6b7b62}
.purchase-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:26px}.purchase-stat{display:flex;gap:14px;align-items:flex-start;padding:21px 19px;background:#fff;border:1px solid #e8ede2;border-radius:14px}.purchase-stat-icon{background:#edf5e6;border-radius:10px;color:#749453;padding:10px;display:inline-flex}.purchase-stat-icon svg{width:21px;height:21px;stroke-width:1.5}.purchase-stat-label{display:block;font-size:11px;color:#91a082;font-weight:500;line-height:1.5}.purchase-stat strong{font-size:21px;letter-spacing:-.6px;font-weight:650;color:#364f32;display:block;margin:8px 0 6px;white-space:nowrap}.purchase-stat small{display:block;font-size:10px;color:#a0aa98;line-height:1.5}.purchase-stat.amber .purchase-stat-icon{background:#fff5e0;color:#d0aa5a}.purchase-stat.sage .purchase-stat-icon{background:#e8f4e5;color:#78a567}.purchase-stat.neutral .purchase-stat-icon{background:#f0f3ed;color:#9aa68e}
.purchase-list{background:#fff;border:1px solid #e5ebdf;border-radius:16px;box-shadow:0 3px 15px #32522003;overflow:hidden}.purchase-list-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 23px 20px}.purchase-list-header h2{font-size:16px;font-weight:600;color:#3d5437;margin:0;display:flex;align-items:center;gap:10px}.purchase-list-header h2>span{display:inline-flex;background:#f0f5e9;color:#9aa98b;border-radius:6px;padding:3px 7px;font-size:10px;font-weight:500}.purchase-list-header p{margin:7px 0 0;color:#a4ae9a;font-size:11px}.purchase-status-tabs{display:flex;gap:3px;background:#f6f8f2;padding:4px;border:1px solid #eef2e7;border-radius:9px}.purchase-status-tabs button{font-family:inherit;border:0;border-radius:6px;display:flex;gap:7px;align-items:center;padding:8px 10px;background:transparent;color:#9ba78c;font-size:11px;white-space:nowrap}.purchase-status-tabs button span{font-size:9px;opacity:.7}.purchase-status-tabs button.active{background:#fff;color:#5e8244;box-shadow:0 1px 5px #2940110a}.purchase-status-tabs button.active span{opacity:1;background:#eff5e9;padding:2px 5px;border-radius:4px}
.purchase-filter-bar{padding:0 23px 20px;display:flex;gap:10px;align-items:center}.purchase-search{min-width:170px;flex:1;display:flex;align-items:center;gap:9px;border:1px solid #e7ecdf;border-radius:8px;padding:10px 12px;color:#aeb8a1;font-weight:400}.purchase-search svg{width:17px;height:17px;stroke-width:1.6}.purchase-search input{border:0!important;padding:0!important;margin:0!important;min-height:0!important;width:100%;outline:0;background:transparent;box-shadow:none;font-family:inherit;font-size:11px;color:#56694b}.purchase-search input::placeholder{color:#adb79f}.purchase-filter{font-family:inherit;border:1px solid #e7ecdf;border-radius:8px;padding:10px 28px 10px 11px;background-color:white;font-size:11px;color:#8a9b79;background-position:right 10px center;min-height:36px;max-width:180px}.purchase-filter.sort-filter{max-width:145px}
.purchase-table-wrap{overflow:auto}.purchase-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}.purchase-table th{padding:12px 17px;font-size:9px;letter-spacing:.6px;text-transform:uppercase;font-weight:600;background:#f9fbf5;border-top:1px solid #eff3e8;border-bottom:1px solid #eff3e8;color:#a1ae92}.purchase-table td{padding:19px 17px;border-bottom:1px solid #f0f3eb;vertical-align:middle;color:#7a8e68}.purchase-table tbody tr:last-child td{border-bottom:0}.purchase-table tbody tr:hover{background:#fdfefb}.purchase-table strong{font-size:11px;font-weight:550;color:#667e53}.purchase-table td>small,.purchase-product small{display:block;color:#a4b396;font-size:9px;line-height:1.7;margin-top:5px}.purchase-table .num{text-align:right;font-variant-numeric:tabular-nums}.purchase-reference{background:none;border:0;padding:0;color:#75985a;font-weight:600;font-family:inherit;font-size:11px}.purchase-reference:hover{text-decoration:underline}.purchase-product{display:flex;align-items:center;gap:10px}.purchase-thumbnail{width:37px;height:39px;border-radius:9px;background:#f0f6e8;color:#a9bf88;display:grid;place-items:center;flex-shrink:0;overflow:hidden}.purchase-thumbnail.beverage{background:#fff5e5;color:#c3b080}.purchase-thumbnail svg{width:20px;height:20px;stroke-width:1.5}.purchase-thumbnail img{width:100%;height:100%;object-fit:contain}.purchase-supplier-name{color:#8e9e80;font-size:11px}.purchase-table .purchase-money{font-size:12px;color:#5c7948;font-weight:600}.purchase-status{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:6px 8px;font-size:9px;font-weight:500;background:#fff6e3;color:#b29c67}.purchase-status i{display:block;width:4px;height:4px;border-radius:50%;background:currentColor}.purchase-status.received{background:#eef6e6;color:#8cab68}.purchase-actions-head{text-align:right}.purchase-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.purchase-icon{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;width:27px;height:29px;border:1px solid transparent;border-radius:6px;background:transparent;color:#a9b39a;font-size:21px}.purchase-icon svg{width:15px;height:15px;stroke-width:1.5}.purchase-icon:hover{background:#f0f5e9;border-color:#e4edd8;color:#6e8d55}.purchase-icon.subtle-danger:hover{background:#fff2eb;color:#ba715b;border-color:#f5e3d8}.receive-button{display:flex;align-items:center;gap:4px;border:1px solid #dae7ce;border-radius:6px;background:#f4f9ed;color:#86a365;font-family:inherit;font-size:9px;padding:7px 9px;margin-left:4px;white-space:nowrap}.receive-button svg{width:13px;height:13px;stroke-width:1.5}.receive-button:hover{background:#eaf3de;color:#607e40}.purchase-complete{display:flex;align-items:center;gap:5px;font-size:9px;color:#b2bda6;padding:5px}.purchase-complete svg{width:13px;height:13px}
.purchase-list-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 23px;background:#fcfdf9;border-top:1px solid #eef2e6;font-size:10px;color:#a4af96}.purchase-list-footer strong{color:#8a9e77;font-weight:550}.purchase-list-footer>span:last-child{display:flex;gap:6px;align-items:center}.purchase-list-footer svg{width:14px;height:14px;stroke-width:1.5}.purchase-scope{font-size:10px;line-height:1.6;color:#9da98f;margin:14px 2px}.purchase-empty{padding:55px 25px 60px;display:flex;flex-direction:column;align-items:center;text-align:center}.purchase-empty>span{display:grid;place-items:center;background:#f1f7e9;color:#a0b887;width:58px;height:58px;border-radius:16px;margin-bottom:18px}.purchase-empty>span svg{width:28px;height:28px;stroke-width:1.3}.purchase-empty h3{font-size:17px;color:#698553;font-weight:550;margin:0 0 9px}.purchase-empty p{max-width:370px;font-size:12px;line-height:1.8;color:#a4b095;margin:0 0 22px}
/* All dialogs share the purchase modal's quieter visual style. */
.purchase-table{font-size:13px}.purchase-table th{font-size:11px;color:#829272}.purchase-table strong{font-size:13px;color:#5e754d}.purchase-table td>small,.purchase-product small{font-size:11px;color:#839575}.purchase-supplier-name{font-size:12px;color:#768c63}.purchase-status{font-size:11px}.purchase-icon{color:#81916f}.receive-button{font-size:11px}.purchase-filter{font-size:12px;color:#72865f}.purchase-search input{font-size:12px}.purchase-stat-label{font-size:12px;color:#80946f}.purchase-stat small{font-size:11px;color:#8b9b7c}.purchase-list-footer{font-size:11px}.purchase-status-tabs button{font-size:12px}.purchase-table .purchase-money{font-size:14px}.purchase-complete{font-size:10px;color:#8a9e77}
#modal .modal-title-symbol{display:grid;place-items:center;width:39px;height:39px;min-width:39px;border:1px solid #e8efdf;background:#f7faf1;color:#92ac75;border-radius:11px;margin:1px 13px 0 0}#modal .modal-title-symbol svg{width:21px;height:21px;stroke-width:1.5}#modal .modal-head>div{flex:1;min-width:0}#modal .modal-required-hint{margin-right:auto;align-self:center;font-size:9px;font-weight:400;color:#aab59b;max-width:45%;line-height:1.6}#modal.read-modal .modal-body>.data-table{font-family:inherit}#modal.read-modal .data-table th{background:transparent;font-size:11px;font-weight:450;color:#91a17d;border-bottom:1px solid #f0f3e8;padding:13px 9px;white-space:normal;width:45%}#modal.read-modal .data-table td{font-size:12px;color:#667f51;border-color:#f0f3e8;padding:13px 9px;overflow-wrap:anywhere}#modal.read-modal .modal-foot{justify-content:flex-end}#modal.danger-modal .modal-title-symbol{background:#fff6f1;border-color:#f4e8df;color:#bd9680}#modal.danger-modal .modal-foot .primary{background:#a7644f}#modal.confirmation-modal{max-width:520px}#modal.confirmation-modal .modal-body>p{font-size:13px;color:#8b9b7b;line-height:1.9}#modal .order-line select,#modal .order-line input{border:1px solid #e2e9da;border-radius:8px;padding:11px;min-width:0;font:13px ui-sans-serif,system-ui;background-color:#fff;color:#698253}#modal .order-total{border-color:#e7eddf;font-size:12px;color:#9aa98a}#modal .order-total b{font-size:22px;font-weight:600;color:#709148}#modal .settings-item,#modal .metric-row{font-family:inherit;border-color:#edf2e4;color:#8b9d76;font-size:12px}#modal .settings-item strong,#modal .metric-row strong{font-size:13px;font-weight:550;color:#69844f}#modal .modal-body>label+label{margin-top:17px}#modal #familyFields>label,#modal #beverageFields>label{margin:17px 0}#modal label:has(input[type=password]){margin-bottom:20px}#modal .empty h3{font-size:17px;color:#849b68}
@media(min-width:1450px){.purchase-table td{padding-top:22px;padding-bottom:22px}.purchase-table{font-size:12px}.purchase-table strong{font-size:12px}.purchase-table th{font-size:10px}.purchase-table td>small,.purchase-product small{font-size:10px}.purchase-stat strong{font-size:25px}}
@media(max-width:1250px){.purchase-stats{gap:10px}.purchase-stat{padding:17px 13px;gap:10px}.purchase-stat-icon{padding:9px}.purchase-stat strong{font-size:18px}.purchase-stat-label{font-size:10px}.purchase-page-intro h2{font-size:21px}.purchase-filter-bar{flex-wrap:wrap}.purchase-search{flex-basis:100%}.purchase-filter{flex:1;max-width:none}.purchase-filter.sort-filter{max-width:none}.purchase-list-header{align-items:flex-start;flex-wrap:wrap}.purchase-table td{padding:16px 12px}}
@media(max-width:650px){.purchase-page-intro{align-items:stretch;flex-direction:column;gap:15px;margin-bottom:18px}.purchase-page-intro h2{font-size:22px}.purchase-page-actions .button{flex:1}.purchase-stats{grid-template-columns:1fr 1fr;gap:9px;margin-bottom:18px}.purchase-stat{padding:15px 11px;gap:9px}.purchase-stat-icon{padding:7px;border-radius:8px}.purchase-stat-icon svg{width:17px;height:17px}.purchase-stat strong{font-size:18px;margin:7px 0}.purchase-stat small{font-size:9px}.purchase-stat-label{font-size:10px}.purchase-list-header{padding:19px 15px 15px;gap:16px}.purchase-status-tabs{width:100%}.purchase-status-tabs button{flex:1;justify-content:center;font-size:10px;padding:8px 5px;gap:4px}.purchase-filter-bar{padding:0 15px 17px;gap:8px}.purchase-filter{font-size:10px;min-width:0;max-width:calc(50% - 4px);flex-basis:calc(50% - 4px);padding-left:9px}.purchase-filter.sort-filter{max-width:100%;flex-basis:100%}.purchase-search input{font-size:12px}.purchase-table-wrap{overflow:visible}.purchase-table{white-space:normal;display:block}.purchase-table thead{display:none}.purchase-table tbody{display:block;padding:0 15px}.purchase-table tr{display:grid;grid-template-columns:1fr 1fr;padding:17px 0;border-bottom:1px solid #edf2e4;gap:14px 12px}.purchase-table tr:last-child{border:0}.purchase-table td{display:block;padding:0;border:0;text-align:left!important;font-size:11px}.purchase-table td:first-child{grid-column:1}.purchase-table td:nth-child(2){grid-column:1/-1;grid-row:2}.purchase-table td:nth-child(3){grid-column:1;grid-row:3}.purchase-table td:nth-child(4){grid-column:2;grid-row:3}.purchase-table td:nth-child(5){grid-column:1;grid-row:4}.purchase-table td:nth-child(6){grid-column:2;grid-row:1;text-align:right!important}.purchase-table td:nth-child(7){grid-column:1/-1;grid-row:5}.purchase-table td:nth-child(3):before,.purchase-table td:nth-child(4):before,.purchase-table td:nth-child(5):before{content:attr(data-label);display:block;text-transform:uppercase;font-size:8px;letter-spacing:.8px;color:#abb89b;margin:0 0 5px}.purchase-product strong{font-size:13px}.purchase-table .purchase-money{font-size:14px}.purchase-row-actions{justify-content:flex-start;border-top:1px dashed #edf1e6;padding-top:11px;gap:8px}.receive-button{margin-left:auto;font-size:10px;padding:8px 11px}.purchase-complete{margin-left:auto}.purchase-list-footer{padding:15px;flex-direction:column;align-items:flex-start;font-size:9px;gap:9px}.purchase-scope{font-size:9px}.purchase-empty{padding:35px 20px}.purchase-empty h3{font-size:16px}#modal .modal-title-symbol{width:32px;height:32px;min-width:32px;border-radius:9px;margin-right:10px}#modal .modal-title-symbol svg{width:18px;height:18px}#modal .modal-head h2{font-size:18px}#modal .modal-required-hint{display:none}#modal .order-line{grid-template-columns:minmax(0,1fr) 60px 30px;gap:6px}}
