/* DRYKETO Admin Portal RC1.7.9.27
   Compact product actions + FIFO-safe Pack Stock Add/Reduce */
.heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.compact-product-row td{vertical-align:middle;padding-top:9px;padding-bottom:9px}
.compact-product-image img{width:58px!important;height:58px!important;object-fit:cover;border-radius:10px}
.compact-product-row .status-pill{display:inline-flex;margin-top:5px}
.stock-readonly{display:inline-flex;min-width:58px;justify-content:center;align-items:center;padding:8px 10px;border:1px solid #d9dfd9;border-radius:8px;background:#f5f7f5;font-weight:800;color:#123d31}
.variant-active-compact{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:700}
.variant-active-compact input{width:16px;height:16px;margin:0}
.product-actions-menu{position:relative;display:inline-block}
.product-actions-menu>summary{list-style:none;cursor:pointer;user-select:none;white-space:nowrap;border:1px solid #184c3d;border-radius:9px;background:#fff;color:#123d31;font-weight:800;padding:8px 11px}
.product-actions-menu>summary::-webkit-details-marker{display:none}
.product-actions-menu[open]>summary{background:#eef6f1}
.product-actions-popover{position:absolute;right:0;top:calc(100% + 6px);z-index:60;min-width:210px;padding:7px;background:#fff;border:1px solid #d7e1db;border-radius:12px;box-shadow:0 14px 36px rgba(10,45,34,.18);display:grid;gap:4px}
.product-actions-popover button{width:100%;text-align:left;border:0;background:transparent;color:#123d31;padding:9px 10px;border-radius:8px;font-weight:700;cursor:pointer}
.product-actions-popover button:hover:not(:disabled){background:#eef7f2}
.product-actions-popover button.warning-action{color:#8d4a00}
.product-actions-popover button:disabled{opacity:.5;cursor:not-allowed}

.pack-entry-panel .admin-heading{align-items:flex-start}
.pack-entry-rule{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;margin-bottom:12px;background:linear-gradient(135deg,#f8fbf9,#fffaf0)}
.pack-entry-rule h2{margin:2px 0 4px;color:#0d503b}
.pack-entry-rule p{margin:0;max-width:980px;color:#4d625a;line-height:1.45}
.pack-entry-toolbar{margin-bottom:8px}
.pack-entry-toolbar input{min-width:320px}
.pack-entry-table-wrap{overflow:visible}
.pack-entry-table th,.pack-entry-table td{vertical-align:middle}
.pack-entry-table td:first-child{min-width:190px}
.pack-entry-table td:nth-child(3){min-width:155px}
.pack-entry-table small{display:block;color:#708078;margin-top:2px}
.pack-entry-qty{width:100px!important;min-width:100px!important;text-align:center;font-weight:800;border:1px solid #a8bcb2!important;background:#fffef9!important}
.pack-entry-qty:focus{outline:2px solid #c89b27;outline-offset:1px;border-color:#c89b27!important}
.pack-entry-status{display:inline-flex;min-width:86px;justify-content:center;padding:5px 8px;border-radius:999px;background:#f0f4f1;color:#53665d;font-size:11px;font-weight:800;white-space:nowrap}
.pack-entry-status.saving{background:#fff4cc;color:#795d00}
.pack-entry-status.saved{background:#e5f6e9;color:#0e6631}
.pack-entry-status.error{background:#ffe5e5;color:#9e1f1f;max-width:220px;white-space:normal;text-align:center}

/* Stock quantities are intentionally not directly editable in catalogue/size screens. */
[data-admin-panel="products"] [data-price],
[data-admin-panel="products"] [data-offline-price],
[data-admin-panel="sizes"] [data-size-price],
[data-admin-panel="sizes"] [data-size-offline-price]{background:#f7f8f7}

@media (max-width:900px){
  .product-actions-popover{right:auto;left:0}
  .pack-entry-toolbar input{min-width:0;width:100%}
  .heading-actions{width:100%}
}
.product-action-cell{display:flex;align-items:center;min-width:145px}
.product-action-select{min-width:145px!important;width:145px!important;margin:0!important;padding:8px 9px!important;border:1px solid #1b5a44!important;border-radius:9px!important;background:#fff!important;color:#123d31!important;font-weight:800!important;cursor:pointer}

/* RC1.7.9.25 Pack Holding / Reduce */
.pack-holding{min-width:130px;display:grid;grid-template-columns:auto auto;align-items:baseline;gap:0 6px}
.pack-holding>strong{font-size:20px;line-height:1;color:#0d503b}
.pack-holding>span{font-size:11px;font-weight:800;color:#5d7067;text-transform:uppercase;letter-spacing:.04em}
.pack-holding>small{grid-column:1/-1;margin-top:4px!important;color:#718078!important;white-space:nowrap}
.pack-entry-add{border-color:#8db5a5!important;background:#f9fffb!important}
.pack-entry-reduce{border-color:#d6ad75!important;background:#fffaf3!important}
.pack-entry-reduce:focus{outline-color:#a85d18!important;border-color:#a85d18!important}
@media(max-width:1000px){.pack-entry-table-wrap{overflow-x:auto}.pack-entry-table{min-width:980px}}

/* RC1.7.9.27 inventory reconciliation */
.pack-loose-line{display:block;margin-top:4px;color:#315f52;font-size:11px}.pack-loose-line.error{color:#9f1d1d}.audit-reconcile-note{font-size:12px;color:#49655b}
