/* Migo CRM v8.5.21.230 — Inventory Counts canonical UI */
#migoStocktakeView{width:100%;min-width:0}.migo-count-shell{width:100%;display:flex;flex-direction:column;gap:12px}.migo-count-command,.migo-count-toolbar,.migo-count-table-wrap,.migo-count-metrics,.migo-count-workspace{width:100%;box-sizing:border-box}.migo-count-command{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid #dfe5ec;border-radius:8px;background:#fff}.migo-count-command>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}.migo-count-command strong{font-size:14px;color:#172033}.migo-count-command span{font-size:12px;color:#718096}.migo-count-command>div:last-child,.migo-count-workspace>header>div:last-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.migo-count-command button,.migo-count-toolbar button,.migo-count-workspace button,.migo-count-dialog button{min-height:36px;height:36px;border-radius:7px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px}.migo-count-command button svg,.migo-count-toolbar button svg,.migo-count-workspace button svg,.migo-count-dialog button svg{width:16px;height:16px;flex:0 0 16px}.migo-count-shell .primary-btn,.migo-count-dialog .primary-btn{background:#172033!important;color:#fff!important;border:1px solid #172033!important}.migo-count-shell .secondary-btn,.migo-count-dialog .secondary-btn{background:#fff!important;color:#273449!important;border:1px solid #d8e0e8!important}
.migo-count-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #dfe5ec;border-radius:8px;background:#fff;overflow:hidden}.migo-count-metrics>div{padding:12px 14px;min-height:64px;border-right:1px solid #e6ebf0;display:flex;flex-direction:column;justify-content:center;gap:2px}.migo-count-metrics>div:last-child{border-right:0}.migo-count-metrics small{font-size:10px;font-weight:700;color:#7a8797}.migo-count-metrics strong{font-size:20px;color:#172033}.migo-count-metrics span{font-size:10px;color:#718096}.migo-count-metrics .warn strong{color:#b86a00}.migo-count-metrics .ok strong{color:#18864b}
.migo-count-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:8px;padding:10px;border:1px solid #dfe5ec;border-radius:8px;background:#fff}.migo-count-toolbar select{height:40px;border:1px solid #d7e0e9;border-radius:7px;background:#fff;padding:0 12px;color:#172033;font:inherit}.migo-count-table-wrap,.migo-count-items-wrap{border:1px solid #dfe5ec;border-radius:8px;background:#fff;overflow:auto}.migo-count-table,.migo-count-items{width:100%;border-collapse:separate;border-spacing:0;min-width:980px}.migo-count-table th,.migo-count-items th{height:40px;padding:0 10px;background:#f8fafc;border-bottom:1px solid #e5eaf0;font-size:10px;color:#657386;text-transform:uppercase;text-align:left;white-space:nowrap}.migo-count-table td,.migo-count-items td{padding:9px 10px;border-bottom:1px solid #edf1f5;vertical-align:middle;font-size:12px;color:#334155}.migo-count-table tr:last-child td,.migo-count-items tr:last-child td{border-bottom:0}.migo-count-table td strong,.migo-count-items td strong{display:block;color:#172033}.migo-count-table td small,.migo-count-items td small{display:block;margin-top:2px;color:#8a96a6;font-size:10px}.migo-count-table .n,.migo-count-items .n{text-align:right;font-variant-numeric:tabular-nums}.migo-count-table .actions{text-align:right}.migo-count-shell .mini-btn{height:32px;min-height:32px;padding:0 9px;border:1px solid #d8e0e8;background:#fff;color:#273449;border-radius:7px;font-size:11px;display:inline-flex;align-items:center;gap:6px}.migo-count-shell .mini-btn svg{width:14px;height:14px}
.migo-count-status{display:inline-flex;align-items:center;justify-content:center;height:24px;padding:0 9px;border-radius:999px;border:1px solid #dfe5ec;background:#f8fafc;color:#475569;font-size:10px;font-weight:700;white-space:nowrap}.migo-count-status.s-counting{background:#eef6ff;border-color:#cbdff1;color:#24638d}.migo-count-status.s-ready{background:#fff7e8;border-color:#f2d29c;color:#9a5b00}.migo-count-status.s-applied{background:#edf9f1;border-color:#c8e8d1;color:#177343}.migo-count-status.s-cancelled{background:#f5f6f8;color:#7c8795}.migo-count-progress{display:flex;align-items:center;gap:8px;min-width:150px}.migo-count-progress>span{width:90px;height:6px;border-radius:999px;background:#edf1f5;overflow:hidden}.migo-count-progress i{display:block;height:100%;background:#466b91;border-radius:999px}.migo-count-progress small{white-space:nowrap;margin:0!important}.migo-count-empty{min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#8b98a8}.migo-count-empty svg{width:28px;height:28px}.migo-count-empty strong{font-size:13px;color:#536174}.migo-count-empty span{font-size:11px}
.migo-count-workspace{border:1px solid #dfe5ec;border-radius:8px;background:#fff;overflow:hidden;scroll-margin-top:16px}.migo-count-workspace>header{min-height:72px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e6ebf0}.migo-count-workspace>header>div:first-child{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}.migo-count-workspace h2{margin:0;font-size:18px;color:#172033}.migo-count-workspace p{grid-column:2;margin:2px 0 0;font-size:11px;color:#748094}.migo-count-workspace-meta{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:9px 14px;background:#f8fafc;border-bottom:1px solid #e6ebf0;font-size:11px;color:#64748b}.migo-count-workspace-meta b{color:#172033}.migo-count-items-wrap{border:0;border-radius:0}.migo-count-items input[data-counted]{width:105px;height:36px;border:1px solid #d7e0e9;border-radius:7px;padding:0 9px;text-align:right;color:#172033;background:#fff}.migo-count-items .counted{text-align:right}.migo-count-items .variance.plus{color:#18864b;font-weight:700}.migo-count-items .variance.minus{color:#c92a2a;font-weight:700}
.migo-count-dialog{width:min(620px,calc(100vw - 32px));padding:0;border:1px solid #d9e1e9;border-radius:8px;background:#fff;color:#172033;box-shadow:0 24px 60px rgba(15,23,42,.22);overflow:hidden}.migo-count-dialog::backdrop{background:rgba(30,41,59,.36);backdrop-filter:blur(1px)}.migo-count-dialog>header{height:58px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3e8ee}.migo-count-dialog h3{margin:0;font-size:18px}.migo-count-close{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #d8e0e8!important;background:#fff!important;color:#526174!important}.migo-count-close svg{width:17px!important;height:17px!important}.migo-count-dialog-body{padding:18px}.migo-count-dialog>footer{min-height:58px;padding:10px 18px;display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #e3e8ee;background:#f8fafc}.migo-count-form{display:flex;flex-direction:column;gap:14px}.migo-count-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#425066}.migo-count-form select,.migo-count-form textarea{border:1px solid #d7e0e9;border-radius:7px;background:#fff;padding:0 12px;color:#172033;font:inherit}.migo-count-form select{height:40px}.migo-count-form textarea{padding:10px 12px;resize:vertical}.migo-count-note{padding:10px 12px;border-radius:7px;background:#f7fafc;border:1px solid #e1e7ee;font-size:11px;color:#64748b;line-height:1.45}.migo-count-loading,.migo-count-error{padding:32px;text-align:center;color:#718096}.migo-count-error{color:#b42318}.migo-count-toast{position:fixed;right:18px;bottom:18px;z-index:99999;padding:11px 14px;border-radius:8px;background:#172033;color:#fff;font-size:12px;box-shadow:0 12px 30px rgba(15,23,42,.22)}.migo-count-toast.error{background:#a61b1b}
@media(max-width:980px){.migo-count-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.migo-count-metrics>div{border-bottom:1px solid #e6ebf0}.migo-count-command,.migo-count-workspace>header{align-items:flex-start;flex-direction:column}.migo-count-toolbar{grid-template-columns:1fr 1fr}.migo-count-workspace>header>div:last-child{width:100%}}@media(max-width:640px){.migo-count-metrics,.migo-count-toolbar{grid-template-columns:1fr}.migo-count-command button,.migo-count-workspace button{flex:1}.migo-count-dialog{width:calc(100vw - 16px)}}
