/* Shared cloud-sales component: override legacy full-width report buttons only here. */
:is(.moleq-top100, #moleq-sales-content .moleq-top100) { min-width: 0; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) [hidden] { display: none !important; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) p { margin: 0; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) summary { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 650; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-cloud-panel > summary { font-size: 18px; line-height: 1.5; padding: 2px 0 12px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-overview { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-caption { color: #64748b; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-invoice-link { display: inline-flex; align-items: center; gap: 16px; min-height: 40px; padding: 7px 12px; background: #edf7f4; color: #11665f; border: 1px solid #cde5dc; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 650; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) button { width: auto; min-width: 0; min-height: 44px; padding: 9px 14px; font-size: 14px; line-height: 1.4; border-radius: 9px; box-shadow: none; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) button:disabled { opacity: .45; cursor: not-allowed; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-secondary { background: #fff; color: #244a68; border: 1px solid #cedae4; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-secondary:hover { background: #f1f6fa; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 5px; margin-bottom: 16px; background: #f0f4f7; border: 1px solid #e0e7ee; border-radius: 12px; max-width: 336px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-periods button { width: 100%; min-height: 36px; padding-block: 6px; background: transparent; border: 1px solid transparent; color: #52677b; padding-inline: 5px; white-space: nowrap; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-periods [aria-pressed=true] { background: #fff; color: #0f766e; border-color: #d5e5e0; box-shadow: 0 2px 5px #233f4810; font-weight: 750; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) [data-top=filters] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) label { display: grid; min-width: 0; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: #52677b; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) :is(input, select) { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 9px 10px; font: inherit; font-size: 16px; color: #1e354b; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) input[type=date] { appearance: none; -webkit-appearance: none; min-inline-size: 0; inline-size: 100%; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) input::-webkit-date-and-time-value { text-align: left; min-height: 1.5em; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-custom-filters { grid-column: 1 / -1; border-block: 1px solid #e7edf2; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-custom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 2px 0 14px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-query-actions { display: flex; gap: 8px; grid-column: 1 / -1; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-query-actions button { min-width: 120px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-data-status { margin-top: 16px; padding: 12px 14px; background: #f3f7fa; border-radius: 10px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) [data-top=status] { font-size: 14px; line-height: 1.6; font-weight: 650; color: #36546e; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-empty { text-align: center; padding: 24px 12px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-empty strong { display: block; font-size: 16px; color: #334f68; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-empty p { margin: 7px auto 0; max-width: 420px; font-size: 13px; line-height: 1.7; color: #64748b; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-sync-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #e7edf2; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-sync-panel strong { font-size: 14px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-maintenance { border-block: 1px solid #e7edf2; margin-bottom: 14px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-maintenance > summary { color: #64748b; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-maintenance > p { margin: 12px 0; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-connections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-connections article { display: grid; gap: 4px; min-width: 0; padding: 11px; border: 1px solid #e1e9ef; border-radius: 9px; font-size: 13px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-connections :is(span, small) { color: #64748b; overflow-wrap: anywhere; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-jobs { grid-column: 1 / -1; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-jobs ul { padding-left: 18px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-backfill { display: grid; grid-template-columns: minmax(0, 240px) auto; gap: 8px; align-items: end; justify-content: start; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: #64748b; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-pager button { flex: 0 0 auto; padding-inline: 10px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-pager span { text-align: center; }
@media(max-width:700px) {
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-cloud-panel > summary { font-size: 16px; }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) [data-top=filters] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) :is(.ms-measure, .ms-search) { grid-column: 1 / -1; }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-periods { max-width: none; }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-periods button { font-size: 13px; min-height: 44px; }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-query-actions button { flex: 1; min-width: 0; }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-custom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-custom-grid label:last-child { grid-column: 1 / -1; max-width: 150px; }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-connections { grid-template-columns: minmax(0, 1fr); }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-sync-panel { align-items: start; }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-backfill { grid-template-columns: minmax(0, 1fr); }
 :is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-backfill button { justify-self: start; }
}
/* WebKit native popup controls can ignore min-height; keep a full touch target. */
:is(.moleq-top100, #moleq-sales-content .moleq-top100) select { height: 44px; appearance: none; -webkit-appearance: none; border: 1px solid #cbd7e2; border-radius: 9px; background-color: #fff; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2352677b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; }

:is(.moleq-top100,#moleq-sales-content .moleq-top100) .ms-price-preview{margin:14px 0;padding:14px;background:#edf7f3;border:1px solid #b9dbcf;border-radius:12px;overflow-wrap:anywhere}
:is(.moleq-top100,#moleq-sales-content .moleq-top100) .ms-price-preview p{margin:8px 0}
:is(.moleq-top100,#moleq-sales-content .moleq-top100) .ms-supplier-group th{background:#e5f2ee;color:#164e42;text-align:left;padding:12px}


:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-source-mode {
 display: flex; flex-direction: row; align-items: center; justify-content: flex-end;
 gap: 8px; margin: 8px 0; flex-wrap: wrap;
}
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-source-mode select { width: auto; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-source-details summary {
 padding: 0; color: #245d75; font-size: inherit; font-weight: 600;
}
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-source-list {
 list-style: none; margin: 0; padding: 0; overflow-wrap: anywhere;
}
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-source-list li + li { margin-top: 3px; }

:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-department-options {
 display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 0 12px;
}
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-department-options label {
 display: inline-flex; flex-direction: row; align-items: center; min-height: 34px;
}
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-department-options input {
 width: 16px; min-height: 16px; height: 16px; margin: 0;
}
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-exclusions {
 margin: 8px 0; padding: 0 8px 8px; background: #f3f7fa; border-radius: 8px;
}
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-exclusions ul { margin: 0 0 8px; padding-left: 20px; }
:is(.moleq-top100, #moleq-sales-content .moleq-top100) .ms-remove-product {
 min-height: 30px; padding: 3px 8px; margin-top: 5px; font-size: 12px;
}
