/* Agraventra Mobile Dashboard Composer V3 */
@media (max-width: 600px) {
  .av-mobile-dashboard-composer-v3 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    min-width: 0;
    margin-top: 18px;
  }

  .av-mobile-dashboard-tabs-v3 {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    margin: 0 0 6px;
    border-bottom: 1px solid rgba(26, 56, 43, 0.14);
  }

  .av-mobile-dashboard-tab-v3 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px !important;
    height: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 10px 7px 9px !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 3px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #68766e !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    appearance: none;
    cursor: pointer;
  }

  .av-mobile-dashboard-tab-v3[aria-selected="true"] {
    color: #1A382B !important;
    border-bottom-color: #2F6F4E !important;
    font-weight: 700 !important;
  }

  .av-mobile-dashboard-stage-v3 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100%;
    min-width: 0;
  }

  .av-mobile-dashboard-stage-v3 > [class*="av-slot-"] {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    grid-area: auto !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  /* Only the canonical mobile context under search remains visible. */
  .av-mobile-context-shadow-v30 {
    display: none !important;
  }

  header.av-topbar .av-crumb {
    margin-left: 14px !important;
  }
}

/* AGRAVENTRA_MOBILE_INTRO_REPAIR_V32 */
@media (max-width: 600px) {
  #agraventraDashboard .av-slot-intro-v1 {
    overflow: visible !important;
    overflow-y: visible !important;
    padding-bottom: 8px !important;
  }

  #agraventraDashboard .av-slot-intro-v1 .av-question,
  #agraventraDashboard .av-slot-intro-v1 .av91-greeting-question {
    line-height: 1.25 !important;
  }
}

/* AGRAVENTRA_MOBILE_STRUCTURAL_TOPBAR_V66 */
@media (max-width: 768px) {
  .av-sidebar {
    display: none !important;
  }

  .av-topbar {
    top: 0;
  }

  .av-mobile-topbar-brand-v66 {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .av-mobile-topbar-logo-v66 {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
  }

  .av-mobile-topbar-brand-name-v66 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 700;
  }

  .av-canon-mobile-context.av-mobile-context-v66 {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.3;
  }

  .av-mobile-operation-v66,
  .av-mobile-overview-v66 {
    font-weight: 600;
  }

  .av-mobile-separator-v66 {
    flex: 0 0 auto;
    opacity: 0.72;
  }
}

/* AGRAVENTRA_MOBILE_CONTEXT_SINGLELINE_V66R1 */
@media (max-width: 768px) {
  .av-canon-mobile-context.av-mobile-context-v66 {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .av-mobile-operation-v66 {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .av-mobile-separator-v66,
  .av-mobile-overview-v66 {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* AGRAVENTRA_MOBILE_CONTEXT_COMPACT_SUFFIX_V66R2 */
@media (max-width: 768px) {
  .av-canon-mobile-context.av-mobile-context-v66 {
    gap: 0;
  }

  .av-mobile-operation-v66 {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .av-mobile-separator-v66 {
    flex: 0 0 auto;
    margin-left: 0.6em;
    margin-right: 0.35em;
    white-space: nowrap;
  }

  .av-mobile-overview-v66 {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* AGRAVENTRA_MOBILE_BREADCRUMB_VISUAL_CONTRACT_V72 */
@media (max-width: 768px) {
  .av-mobile-breadcrumb-parent-v72,
  .av-mobile-breadcrumb-separator-v72 {
    opacity: var(--av-breadcrumb-secondary-opacity, 0.70);
  }

  .av-mobile-breadcrumb-current-v72 {
    opacity: 1;
  }
}

/* AGRAVENTRA_UI_FINAL_CONSOLIDATED_V73 */

/* AGRAVENTRA_MOBILE_COPYRIGHT_BRANDING_CONTRACT_V74 */
@media (max-width: 768px) {
  .av-mobile-copyright-v74 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: 18px;
    padding: 10px 16px;
    background: var(--av-copyright-mobile-bg, #1A382B);
    color: var(--av-copyright-mobile-color, rgba(255, 255, 255, 0.82));
    font-size: 11px;
    line-height: 1.35;
    font-weight: 500;
    text-align: center;
    border-radius: 0;
  }
}

/* AGRAVENTRA_MOBILE_COPYRIGHT_PERSISTENCE_V74R1 */
@media (max-width: 768px) {
  #av-app > .av-mobile-copyright-v74 {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 769px) {
  #av-app > .av-mobile-copyright-v74 {
    display: none !important;
  }
}
