/* Exqpay visual regression corrections — 2026-11-21.
   Loaded last by the public, customer and admin shells so responsive and
   placeholder contracts are consistent without rewriting feature styles. */

/* OAuth provider marks: icon-only, aligned, and independent of inherited text rules. */
.auth-modal .auth-oauth-grid { display:flex !important; align-items:center; justify-content:center; gap:12px; }
.auth-modal .auth-oauth-grid .oauth-btn {
  display:inline-grid !important; place-items:center !important;
  width:44px !important; min-width:44px !important; max-width:44px !important;
  height:44px !important; min-height:44px !important; padding:0 !important; margin:0 !important;
  border:0 !important; border-radius:50% !important;
  background:transparent !important; color:#fff !important; box-shadow:none !important;
  line-height:1 !important; text-decoration:none !important;
}
.auth-modal .auth-oauth-grid .oauth-btn-label { display:none !important; }
.auth-modal .auth-oauth-grid .oauth-btn svg {
  display:block !important; width:20px !important; height:20px !important;
  max-width:none !important; flex:none !important; opacity:1 !important; visibility:visible !important;
}
.auth-modal .auth-oauth-grid .oauth-btn--google svg path { opacity:1 !important; }
.auth-modal .auth-oauth-grid .oauth-btn--google { background:transparent !important; border-color:transparent !important; }
.auth-modal .auth-oauth-grid .oauth-btn--apple { background:transparent !important; border-color:transparent !important; color:#fff !important; }
.auth-modal .auth-oauth-grid .oauth-btn--apple svg path { fill:#fff !important; }
.auth-modal .auth-oauth-grid .oauth-btn:focus-visible { outline:3px solid rgba(240,185,11,.55) !important; outline-offset:3px !important; }

/* Default and uploaded avatars must occupy the same visible box. */
.exqpay-img-placeholder { display:inline-flex !important; align-items:center !important; justify-content:center !important; overflow:hidden !important; flex:0 0 auto; line-height:1 !important; }
.profile-avatar-btn { display:grid !important; place-items:center !important; flex:0 0 36px !important; width:36px !important; height:36px !important; padding:0 !important; }
.profile-avatar-image,
.profile-avatar-btn .exqpay-img-placeholder,
.topbar-avatar-btn .topbar-avatar-img,
.topbar-avatar-btn .topbar-avatar-fallback,
.topbar-avatar-btn .exqpay-img-placeholder {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  width:36px !important; height:36px !important; min-width:36px !important; min-height:36px !important;
  max-width:none !important; border-radius:50% !important; object-fit:cover !important; overflow:hidden !important;
}
.profile-picture-image, .profile-picture-preview .exqpay-img-placeholder {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  width:96px !important; height:96px !important; min-width:96px !important; min-height:96px !important;
  border-radius:50% !important; object-fit:cover !important; overflow:hidden !important;
}
.profile-upload-image, .profile-upload-preview .exqpay-img-placeholder {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  width:120px !important; height:120px !important; min-width:120px !important; min-height:120px !important;
  border-radius:50% !important; object-fit:cover !important; overflow:hidden !important;
}
img.profile-avatar-image, img.topbar-avatar-img, img.profile-picture-image, img.profile-upload-image { display:block !important; }

/* Desktop always uses the persistent portal sidebar; the drawer is mobile chrome. */
@media (min-width:901px) {
  .customer-app {
    display:grid !important; grid-template-columns:var(--sidebar-w,240px) minmax(0,1fr) var(--right-w,280px) !important;
    height:100vh !important; height:100dvh !important; min-height:0 !important; overflow:hidden !important;
  }
  .customer-app > .sidebar-left { display:flex !important; min-width:0; height:100% !important; }
  .customer-app .topbar .menu-btn, .customer-app .topbar #topbar-menu-btn { display:none !important; }
  .customer-app .customer-bottom-nav { display:none !important; }
  .admin-app {
    display:grid !important; grid-template-columns:var(--sidebar-w,240px) minmax(0,1fr) !important;
    height:100vh !important; height:100dvh !important; min-height:0 !important; overflow:hidden !important;
  }
  .admin-app > .sidebar-left { display:flex !important; min-width:0; }
  .admin-app .topbar .menu-btn, .admin-app .topbar #topbar-menu-btn { display:none !important; }
}
@media (min-width:901px) and (max-width:1100px) {
  .customer-app { grid-template-columns:var(--sidebar-w,240px) minmax(0,1fr) !important; }
  .customer-app > .sidebar-right { display:none !important; }
}
@media (max-width:900px) {
  .customer-app, .admin-app { display:block !important; width:100%; min-height:100dvh; height:auto !important; overflow:visible !important; }
  .customer-app > .sidebar-left, .customer-app > .sidebar-right, .admin-app > .sidebar-left { display:none !important; }
  .customer-app .topbar .menu-btn, .customer-app .topbar #topbar-menu-btn,
  .admin-app .topbar .menu-btn, .admin-app .topbar #topbar-menu-btn { display:grid !important; }
  .customer-app .customer-bottom-nav { display:flex !important; }
}

/* Shared visual consistency: no clipped cards, controls, or data tables. */
.admin-app .content-scroll, .customer-app .content-scroll, .admin-app .main-panel, .customer-app .main-panel { min-width:0; }
.admin-app .card, .customer-app .card, .admin-app .panel, .customer-app .panel,
.admin-app .section-card, .customer-app .section-card { min-width:0; }
.admin-app .table-wrap, .customer-app .table-wrap, .admin-app .table-responsive, .customer-app .table-responsive { max-width:100%; overflow-x:auto; }
.admin-app input, .admin-app select, .admin-app textarea, .customer-app input, .customer-app select, .customer-app textarea { max-width:100%; min-width:0; }
.admin-app button:focus-visible, .admin-app a:focus-visible, .customer-app button:focus-visible, .customer-app a:focus-visible {
  outline:2px solid var(--exq-focus,#f0b90b); outline-offset:2px;
}
.admin-app .toolbar, .customer-app .toolbar, .admin-app .list-toolbar, .customer-app .list-toolbar {
  display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.admin-app .card-head, .customer-app .card-head { display:flex; align-items:flex-start; flex-wrap:wrap; gap:12px; }
@media (max-width:600px) {
  .auth-modal .auth-oauth-grid { gap:10px; }
  .admin-app .toolbar, .customer-app .toolbar { align-items:stretch; }
  .admin-app .toolbar-actions, .customer-app .toolbar-actions { display:flex; flex-wrap:wrap; gap:8px; }
}
