/* BlueCloud responsive hotfix: additive presentation only, 2026-10-02.
   Original application assets, permission checks and actions are unchanged. */

.list-dense .customer-directory-table th.state-col:first-child,
.list-dense .customer-directory-table td.state-col:first-child {
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
}

@media (max-width: 900px) {
  .app-shell { min-width: 0; }
  .app-shell > .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-width: 0;
    padding: 8px;
    gap: 4px;
  }
  .app-shell > .sidebar > .brand,
  .app-shell > .sidebar > .sidebar-footer { display: none; }
  .app-shell > .sidebar nav {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: 4px;
  }
  .app-shell > .sidebar nav > * { flex: 0 0 auto; }
  .app-shell > .sidebar nav a,
  .app-shell > .sidebar .sidebar-services-trigger {
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
  }
  .app-shell > .sidebar .sidebar-services-submenu-item { min-height: 44px; }
  .app-shell > .sidebar .sidebar-subtle-link {
    align-self: flex-start;
    margin: 0;
    padding: 8px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .app-shell.sidebar-collapsed > .sidebar { display: none; }
  .app-shell .sidebar-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }
  .app-shell .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    width: 100%;
    min-width: 0;
    padding: 8px;
  }
  .app-shell .topbar-leading { min-width: 0; width: 100%; gap: 4px; }
  .app-shell .topbar-context--partner,
  .app-shell .topbar-partner { min-width: 0; overflow: hidden; }
  .app-shell .topbar-context--partner { flex: 1 1 0; }
  .app-shell .topbar-partner { width: 100%; }
  .app-shell .topbar-partner strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-shell .topbar-actions,
  .app-shell .topbar-notification-cluster { gap: 2px; }
  .app-shell .topbar-actions > button,
  .app-shell .topbar-notification-cluster > button,
  .app-shell .topbar-user-trigger { min-width: 44px; min-height: 44px; }
  .app-shell .topbar .portal-search-bell,
  .app-shell .topbar .request-inbox-bell,
  .app-shell .topbar .sync-bell { width: 44px; height: 44px; min-width: 44px; }
  .app-shell .topbar-user-text { display: none; }
  .app-shell .content { min-width: 0; padding: 16px 12px; }

  .customer-directory-panel,
  .customer-directory-shell,
  .customer-directory-toolbar { min-width: 0; max-width: 100%; }
  .customer-directory-toolbar { display: flex; flex-wrap: wrap; }
  .customer-directory-toolbar > * { min-width: 0; max-width: 100%; }
  .customer-directory-toolbar .customer-directory-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }
  .customer-directory-filters .search-field {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .customer-directory-filters .search-field-input { min-width: 0; width: 100%; }
  .customer-directory-filters .portal-select { min-width: 0; width: 100%; max-width: 100%; }
  .customer-directory-filters .list-toolbar-field { grid-column: 1 / -1; min-width: 0; }
  .customer-directory-filters .list-toolbar-field .portal-select { width: auto; flex: 1 1 0; }
  .customer-directory-panel .customer-directory-tabs { flex-wrap: wrap; overflow: visible; }
  .customer-directory-panel .customer-directory-tabs .tab-item { flex: 1 1 0; min-width: 0; }
  .customer-directory-panel .customer-directory-tabs .tab { width: 100%; white-space: normal; }
  .customer-directory-toolbar input,
  .customer-directory-toolbar select,
  .customer-directory-toolbar button,
  .customer-directory-shell .pagination button {
    min-height: 44px;
    font-size: 16px;
  }
  .customer-directory-panel.dense-panel .search-field-input,
  .customer-directory-panel.dense-panel .portal-select-trigger,
  .customer-directory-panel.dense-panel .tab,
  .customer-directory-panel.dense-panel .btn.small {
    min-height: 44px;
    height: auto;
    font-size: 16px;
  }
  .customer-directory-panel.dense-panel .customer-directory-tabs .tab { font-size: 14px; }
  .customer-directory-table th:last-child,
  .customer-directory-table td:last-child {
    position: sticky;
    right: 0;
    min-width: 76px;
    width: 76px;
    z-index: 3;
    background: #f8fcff !important;
    box-shadow: -2px 0 4px rgba(6, 23, 45, .12);
  }
  .customer-directory-table th:last-child { z-index: 4; }
  .customer-directory-table .customer-directory-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 44px;
    font-size: 14px;
  }
  [data-theme="dark"] .customer-directory-table th:last-child,
  [data-theme="dark"] .customer-directory-table td:last-child {
    background: #111b30 !important;
  }
}

@media (max-width: 640px) {
  .portal-auth-shell--uiverse.portal-auth-shell--premium {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  .portal-auth-shell--uiverse > .portal-auth-panel--balanced { order: 0; padding: 20px 16px; }
  .portal-auth-shell--uiverse > .portal-auth-showcase--balanced { order: 1; padding: 24px 20px; }
  .portal-auth-shell--uiverse > .portal-legal-footer { order: 2; }
  .portal-auth-shell--uiverse .login-uiverse-card { padding: 24px; gap: 28px; }
  .portal-auth-shell--uiverse .login-uiverse-field input {
    min-height: 44px;
    height: 44px;
    font-size: 16px;
  }
  .portal-auth-shell--uiverse .login-uiverse-field input:placeholder-shown + label { font-size: 16px; }
  .portal-auth-shell--uiverse .login-uiverse-password-toggle {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }
  .portal-auth-shell--uiverse .login-uiverse-submit,
  .portal-auth-shell--uiverse .login-uiverse-link,
  .portal-auth-shell--uiverse .portal-otp-paste-btn {
    min-height: 44px;
    font-size: 16px;
  }
  .portal-auth-shell--uiverse .portal-auth-feature-grid { gap: 8px; margin-top: 20px; }
  .portal-auth-shell--uiverse .portal-auth-feature-card { padding: 12px; }
  .portal-auth-shell--uiverse .portal-auth-showcase-content--premium h1 { font-size: 26px; }
  .portal-auth-shell--uiverse .portal-auth-lead--premium { font-size: 14px; }
  body:has(.portal-auth-shell--uiverse) .modal input,
  body:has(.portal-auth-shell--uiverse) .modal button { min-height: 44px !important; }
  body:has(.portal-auth-shell--uiverse) .modal button { min-width: 44px; }
  body:has(.portal-auth-shell--uiverse) .modal input { font-size: 16px; }
  .portal-auth-shell--uiverse .login-uiverse-card :is(input, button, a):focus-visible {
    outline: 2px solid #e9d5ff;
    outline-offset: 3px;
  }
}
