/*
 * Hide all phone-related agent UI surfaces.
 *
 * Zammad provides no admin toggle for any of these; this is the
 * file-based custom-stylesheet hook (app/assets/stylesheets/custom/),
 * which is the only Zammad-blessed mechanism per maintainer guidance.
 *
 * Selectors are anchored on stable data-* attributes from the legacy
 * frontend templates (Marionette / .jst.eco) — not Vue scoped hashes.
 *
 * Re-precompile assets after every Zammad image upgrade:
 *   docker compose exec zammad-railsserver bundle exec rake assets:precompile
 */

/* 1. Composer Phone tab (ticket zoom article-new bar)
 *    Selectors from: app/assets/javascripts/app/views/ticket_zoom/article_new.jst.eco
 */
.js-articleTypeItem[data-value="phone"],
.js-selectableTypes[data-type="phone"] {
  display: none !important;
}

/* 2. New-ticket dialog: "Phone Inbound" + "Phone Outbound" tabs
 *    Selectors from: app/assets/javascripts/app/controllers/agent_ticket_create.coffee
 *    (articleSenderTypeMap keys 'phone-in' / 'phone-out')
 */
li.tab[data-type="phone-in"],
li.tab[data-type="phone-out"] {
  display: none !important;
}

/* 3. User profile phone / mobile / fax fields (form-builder rendered)
 *    Selectors from: app/assets/javascripts/app/views/generic/attribute.jst.eco
 */
[data-attribute-name="phone"],
[data-attribute-name="mobile"],
[data-attribute-name="fax"] {
  display: none !important;
}
