/**
 * Mart-io — portail gérant (seller*) : chrome mobile (topbar, tabbar, footer).
 */

/* Masquer le header / footer du site : le portail a son propre chrome */
body[id^="module-qlo_marketplace-seller"] .header-container,
body.qmp-martio-ui.qmp-seller-portal .header-container,
body[id^="module-qlo_marketplace-seller"] #slider_row,
body.qmp-martio-ui.qmp-seller-portal #slider_row,
body[id^="module-qlo_marketplace-seller"] .qmp-martio-footer,
body.qmp-martio-ui.qmp-seller-portal .qmp-martio-footer,
body[id^="module-qlo_marketplace-seller"] #footer,
body.qmp-martio-ui.qmp-seller-portal #footer {
  display: none !important;
}

body[id^="module-qlo_marketplace-seller"] #page,
body.qmp-martio-ui.qmp-seller-portal #page,
body[id^="module-qlo_marketplace-seller"] .columns-container,
body.qmp-martio-ui.qmp-seller-portal .columns-container {
  padding-top: 0;
}

body[id^="module-qlo_marketplace-seller"] .qmp-portal-topbar,
body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar {
  position: sticky;
  top: 0;
  z-index: 950;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

body[id^="module-qlo_marketplace-seller"] .qmp-page.qmp-portal,
body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal {
  min-height: 100vh;
  background: var(--mp-color-surface-muted, #f5f5f7);
}

body[id^="module-qlo_marketplace-seller"] .qmp-page.qmp-portal > .qmp-portal-alerts,
body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal > .qmp-portal-alerts {
  max-width: var(--mp-max-content, 1200px);
  margin: 0 auto;
  padding: 16px 24px 0;
  width: 100%;
  box-sizing: border-box;
}

.qmp-portal-topbar-brand-short {
  display: none;
}

.qmp-portal-property-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
}

.qmp-portal-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.qmp-portal-menu-toggle,
.qmp-portal-mobile-menu,
.qmp-portal-mobile-backdrop {
  display: none;
}

.qmp-portal-menu-toggle {
  border: 0;
  background: transparent;
  color: #fff;
}

.qmp-portal-logout-symbol {
  display: none;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker {
  position: relative;
  text-align: left;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-city-picker__trigger,
body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-date-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--mp-color-border, #d2d2d7);
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  color: var(--mp-color-text, #1d1d1f);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-city-picker__trigger:hover,
body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-date-picker__trigger:hover,
body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker.is-open .qmp-city-picker__trigger,
body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker.is-open .qmp-date-picker__trigger {
  border-color: var(--mp-color-accent, #007aff);
}

body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-city-picker__trigger:focus,
body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-city-picker__trigger:focus-visible,
body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-date-picker__trigger:focus,
body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-date-picker__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.16);
}

/* Desktop — même largeur que le header site (1200px + marges latérales) */
@media (min-width: 768px) {
  body.qmp-martio-ui.qmp-seller-portal .columns-container {
    background-color: var(--mp-color-surface-muted, #f5f5f7);
    padding-bottom: 48px;
  }

  body.qmp-martio-ui.qmp-seller-portal #columns.container {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal #columns > .row {
    display: block;
    max-width: var(--mp-max-content, 1200px);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal #center_column {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar {
    border-radius: 0;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-layout {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: auto;
    border-radius: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-main {
    max-width: 100%;
    min-width: 0;
    padding: 32px 24px 48px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-form-section {
    min-width: 0;
    margin: 0 0 20px;
    padding: 18px 20px 20px;
    border: 1px solid var(--mp-color-border, #d2d2d7);
    border-radius: 12px;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-form-section:last-of-type {
    margin-bottom: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-form-section legend {
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0 8px;
    color: var(--mp-color-text, #1d1d1f);
    font-weight: 600;
    line-height: 1.3;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-form-actions {
    margin-top: 28px;
  }
}

@media (max-width: 767px) {
  html.qmp-martio-ui,
  body.qmp-martio-ui.qmp-seller-portal {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
  }

  body.qmp-martio-ui.qmp-seller-portal #columns.container,
  body.qmp-martio-ui.qmp-seller-portal #columns > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.qmp-martio-ui.qmp-seller-portal #center_column {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal {
    width: 100%;
    max-width: 100%;
    font-size: 11px;
    overflow-x: hidden;
  }

  /* Footer site déjà masqué globalement sur le portail gérant */
  /* Topbar pleine largeur, texte non coupé */
  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    padding: 0 16px !important;
    height: 52px;
    font-size: 11px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar-end {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar-brand-full {
    display: none;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar-brand-short {
    display: inline;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar-user {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    text-align: right;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar-actions {
    flex: 0 1 auto;
    min-width: 0;
    gap: 8px;
    overflow: visible !important;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-logout {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0;
    color: #fff;
    flex: 0 0 34px;
    position: relative;
    z-index: 1;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-logout:hover,
  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-logout:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-logout-symbol {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-logout-symbol svg {
    display: block !important;
    width: 18px;
    height: 18px;
    overflow: visible !important;
    stroke: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-logout-label,
  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-help {
    display: none;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-menu-toggle {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 6px 4px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: relative;
    z-index: 2;
    order: 3;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-menu-toggle span {
    display: block !important;
    flex: 0 0 2px;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: #fff !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-menu-toggle::before,
  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-menu-toggle::after {
    content: none;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 52px 0 0;
    z-index: 1190;
    background: rgba(10, 37, 64, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-menu {
    display: block;
    position: fixed;
    top: 52px;
    left: 0;
    bottom: 0;
    z-index: 1200;
    width: min(88vw, 360px);
    padding: 0 0 calc(20px + env(safe-area-inset-bottom, 0));
    overflow-y: auto;
    background: #fff;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-menu.is-open {
    transform: translateX(0);
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid #e5e5ea;
    color: #0a2540;
    font-size: 15px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-menu-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6e6e73;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-nav {
    padding: 10px 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 22px;
    border-left: 3px solid transparent;
    color: #3a3a3c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-nav-link:hover {
    background: #f5f5f7;
    color: #0a2540;
    text-decoration: none;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-nav-link.is-active {
    border-left-color: #007aff;
    background: rgba(0, 122, 255, 0.08);
    color: #007aff;
    font-weight: 650;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-nav-link.is-disabled {
    color: #aeaeb2;
    opacity: 0.6;
    cursor: not-allowed;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-mobile-nav-link--secondary {
    margin-top: 8px;
    border-top: 1px solid #e5e5ea;
    color: #6e6e73;
  }

  body.qmp-martio-ui.qmp-seller-portal.qmp-portal-menu-open {
    overflow: hidden;
  }

  /* Tabbar fixée en bas de l'écran */
  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-tabbar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1200 !important;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    font-size: 9px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-tabbar a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    max-width: none;
    min-height: 44px;
    padding: 6px 4px;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    color: #6e6e73;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-tabbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-tabbar-icon svg {
    display: block;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-tabbar-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-tabbar a.is-active {
    color: #007aff;
    font-weight: 600;
    background: rgba(0, 122, 255, 0.08);
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-layout {
    min-height: auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    overflow-x: hidden;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-main {
    min-width: 0;
    max-width: 100%;
    padding: 20px 16px calc(88px + env(safe-area-inset-bottom, 0));
    overflow-x: clip;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-city-picker__trigger,
  body.qmp-martio-ui.qmp-seller-portal .qmp-apple-picker .qmp-date-picker__trigger {
    font-size: 13px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-city-picker__list .qmp-city-picker__option {
    font-size: 13px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .page-heading {
    font-size: calc(1.25rem - 2px) !important;
    line-height: 1.3;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-lead {
    font-size: 14px;
    margin-bottom: 16px !important;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-panel {
    padding: 16px;
    margin-bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
    overflow-x: hidden;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-form-section {
    min-width: 0;
    margin: 0 0 16px;
    padding: 14px 14px 16px;
    border: 1px solid var(--mp-color-border, #d2d2d7);
    border-radius: 12px;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-form-section:last-of-type {
    margin-bottom: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-form-section legend {
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0 8px;
    color: var(--mp-color-text, #1d1d1f);
    font-weight: 600;
    line-height: 1.3;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-source-hint-walk_in,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-source-hint-phone {
    font-size: 14px;
    line-height: 1.4;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-new-booking .qmp-form-actions {
    margin-top: 20px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-clients .qmp-client-filters .qmp-city-picker__trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--mp-color-border, #d2d2d7) !important;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    color: var(--mp-color-text, #1d1d1f);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-clients .qmp-client-filters .qmp-city-picker.is-open .qmp-city-picker__trigger {
    border-color: var(--mp-color-accent, #007aff) !important;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-topbar-meta {
    display: none;
  }

  /* Disponibilités — tableaux / calendrier contenus dans l'écran */
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-availability,
  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-filters,
  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-type-overview,
  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-panel {
    min-width: 0;
    max-width: 100%;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-type-scroll {
    max-width: 100%;
    min-width: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-type-table th,
  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-type-table td {
    white-space: normal;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-type-table tbody td {
    flex-wrap: wrap;
    text-align: left;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar {
    width: 100%;
    max-width: 100%;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-weekdays,
  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day {
    width: auto;
    height: auto;
    min-height: 34px;
    aspect-ratio: 1;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-unblock-form .qmp-btn-secondary,
  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-export-btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table tbody td .qmp-avail-unblock-form {
    width: 100%;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-filter-grid .form-group {
    margin-bottom: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-filter-grid .form-group label {
    font-size: 11px;
    font-weight: 500;
    color: #6e6e73;
    margin-bottom: 6px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-filter-grid .form-control {
    min-height: 44px;
    border-radius: 10px;
    font-size: 13px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-filter-grid .qmp-btn-primary {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-kpi-tile {
    padding: 14px 12px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-kpi-tile .qmp-kpi-value {
    font-size: calc(1.35rem - 2px);
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-data-table tbody td.qmp-collection-amounts {
    display: block;
    white-space: normal;
    text-align: left;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #ececf0;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-data-table tbody td.qmp-collection-amounts::before {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    max-width: none;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-pay-summary {
    background: #f5f5f7;
    border-radius: 10px;
    padding: 10px 12px;
    gap: 6px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-pay-row {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 6px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-pay-label {
    font-size: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #86868b;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-pay-value {
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-data-table tbody td.qmp-collection-status {
    display: block;
    text-align: left;
    padding: 8px 0;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-data-table tbody td.qmp-collection-status::before {
    display: block;
    max-width: none;
    margin-right: 0;
    margin-bottom: 6px;
    font-size: 10px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-data-table tbody td.qmp-collection-status .qmp-badge {
    display: inline-block;
    font-size: 10px;
    padding: 3px 8px;
    margin-top: 2px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-data-table tbody td.qmp-collection-amounts > div {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-kpi-tile .qmp-kpi-value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 1.05rem;
    line-height: 1.25;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-data-table tbody td.qmp-collection-cell {
    display: block;
    text-align: left;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding-top: 10px;
    border-top: 1px dashed #ececf0;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-data-table tbody td.qmp-collection-cell::before {
    display: block;
    max-width: none;
    margin-bottom: 8px;
    font-size: 10px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form .qmp-amount-input,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form select.form-control,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form .qmp-btn-primary,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form .qmp-btn-sm {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
    box-sizing: border-box;
    font-size: 13px;
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form > *,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-cell .qmp-collection-receipt-btn {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-table,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-table tbody,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-table tbody tr,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-table tbody td.qmp-collection-cell {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-cell {
    overflow: visible !important;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form button,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-cell .qmp-collection-receipt-btn {
    width: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form .form-control {
    width: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form .qmp-city-picker__trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--mp-color-border, #d2d2d7) !important;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    color: var(--mp-color-text, #1d1d1f);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form.qmp-city-picker.is-open .qmp-city-picker__trigger {
    border-color: var(--mp-color-accent, #007aff) !important;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-form .qmp-btn-primary {
    font-size: 14px;
    font-weight: 600;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-cell .qmp-btn-secondary,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-cell .qmp-collection-receipt-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
    margin-top: 8px !important;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .table-responsive,
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-collection-table {
    min-width: 0 !important;
    width: 100%;
    overflow: visible;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-panel {
    overflow-x: visible;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-collection .qmp-filter-grid--collection {
    grid-template-columns: 1fr;
  }

  /* Tableau → cartes empilées */
  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table thead {
    display: none;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table tbody {
    display: block;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--mp-color-border, #d2d2d7);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #ececf0;
    text-align: right;
    word-break: break-word;
    font-size: 16px;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table tbody td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6e6e73;
    text-align: left;
    flex-shrink: 0;
    max-width: 46%;
    line-height: 1.35;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-bookings .qmp-data-table tbody td[data-label="Actions"] {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-bookings .qmp-data-table tbody td[data-label="Actions"]::before {
    display: block;
    width: 100%;
    max-width: none;
    margin-bottom: 8px;
    text-align: left;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-bookings .qmp-data-table tbody td[data-label="Actions"] .qmp-inline-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    gap: 8px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-bookings .qmp-data-table tbody td[data-label="Actions"] .qmp-inline-form .form-control {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-bookings .qmp-data-table tbody td[data-label="Actions"] .qmp-inline-form .qmp-btn {
    align-self: flex-start;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-clients .qmp-clients-table tbody td[data-label="Contact"] {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-clients .qmp-clients-table tbody td[data-label="Contact"]::before {
    display: block;
    width: 100%;
    max-width: none;
    margin-bottom: 4px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-clients .qmp-clients-table tbody td[data-label="Contact"] > div {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-clients .qmp-clients-table tbody td[data-label="Contact"] a {
    word-break: normal;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-clients .qmp-clients-table tbody td:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding-top: 12px;
    text-align: center;
    box-sizing: border-box;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-clients .qmp-clients-table tbody td:last-child::before {
    display: none;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-clients .qmp-clients-table tbody td:last-child a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0 !important;
    padding: 6px 8px;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table tbody td.qmp-td-title {
    display: block;
    padding: 0 0 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid #ececf0;
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    text-align: left;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-data-table tbody td.qmp-td-title::before {
    display: none;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-kpi-grid {
    grid-template-columns: 1fr;
  }

  body.qmp-martio-ui.qmp-seller-portal .qmp-portal-tabbar a {
    font-size: 10px;
    padding: 6px 2px;
  }
}

/* Disponibilités — Phase A */
body.qmp-martio-ui.qmp-seller-portal .qmp-avail-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-pill--booked {
  background: #fff4e5;
  color: #9a5b00;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-pill--pending {
  background: #eef4ff;
  color: #274bdb;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-pill--closed {
  background: #fce8e8;
  color: #b42318;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-pill--open {
  background: #e8f5ee;
  color: #0f6b3f;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-block-grid .qmp-full {
  grid-column: 1 / -1;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-submit {
  display: flex;
  justify-content: flex-end;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-unblock-form {
  margin: 0;
}

@media (max-width: 767px) {
  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-select-grid,
  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-block-grid {
    grid-template-columns: 1fr;
  }
}

/* Disponibilités — Phase B */
body.qmp-martio-ui.qmp-seller-portal .qmp-avail-pill--conflict {
  background: #f3e8ff;
  color: #6b21a8;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-section-head {
  margin-bottom: 12px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-legend--inline {
  margin-bottom: 12px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-type-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-type-table th,
body.qmp-martio-ui.qmp-seller-portal .qmp-avail-type-table td {
  white-space: nowrap;
  font-size: 13px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-mini-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-right: 4px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #e8f5ee;
  color: #0f6b3f;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-mini-stat--booked {
  background: #fff4e5;
  color: #9a5b00;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-mini-stat--closed {
  background: #fce8e8;
  color: #b42318;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-mini-stat--conflict {
  background: #f3e8ff;
  color: #6b21a8;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-month-label {
  min-width: 140px;
  text-align: center;
  font-size: 15px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-month-btn {
  min-width: 40px;
  padding: 8px 12px;
  text-align: center;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-month-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-panel .qmp-avail-month-nav,
body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-panel .qmp-avail-legend--inline {
  width: 100%;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-panel .qmp-avail-legend--inline {
  justify-content: center;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-weekdays,
body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-weekdays {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #6e6e73;
  text-align: center;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-week {
  margin-bottom: 4px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day {
  width: 36px;
  height: 36px;
  max-width: none;
  max-height: none;
  margin: 0;
  aspect-ratio: unset;
  min-height: unset;
  border-radius: 8px;
  border: 1px solid #e5e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day--empty {
  border-color: transparent;
  background: transparent;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day--open {
  background: #e8f5ee;
  border-color: #b8e6cc;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day--booked {
  background: #fff4e5;
  border-color: #ffd699;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day--closed {
  background: #fce8e8;
  border-color: #f5b5b5;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day--conflict {
  background: #f3e8ff;
  border-color: #d8b4fe;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day.is-today {
  box-shadow: inset 0 0 0 2px #007aff;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-daynum {
  font-size: 12px;
  font-weight: 700;
  color: #1d1d1f;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-panel {
  overflow: hidden;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar {
  width: 100%;
  max-width: 430px;
  padding: 4px;
  box-sizing: border-box;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-weekdays,
body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-weekdays {
  margin-bottom: 6px;
  font-size: 11px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-week {
  margin-bottom: 6px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day {
  width: auto;
  height: auto;
  min-height: 40px;
  aspect-ratio: 1;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-day:not(.qmp-avail-calendar-day--empty):hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.12);
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-calendar-daynum {
  font-size: 13px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-export-btn {
  white-space: nowrap;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-help-text {
  font-size: 16px;
  line-height: 1.5;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-avail-alert {
  margin-bottom: 8px;
}

/* Phase C — Tarification portail gérant */
body.qmp-martio-ui.qmp-seller-portal .qmp-pricing-filters {
  margin-bottom: 20px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-pricing-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-pricing-panel {
  margin-bottom: 0;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-pricing-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 12px;
  color: #1d1d1f;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-pricing-table td form {
  margin: 0;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-pricing-table .qmp-btn-compact {
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.3;
}

/* Boutons portail gérant — forcer le style Mart-io (écrase Bootstrap / thème) */
body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal button.qmp-btn-primary,
body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 12px 24px;
  border: none !important;
  border-radius: var(--mp-radius-button, 10px);
  background: var(--mp-color-accent, #007aff) !important;
  background-image: none !important;
  color: #fff !important;
  font-family: var(--mp-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal button.qmp-btn-primary:hover,
body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-btn-primary:hover {
  background: #0066d6 !important;
  color: #fff !important;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal button.qmp-btn-secondary,
body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-btn-secondary,
body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal a.qmp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 10px 20px;
  border: 1px solid var(--mp-color-border, #d2d2d7) !important;
  border-radius: var(--mp-radius-button, 10px);
  background: #fff !important;
  background-image: none !important;
  color: var(--mp-color-primary, #0a2540) !important;
  font-family: var(--mp-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal button.qmp-btn-secondary:hover,
body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal .qmp-btn-secondary:hover,
body.qmp-martio-ui.qmp-seller-portal .qmp-page.qmp-portal a.qmp-btn-secondary:hover {
  background: var(--mp-color-surface-muted, #f5f5f7) !important;
  color: var(--mp-color-primary, #0a2540) !important;
  text-decoration: none;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-pricing .qmp-pricing-submit-wrap {
  justify-content: flex-start;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-balance .qmp-balance-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 767px) {
  body.qmp-martio-ui.qmp-seller-portal .qmp-pricing-submit-wrap .qmp-btn-primary,
  body.qmp-martio-ui.qmp-seller-portal .qmp-avail-submit .qmp-btn-primary {
    width: 100%;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-balance .qmp-balance-export-actions {
    flex-direction: column;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-balance .qmp-balance-export-actions a {
    width: 100%;
  }
}

body.qmp-martio-ui.qmp-seller-portal .qmp-pricing-submit-wrap {
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) {
  body.qmp-martio-ui.qmp-seller-portal .qmp-pricing-submit-wrap {
    grid-column: span 1;
  }
}

/* ——— Connexion portail gérant (sellerlogin) ——— */

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login {
  min-height: 100vh;
  background: var(--mp-color-surface-muted, #f5f5f7);
  padding: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__container {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  box-sizing: border-box;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__header {
  text-align: center;
  margin-bottom: 24px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__brand {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--mp-color-accent, #007aff);
  text-decoration: none;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .page-heading {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1d1d1f;
  border: none;
  margin: 0 0 10px;
  padding: 0;
  text-transform: none;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #6e6e73;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__card {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 24px 22px;
  margin: 0;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .martio-social-auth {
  margin: 0 0 16px;
  padding: 0;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .martio-social-auth__note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #86868b;
  line-height: 1.45;
  text-align: center;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__form .form-group {
  margin-bottom: 16px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__form .form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
  box-shadow: none;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__forgot {
  margin: 0 0 16px;
  text-align: right;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__forgot a {
  color: #007aff;
  font-size: 14px;
  text-decoration: none;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__actions {
  margin: 0;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__actions .qmp-btn-primary {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  background: #007aff;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__footer {
  margin-top: 24px;
  text-align: center;
  font-size: 15px;
  color: #6e6e73;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__footer .qmp-link {
  color: #007aff;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 767px) {
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__container {
    padding: 24px 16px 40px;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-seller-login__card {
    padding: 20px 16px;
  }
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-legal {
  margin: 0 0 16px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #424245;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-login .qmp-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

/* ——— Équipe / co-gestion ——— */
body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-title {
  font-size: 1.375rem;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-lead {
  margin: 0;
  max-width: 42rem;
  color: #6e6e73;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-header {
  margin-bottom: 20px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-hint {
  margin: 0 0 16px;
  font-size: 13px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-actions {
  margin-top: 8px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-person {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-you {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 980px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  background: #f5f5f7;
  color: #1d1d1f;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-status--active {
  background: rgba(52, 199, 89, 0.14);
  color: #1b7f37;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-status--pending {
  background: rgba(255, 149, 0, 0.14);
  color: #9a5b00;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-team-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-inline-form {
  display: inline;
  margin: 0;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 980px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-btn-danger-ghost {
  background: transparent;
  border: 1px solid #d2d2d7;
  color: #c41e3a;
  border-radius: 980px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller-team .qmp-btn-danger-ghost:hover {
  background: rgba(196, 30, 58, 0.06);
  border-color: #c41e3a;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-team-invite-accept {
  max-width: 520px;
  margin: 48px auto;
  padding: 0 16px 64px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-team-invite-accept .qmp-team-invite-card {
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

body.qmp-martio-ui.qmp-seller-portal #qmp-team-invite-accept .qmp-team-invite-brand {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-team-invite-accept h1 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-panel-head h2 {
  margin: 0;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-meta {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-refresh-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-hint {
  margin: 14px 0 0;
  font-size: 13px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-filters {
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 16px;
  background: #f9f9fb;
  border: 1px solid #ececf0;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-filter-hint {
  margin: 12px 0 0;
  font-size: 13px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-kpi-grid {
  margin-bottom: 20px;
}

body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-kpi-grid .qmp-kpi-label {
  color: var(--mp-color-accent, #007aff);
}

@media (max-width: 991px) {
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-filter-grid {
    grid-template-columns: 1fr;
  }

  body.qmp-martio-ui.qmp-seller-portal #qmp-seller .qmp-stats-panel-head {
    flex-direction: column;
  }
}
