/* Item photo editing: right-side upload and pasted Snipping Tool images. */
#item-photo-form .inventory-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:22px;align-items:start}
#item-photo-form .inventory-editor-fields{max-width:none;width:100%;min-width:0}
#item-photo-form .inventory-photo-panel{background:#fffef5;border:1px solid #e8e4ce;border-radius:12px;padding:17px;min-width:0;box-shadow:0 3px 12px rgba(19,43,73,.06);position:sticky;top:92px}
#item-photo-form .inventory-photo-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;color:#132b49;font-size:15px}
#item-photo-form .inventory-photo-limit{font-size:10px;font-weight:700;color:#795b13;background:#fff2b7;border:1px solid #ebda9a;padding:4px 7px;border-radius:12px}
#item-photo-form .inventory-photo-dropzone{min-height:210px;background:#fff;border:2px dashed #aebed0;border-radius:10px;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px;cursor:copy;outline:none;transition:border-color .15s,background .15s}
#item-photo-form .inventory-photo-dropzone:focus,#item-photo-form .inventory-photo-dropzone.drag-over{border-color:#2578d7;background:#ecf4ff;box-shadow:0 0 0 3px rgba(37,120,215,.1)}
#item-photo-form #inventory-photo-empty{display:flex;flex-direction:column;align-items:center;gap:8px;color:#526681;font-size:12px}
#item-photo-form #inventory-photo-empty[hidden]{display:none!important}
#item-photo-form #inventory-photo-empty strong{color:#193a63;font-size:14px}
#item-photo-form #inventory-photo-empty small{font-size:11px}
#item-photo-form .inventory-photo-icon{font-size:40px;line-height:1;color:#9ab2ce}
#item-photo-form #item-photo-preview{object-fit:contain;width:100%;max-height:235px;display:block;border:0;background:#fff}
#item-photo-form .inventory-photo-file-label{display:block;margin:12px 0 7px;font-size:12px;font-weight:700;color:#1e406c}
#item-photo-form #item_photo_file{width:100%;max-width:100%;font-size:11px;padding:8px;background:#fff;border:1px solid #d6e1ef;border-radius:6px}
#item-photo-form #item-photo-status{display:block;font-size:11px;line-height:1.55;color:#53667a;margin-top:10px}
#item-photo-form .inventory-photo-remove{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:12px}
#item-photo-form .inventory-photo-remove input{width:auto;min-height:0;margin:0}
#item-photo-form .inventory-photo-tip{font-size:11px;color:#617489;line-height:1.5;border-top:1px solid #e5e7eb;padding-top:10px;margin:12px 0 0}
/* Temporary Sales/Purchase stock notice with medicine thumbnail */
.invoice-stock-toast{display:flex;align-items:center;gap:12px;max-width:min(92vw,385px)!important;min-height:70px}
.invoice-stock-toast .invoice-stock-photo{width:58px;height:58px;flex:0 0 58px;object-fit:contain;background:#fff;border:1px solid #e0e7f0;border-radius:8px;padding:3px}
.invoice-stock-toast .invoice-stock-copy{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;line-height:1.35}
.invoice-stock-toast .invoice-stock-copy strong{font-size:13px;overflow-wrap:anywhere}
@media(max-width:1350px){#item-photo-form .inventory-editor-layout{grid-template-columns:minmax(0,1fr) 260px;gap:14px}#item-photo-form .inventory-editor-fields .field{grid-column:span 4}#item-photo-form .inventory-editor-fields .field.wide{grid-column:span 6}#item-photo-form .inventory-editor-fields .field.full{grid-column:1/-1}}
@media(max-width:1040px){#item-photo-form .inventory-editor-layout{grid-template-columns:1fr}#item-photo-form .inventory-photo-panel{position:static;width:100%;max-width:420px}#item-photo-form .inventory-editor-fields .field{grid-column:span 3}}
@media(max-width:900px){#item-photo-form .inventory-editor-fields{display:block}#item-photo-form .inventory-photo-panel{max-width:none}}


/* ==============================================
   Professional inventory editor - image, suggestions and printable description
   ============================================== */
#item-photo-form .inventory-editor-layout{grid-template-columns:minmax(0,1fr) minmax(350px,410px);column-gap:22px;align-items:start}
#item-photo-form .inventory-editor-fields{align-content:start;row-gap:16px;column-gap:14px}
#item-photo-form .inventory-photo-panel{padding:20px;top:80px;border:1px solid #dce5ed;box-shadow:0 10px 28px rgba(21,42,76,.07)}
#item-photo-form .inventory-photo-panel-heading strong small{display:block;margin-top:4px;color:#667d92;font-size:11px;font-weight:400}
#item-photo-form .inventory-photo-dropzone{min-height:320px;padding:16px;box-shadow:inset 0 0 0 1px rgba(222,229,240,.4)}
#item-photo-form #item-photo-preview{max-height:340px;min-height:100px;object-fit:contain}
#item-photo-form .inventory-photo-icon{font-size:52px}
#item-photo-form .inventory-form-section{grid-column:1/-1!important;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:3px;margin-bottom:-4px;padding:8px 10px;background:#f2f6fb;border-left:3px solid #2377d2;border-radius:4px}
#item-photo-form .inventory-form-section strong{font-size:13px;color:#123a69}
#item-photo-form .inventory-form-section span{font-size:11px;color:#64788d}
#item-photo-form .inventory-editor-fields .field input[list]{background-image:linear-gradient(45deg,transparent 50%,#5a7a9f 50%),linear-gradient(135deg,#5a7a9f 50%,transparent 50%);background-position:calc(100% - 16px) 53%,calc(100% - 10px) 53%;background-size:6px 6px;background-repeat:no-repeat;padding-right:28px}
#item-photo-form .inventory-field-hint{color:#64748b;font-size:10px;display:block;margin-top:4px}
#item-photo-form .inventory-optional{font-weight:400;color:#64748b;font-size:11px}
#item-photo-form .inventory-description-assistant{border:1px solid #dce4ee;border-radius:10px;padding:12px 14px;background:#f8fbff}
#item-photo-form .inventory-assistant-head{display:flex;justify-content:space-between;gap:16px;align-items:center}
#item-photo-form .inventory-assistant-head>div:first-child{display:flex;flex-direction:column;gap:4px}
#item-photo-form .inventory-assistant-head strong{font-size:12px;color:#1a4273}
#item-photo-form .inventory-assistant-head span{font-size:11px;color:#687d92}
#item-photo-form .inventory-assistant-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
#item-photo-form .inventory-assistant-controls select{width:auto;max-width:220px;min-height:31px;font-size:11px}
#item-photo-form .inventory-description-preview{background:#fff;border:1px dashed #cbd8e6;border-radius:7px;padding:9px 11px;margin-top:10px;display:flex;gap:14px;align-items:center}
#item-photo-form .inventory-description-preview span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#6a7d90;font-weight:700}
#item-photo-form .inventory-description-preview output{color:#123a69;font-weight:600;font-size:12px;overflow-wrap:anywhere}
#item-photo-form .inventory-pack-assistant{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:8px}
#item-photo-form .inventory-pack-assistant>label{font-size:11px;font-weight:600;color:#395571;margin:0}
#item-photo-form .inventory-pack-assistant select{width:auto;min-width:165px;max-width:220px;font-size:11px;min-height:31px}
#item-photo-form .inventory-pack-assistant>span{font-size:10px;color:#64748b}
#item-photo-form .inventory-editor-fields textarea[name="package_info"]{min-height:70px}
@media (min-width:1650px){#item-photo-form .inventory-editor-layout{grid-template-columns:minmax(0,1fr) 440px}#item-photo-form .inventory-photo-dropzone{min-height:375px}#item-photo-form #item-photo-preview{max-height:400px}}
@media (max-width:1200px){#item-photo-form .inventory-editor-layout{grid-template-columns:1fr!important}#item-photo-form .inventory-photo-panel{position:static;width:100%;max-width:640px;margin-top:10px}#item-photo-form .inventory-photo-dropzone{min-height:320px}#item-photo-form .inventory-editor-fields .field{grid-column:span 3}#item-photo-form .inventory-editor-fields .field.wide{grid-column:span 6}#item-photo-form .inventory-editor-fields .field.full{grid-column:1/-1}}
@media (min-width:1201px) and (max-width:1599px){#item-photo-form .inventory-editor-layout{grid-template-columns:minmax(0,1fr) 350px}}
@media (max-width:800px){#item-photo-form .inventory-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#item-photo-form .inventory-editor-fields .field:not(.full){grid-column:span 1}#item-photo-form .inventory-editor-fields .field.wide,#item-photo-form .inventory-editor-fields .field.full{grid-column:1/-1}#item-photo-form .inventory-assistant-head{align-items:stretch;flex-direction:column}#item-photo-form .inventory-form-section{align-items:flex-start;flex-direction:column;gap:3px}#item-photo-form .inventory-photo-dropzone{min-height:280px}}
@media (max-width:520px){#item-photo-form .inventory-editor-fields{grid-template-columns:1fr}#item-photo-form .inventory-editor-fields .field{grid-column:1/-1!important}#item-photo-form .inventory-pack-assistant select{max-width:100%}}
