/* Notification Center viewport-fit tabs and pagination. Loaded after notification.css. */
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 0;
}

.page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 20px 24px;
}

.mailbox-shell {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
}

.mailbox-header {
  min-width: 0;
  margin-bottom: 0;
  align-items: center;
}

.mailbox-header > div {
  min-width: 0;
}

.mailbox-subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-tabs {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 5px;
  border: 1px solid #dbe5ec;
  border-radius: 14px;
  background: #eef4f6;
}

.notification-tab {
  min-width: 0;
  flex: 0 1 260px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  padding: 8px 13px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.notification-tab:hover {
  background: rgba(255, 255, 255, .62);
  color: #075f70;
}

.notification-tab.active,
.notification-tab[aria-selected="true"] {
  background: #fff;
  color: #075f70;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
}

.notification-tab[hidden] {
  display: none;
}

.notification-tab-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notification-tab-copy strong {
  font-size: .8rem;
  font-weight: 850;
  line-height: 1.15;
}

.notification-tab-copy small {
  font-size: .66rem;
  font-weight: 650;
  line-height: 1.15;
  color: #78909a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-tab.active .notification-tab-copy small,
.notification-tab[aria-selected="true"] .notification-tab-copy small {
  color: #4f7d87;
}

.notification-tab-panels,
.notification-tab-panel {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.notification-tab-panel[hidden] {
  display: none !important;
}

.notification-tab-panel.active {
  display: block;
}

#notificationSystemPanel .mailbox-layout {
  height: 100%;
  min-height: 0;
  grid-template-columns: 210px minmax(0, 1fr);
}

.mailbox-folders,
.mailbox-main {
  min-width: 0;
  min-height: 0;
}

.mailbox-folders {
  overflow: hidden;
  padding: 14px 10px;
  gap: 5px;
}

.mail-folder {
  min-width: 0;
  padding: 9px 10px;
}

.folder-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mailbox-main {
  height: 100%;
  overflow: hidden;
}

.mailbox-toolbar {
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  padding: 11px 13px;
}

.mail-list-head,
.mail-row {
  grid-template-columns: 100px minmax(0, 1.6fr) minmax(105px, .75fr) 105px 92px;
  gap: 8px;
}

.mail-list-head {
  flex: 0 0 auto;
  padding: 8px 13px;
}

.mail-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.mail-row {
  min-width: 0;
  padding: 10px 13px;
}

.mail-row > * {
  min-width: 0;
}

.mail-unit,
.mail-period,
.mail-deadline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-pagination {
  flex: 0 0 42px;
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border-top: 1px solid #e5edf2;
  background: #fbfdfe;
  color: #64748b;
  font-size: .7rem;
  font-weight: 750;
}

.notification-page-summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-page-controls {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.notification-page-controls button {
  width: 29px;
  height: 29px;
  border: 1px solid #cbdde2;
  border-radius: 8px;
  background: #fff;
  color: #075f70;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.notification-page-controls button:hover:not(:disabled) {
  background: #e8f5f7;
}

.notification-page-controls button:disabled {
  cursor: default;
  opacity: .38;
}

.notification-page-controls span {
  min-width: 42px;
  text-align: center;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

#notificationDataPanel {
  overflow: hidden;
}

#notificationDataPanel .migration-report {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

#notificationDataPanel .migration-report[hidden] {
  display: none;
}

.migration-report-head {
  flex: 0 0 auto;
  padding: 13px 16px 10px;
  gap: 14px;
}

.migration-report-head > div {
  min-width: 0;
}

.migration-report-head p:not(.migration-kicker) {
  max-width: 760px;
  margin-top: 4px;
  line-height: 1.3;
}

.migration-summary-grid {
  flex: 0 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px;
}

.migration-summary-card {
  min-width: 0;
  padding: 9px 11px;
}

.migration-summary-card span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.migration-summary-card strong {
  margin-top: 3px;
  font-size: 1.35rem;
}

.migration-link-warning {
  flex: 0 0 auto;
  margin: 0 14px 8px;
  padding: 7px 9px;
}

.migration-table-wrap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.migration-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.migration-table th,
.migration-table td {
  min-width: 0;
  overflow-wrap: anywhere;
}

.migration-table th {
  padding: 7px 9px;
}

.migration-table td {
  padding: 8px 9px;
  line-height: 1.25;
}

.migration-table th:nth-child(1),
.migration-table td:nth-child(1) { width: 10%; }
.migration-table th:nth-child(2),
.migration-table td:nth-child(2) { width: 22%; }
.migration-table th:nth-child(3),
.migration-table td:nth-child(3) { width: 18%; }
.migration-table th:nth-child(4),
.migration-table td:nth-child(4) { width: 11%; }
.migration-table th:nth-child(5),
.migration-table td:nth-child(5) { width: 29%; }
.migration-table th:nth-child(6),
.migration-table td:nth-child(6) { width: 10%; }

.migration-table td strong,
.migration-table td small,
.migration-table td > span:not(.migration-status):not(.migration-link-unavailable) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.migration-table td strong,
.migration-table td small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.migration-table td small {
  max-width: none;
}

.migration-status {
  min-width: 0;
  max-width: 100%;
  padding: 4px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.migration-link {
  max-width: 100%;
  padding: 5px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-pagination {
  flex: 0 0 42px;
}

@media (max-width: 1100px) {
  .page {
    padding: 16px 18px;
  }

  #notificationSystemPanel .mailbox-layout {
    grid-template-columns: 178px minmax(0, 1fr);
  }

  .mail-list-head,
  .mail-row {
    grid-template-columns: 88px minmax(0, 1.55fr) minmax(90px, .7fr) 92px 80px;
    gap: 6px;
  }

  .mailbox-toolbar {
    grid-template-columns: minmax(0, 1fr) 170px;
  }

  .migration-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .migration-table th,
  .migration-table td {
    padding-left: 7px;
    padding-right: 7px;
    font-size: .68rem;
  }
}

@media (max-height: 800px) {
  .page {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .mailbox-shell {
    gap: 8px;
  }

  .mailbox-header h1 {
    font-size: 1.5rem;
  }

  .mailbox-subtitle {
    margin-top: 3px;
    font-size: .78rem;
  }

  .notification-tabs {
    padding: 4px;
  }

  .notification-tab {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .mailbox-folders {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .mail-folder {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .mailbox-toolbar {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .mail-search-wrap input,
  #mailUnitFilter {
    height: 34px;
  }

  .mail-row {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .migration-report-head {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .migration-report-head p:not(.migration-kicker) {
    display: none;
  }

  .migration-summary-grid {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .migration-summary-card {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .migration-summary-card strong {
    font-size: 1.2rem;
  }

  .migration-table th {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .migration-table td {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-height: 680px) {
  .mailbox-header .eyebrow,
  .mailbox-subtitle {
    display: none;
  }

  .mailbox-header h1 {
    font-size: 1.3rem;
  }

  .season-pill {
    padding: 6px 10px;
  }

  .notification-tab-copy small {
    display: none;
  }

  .migration-summary-card span {
    font-size: .65rem;
  }
}

@media (max-width: 820px) {
  .page {
    padding: 10px;
  }

  .mailbox-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .notification-tab {
    flex: 1 1 0;
  }

  #notificationSystemPanel .mailbox-layout {
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .mailbox-folders {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid #e5edf2;
    padding: 6px;
    gap: 4px;
    overflow: hidden;
  }

  .mail-folder {
    flex: 1 1 120px;
    width: auto;
    min-width: 0;
    padding: 6px 8px;
  }

  .mailbox-toolbar {
    grid-template-columns: minmax(0, 1fr) 145px;
    gap: 6px;
    padding: 7px 8px;
  }

  .mail-list-head {
    display: none;
  }

  .mail-row {
    grid-template-columns: 85px minmax(0, 1fr);
    padding: 7px 9px;
  }

  .mail-row .mail-unit,
  .mail-row .mail-period,
  .mail-row .mail-deadline {
    grid-column: 2;
  }

  .migration-report-head {
    flex-direction: row;
    align-items: center;
  }

  .migration-run-meta {
    max-width: 42%;
    white-space: normal;
    text-align: right;
  }

  .migration-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .migration-table th:nth-child(4),
  .migration-table td:nth-child(4) {
    display: none;
  }

  .migration-table th:nth-child(1),
  .migration-table td:nth-child(1) { width: 12%; }
  .migration-table th:nth-child(2),
  .migration-table td:nth-child(2) { width: 25%; }
  .migration-table th:nth-child(3),
  .migration-table td:nth-child(3) { width: 20%; }
  .migration-table th:nth-child(5),
  .migration-table td:nth-child(5) { width: 31%; }
  .migration-table th:nth-child(6),
  .migration-table td:nth-child(6) { width: 12%; }
}
