/* Event/business mode overrides to reduce theme interference on frontend dashboards */
body .mssn-pos-shortcode,
body .mssn-backoffice-wrap,
body .mssn-store-catalog,
body .mssn-store-cart,
body .mssn-store-signup {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  clear: both;
}

body .mssn-pos-wrap,
body .mssn-backoffice-wrap,
body .mssn-backoffice-card,
body .mssn-store-catalog .mssn-sc-shell,
body .mssn-store-cart .mssn-cart-shell,
body .mssn-store-signup .mssn-card {
  display: block !important;
  width: auto !important;
  max-width: min(1600px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body .mssn-pos-shortcode *,
body .mssn-backoffice-wrap *,
body .mssn-store-catalog *,
body .mssn-store-cart * {
  box-sizing: border-box;
}

body .mssn-backoffice-wrap .wrap,
body .mssn-backoffice-wrap .widefat,
body .mssn-backoffice-wrap table,
body .mssn-pos-shortcode table,
body .mssn-store-catalog table,
body .mssn-store-cart table {
  width: 100% !important;
  max-width: 100% !important;
}

body .mssn-backoffice-wrap .tablenav,
body .mssn-backoffice-wrap .wp-list-table,
body .mssn-backoffice-wrap .mssn-table-scroll,
body .mssn-backoffice-wrap .mssn-table-wrap,
body .mssn-pos-shortcode .mssn-pos-tablewrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

body .mssn-backoffice-wrap input,
body .mssn-backoffice-wrap select,
body .mssn-backoffice-wrap textarea,
body .mssn-backoffice-wrap button,
body .mssn-pos-shortcode input,
body .mssn-pos-shortcode select,
body .mssn-pos-shortcode textarea,
body .mssn-pos-shortcode button,
body .mssn-store-catalog input,
body .mssn-store-catalog select,
body .mssn-store-catalog textarea,
body .mssn-store-catalog button {
  max-width: 100% !important;
}

body .mssn-store-catalog .mssn-sc-profile-actions {
  gap: 10px;
}

body .mssn-store-catalog .mssn-sc-btn.is-disabled {
  pointer-events: none;
  opacity: .55;
}

body .mssn-store-catalog .mssn-sc-cart-link,
body .mssn-store-catalog [data-mssn-open-repair-modal],
body .mssn-store-catalog [data-mssn-cart-modal],
body .mssn-store-catalog [data-mssn-repair-modal],
body .mssn-store-cart [data-mssn-repair-modal] {
  display: none !important;
}

@media (max-width: 900px) {
  body .mssn-pos-wrap,
  body .mssn-backoffice-wrap,
  body .mssn-backoffice-card,
  body .mssn-store-catalog .mssn-sc-shell,
  body .mssn-store-cart .mssn-cart-shell,
  body .mssn-store-signup .mssn-card {
    width: auto !important;
    max-width: 100% !important;
  }

  body .mssn-backoffice-wrap .form-table,
  body .mssn-backoffice-wrap .form-table tbody,
  body .mssn-backoffice-wrap .form-table tr,
  body .mssn-backoffice-wrap .form-table th,
  body .mssn-backoffice-wrap .form-table td {
    display: block;
    width: 100% !important;
  }
}


/* v2: event/venue presentation polish */
body .mssn-store-catalog .mssn-sc-shell {
  padding-bottom: 32px;
}

body .mssn-store-catalog .mssn-sc-profile-main,
body .mssn-store-catalog .mssn-sc-toolbar,
body .mssn-store-catalog .mssn-sc-card,
body .mssn-backoffice-wrap .mssn-backoffice-card,
body .mssn-pos-shortcode .mssn-card {
  border-radius: 18px !important;
}

body .mssn-store-catalog .mssn-sc-profile-main {
  box-shadow: 0 18px 60px rgba(2, 6, 23, .10);
}

body .mssn-store-catalog .mssn-sc-toolbar {
  position: sticky;
  top: 12px;
  z-index: 8;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, .08);
}

body .mssn-store-catalog .mssn-sc-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

body .mssn-store-catalog .mssn-sc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}

body .mssn-store-catalog .mssn-sc-btn,
body .mssn-catalogo-wrap .mssn-catalogo-add-note,
body .mssn-catalogo-wrap .mssn-catalogo-edit {
  border-radius: 999px !important;
}

body .mssn-store-catalog .mssn-sc-price {
  font-size: 1.15rem;
}

body .mssn-store-catalog .mssn-sc-tagline {
  letter-spacing: .01em;
}

body .mssn-store-catalog .mssn-sc-profile-links a {
  text-decoration: none !important;
}

body .mssn-store-catalog .mssn-sc-card-body {
  gap: 10px;
}

body .mssn-backoffice-wrap .nav-tab,
body .mssn-backoffice-wrap .mssn-backoffice-nav a {
  border-radius: 999px !important;
}

body .mssn-backoffice-wrap h1,
body .mssn-backoffice-wrap h2,
body .mssn-pos-shortcode h2,
body .mssn-pos-shortcode h3 {
  letter-spacing: -.02em;
}

@media (max-width: 900px) {
  body .mssn-store-catalog .mssn-sc-toolbar {
    position: static;
    top: auto;
  }

  body .mssn-store-catalog .mssn-sc-profile-main {
    box-shadow: 0 12px 28px rgba(2, 6, 23, .10);
  }
}


/* v2.1: isolate frontend backoffice from theme backgrounds and alignfull overflow */
body .mssn-backoffice-wrap.alignfull,
body .mssn-pos-shortcode.alignfull,
body .mssn-store-catalog.alignfull,
body .mssn-store-cart.alignfull,
body .mssn-store-signup.alignfull,
body .mssn-catalogo-wrap.alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

body .mssn-backoffice-wrap {
  position: relative;
  isolation: isolate;
  padding: clamp(14px, 2vw, 24px) !important;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.98));
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  overflow-x: clip;
}

body .mssn-backoffice-wrap.mssn-has-tabs {
  gap: 16px;
}

body .mssn-backoffice-wrap .mssn-backoffice-nav {
  margin: 0 0 16px !important;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

body .mssn-backoffice-wrap .mssn-backoffice-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .08);
}

body .mssn-backoffice-wrap .wrap,
body .mssn-backoffice-wrap .inside,
body .mssn-backoffice-wrap .postbox,
body .mssn-backoffice-wrap .notice,
body .mssn-backoffice-wrap .form-table,
body .mssn-backoffice-wrap .mssn-bo-table-scroll,
body .mssn-backoffice-wrap .widefat-wrap {
  max-width: 100% !important;
}

body .mssn-backoffice-wrap .mssn-bo-table-scroll,
body .mssn-backoffice-wrap .widefat-wrap,
body .mssn-backoffice-wrap .wp-list-table,
body .mssn-backoffice-wrap .tablenav {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

body .mssn-backoffice-wrap .wp-list-table,
body .mssn-backoffice-wrap table.widefat {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  body .mssn-backoffice-wrap {
    border-radius: 18px;
    padding: 12px !important;
  }

  body .mssn-backoffice-wrap .mssn-backoffice-nav {
    border-radius: 16px;
  }

  body .mssn-backoffice-wrap .mssn-backoffice-card {
    border-radius: 16px !important;
  }
}


/* v2.2: frontend backoffice shell + readable typography */
body .mssn-backoffice-wrap[data-mssn-frontend="1"]{
  width:min(1280px, calc(100% - 32px)) !important;
  max-width:min(1280px, calc(100% - 32px)) !important;
  margin:22px auto 32px !important;
  padding:18px !important;
  border:1px solid rgba(203,213,225,.95) !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,#ffffff 0%, #f8fafc 100%) !important;
  box-shadow:0 18px 46px rgba(15,23,42,.10) !important;
  overflow:hidden !important;
  color:#0f172a !important;
  font-size:16px !important;
  line-height:1.5 !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"].mssn-has-tabs{
  display:block !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .mssn-backoffice-nav{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:10px !important;
  position:static !important;
  top:auto !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 0 16px !important;
  padding:8px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  background:rgba(255,255,255,.92) !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .mssn-backoffice-nav a{
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:44px !important;
  padding:10px 14px !important;
  border:1px solid #cbd5e1 !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:15px !important;
  font-weight:800 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .mssn-backoffice-nav a.is-active{
  background:#0f172a !important;
  border-color:#0f172a !important;
  color:#fff !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .mssn-backoffice-card{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:20px !important;
  border:1px solid #e2e8f0 !important;
  border-radius:20px !important;
  background:#ffffff !important;
  box-shadow:0 10px 30px rgba(15,23,42,.08) !important;
  overflow:hidden !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] h1,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] h2,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] h3,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] p,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] label,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] th,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] td,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] li,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] span,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] strong,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] a:not(.button):not(.button-primary){
  color:#0f172a !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] h1{font-size:clamp(28px,3vw,38px) !important;line-height:1.1 !important;}
body .mssn-backoffice-wrap[data-mssn-frontend="1"] h2{font-size:clamp(22px,2.2vw,28px) !important;line-height:1.15 !important;}
body .mssn-backoffice-wrap[data-mssn-frontend="1"] h3{font-size:20px !important;line-height:1.2 !important;}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] table.widefat thead th,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] table.widefat tbody td{
  font-size:15px !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] input[type="text"],
body .mssn-backoffice-wrap[data-mssn-frontend="1"] input[type="number"],
body .mssn-backoffice-wrap[data-mssn-frontend="1"] input[type="date"],
body .mssn-backoffice-wrap[data-mssn-frontend="1"] input[type="email"],
body .mssn-backoffice-wrap[data-mssn-frontend="1"] input[type="tel"],
body .mssn-backoffice-wrap[data-mssn-frontend="1"] select,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] textarea{
  min-height:46px !important;
  padding:11px 14px !important;
  border:1px solid #cbd5e1 !important;
  border-radius:14px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:15px !important;
  line-height:1.35 !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .button,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .button-primary{
  min-height:44px !important;
  padding:10px 14px !important;
  font-size:15px !important;
  font-weight:800 !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .tablenav{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:10px !important;
  overflow-x:visible !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .tablenav .actions,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .tablenav .alignleft.actions{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  align-items:center !important;
  float:none !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .tablenav .tablenav-pages{
  margin-left:auto !important;
  float:none !important;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .widefat-wrap,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .mssn-bo-table-scroll,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .wp-list-table{
  max-width:100% !important;
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch;
}

body .mssn-backoffice-wrap[data-mssn-frontend="1"] .form-table,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .form-table tbody,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .form-table tr,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .form-table th,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .form-table td,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .wrap,
body .mssn-backoffice-wrap[data-mssn-frontend="1"] .mssn-backoffice-card{
  min-width:0 !important;
}

@media (max-width: 980px){
  body .mssn-backoffice-wrap[data-mssn-frontend="1"]{
    width:calc(100% - 20px) !important;
    max-width:calc(100% - 20px) !important;
    margin:14px auto 24px !important;
    padding:12px !important;
    border-radius:18px !important;
  }

  body .mssn-backoffice-wrap[data-mssn-frontend="1"] .mssn-backoffice-card{
    padding:14px !important;
    border-radius:16px !important;
  }

  body .mssn-backoffice-wrap[data-mssn-frontend="1"] h1{font-size:24px !important;}
  body .mssn-backoffice-wrap[data-mssn-frontend="1"] h2{font-size:20px !important;}
}


/* v2.7: stronger phone responsiveness across all shortcodes */
@media (max-width: 768px) {
  body .mssn-pos-shortcode,
  body .mssn-backoffice-wrap,
  body .mssn-store-catalog,
  body .mssn-store-cart,
  body .mssn-store-signup,
  body .mssn-catalogo-wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body .mssn-pos-wrap,
  body .mssn-backoffice-wrap,
  body .mssn-backoffice-card,
  body .mssn-store-catalog .mssn-sc-shell,
  body .mssn-store-cart .mssn-cart-shell,
  body .mssn-store-signup .mssn-card,
  body .mssn-catalogo-wrap {
    border-radius: 18px !important;
  }

  body .mssn-backoffice-wrap .mssn-backoffice-nav,
  body .mssn-backoffice-wrap .nav-tab-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  body .mssn-backoffice-wrap .mssn-backoffice-nav a,
  body .mssn-backoffice-wrap .nav-tab {
    flex: 1 1 calc(50% - 8px);
    text-align: center !important;
    white-space: normal !important;
    min-width: 0 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    padding: 10px 12px !important;
  }

  body .mssn-store-catalog .mssn-sc-profile-main,
  body .mssn-store-catalog .mssn-sc-toolbar,
  body .mssn-store-catalog .mssn-sc-card,
  body .mssn-pos-shortcode .mssn-card,
  body .mssn-team-card {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body .mssn-store-catalog .mssn-sc-profile-headline,
  body .mssn-store-catalog .mssn-sc-profile-stats,
  body .mssn-store-catalog .mssn-sc-profile-actions,
  body .mssn-store-catalog .mssn-sc-filters,
  body .mssn-store-catalog .mssn-sc-media-actions,
  body .mssn-store-catalog .mssn-sc-toggle-tabs,
  body .mssn-store-catalog .mssn-sc-desc-grid,
  body .mssn-team-grid,
  body .mssn-team-editgrid,
  body .mssn-grid-2,
  body .mssn-store-grid,
  body .mssn-pos-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body .mssn-store-catalog .mssn-sc-search-shell,
  body .mssn-store-catalog .mssn-sc-search-shell input,
  body .mssn-store-catalog .mssn-sc-search-shell select,
  body .mssn-store-catalog .mssn-sc-btn,
  body .mssn-store-catalog .mssn-sc-profile-actions .mssn-sc-btn,
  body .mssn-pos-shortcode .mssn-btn,
  body .mssn-team-actions .mssn-btn,
  body .mssn-team-form .mssn-btn,
  body .mssn-store-signup button,
  body .mssn-store-signup input,
  body .mssn-store-signup select,
  body .mssn-store-signup textarea {
    width: 100% !important;
    max-width: 100% !important;
  }

  body .mssn-store-catalog .mssn-sc-grid {
    grid-template-columns: 1fr !important;
  }

  body .mssn-store-catalog .mssn-sc-profile-tabs {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  body .mssn-store-catalog .mssn-sc-profile-tab {
    flex: 1 1 calc(50% - 8px);
    text-align: center !important;
  }

  body .mssn-store-catalog .mssn-sc-title,
  body .mssn-pos-shortcode h2,
  body .mssn-backoffice-wrap h1,
  body .mssn-backoffice-wrap h2 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.08 !important;
  }

  body .mssn-store-catalog .mssn-sc-tagline,
  body .mssn-store-catalog .mssn-sc-profile-description,
  body .mssn-backoffice-wrap p,
  body .mssn-pos-shortcode p,
  body .mssn-team-card p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  body .mssn-team-tablewrap,
  body .mssn-store-catalog .mssn-sc-products-modal-body,
  body .mssn-store-catalog .mssn-sc-desc-dialog,
  body .mssn-store-catalog .mssn-sc-products-modal-dialog {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body .mssn-store-catalog .mssn-sc-products-modal-dialog,
  body .mssn-store-catalog .mssn-sc-desc-dialog,
  body .mssn-store-catalog .mssn-sc-qty-dialog {
    width: min(100%, 96vw) !important;
    max-width: min(100%, 96vw) !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 480px) {
  body .mssn-backoffice-wrap,
  body .mssn-pos-wrap,
  body .mssn-store-catalog .mssn-sc-shell,
  body .mssn-store-signup .mssn-card,
  body .mssn-store-cart .mssn-cart-shell,
  body .mssn-team-card {
    padding: 12px !important;
  }

  body .mssn-backoffice-wrap .mssn-backoffice-nav a,
  body .mssn-backoffice-wrap .nav-tab,
  body .mssn-store-catalog .mssn-sc-profile-tab {
    flex-basis: 100%;
  }

  body .mssn-store-catalog .mssn-sc-profile-cover {
    border-radius: 24px !important;
    min-height: 260px !important;
  }

  body .mssn-store-catalog .mssn-sc-profile-actions {
    gap: 10px !important;
  }

  body .mssn-store-catalog .mssn-sc-btn,
  body .mssn-pos-shortcode .mssn-btn,
  body .mssn-team-card .mssn-btn {
    font-size: 16px !important;
    padding: 12px 14px !important;
  }
}


/* v2.8: prevent input overflow + make sales actions usable on phone */
body .mssn-backoffice-wrap,
body .mssn-pos-shortcode,
body .mssn-backoffice-wrap form,
body .mssn-pos-shortcode form,
body .mssn-backoffice-wrap .mssn-backoffice-card,
body .mssn-pos-shortcode .mssn-card,
body .mssn-pos-shortcode .mssn-pos-form,
body .mssn-pos-shortcode .mssn-pos-tablewrap,
body .mssn-pos-shortcode .mssn-pos-meta > *,
body .mssn-pos-shortcode .mssn-store-grid > *,
body .mssn-pos-shortcode .mssn-pay-row > *,
body .mssn-backoffice-wrap .mssn-grid-2 > *,
body .mssn-backoffice-wrap .mssn-store-grid > *,
body .mssn-backoffice-wrap .mssn-team-grid > *,
body .mssn-backoffice-wrap .mssn-team-editgrid > * {
  min-width: 0 !important;
}

body .mssn-backoffice-wrap input,
body .mssn-backoffice-wrap select,
body .mssn-backoffice-wrap textarea,
body .mssn-pos-shortcode input,
body .mssn-pos-shortcode select,
body .mssn-pos-shortcode textarea {
  max-width: 100% !important;
  min-width: 0 !important;
}

body .mssn-backoffice-wrap input[type="text"],
body .mssn-backoffice-wrap input[type="number"],
body .mssn-backoffice-wrap input[type="date"],
body .mssn-backoffice-wrap input[type="email"],
body .mssn-backoffice-wrap input[type="tel"],
body .mssn-backoffice-wrap input[type="password"],
body .mssn-backoffice-wrap select,
body .mssn-backoffice-wrap textarea,
body .mssn-pos-shortcode input[type="text"],
body .mssn-pos-shortcode input[type="number"],
body .mssn-pos-shortcode input[type="date"],
body .mssn-pos-shortcode input[type="email"],
body .mssn-pos-shortcode input[type="tel"],
body .mssn-pos-shortcode input[type="password"],
body .mssn-pos-shortcode select,
body .mssn-pos-shortcode textarea {
  width: 100% !important;
}

body .mssn-backoffice-wrap input[type="checkbox"],
body .mssn-backoffice-wrap input[type="radio"],
body .mssn-pos-shortcode input[type="checkbox"],
body .mssn-pos-shortcode input[type="radio"] {
  width: auto !important;
  max-width: none !important;
}

body .mssn-backoffice-wrap .button,
body .mssn-backoffice-wrap .mssn-btn,
body .mssn-pos-shortcode .button,
body .mssn-pos-shortcode .mssn-btn {
  max-width: 100% !important;
}

body .mssn-pos-shortcode .mssn-discount-value,
body .mssn-pos-shortcode .mssn-points-actions,
body .mssn-pos-shortcode .mssn-pay-row,
body .mssn-pos-shortcode .mssn-store-grid,
body .mssn-pos-shortcode .mssn-pos-meta,
body .mssn-backoffice-wrap .mssn-grid-2,
body .mssn-backoffice-wrap .mssn-store-grid,
body .mssn-backoffice-wrap .mssn-team-grid,
body .mssn-backoffice-wrap .mssn-team-editgrid {
  min-width: 0 !important;
}

body .mssn-backoffice-wrap .mssn-sales-table th:last-child,
body .mssn-backoffice-wrap .mssn-sales-table td:last-child {
  background: #fff !important;
}

@media (max-width: 768px) {
  body .mssn-backoffice-wrap [style*="width"],
  body .mssn-backoffice-wrap [style*="min-width"],
  body .mssn-pos-shortcode [style*="width"],
  body .mssn-pos-shortcode [style*="min-width"] {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body .mssn-backoffice-wrap input[style],
  body .mssn-backoffice-wrap select[style],
  body .mssn-backoffice-wrap textarea[style],
  body .mssn-pos-shortcode input[style],
  body .mssn-pos-shortcode select[style],
  body .mssn-pos-shortcode textarea[style] {
    width: 100% !important;
  }

  body .mssn-pos-shortcode .mssn-pos-meta,
  body .mssn-pos-shortcode .mssn-store-grid,
  body .mssn-pos-shortcode .mssn-pay-row,
  body .mssn-pos-shortcode .mssn-points-actions,
  body .mssn-backoffice-wrap .mssn-grid-2,
  body .mssn-backoffice-wrap .mssn-store-grid,
  body .mssn-backoffice-wrap .mssn-team-grid,
  body .mssn-backoffice-wrap .mssn-team-editgrid {
    grid-template-columns: 1fr !important;
  }

  body .mssn-pos-shortcode .mssn-field,
  body .mssn-backoffice-wrap .mssn-field {
    width: 100% !important;
    min-width: 0 !important;
  }

  body .mssn-backoffice-wrap .mssn-sales-table {
    min-width: 860px !important;
  }

  body .mssn-backoffice-wrap .mssn-sales-table th:last-child,
  body .mssn-backoffice-wrap .mssn-sales-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    box-shadow: -10px 0 16px rgba(15, 23, 42, .08);
  }

  body .mssn-backoffice-wrap .mssn-actions-cell {
    min-width: 170px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  body .mssn-backoffice-wrap .mssn-actions-cell .button,
  body .mssn-backoffice-wrap .mssn-actions-cell .mssn-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
  }
}


/* v2.9: backoffice actions + nav readability */
body .mssn-backoffice-wrap .mssn-backoffice-nav a,
body .mssn-backoffice-wrap .mssn-backoffice-nav a:visited,
body .mssn-backoffice-wrap .nav-tab,
body .mssn-backoffice-wrap .nav-tab:visited{
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
  text-shadow:none !important;
}

body .mssn-backoffice-wrap .mssn-backoffice-nav a.is-active,
body .mssn-backoffice-wrap .mssn-backoffice-nav a.is-active:visited,
body .mssn-backoffice-wrap .mssn-backoffice-nav a.is-active:hover,
body .mssn-backoffice-wrap .mssn-backoffice-nav a.is-active:focus,
body .mssn-backoffice-wrap .nav-tab.nav-tab-active,
body .mssn-backoffice-wrap .nav-tab.nav-tab-active:visited,
body .mssn-backoffice-wrap .nav-tab.nav-tab-active:hover,
body .mssn-backoffice-wrap .nav-tab.nav-tab-active:focus{
  background:linear-gradient(135deg,#0f172a,#1e3a8a) !important;
  border-color:#0f172a !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  box-shadow:0 10px 22px rgba(15,23,42,.18) !important;
}

body .mssn-backoffice-wrap .mssn-backoffice-nav a.is-active *,
body .mssn-backoffice-wrap .nav-tab.nav-tab-active *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

body .mssn-backoffice-wrap .mssn-inline-delete-form{
  display:block;
  margin:0;
  width:100%;
}

body .mssn-backoffice-wrap .mssn-actions-cell{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:8px;
  min-width:190px;
}

body .mssn-backoffice-wrap .mssn-actions-cell .mssn-action-btn,
body .mssn-backoffice-wrap .mssn-actions-cell .button,
body .mssn-backoffice-wrap .mssn-actions-cell button.button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:40px !important;
  width:100% !important;
  margin:0 !important;
  border-radius:12px !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  white-space:normal !important;
  text-align:center !important;
}

body .mssn-backoffice-wrap .mssn-actions-cell .mssn-action-delete,
body .mssn-backoffice-wrap .button-link-delete.mssn-action-delete{
  background:#fee2e2 !important;
  border:1px solid #fca5a5 !important;
  color:#991b1b !important;
  -webkit-text-fill-color:#991b1b !important;
}

body .mssn-backoffice-wrap .mssn-actions-cell .mssn-action-delete:hover,
body .mssn-backoffice-wrap .button-link-delete.mssn-action-delete:hover{
  background:#fecaca !important;
  border-color:#ef4444 !important;
  color:#7f1d1d !important;
}

body .mssn-backoffice-wrap .mssn-actions-cell .mssn-action-print{
  background:#eff6ff !important;
  border:1px solid #93c5fd !important;
  color:#1d4ed8 !important;
  -webkit-text-fill-color:#1d4ed8 !important;
}

@media (max-width: 900px){
  body .mssn-backoffice-wrap .mssn-backoffice-nav{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:10px !important;
    overflow:visible !important;
  }

  body .mssn-backoffice-wrap .mssn-backoffice-nav a,
  body .mssn-backoffice-wrap .nav-tab{
    width:100% !important;
    min-height:48px !important;
    padding:12px 14px !important;
    border-radius:16px !important;
    white-space:normal !important;
  }
}

@media (max-width: 640px){
  body .mssn-backoffice-wrap .mssn-backoffice-nav{
    grid-template-columns:1fr !important;
  }

  body .mssn-backoffice-wrap .mssn-sales-table.mssn-cards tbody td:last-child{
    padding-top:12px !important;
    border-top:1px dashed #dbe3ee !important;
    margin-top:6px !important;
  }

  body .mssn-backoffice-wrap .mssn-sales-table.mssn-cards tbody td:last-child,
  body .mssn-backoffice-wrap .mssn-sales-table.mssn-cards tbody td:last-child::before{
    background:transparent !important;
    box-shadow:none !important;
  }

  body .mssn-backoffice-wrap .mssn-sales-table.mssn-cards .mssn-actions-cell{
    min-width:0 !important;
    gap:10px !important;
  }

  body .mssn-backoffice-wrap .mssn-sales-table.mssn-cards .mssn-actions-cell .mssn-action-btn,
  body .mssn-backoffice-wrap .mssn-sales-table.mssn-cards .mssn-actions-cell .button,
  body .mssn-backoffice-wrap .mssn-sales-table.mssn-cards .mssn-actions-cell button.button{
    min-height:44px !important;
  }
}

/* v2.12 nav visibility/mobile polish */
.mssn-backoffice-nav a.is-active,
.mssn-backoffice-nav a.is-active:visited,
.mssn-backoffice-nav a.is-active:hover,
.mssn-backoffice-nav a.is-active:focus{color:#fff !important;}
@media (max-width:768px){
  .mssn-backoffice-nav{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible !important;padding-bottom:0 !important;}
  .mssn-backoffice-nav a{white-space:normal !important;min-height:46px;display:flex;align-items:center;justify-content:center;text-align:center;}
}
