/* DRYKETO Admin Portal RC1.7.9.28 — compact Actual Landed Cost / Coin Master / Profit Check */
.landed-profit-panel{--lp-line:#d9e3dd;--lp-muted:#687970;--lp-green:#0d503b}.lp-compact-heading{align-items:flex-start;margin-bottom:8px}.lp-compact-heading h1{margin-bottom:2px}.lp-compact-heading small{color:var(--lp-muted);font-weight:700}.lp-role-note{margin:6px 0 10px;padding:7px 10px;border-left:3px solid #c49a2e;border-radius:6px;background:#fffaf0;color:#506158;font-size:12px}.lp-toolbar{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(145px,.7fr));gap:8px;margin:8px 0}.lp-toolbar input,.lp-toolbar select{width:100%;margin:0}.lp-summary{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:8px 0;padding:8px 10px}.lp-summary span{font-size:12px;color:#52655b}.lp-summary b{color:#0d503b;margin-right:3px}.lp-status-strip{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 8px;color:#718078;font-size:11px}.lp-tools-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.lp-tool-drawer{border:1px solid var(--lp-line);border-radius:8px;background:#fff;min-width:260px}.lp-tool-drawer>summary{cursor:pointer;padding:8px 11px;font-weight:800;color:#164d3b;list-style:none}.lp-tool-drawer>summary::-webkit-details-marker{display:none}.lp-tool-drawer[open]{width:100%}.lp-tool-drawer[open]>summary{border-bottom:1px solid #e8eeea;background:#f8fbf9}.lp-tool-body{padding:10px 12px}.lp-tool-help{margin:0 0 8px;color:#607169;font-size:12px}.lp-pouch-map-grid{display:grid;grid-template-columns:minmax(210px,1.2fr) minmax(190px,1fr) auto auto;gap:8px;align-items:end}.lp-pouch-map-grid label,.lp-sim-grid label{display:grid;gap:4px;font-size:12px;font-weight:700}.lp-pouch-map-grid select,.lp-sim-grid input,.lp-sim-grid select{width:100%;box-sizing:border-box}.lp-pouch-map-help{margin-top:8px}.lp-sim-grid{display:grid;grid-template-columns:minmax(260px,1.2fr) repeat(2,minmax(150px,.7fr)) auto;gap:8px;align-items:end}.lp-sim-info{margin-top:8px}.lp-sim-output{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.lp-sim-output>div{min-width:150px;padding:8px 10px;border:1px solid var(--lp-line);border-radius:7px;background:#fafcfb}.lp-sim-output span{display:block;color:#6c7a73;font-size:11px}.lp-sim-output b{display:block;margin-top:2px}.lp-table-wrap{overflow:auto;border:1px solid var(--lp-line);border-radius:9px;background:#fff}.lp-table{width:100%;border-collapse:collapse;min-width:1180px}.lp-table th{position:sticky;top:0;z-index:2;text-align:left;white-space:nowrap;padding:9px 8px;background:#f7faf8;color:#43584d;border-bottom:1px solid #dce5df;font-size:11px;text-transform:uppercase;letter-spacing:.02em}.lp-table td{padding:8px;border-bottom:1px solid #edf1ee;vertical-align:middle;font-size:12px}.lp-table tbody tr.lp-data-row:hover{background:#fafcfb}.lp-table small{display:block;margin-top:2px;color:#718078;font-size:10.5px;line-height:1.25}.lp-money{font-variant-numeric:tabular-nums;white-space:nowrap}.lp-actual b{color:#0d503b;font-size:13px}.lp-good{color:#08783f;font-weight:800}.lp-bad{color:#b22b22!important;font-weight:800}.lp-warn{color:#986400!important;font-weight:800}.lp-owner-cell{background:#fffdf7}.lp-owner-head{background:#fbf8ec!important}.lp-detail-btn{min-width:58px}.lp-detail-row td{padding:0;background:#fbfcfb}.lp-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:8px;padding:9px}.lp-detail-card{border:1px solid var(--lp-line);border-radius:8px;background:#fff;padding:9px 10px}.lp-detail-card h4{margin:0 0 7px;color:#174c3b;font-size:12px}.lp-kv{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:5px 10px;font-size:11px}.lp-kv span{color:#687970}.lp-kv b{text-align:right;font-variant-numeric:tabular-nums}.lp-detail-sim{margin-top:8px}.lp-inline-warning{margin-top:7px;padding:6px 8px;border-radius:6px;background:#fff6dc;color:#7d5c00;font-size:11px;font-weight:700}.lp-pill{display:inline-flex;padding:3px 7px;border-radius:999px;background:#eef5ef;color:#215b3d;font-size:10px;font-weight:800}.lp-breakdown{line-height:1.35}.lp-empty,.lp-loading{padding:22px!important;text-align:center;color:#63736a}.lp-actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.lp-owner-only[hidden]{display:none!important}@media(max-width:1100px){.lp-toolbar{grid-template-columns:1fr 1fr}.lp-detail-grid{grid-template-columns:1fr 1fr}.lp-pouch-map-grid,.lp-sim-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){.lp-toolbar,.lp-pouch-map-grid,.lp-sim-grid,.lp-detail-grid{grid-template-columns:1fr}.lp-summary{gap:9px}.lp-status-strip{display:block}.lp-status-strip span{display:block;margin-top:3px}.lp-table{min-width:1050px}}

/* ==========================================================
   RC1.7.9.30 — FIT-TO-SCREEN + INDEPENDENT PRODUCT/DETAIL SCROLL
   Presentation only. Costing / GST / FIFO / Coin Master math unchanged.
   ========================================================== */
body.admin-body.lp-mode-active{overflow:hidden!important}
body.admin-body.lp-mode-active .rc164-main{padding:10px 14px!important;min-height:0!important;overflow:hidden!important}
.landed-profit-panel{
  width:100%!important;max-width:none!important;box-sizing:border-box!important;
  height:var(--lp-panel-height,calc(100vh - 228px))!important;min-height:420px!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;gap:0!important
}
.landed-profit-panel[hidden]{display:none!important}
.lp-compact-heading,.lp-role-note,.lp-toolbar,.lp-summary,.lp-status-strip,.lp-tools-row{flex:0 0 auto!important}
.lp-compact-heading{margin:0 0 4px!important}.lp-compact-heading h1{font-size:22px!important;line-height:1.1!important}
.lp-role-note{margin:3px 0 5px!important;padding:4px 8px!important;font-size:10.5px!important}
.lp-toolbar{margin:4px 0!important;gap:6px!important;grid-template-columns:minmax(230px,1.45fr) repeat(3,minmax(120px,.62fr))!important}
.lp-toolbar input,.lp-toolbar select{min-height:34px!important;padding:6px 8px!important;font-size:11px!important}
.lp-summary{margin:3px 0!important;padding:5px 8px!important;gap:12px!important;min-height:30px!important}
.lp-status-strip{margin:0 0 4px!important;font-size:10px!important;min-height:15px!important}
.lp-tools-row{margin:3px 0 5px!important;min-height:31px!important}
.lp-tool-drawer>summary{padding:6px 9px!important;font-size:11px!important}
.lp-tool-body{padding:8px 10px!important;max-height:170px!important;overflow:auto!important}
.lp-table-wrap{
  flex:1 1 0!important;min-height:170px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
  border-radius:8px!important;margin:0!important
}
.lp-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.lp-table th{top:0!important;z-index:5!important;padding:7px 5px!important;font-size:9.5px!important;line-height:1.2!important;white-space:normal!important;background:#075236!important;color:#fff!important;text-transform:none!important}
.lp-table td{padding:7px 5px!important;font-size:10.5px!important;line-height:1.2!important;overflow-wrap:anywhere!important}
.lp-table td b{font-size:11px}.lp-table small{font-size:9px!important;line-height:1.15!important}
.lp-table .lp-money{white-space:normal!important;font-variant-numeric:tabular-nums}
.lp-table th:nth-child(1){width:12%}.lp-table th:nth-child(2){width:8%}.lp-table th:nth-child(3){width:8%}.lp-table th:nth-child(4){width:8%}.lp-table th:nth-child(5){width:11%}.lp-table th:nth-child(6){width:8%}.lp-table th:nth-child(7){width:10%}.lp-table th:nth-child(8){width:9%}.lp-table th:nth-child(9){width:8%}.lp-table th:nth-child(10){width:10%}.lp-table th:nth-child(11){width:6%}
.lp-data-row.selected td{background:#edf8f1!important;border-top:1px solid #9dc9ad!important;border-bottom:1px solid #9dc9ad!important}
.lp-data-row.selected td:first-child{box-shadow:inset 3px 0 #0a6a43}
.lp-detail-btn{min-width:52px!important;padding:6px 7px!important;font-size:10px!important}
.lp-detail-dock{
  flex:0 0 clamp(215px,34vh,330px)!important;min-height:0!important;margin-top:6px!important;
  display:flex!important;flex-direction:column!important;border:1px solid #cfdcd4!important;border-radius:10px!important;
  background:#fff!important;box-shadow:0 -3px 14px rgba(11,67,43,.08)!important;overflow:hidden!important
}
.lp-detail-dock[hidden]{display:none!important}
.lp-detail-dock-head{
  flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;padding:7px 10px!important;background:linear-gradient(90deg,#f1f8f3,#fff)!important;border-bottom:1px solid #dce6df!important
}
.lp-detail-dock-head small{display:block!important;color:#6a776f!important;font-size:8.5px!important;font-weight:800!important;letter-spacing:.06em!important}
.lp-detail-dock-head h3{margin:1px 0!important;color:#123f2e!important;font-size:14px!important;line-height:1.2!important}
.lp-detail-dock-head p{margin:0!important;color:#6b786f!important;font-size:9.5px!important}
.lp-detail-close{width:30px!important;height:30px!important;flex:0 0 30px!important;border:1px solid #b7c9be!important;border-radius:7px!important;background:#fff!important;color:#164b37!important;font-size:20px!important;line-height:1!important;cursor:pointer!important}
.lp-detail-scroll{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;padding:7px!important}
.lp-detail-grid{grid-template-columns:repeat(4,minmax(180px,1fr))!important;gap:7px!important;padding:0!important;align-items:start!important}
.lp-detail-card{padding:8px!important;border-radius:7px!important}
.lp-detail-card h4{margin:0 0 5px!important;font-size:11px!important}
.lp-kv{grid-template-columns:minmax(105px,1fr) auto!important;gap:4px 8px!important;font-size:10px!important}
.lp-detail-row{display:none!important}
@media(max-width:1250px){
  .lp-table{min-width:0!important;table-layout:fixed!important}.lp-table-wrap{overflow-y:auto!important;overflow-x:hidden!important}
  .lp-detail-grid{grid-template-columns:repeat(2,minmax(220px,1fr))!important}
}
@media(max-width:900px){
  body.admin-body.lp-mode-active{overflow:auto!important}.landed-profit-panel{height:auto!important;min-height:0!important;overflow:visible!important}
  .lp-table-wrap{max-height:55vh!important}.lp-detail-dock{flex-basis:auto!important;max-height:52vh!important}.lp-toolbar{grid-template-columns:1fr 1fr!important}
}
@media(max-width:700px){.lp-detail-grid{grid-template-columns:1fr!important}.lp-table{min-width:0!important;table-layout:fixed!important}.lp-table th,.lp-table td{font-size:8.5px!important;padding:5px 2px!important}}
