/*
 * v1105 — Platform-wide stability and accessibility layer
 * Loaded last and intentionally scoped to existing public/admin/seller surfaces.
 */
:where(.it194-body, .admin-body, .seller-body) {
  overflow-x: clip;
}

:where(.it194-body, .admin-body, .seller-body) :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(14, 116, 255, .34);
  outline-offset: 2px;
}

:where(.it194-body, .admin-body, .seller-body) :where(img, video, iframe, svg) {
  max-width: 100%;
}

:where(.it194-body, .admin-body, .seller-body) :where(input, select, textarea, button) {
  max-width: 100%;
}

.v1105-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
}

.v1105-table-scroll > table {
  margin-bottom: 0;
  min-width: 680px;
}

.admin-main,
.seller-main,
.admin-content,
.seller-content,
.v282-content,
.admin-card,
.seller-card {
  min-width: 0;
}

.admin-main :where(.row, [class*="grid"]),
.seller-main :where(.row, [class*="grid"]) {
  max-width: 100%;
}

.admin-topbar,
.seller-topbar {
  min-width: 0;
}

.admin-topbar-actions,
.seller-topbar-actions {
  scrollbar-width: thin;
}

.v1105-seller-menu-close {
  display: none;
}

.v1105-admin-overlay,
.v1105-seller-bottom-nav,
.v1105-admin-collapse-all,
.v1105-admin-collapse {
  display: none;
}

.sh284-tabs {
  scrollbar-width: none;
}

.sh284-tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 820px) {
  :where(.admin-main, .seller-main) {
    width: 100%;
  }

  :where(.admin-content, .seller-content, .v282-content) {
    padding-inline: 14px !important;
  }

  :where(.admin-topbar-actions, .seller-topbar-actions) {
    display: flex;
    max-width: min(62vw, 520px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 3px;
  }

  :where(.admin-topbar-actions, .seller-topbar-actions) > * {
    flex: 0 0 auto;
  }

  .sh284-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 5px;
  }

  .sh284-tabs > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 1100px) {
  body.seller-body .seller-layout.v282-layout {
    display: block !important;
    width: 100% !important;
    min-height: 100dvh;
  }

  body.seller-body .seller-sidebar.v282-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 910 !important;
    width: min(286px, 88vw) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    transform: translate3d(-105%, 0, 0);
    transition: transform .22s ease !important;
    overscroll-behavior: contain;
    box-shadow: 18px 0 48px rgba(3, 13, 29, .34) !important;
  }

  body.seller-body:is(.seller-menu-open, .sidebar-open) .seller-sidebar.v282-sidebar {
    left: 0 !important;
    transform: translate3d(0, 0, 0);
  }

  body.seller-body .seller-sidebar-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 900 !important;
    background: rgba(4, 13, 27, .54) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  body.seller-body:is(.seller-menu-open, .sidebar-open) {
    overflow: hidden !important;
  }

  body.seller-body:is(.seller-menu-open, .sidebar-open) .seller-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.seller-body .seller-main.v282-main {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.seller-body .seller-topbar.v282-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    width: 100% !important;
  }

  .v1105-seller-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 11px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: 700 24px/1 system-ui, sans-serif;
    cursor: pointer;
  }
}

@media (max-width: 992px) {
  body.admin-body .admin-pro-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 1210 !important;
    width: min(310px, 88vw) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 76px 12px 112px !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform .22s ease !important;
    overflow-y: auto !important;
  }

  body.admin-body.admin-menu-open .admin-pro-sidebar {
    left: 0 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  body.admin-body.admin-menu-open {
    overflow: hidden !important;
  }

  body.admin-body .admin-pro-brand {
    display: flex !important;
    margin: 0 4px 14px !important;
    padding: 14px !important;
  }

  body.admin-body .admin-pro-brand > div {
    display: block !important;
    min-width: 0;
  }

  body.admin-body .admin-simple-nav {
    gap: 8px !important;
    padding: 0 2px 20px !important;
  }

  body.admin-body .admin-simple-group {
    width: 100% !important;
    margin: 0 0 8px !important;
    padding: 7px !important;
  }

  body.admin-body .admin-simple-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 30px;
    align-items: center;
    gap: 7px;
    width: 100% !important;
    min-height: 42px;
    margin: 0 !important;
    padding: 9px 10px !important;
    color: #bcd0ea !important;
    cursor: pointer;
  }

  body.admin-body .admin-simple-title > span {
    display: block !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .075em !important;
    line-height: 1.25;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  body.admin-body .admin-simple-title > small {
    display: inline-flex !important;
    align-items: center;
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #91acd0 !important;
    font-size: 9px !important;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
  }

  body.admin-body .admin-simple-title::after {
    display: none !important;
    content: none !important;
  }

  body.admin-body .v1105-admin-collapse {
    grid-column: 3;
    display: grid !important;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    color: #d8e8fa;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
  }

  body.admin-body .admin-simple-title[aria-expanded="true"] {
    background: rgba(35, 121, 238, .15) !important;
    color: #fff !important;
  }

  body.admin-body .admin-simple-title[aria-expanded="true"] .v1105-admin-collapse {
    border-color: rgba(96, 165, 250, .38);
    background: rgba(37, 99, 235, .28);
    color: #fff;
  }

  body.admin-body .v1105-admin-collapse-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: calc(100% - 12px);
    min-height: 40px;
    margin: 0 6px 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: #d9e8fa;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
  }

  body.admin-body .v1105-admin-collapse-all:hover {
    background: rgba(255, 255, 255, .12);
  }

  body.admin-body .admin-simple-nav a {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 9px 10px !important;
    text-align: left !important;
  }

  body.admin-body .admin-simple-nav a > span:not(.nav-ico) {
    display: block !important;
    overflow: hidden;
    min-width: 0;
    color: inherit !important;
    font-size: 13px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.admin-body .admin-simple-nav .nav-ico {
    display: grid !important;
    flex: 0 0 30px;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
  }

  body.admin-body .admin-sidebar-actions {
    position: sticky !important;
    bottom: -100px !important;
    z-index: 3;
  }

  .v1105-admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 1190;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(4, 13, 27, .52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.admin-body.admin-menu-open .v1105-admin-overlay {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 820px) {
  body.seller-body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }

  .v1105-seller-bottom-nav {
    position: fixed;
    inset: auto 8px calc(8px + env(safe-area-inset-bottom)) 8px;
    z-index: 850;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    min-height: 64px;
    padding: 6px;
    border: 1px solid rgba(173, 194, 220, .72);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 36px rgba(9, 35, 70, .22);
    backdrop-filter: blur(16px);
  }

  .v1105-seller-bottom-nav :where(a, button) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 51px;
    padding: 4px 2px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #52647d;
    text-decoration: none;
    cursor: pointer;
  }

  .v1105-seller-bottom-nav :where(a, button) > span {
    font-size: 18px;
    line-height: 1;
  }

  .v1105-seller-bottom-nav :where(a, button) > b {
    display: block;
    overflow: hidden;
    width: 100%;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v1105-seller-bottom-nav :where(a.is-active, button:active) {
    background: #eaf3ff;
    color: #075cff;
  }

  .v1105-seller-bottom-nav .v1105-seller-bottom-add {
    align-self: start;
    min-height: 62px;
    margin-top: -17px;
    border: 5px solid #f4f7fb;
    border-radius: 19px;
    background: linear-gradient(145deg, #1265ff, #0ea5e9);
    color: #fff;
    box-shadow: 0 10px 24px rgba(18, 101, 255, .3);
  }
}

@media (max-width: 560px) {
  :where(.it194-body, .admin-body, .seller-body) :where(button, .btn, [role="button"]) {
    min-height: 42px;
  }

  :where(.admin-content, .seller-content, .v282-content) {
    padding-inline: 10px !important;
  }

  :where(.admin-topbar, .seller-topbar) {
    gap: 8px;
    padding-inline: 10px !important;
  }

  :where(.admin-topbar-actions, .seller-topbar-actions) {
    max-width: 54vw;
    gap: 6px;
  }

  body.seller-body .seller-topbar-title > div {
    max-width: 154px;
  }

  body.seller-body .seller-topbar-title span {
    font-size: 9px !important;
  }

  body.seller-body .seller-topbar-title b {
    display: block;
    overflow: hidden;
    font-size: 14px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sh284-hero,
  .sh284-panel,
  .sh360-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .sh284-actions,
  .sh360-actions {
    grid-template-columns: 1fr !important;
  }

  .sh284-actions > *,
  .sh360-actions > * {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.it194-body, .admin-body, .seller-body) *,
  :where(.it194-body, .admin-body, .seller-body) *::before,
  :where(.it194-body, .admin-body, .seller-body) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
