.pm-wrap{max-width:1460px;margin:0 auto;padding:12px 4px 28px;color:#173f33}.pm-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 18px}.pm-intro small{font-size:11px;letter-spacing:.14em;font-weight:900;color:#668779}.pm-intro h2{font-size:27px;line-height:1.15;margin:6px 0}.pm-intro p{font-size:13px;color:#6a8178;line-height:1.6;margin:4px 0}.pm-add{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 18px}.pm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}.pm-stats>*{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid #e5ece7;background:#fff;border-radius:15px;min-height:94px}.pm-stats span{font-size:12px;color:#758d83}.pm-stats strong{font-size:20px}.pm-filter{display:flex;gap:10px;padding:13px;background:#fff;border:1px solid #e5ece7;border-radius:15px;margin-bottom:14px}.pm-filter input{flex:1;min-width:120px}.pm-filter input,.pm-filter select,.pm-field input,.pm-field select{border:1px solid #d8e3dc;background:#fff;padding:11px 12px;border-radius:9px;min-height:43px;color:#173f33}.pm-filter button{min-width:92px}.pm-table-scroll{overflow-x:auto;border:1px solid #e5ece7;background:#fff;border-radius:15px}.pm-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.pm-table th{padding:15px 13px;background:#f6f9f6;font-size:11px;color:#6a8178;letter-spacing:.04em;white-space:nowrap}.pm-table td{padding:13px;border-top:1px solid #edf1ee;vertical-align:middle}.pm-table td strong{font-size:13px}.pm-table td small{display:block;color:#7d8c85;font-size:11px;margin-top:4px}.pm-table .pm-number{white-space:nowrap;font-variant-numeric:tabular-nums}.pm-status{display:inline-block;border-radius:20px;padding:6px 10px;font-size:11px;background:#e3f4ea;color:#145b3d;font-weight:800}.pm-off{background:#f2f2f2;color:#777}.pm-edit{color:#0c6446;font-weight:800;text-decoration:underline}.pm-shared{font-size:11px;color:#8a877f}.pm-empty{padding:30px!important;text-align:center;color:#718b7e}.pm-empty a{font-weight:800;text-decoration:underline}.pm-pages{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:16px;font-size:13px}.pm-pages a{font-weight:800;color:#146141}.pm-form{background:#fff;border:1px solid #e5ece7;border-radius:16px;padding:22px;max-width:1050px}.pm-section{border-bottom:1px solid #edf1ee;margin-bottom:20px;padding-bottom:21px}.pm-section:last-of-type{border-bottom:0}.pm-section h3{font-size:16px;margin:0 0 17px}.pm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}.pm-field{display:flex;flex-direction:column;gap:6px;min-width:0}.pm-field label{font-size:12px;font-weight:800;color:#456457}.pm-field input{width:100%;max-width:100%;font-size:14px}.pm-field input[type=file]{padding:8px}.pm-field input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:#1d6747}.pm-check{justify-content:center}.pm-check label{display:flex;align-items:center;gap:10px}.pm-field .errorlist,.pm-errors .errorlist{color:#b22b2b;font-size:12px;margin:0;padding-left:18px}.pm-hint{font-size:12px;color:#7b8d82;line-height:1.6}.pm-hint a{text-decoration:underline;font-weight:800}.pm-actions{display:flex;gap:12px;align-items:center}.pm-actions button,.pm-actions a{min-height:43px;padding:12px 22px}@media(max-width:760px){.pm-wrap{padding:9px 2px}.pm-intro{align-items:flex-start;flex-direction:column;gap:10px}.pm-intro h2{font-size:23px}.pm-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pm-stats>*{padding:12px 9px;min-height:80px}.pm-stats strong{font-size:14px}.pm-stats span{font-size:10px}.pm-filter{flex-wrap:wrap}.pm-filter input{flex-basis:100%}.pm-filter select{flex:1}.pm-form{padding:15px}.pm-fields{grid-template-columns:1fr}.pm-table{min-width:770px}.pm-pages{justify-content:center}}
/* Compact mobile cards: prices, stock and controls stay visible without sideways scrolling. */
@media (max-width:760px){
  .pm-table-scroll{overflow:visible;border:0;background:transparent}
  .pm-table{display:block;width:100%;min-width:0!important}
  .pm-table thead{display:none}
  .pm-table tbody{display:grid;gap:10px}
  .pm-table tr{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:10px 12px;padding:13px 14px;background:#fff;border:1px solid #e5ece7;border-radius:14px}
  .pm-table td{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:0;border:0;overflow-wrap:anywhere}
  .pm-table td::before{font-size:10px;line-height:1.4;font-weight:800;letter-spacing:.035em;color:#789084}
  .pm-table td:nth-child(1){grid-column:1 / -1}
  .pm-table td:nth-child(1) strong{font-size:15px}
  .pm-table td:nth-child(1)::before{display:none}
  .pm-table td:nth-child(2)::before{content:"SKU / BARCODE"}
  .pm-table td:nth-child(3)::before{content:"CATEGORY"}
  .pm-table td:nth-child(4)::before{content:"SELLING PRICE"}
  .pm-table td:nth-child(5)::before{content:"IN STOCK"}
  .pm-table td:nth-child(6)::before{content:"STATUS"}
  .pm-table td:nth-child(7){justify-content:flex-end;align-items:flex-end}
  .pm-table td:nth-child(7)::before{display:none}
  .pm-table td:nth-child(7) .pm-edit{display:inline-flex;align-items:center;justify-content:center;min-height:39px;min-width:72px;padding:8px 12px;border:1px solid #d1e5da;border-radius:9px;text-decoration:none}
  .pm-table td.pm-empty{grid-column:1 / -1}
}
.pm-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.pm-toolbar .soft{display:inline-flex;justify-content:center;align-items:center;min-height:43px;padding:10px 12px;border:1px solid #d9e6dc;border-radius:10px;background:#fff}
.ops-panel{background:#fff;padding:18px;border:1px solid #e1e9e3;border-radius:16px;margin:14px 0}.ops-panel h3{font-size:18px;margin:0 0 10px}.ops-panel p{font-size:13px;color:#668076;line-height:1.55}
.ops-table-wrap{overflow-x:auto;max-width:100%}.ops-table{width:100%;min-width:580px;border-collapse:collapse;text-align:left}.ops-table th,.ops-table td{padding:10px 9px;border-bottom:1px solid #e6ede8;font-size:13px}
.ops-table input[type=number]{width:145px;max-width:100%;border:1px solid #c9d9cd;border-radius:9px;padding:10px;min-height:43px}.ops-panel input[type=file],.ops-input{max-width:100%;width:100%;margin-top:8px;padding:11px;border:1px solid #c9d9cd;border-radius:9px}
.ops-alert{padding:12px;background:#fff6e7;border:1px solid #ead9ae;border-radius:10px;margin:14px 0}.ops-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}.ops-actions button,.ops-actions a{min-height:43px;padding:10px 16px}.ops-review{background:#f0f8f4;padding:12px;border-radius:10px}
@media(max-width:760px){.pm-toolbar{width:100%}.pm-toolbar>*{flex:1;white-space:nowrap}.ops-panel{padding:14px}}

/* Phase 2 stock-taking: counted quantities visible without horizontal scrolling. */
@media(max-width:760px){
 .stock-count-table-wrap{overflow:visible}
 .stock-count-table{min-width:0!important;width:100%;display:block}
 .stock-count-table thead{display:none}
 .stock-count-table tbody{display:grid;gap:10px}
 .stock-count-table tr{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:13px;border:1px solid #e4ebe6;border-radius:12px;background:#fff}
 .stock-count-table td{border:0;padding:0;min-width:0;overflow-wrap:anywhere}
 .stock-count-table td:first-child{grid-column:1/-1}
 .stock-count-table td:first-child strong{font-size:13px}
 .stock-count-table td:first-child small{display:block;line-height:1.4;color:#73847c;margin-top:4px}
 .stock-count-table td:nth-child(2)::before{content:"SYSTEM QTY";display:block;font-size:10px;font-weight:700;color:#6d8878;margin-bottom:5px}
 .stock-count-table td:nth-child(3)::before{content:"PHYSICAL COUNT";display:block;font-size:10px;font-weight:700;color:#6d8878;margin-bottom:5px}
 .stock-count-table td:nth-child(3) input[type=number]{width:100%;min-width:0}
 .stock-count-table td:nth-child(4)::before{content:"DIFFERENCE";display:block;font-size:10px;font-weight:700;color:#6d8878;margin-bottom:5px}
 .stock-count-table td:nth-child(4){grid-column:1/-1}
 .stock-count-table tr:has(td[colspan]){display:block}
}
