/* DoceGestor UI polish: only three scoped corrections; preserve functionality. */

/* 1. "Seu negÃ³cio hoje": an actual compact, centered bar-chart pictogram. */
.app .insight-ico {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}
.app .insight-ico > svg {
  display: block;
  width: 29px;
  height: 29px;
  max-width: none;
  max-height: none;
  position: static;
  margin: 0;
  transform: none;
}

/* 2. Store personalization: keep text, preview and chevrons inside each row. */
.store-page .store-edit-row {
  display: grid;
  grid-template-columns: 43px minmax(0,1fr) minmax(0,clamp(92px,28vw,143px));
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  overflow: hidden;
}
.store-page .store-edit-icon {
  width: 43px;
  height: 43px;
  min-width: 0;
}
.store-page .store-edit-text { min-width: 0; }
.store-page .store-edit-trail {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.store-page .store-edit-trail > small {
  display: block;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  text-align: right;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal !important;
  text-overflow: clip;
}
.store-page .store-edit-trail > svg:last-child {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  align-self: center;
}
.store-page .store-edit-trail .store-swatches {
  min-width: 0;
  max-width: calc(100% - 23px);
  flex: 0 1 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  justify-content: flex-end;
}
.store-page .store-edit-trail .store-swatch {
  width: clamp(12px,3.7vw,18px);
  height: clamp(12px,3.7vw,18px);
  flex: 0 1 clamp(12px,3.7vw,18px);
}
@media (max-width: 375px) {
  .store-page .store-edit-row {
    grid-template-columns: 38px minmax(0,1fr) minmax(0,94px);
    column-gap: 8px;
    padding: 10px 9px;
  }
  .store-page .store-edit-icon { width: 38px; height: 40px; }
  .store-page .store-edit-trail { gap: 4px; }
  .store-page .store-edit-trail > svg:last-child {
    width: 14px; height: 14px; flex-basis: 14px;
  }
  .store-page .store-edit-trail .store-swatches { max-width: calc(100% - 18px); gap: 2px; }
  .store-page .store-edit-trail .store-swatch { width: 12px; height: 12px; flex-basis: 12px; }
}

/* 3. Orders: breathing room between urgent deliveries and customer search. */
.ord-page .ord-urgent {
  margin-bottom: 25px;
}
.ord-page .ord-toolbar {
  margin-top: 0;
  margin-bottom: 15px;
}