#try_it.mi-demo {
  --demo-text: #32343b;
  --demo-muted: #6c757d;
  --demo-surface: #fff;
  --demo-input: #fff;
  --demo-line: #dedee3;
  --demo-stripe: #f3f3f3;
  --demo-active: #edf5fc;
  color: var(--demo-text);
  margin-top: 2rem;
  scroll-margin-top: 7rem;
}
#try_it.mi-demo h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
#try_it .mi-demo-subtitle {
  font-size: 1.45rem;
  line-height: 1.4;
  margin: 0 0 1.8rem;
  font-weight: 500;
}
#try_it .mi-demo-layout {
  display: grid;
  grid-template-columns: minmax(260px, 350px) 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
#try_it .mi-demo-card {
  background: var(--demo-surface);
  border: 0;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px #0000001a, 0 6px 20px #00000026;
  width: 100%;
  box-sizing: border-box;
  max-width: 350px;
  justify-self: center;
}
#try_it .mi-demo-card h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 28px;
  color: var(--demo-text);
}
#try_it input,
#try_it select,
#try_it button,
#try_it summary {
  font: inherit;
  box-sizing: border-box;
}
#try_it button,
#try_it summary,
#try_it select {
  cursor: pointer;
}
#try_it button {
  line-height: 1.4;
}
#try_it input[type='text'],
#try_it input[type='number'],
#try_it input[type='search'],
#try_it select {
  border: 1px solid var(--demo-line);
  border-radius: 4px;
  background: var(--demo-input);
  color: var(--demo-text);
  min-height: 40px;
  padding: 8px 11px;
  max-width: 100%;
  width: 100%;
}
#try_it input:focus-visible,
#try_it select:focus-visible,
#try_it button:focus-visible,
#try_it summary:focus-visible,
#try_it .mi-demo-table-scroll:focus-visible {
  outline: 3px solid #76b9f1;
  outline-offset: 2px;
}
#try_it .mi-demo-field {
  margin-bottom: 22px;
  min-width: 0;
}
#try_it .mi-demo-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 0.88rem;
}
#try_it .mi-demo-picker {
  position: relative;
}
#try_it #mi-demo-product {
  padding-right: 33px;
}
#try_it .mi-demo-picker-toggle {
  position: absolute;
  inset-inline-end: 1px;
  top: 1px;
  height: 38px;
  width: 31px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--demo-muted);
  font-size: 1.25rem;
}
#try_it .mi-demo-options {
  position: absolute;
  top: calc(100% + 5px);
  inset-inline: 0;
  list-style: none;
  margin: 0;
  padding: 5px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-line);
  border-radius: 6px;
  box-shadow: 0 5px 20px #0002;
  z-index: 8;
  max-height: 235px;
  overflow: auto;
}
#try_it .mi-demo-options li {
  padding: 9px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.95rem;
}
#try_it .mi-demo-options li[aria-selected='true'],
#try_it .mi-demo-options li:hover {
  background: var(--demo-active);
}
#try_it .mi-demo-options small {
  display: block;
  color: var(--demo-muted);
  font-size: 0.74rem;
}
#try_it .mi-demo-types {
  display: flex;
  gap: 8px;
  margin-bottom: 23px;
}
#try_it .mi-demo-type {
  flex: 1;
  padding: 10px 3px;
  border: 0;
  border-radius: 0;
  background: #f0f0f1;
  color: #222;
  box-shadow: 0 2px 4px #0003;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
#try_it .mi-demo-type span {
  font-size: 1.22rem;
  margin-inline-start: 5px;
}
#try_it .mi-demo-quantity input {
  font-size: 1.6rem;
  font-weight: 500;
  min-height: 58px;
  padding: 12px;
}
#try_it .mi-demo-save {
  background: #198754;
  color: #fff;
  border: 1px solid #198754;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1.1rem;
  min-height: 44px;
}
#try_it .mi-demo-save:hover {
  background: #157347;
}
#try_it .mi-demo-message {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  line-height: 1.5;
  margin: 13px 0 0;
  overflow-wrap: anywhere;
  color: var(--demo-muted);
}
#try_it .mi-demo-message-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 1.25em;
  margin-top: 0.125em;
}
#try_it .mi-demo-message > span {
  min-width: 0;
}
#try_it .mi-demo-message:empty {
  display: none;
}
#try_it .mi-demo-message.is-error {
  color: #b33b31;
}
#try_it .mi-demo-message.is-success {
  color: #178049;
}
#try_it .mi-demo-location-stock {
  font-size: 0.82rem;
  color: var(--demo-muted);
  line-height: 1.5;
  margin: -9px 0 17px;
}
#try_it .mi-demo-location-stock:empty {
  display: none;
}
#try_it .mi-demo-arrow {
  font-size: 3.5rem;
  text-align: center;
  color: var(--demo-text);
}
#try_it .mi-demo-table-panel {
  min-width: 0;
}
#try_it .mi-demo-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}
#try_it .mi-demo-search-label,
#try_it .mi-demo-view-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  min-width: 0;
}
#try_it .mi-demo-search-label input {
  width: 145px;
  min-height: 34px;
  padding: 5px 8px;
}
#try_it .mi-demo-view-label select {
  max-width: 155px;
  min-height: 34px;
  padding: 5px 8px;
  font-size: 0.84rem;
}
/* Let the page handle vertical scrolling; only the wide table scrolls sideways. */
#try_it .mi-demo-table-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  border-bottom: 1px solid #9b9b9b;
}
#try_it table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--demo-text);
}
#try_it th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--demo-surface);
  border-bottom: 1px solid #9b9b9b;
  padding: 10px 9px;
  text-align: start;
  font-weight: 700;
  white-space: nowrap;
}
#try_it th button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  text-align: start;
  min-height: 28px;
}
#try_it .mi-demo-sort {
  font-size: 0.85rem;
  color: #777;
  margin-inline-start: auto;
}
#try_it td {
  padding: 7px 10px;
  height: 62px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--demo-line);
}
#try_it tbody tr:nth-child(odd) {
  background: var(--demo-stripe);
}
#try_it tbody tr:hover {
  background: var(--demo-active);
}
#try_it td[data-column='barcode'] {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#try_it th[data-column='stock'],
#try_it td[data-column='stock'],
#try_it th[data-column='image'],
#try_it td[data-column='image'] {
  text-align: center;
}
#try_it .mi-demo-thumb {
  display: inline-flex;
  background: #fff;
  border: 0;
  padding: 0;
  border-radius: 2px;
  vertical-align: middle;
  min-width: 50px;
  min-height: 50px;
}
#try_it .mi-demo-thumb img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}
#try_it .mi-demo-stock-value {
  font-weight: 700;
  display: inline-block;
  min-width: 1.4em;
}
#try_it .mi-demo-updated .mi-demo-stock-value {
  border-radius: 4px;
  color: #147143;
  background: #d9f2e4;
  padding: 3px 8px;
  animation: mi-demo-pulse 0.7s ease-in-out 3;
}
#try_it .mi-demo-updated[data-change='OUT'] .mi-demo-stock-value {
  color: #9d352c;
  background: #fce4df;
}
#try_it .mi-demo-updated[data-change='MOVE'] .mi-demo-stock-value {
  color: #3c56ad;
  background: #e5ebff;
}
#try_it .mi-demo-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
}
#try_it .mi-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-start;
}
#try_it .mi-demo-actions > button,
#try_it .mi-demo-actions summary {
  display: block;
  padding: 7px 10px;
  background: linear-gradient(#fff, #e9e9e9);
  color: #333;
  border: 1px solid #c5c5c5;
  border-radius: 2px;
  font-size: 0.79rem;
  min-height: 34px;
  list-style: none;
}
#try_it .mi-demo-actions summary::-webkit-details-marker {
  display: none;
}
#try_it .mi-demo-actions summary::after {
  content: ' ▾';
}
#try_it .mi-demo-actions > button:hover,
#try_it .mi-demo-actions summary:hover {
  background: #e5e5e5;
}
#try_it #mi-demo-column-picker {
  position: relative;
}
#try_it .mi-demo-columns {
  position: absolute;
  z-index: 7;
  inset-inline-end: 0;
  top: calc(100% + 5px);
  min-width: 180px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-line);
  padding: 9px;
  border-radius: 5px;
  box-shadow: 0 5px 20px #0002;
}
#try_it .mi-demo-columns label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.86rem;
  padding: 8px 5px;
  white-space: nowrap;
  cursor: pointer;
}
#try_it .mi-demo-columns input {
  accent-color: #198754;
  width: 16px;
  height: 16px;
}
#try_it .mi-demo-reset {
  border: 0;
  background: transparent;
  color: var(--demo-muted);
  padding: 7px 3px;
  font-size: 0.78rem;
  text-decoration: underline;
  min-height: 34px;
}
#try_it .mi-demo-count {
  font-size: 0.79rem;
  color: var(--demo-muted);
  margin: 9px 0 0;
  min-height: 1.3em;
}
#try_it .mi-demo-note {
  font-size: 0.92rem;
  margin: 26px 0 0;
  color: var(--demo-text);
}
#try_it .mi-demo-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--demo-muted);
}
#try_it .mi-demo-lightbox {
  border: 0;
  background: var(--demo-surface);
  color: var(--demo-text);
  border-radius: 10px;
  padding: 40px 20px 16px;
  max-width: min(90vw, 760px);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 10px 70px #0008;
}
#try_it .mi-demo-lightbox::backdrop {
  background: #000b;
}
#try_it .mi-demo-lightbox img {
  display: block;
  object-fit: contain;
  width: auto;
  max-width: 100%;
  max-height: 65vh;
  margin: auto;
}
#try_it .mi-demo-lightbox p {
  text-align: center;
  margin: 16px 0 0;
  font-weight: 600;
}
#try_it .mi-demo-lightbox-close {
  position: absolute;
  top: 4px;
  inset-inline-end: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
  font-size: 2rem;
  padding: 4px 8px;
  min-height: 36px;
  min-width: 36px;
}
#try_it [hidden] {
  display: none !important;
}
#try_it .mi-demo-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body[data-theme='dark'] #try_it {
  --demo-text: #e8e9ee;
  --demo-muted: #acafb9;
  --demo-surface: #252830;
  --demo-input: #20232b;
  --demo-line: #424550;
  --demo-stripe: #2e313a;
  --demo-active: #353e50;
}
body[data-theme='dark'] #try_it .mi-demo-message.is-error {
  color: #ffaaa0;
}
body[data-theme='dark'] #try_it .mi-demo-message.is-success {
  color: #8bddad;
}
@keyframes mi-demo-pulse {
  50% {
    transform: scale(1.12);
  }
}
@media (max-width: 1100px) {
  #try_it .mi-demo-layout {
    grid-template-columns: minmax(250px, 310px) 32px minmax(0, 1fr);
    gap: 8px;
  }
  #try_it .mi-demo-card {
    padding: 24px;
  }
  #try_it .mi-demo-arrow {
    font-size: 2.4rem;
  }
  #try_it .mi-demo-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  #try_it .mi-demo-search-label {
    margin-inline-start: auto;
  }
  #try_it th,
  #try_it td {
    padding-inline: 7px;
  }
}
@media (max-width: 820px) {
  #try_it .mi-demo-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #try_it .mi-demo-card {
    width: 100%;
    max-width: 380px;
    padding: 28px;
  }
  #try_it .mi-demo-arrow {
    transform: rotate(90deg);
    height: 35px;
    line-height: 35px;
  }
  #try_it .mi-demo-table-panel {
    width: 100%;
  }
  #try_it .mi-demo-table-footer {
    gap: 5px;
  }
  #try_it .mi-demo-subtitle {
    font-size: 1.15rem;
  }
}
@media (max-width: 420px) {
  #try_it .mi-demo-card {
    padding: 23px;
  }
  #try_it .mi-demo-toolbar {
    align-items: stretch;
  }
  #try_it .mi-demo-search-label {
    margin-inline-start: 0;
    flex: 1;
  }
  #try_it .mi-demo-search-label input {
    width: 100%;
    min-width: 70px;
  }
  #try_it .mi-demo-view-label {
    flex: 1;
  }
  #try_it .mi-demo-view-label select {
    min-width: 100px;
  }
  #try_it .mi-demo-toolbar label > span {
    font-size: 0.76rem;
  }
  #try_it table {
    font-size: 0.8rem;
  }
  #try_it th {
    font-size: 0.77rem;
    white-space: normal;
  }
  #try_it .mi-demo-thumb,
  #try_it .mi-demo-thumb img {
    width: 43px;
    height: 43px;
    min-width: 43px;
    min-height: 43px;
  }
  #try_it td {
    padding: 6px;
  }
  #try_it .mi-demo-actions > button,
  #try_it .mi-demo-actions summary {
    font-size: 0.73rem;
    padding: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #try_it .mi-demo-updated .mi-demo-stock-value {
    animation: none;
  }
}

#try_it .mi-demo-large-visual > img {
  max-width: min(75vw, 650px);
  max-height: 65vh;
  height: auto;
  width: auto;
}

/* Retain the source demo's form, icon controls and full-width pastel table actions. */
#try_it .mi-demo-layout {
  grid-template-columns: 4fr 1fr 7fr;
  gap: 0;
}
#try_it .mi-demo-card {
  width: calc(100% - 60px);
  max-width: 350px;
  padding: 30px;
  margin-block: 30px;
}
#try_it .mi-demo-card h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
}
#try_it .mi-demo-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 3px;
  min-height: 39px;
  font-size: 1rem;
  font-weight: 600;
}
#try_it .mi-demo-type img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
#try_it .mi-demo-quantity {
  padding: 0;
  border: 0;
  background: transparent;
}
#try_it .mi-demo-quantity label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--demo-text);
  margin-bottom: 8px;
}
#try_it .mi-demo-quantity input {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--demo-line);
  box-shadow: none;
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 700;
}
#try_it .mi-demo-save {
  margin-inline-start: auto;
  display: block;
  border-radius: 19px;
  background: #019b5f;
  border-color: #019b5f;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 10px 16px;
}
#try_it .mi-demo-search-label {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 1rem;
}
#try_it .mi-demo-search-label input {
  min-height: 30px;
}
#try_it .mi-demo-table-footer {
  display: block;
}
#try_it .mi-demo-actions {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 3px;
  width: 100%;
}
#try_it .mi-demo-actions > button,
#try_it .mi-demo-actions summary {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 34px;
  text-align: center;
  padding: 7px 8px;
  border-color: #d6d6d6;
  white-space: nowrap;
}
#try_it #mi-demo-export {
  background: #eaf9ed;
  color: #249d48;
  border-radius: 13px 0 0 13px;
}
#try_it #mi-demo-print {
  background: #fff8f9;
  color: #ed354f;
}
#try_it #mi-demo-column-picker summary {
  background: #d5f5fa;
  color: #159bb1;
  border-radius: 0 13px 13px 0;
}
#try_it .mi-demo-reset {
  float: inline-end;
}
#try_it .mi-demo-count {
  padding-top: 4px;
}
@media (max-width: 1199px) {
  #try_it .mi-demo-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #try_it .mi-demo-card {
    max-width: 350px;
    width: 100%;
    padding: 30px;
    margin-block: 20px;
  }
  #try_it .mi-demo-arrow {
    transform: rotate(90deg);
    height: 35px;
    line-height: 35px;
  }
  #try_it .mi-demo-table-panel {
    width: 100%;
  }
  #try_it .mi-demo-toolbar {
    flex-wrap: nowrap;
  }
}
@media (max-width: 767px) {
  #try_it .mi-demo-layout > noscript {
    grid-column: 1;
  }
  #try_it .mi-demo-card {
    width: 100%;
    max-width: 350px;
    padding: 25px;
  }
  #try_it .mi-demo-search-label {
    flex-direction: column;
    align-items: flex-end;
  }
  #try_it .mi-demo-view-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  #try_it .mi-demo-toolbar {
    align-items: flex-end;
  }
  #try_it .mi-demo-actions {
    grid-template-columns: 1fr 1fr;
  }
  #try_it #mi-demo-column-picker {
    grid-column: 1/-1;
  }
  #try_it #mi-demo-column-picker summary {
    border-radius: 8px;
  }
  #try_it #mi-demo-export {
    border-radius: 8px 0 0 8px;
  }
  #try_it #mi-demo-print {
    border-radius: 0 8px 8px 0;
  }
  #try_it .mi-demo-actions > button,
  #try_it .mi-demo-actions summary {
    min-height: 40px;
    padding: 10px;
    font-size: 0.9rem;
  }
  #try_it .mi-demo-reset {
    font-size: 0.85rem;
  }
}

#try_it .mi-demo-columns {
  top: auto;
  bottom: calc(100% + 7px);
}
#try_it .mi-demo-layout > noscript {
  grid-column: 1/-1;
}

/* Point from the form to the table in either reading direction. */
#try_it .mi-demo-arrow {
  direction: ltr;
}
@media (min-width: 1200px) {
  html[dir='rtl'] #try_it .mi-demo-arrow {
    transform: rotate(180deg);
  }
}

/* A borderless segmented control with a soft, rounded selection. */
#try_it .mi-demo-types {
  padding: 5px;
  gap: 4px;
  border: 0;
  border-radius: 13px;
  background: #f4f5f7;
}
#try_it .mi-demo-type {
  --type-color: #176947;
  --type-surface: #e4f4eb;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #60656f;
  box-shadow: none;
  transition: background-color 0.15s, color 0.15s;
}
#try_it .mi-demo-type[data-type='OUT'] {
  --type-color: #a4313c;
  --type-surface: #fcebef;
}
#try_it .mi-demo-type[data-type='MOVE'] {
  --type-color: #4656ae;
  --type-surface: #eceefa;
}
#try_it .mi-demo-type:hover {
  background: var(--demo-surface);
  color: var(--demo-text);
}
#try_it .mi-demo-type.is-active[data-type] {
  color: var(--type-color);
  background: var(--type-surface);
  box-shadow: none;
}
#try_it .mi-demo-type:focus-visible {
  outline: 2px solid var(--type-color);
  outline-offset: 3px;
}
#try_it .mi-demo-type img {
  width: 24px;
  height: 24px;
}
#try_it .mi-demo-number-control {
  position: relative;
}
#try_it .mi-demo-quantity input {
  min-height: 62px;
  padding-inline-end: 49px;
  border: 1px solid var(--demo-line);
  box-shadow: none;
  appearance: textfield;
  -moz-appearance: textfield;
}
#try_it .mi-demo-quantity input::-webkit-inner-spin-button,
#try_it .mi-demo-quantity input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#try_it .mi-demo-quantity input:focus-visible {
  outline: 2px solid #76b9f1;
  outline-offset: 2px;
}
#try_it .mi-demo-quantity-steps {
  position: absolute;
  inset-inline-end: 5px;
  inset-block: 5px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 34px;
}
#try_it .mi-demo-quantity-steps button {
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 24px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--demo-muted);
}
#try_it .mi-demo-quantity-steps button:hover:not(:disabled) {
  background: var(--demo-active);
  color: var(--demo-text);
}
#try_it .mi-demo-quantity-steps button:disabled {
  opacity: 0.35;
  cursor: default;
}
#try_it .mi-demo-quantity-steps svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body[data-theme='dark'] #try_it .mi-demo-types {
  background: #20232a;
}
body[data-theme='dark'] #try_it .mi-demo-type {
  color: #bcc3ce;
  --type-color: #8ad7b1;
  --type-surface: #203c30;
}
body[data-theme='dark'] #try_it .mi-demo-type[data-type='OUT'] {
  --type-color: #f0adb4;
  --type-surface: #442a31;
}
body[data-theme='dark'] #try_it .mi-demo-type[data-type='MOVE'] {
  --type-color: #b9c5fc;
  --type-surface: #2c324b;
}
body[data-theme='dark'] #try_it .mi-demo-type:hover {
  background: #333944;
}
body[data-theme='dark'] #try_it .mi-demo-type.is-active {
  background: var(--type-surface);
  color: var(--type-color);
}
