/* One active client screen throughout the existing phone breakpoint. */
@media (max-width: 760px) {
  #app_view .facturier-customer-browser {
    display: block !important;
  }
  #app_view .facturier-customer-browser.is-portfolio .facturier-customer-cockpit,
  #app_view .facturier-customer-browser.has-selection .facturier-customer-directory {
    display: none !important;
  }
  #app_view :is(.facturier-customer-back, .facturier-customer-head-actions .fv-action-btn) {
    min-height: 44px !important;
  }

  #app_view .bn-phone-reference-details {
    min-width: 0; margin: 0; border: 1px solid #d9e3e9; border-radius: 12px; background: #fff;
  }
  #app_view .bn-phone-reference-details > summary {
    min-height: 48px; padding: 12px; box-sizing: border-box; cursor: pointer;
    color: #27465b; font-size: 14px; font-weight: 700; line-height: 1.5;
  }
  #app_view .bn-phone-reference-details > summary:focus-visible {
    outline: 3px solid #0b4b38; outline-offset: -3px; border-radius: 10px;
  }
  #app_view .bn-phone-reference-details-content {
    display: grid; gap: 14px; padding: 0 12px 12px; min-width: 0;
  }
  #app_view .bn-phone-reference-details .facturier-identity-card {
    display: block !important; width: 100% !important; min-width: 0 !important; margin: 0 !important;
  }
  #app_view .bn-phone-packaging-details .facturier-packaging-manager {
    margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important;
  }
  #app_view .bn-phone-packaging-details .facturier-packaging-manager :is(input, select, button) {
    min-height: 44px !important; font-size: 16px !important;
  }
  #app_view .facturier-item-workbench > .facturier-invoice-hero {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    gap: 12px !important; padding: 14px !important; min-height: 0 !important;
  }
  #app_view .facturier-item-workbench > .facturier-invoice-hero p { display: none !important; }
  #app_view .facturier-item-workbench > .facturier-invoice-hero h2 { margin: 0 !important; }
  #app_view .facturier-item-workbench > .facturier-invoice-hero button {
    width: auto !important; min-height: 44px !important; flex: 0 1 auto !important;
  }

  #app_view .facturier-modal-backdrop:has(#facturier_entity_item_name, #facturier_entity_name) {
    padding: 0 !important; top: var(--bn-phone-top, 0px) !important; bottom: auto !important;
    height: var(--bn-phone-height, 100dvh) !important; align-items: stretch !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) {
    display: flex !important; flex-direction: column !important; width: 100vw !important;
    max-width: 100vw !important; height: var(--bn-phone-height, 100dvh) !important;
    max-height: var(--bn-phone-height, 100dvh) !important; min-height: 0 !important;
    margin: 0 !important; border: 0 !important; border-radius: 0 !important; overflow: hidden !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) .facturier-modal-head {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    justify-content: space-between !important; flex: 0 0 auto !important;
    min-height: 64px !important; gap: 10px !important; padding: 8px 14px !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) .facturier-modal-head h2 {
    font-size: 19px !important; margin: 0 !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) .facturier-modal-body {
    display: block !important; flex: 1 1 auto !important; min-height: 0 !important;
    max-height: none !important; padding: 12px !important; overflow-y: auto !important; overflow-x: hidden !important;
    overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) :is(.facturier-entity-layout, .facturier-form-grid) {
    display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; min-width: 0 !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) .facturier-form-panel {
    display: grid !important; gap: 14px !important; padding: 0 !important; min-width: 0 !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) label {
    min-width: 0 !important; font-size: 13px !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) :is(input:not([type="checkbox"]), select, textarea) {
    box-sizing: border-box !important; width: 100% !important; min-width: 0 !important;
    max-width: 100% !important; min-height: 46px !important; font-size: 16px !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) :is(button, .fv-action-link) {
    min-width: 44px !important; min-height: 44px !important; font-size: 14px !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) .facturier-modal-head > button {
    width: auto !important; flex: 0 0 auto !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) .facturier-modal-footer {
    display: flex !important; flex: 0 0 auto !important; flex-direction: column !important;
    align-items: stretch !important; gap: 8px !important; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) .facturier-modal-footer > .fv-action-bar {
    display: flex !important; width: 100% !important; gap: 8px !important; flex-wrap: wrap !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) .facturier-modal-footer .fv-action-btn {
    flex: 1 1 0 !important; width: auto !important; min-height: 48px !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_item_name, #facturier_entity_name) .facturier-modal-footer .fv-action-bar:has(> .muted:empty):not(:has(button)) {
    display: none !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_name) .facturier-lookup-row {
    display: grid !important; grid-template-columns: minmax(70px, .45fr) minmax(0, 1fr) !important; gap: 8px !important;
  }
  #app_view .facturier-modal:has(#facturier_entity_name) #facturier_entity_lookup_query { grid-column: 1 / -1 !important; }
}
