.ml-central { min-width:0; }
.ml-central .ml-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:16px 0; }
.ml-central h2,.ml-central h3,.ml-central h4,.ml-central p { margin:0 0 8px; overflow-wrap:anywhere; }
.ml-central #mlAccount { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.ml-central .ml-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:16px; margin:24px 0; }
.ml-central .ml-create-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
@media(max-width:700px) { .ml-central .ml-create-grid { grid-template-columns:minmax(0,1fr); } }
.ml-central select { box-sizing:border-box; max-width:100%; min-width:0; padding:10px; border:1px solid #bfd2d9; border-radius:6px; background:white; color:#163044; font:inherit; }
.ml-central .ml-search-field { flex:1 1 300px; }
.ml-central .ml-price-options { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0; }
.ml-central .ml-create-photos { display:flex; flex-wrap:wrap; gap:12px; }
.ml-central .ml-create-photos img { width:90px; height:90px; object-fit:contain; background:white; border:1px solid #bfd2d9; border-radius:6px; }
.ml-central .ml-options button { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:8px; min-height:112px; padding:20px; border:1px solid #bddcd5; border-radius:8px; background:#f7fcfa; color:#163044; text-align:left; cursor:pointer; font:inherit; }
.ml-central .ml-options button strong { font-size:20px; }
.ml-central .ml-options button[aria-pressed=true] { background:#dcf6ed; border-color:#159368; }
.ml-central .ml-options button:hover { border-color:#159368; }
.ml-central .ml-toolbar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:16px 0; }
.ml-central label { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ml-central input[type=checkbox] { width:20px; height:20px; flex:0 0 20px; accent-color:#158c63; }
.ml-central input[type=search] { width:100%; min-width:0; padding:12px; border:1px solid #bfd2d9; border-radius:8px; font:inherit; }
.ml-central .ml-results { margin:16px 0; max-height:60dvh; overflow-y:auto; overflow-x:hidden; scrollbar-gutter:stable; overscroll-behavior-y:contain; padding-right:12px; scrollbar-color:#159368 #e8f1ee; scrollbar-width:auto; }
.ml-central .ml-results:focus-visible { outline:2px solid #159368; outline-offset:3px; }
.ml-central .ml-photo { width:80px; height:80px; flex:0 0 80px; margin:0; display:grid; place-items:center; background:#fff; border:1px solid #d8e2e7; border-radius:6px; overflow:hidden; }
.ml-central .ml-photo span { text-align:center; font-size:12px; color:#536778; padding:4px; }
.ml-central .ml-photo [hidden] { display:none; }
.ml-central .ml-photo img { max-width:100%; max-height:100%; }
.ml-central .ml-row { display:flex; align-items:center; gap:16px; padding:18px 0; border-bottom:1px solid #d8e2e7; }
.ml-central .ml-row[hidden] { display:none; }
.ml-central .ml-row>div:not(.ml-no-photo) { flex:1; min-width:0; }
.ml-central .ml-row>.ml-order-actions { flex:0 1 230px; display:flex; flex-direction:column; gap:8px; }
.ml-central .ml-row img,.ml-central .ml-no-photo { width:80px; height:80px; object-fit:contain; flex:0 0 80px; background:white; }
.ml-central .ml-no-photo { display:grid; place-items:center; font-size:12px; color:#586978; }
.ml-central .ml-row h4 { font-size:17px; }
.ml-central .ml-row p,.ml-central small { color:#536778; }
.ml-central .ml-error { color:#a62c34; overflow-wrap:anywhere; }
.ml-central .ml-document { display:flex; gap:16px; align-items:center; flex-wrap:wrap; padding:12px 0; }
.ml-central .ml-link-editor { border-top:2px solid #168764; padding:16px 0; margin-top:24px; }
.ml-central button:disabled { opacity:.55; cursor:wait; }
.ml-central .btn { white-space:normal; overflow-wrap:anywhere; }
.ml-edit-form { display:grid; gap:16px; }
.ml-edit-form label { display:grid; gap:8px; }
.ml-edit-form input,.ml-edit-form textarea { box-sizing:border-box; width:100%; min-width:0; padding:12px; font:inherit; border:1px solid #bfd2d9; border-radius:8px; }
.ml-edit-form textarea { resize:vertical; }
.ml-document-dialog { box-sizing:border-box; margin:auto; width:min(1080px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:20px; border:1px solid #bddcd5; border-radius:16px; color:#163044; background:#f7fcfa; overflow:auto; }
.ml-document-dialog::backdrop { background:rgba(16,32,51,.55); }
.ml-document-dialog .ml-heading { margin-top:0; }
.ml-document-dialog .ml-pdf-preview { display:block; width:100%; height:60dvh; min-height:240px; box-sizing:border-box; border:1px solid #bfd2d9; border-radius:8px; background:white; }
.ml-document-dialog .ml-error { display:block; flex-basis:100%; padding:12px; background:#fff0f0; border-radius:8px; }
.ml-document-dialog .ml-fiscal-form { display:grid; gap:16px; }
.ml-document-dialog .ml-fiscal-form label,.ml-document-dialog [data-fiscal-preview] label { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.ml-document-dialog .ml-fiscal-form label:has(input),.ml-document-dialog [data-fiscal-preview] label:has(input) { display:grid; grid-template-columns:20px minmax(0,1fr); }
.ml-document-dialog input[type=checkbox] { width:20px; height:20px; flex:0 0 20px; }
.ml-document-dialog .ml-fiscal-form select { width:100%; min-height:44px; padding:8px; border:1px solid #bfd2d9; border-radius:6px; background:white; color:#193341; }
.ml-document-dialog [data-fiscal-preview] { overflow-wrap:anywhere; }
.ml-document-dialog [data-fiscal-preview] dl { display:grid; grid-template-columns:minmax(90px,1fr) minmax(0,2fr); gap:8px 16px; }
.ml-document-dialog [data-fiscal-preview] dd { margin:0; }
.ml-document-dialog [data-send] { margin-top:16px; }
.ml-fiscal-spinner { display:inline-block; width:18px; height:18px; margin-right:10px; border:3px solid #cfe5df; border-top-color:#087c5a; border-radius:50%; vertical-align:middle; animation:ml-fiscal-spin .8s linear infinite; }
@keyframes ml-fiscal-spin { to { transform:rotate(360deg); } }
.ml-sale-items { display:grid; gap:12px; margin-bottom:18px; }
.ml-sale-items label { display:grid; grid-template-columns:20px minmax(0,1fr); gap:10px; align-items:start; overflow-wrap:anywhere; }
.ml-sale-items small { display:block; }
#mlOrderLinkDialog [data-search] { display:block; width:100%; box-sizing:border-box; min-height:44px; margin:8px 0 16px; }
@media(prefers-reduced-motion:reduce) { .ml-fiscal-spinner { animation:none; } }
@media(max-width:700px) {
  .ml-central .ml-options { grid-template-columns:1fr; }
  .ml-central .ml-options button { min-height:84px; }
  .ml-central .ml-row { flex-wrap:wrap; }
  .ml-central .ml-row>div:not(.ml-no-photo) { flex-basis:calc(100% - 112px); }
  .ml-central .ml-row>.btn { margin-left:auto; }
}
