:root {
  --ucms-blue: #003e5c;
  --ucms-blue-dark: #003750;
  --power-blue: #0f6cbd;
  --link-blue: #115ea3;
  --page-bg: #f3f3f3;
  --nav-bg: #efefef;
  --surface: #ffffff;
  --border: #d7d7d7;
  --border-strong: #bdbdbd;
  --text: #242424;
  --muted: #616161;
  --selected-bg: #d7e9fb;
  --shadow: 0 2px 9px rgba(0, 0, 0, 0.18);
  --font: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1100px;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  height: 102px;
  display: grid;
  grid-template-columns: 72px 112px 1px auto minmax(420px, 936px) auto;
  align-items: center;
  gap: 32px;
  padding: 0 18px 0 28px;
  background: var(--ucms-blue);
  color: #fff;
}

.app-launcher {
  width: 44px;
  height: 44px;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-auto-rows: 6px;
  place-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
}

.app-launcher span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.brand-mark {
  position: relative;
  width: 106px;
  height: 96px;
}

.brand-swoop {
  position: absolute;
  left: 0;
  top: 8px;
  width: 104px;
  height: 28px;
  border-top: 14px solid #fff;
  border-radius: 70% 35% 0 0;
  transform: skewX(-22deg);
}

.brand-columns {
  position: absolute;
  left: 22px;
  top: 32px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.brand-columns span {
  display: block;
  width: 17px;
  height: 62px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  transform: skewY(26deg);
}

.brand-columns span:nth-child(2) {
  height: 74px;
}

.brand-columns span:nth-child(3) {
  height: 82px;
}

.brand-divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.45);
}

.app-title {
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}

.global-search,
.keyword-search {
  position: relative;
  display: flex;
  align-items: center;
}

.global-search input {
  width: 100%;
  height: 64px;
  padding: 0 24px 0 70px;
  border: 2px solid #6c757d;
  border-radius: 2px;
  background: #d6dde2;
  color: var(--text);
  font-size: 28px;
}

.search-icon {
  position: absolute;
  left: 24px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--power-blue);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  right: -10px;
  bottom: -5px;
  background: var(--power-blue);
  transform: rotate(-45deg);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 42px;
}

.top-actions button {
  min-width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.top-actions button:nth-child(2),
.top-actions button:nth-child(3) {
  font-size: 32px;
}

.top-actions .user-chip {
  width: 64px;
  height: 64px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 28px;
}

.workspace {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  min-height: calc(100vh - 102px);
}

.side-nav {
  background: var(--nav-bg);
  border-right: 1px solid var(--border-strong);
  box-shadow: 4px 0 22px rgba(0, 0, 0, 0.08);
}

.hamburger {
  width: 64px;
  height: 56px;
  display: grid;
  align-content: center;
  gap: 7px;
  margin: 18px 0 40px 24px;
  border: 0;
  background: transparent;
}

.hamburger span {
  width: 34px;
  height: 2px;
  background: var(--text);
}

.nav-section {
  margin-bottom: 62px;
}

.nav-section h2 {
  margin: 0 0 28px 30px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 30px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.nav-item.is-active {
  background: #ffffff;
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  width: 8px;
  height: 42px;
  border-radius: 8px;
  background: var(--power-blue);
}

.nav-item.is-active span:last-child {
  background: transparent;
}

.nav-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #1f1f1f;
}

.document-icon,
.list-icon,
.cert-icon,
.guide-icon {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.document-icon::after,
.cert-icon::after,
.guide-icon::after {
  content: "";
  position: absolute;
}

.folder-icon {
  position: relative;
  border: 2px solid currentColor;
  border-radius: 5px;
  height: 24px;
}

.folder-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -7px;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: var(--nav-bg);
}

.person-icon {
  position: relative;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
}

.person-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.person-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  width: 20px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.search-small-icon,
.calendar-icon {
  position: relative;
  border: 2px solid currentColor;
}

.search-small-icon::before,
.calendar-icon::before,
.calendar-icon::after {
  content: "";
  position: absolute;
}

.search-small-icon::before {
  left: 8px;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-small-icon::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  width: 9px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.calendar-icon::before {
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
  background: currentColor;
}

.calendar-icon::after {
  left: 6px;
  right: 6px;
  top: -5px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.nav-section-help {
  margin-top: 76px;
}

.content {
  min-width: 0;
  padding: 16px 32px 24px;
}

.command-bar,
.view-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.command-bar {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 20px 10px 34px;
  margin-bottom: 16px;
}

.command {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  white-space: nowrap;
}

.command-separator {
  width: 1px;
  height: 64px;
  background: #c8c8c8;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-left: auto;
  padding: 0 24px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 26px;
}

.back-arrow,
.refresh-icon {
  width: 30px;
  height: 30px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.refresh-icon {
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  transform: none;
}

.grid-icon,
.chart-icon,
.new-icon,
.delete-icon,
.bar-icon,
.columns-icon,
.filter-icon,
.share-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-block;
  flex: 0 0 32px;
}

.grid-icon {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 13px 13px no-repeat,
    linear-gradient(currentColor 0 0) 19px 0 / 13px 13px no-repeat,
    linear-gradient(currentColor 0 0) 0 19px / 13px 13px no-repeat,
    linear-gradient(currentColor 0 0) 19px 19px / 13px 13px no-repeat;
}

.chart-icon {
  border: 2px solid currentColor;
}

.chart-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 20px;
  height: 14px;
  border-left: 5px solid #54b054;
  border-top: 5px solid #54b054;
  transform: rotate(45deg);
}

.new-icon {
  border: 2px solid currentColor;
  border-radius: 5px;
}

.new-icon::before,
.new-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.new-icon::before {
  width: 18px;
  height: 4px;
  left: 7px;
  top: 14px;
}

.new-icon::after {
  width: 4px;
  height: 18px;
  left: 14px;
  top: 7px;
}

.delete-icon {
  border: 2px solid currentColor;
  border-top: 0;
}

.delete-icon::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -5px;
  width: 38px;
  height: 2px;
  background: currentColor;
}

.bar-icon {
  background:
    linear-gradient(#f5cb42 0 0) 4px 14px / 8px 18px no-repeat,
    linear-gradient(#e2b11f 0 0) 13px 7px / 8px 25px no-repeat,
    linear-gradient(#f5d765 0 0) 22px 1px / 8px 31px no-repeat;
}

.chevron {
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.view-card {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  padding: 20px 22px 0;
}

.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #f1f1f1;
}

.view-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 28px;
  padding: 24px 0 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}

.view-title::after {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  bottom: 0;
  height: 5px;
  border-radius: 4px;
  background: var(--power-blue);
}

.view-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  padding-top: 18px;
}

.view-tools button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #3a3a3a;
  font-size: 28px;
  white-space: nowrap;
}

.columns-icon {
  border: 3px solid var(--power-blue);
}

.columns-icon::before,
.columns-icon::after {
  content: "";
  position: absolute;
  background: var(--power-blue);
}

.columns-icon::before {
  left: 9px;
  top: 0;
  width: 3px;
  height: 32px;
}

.columns-icon::after {
  left: 0;
  top: 10px;
  width: 32px;
  height: 3px;
}

.filter-icon {
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 18px solid var(--power-blue);
}

.filter-icon::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -2px;
  width: 6px;
  height: 14px;
  background: var(--power-blue);
}

.keyword-search input {
  width: 360px;
  height: 64px;
  padding: 0 20px 0 72px;
  border: 2px solid #666;
  color: var(--text);
  font-size: 28px;
}

.keyword-search .search-icon {
  left: 26px;
  border-color: #333;
}

.keyword-search .search-icon::after {
  background: #333;
}

.table-wrap {
  overflow: auto;
}

.filings-table {
  width: 100%;
  min-width: 2100px;
  border-collapse: collapse;
  table-layout: fixed;
}

.filings-table th,
.filings-table td {
  height: 84px;
  padding: 0 24px;
  border-bottom: 1px solid #e4e4e4;
  text-align: left;
  vertical-align: middle;
  font-size: 28px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filings-table th {
  height: 76px;
  color: #222;
  font-weight: 700;
}

.filings-table th:first-child,
.filings-table td:first-child {
  width: 88px;
  padding-left: 30px;
  padding-right: 18px;
}

.filings-table th:nth-child(2),
.filings-table td:nth-child(2) {
  width: 430px;
}

.filings-table th:nth-child(3),
.filings-table td:nth-child(3) {
  width: 545px;
}

.filings-table th:nth-child(4),
.filings-table td:nth-child(4) {
  width: 345px;
}

.filings-table th:nth-child(5),
.filings-table td:nth-child(5) {
  width: 470px;
}

.filings-table th:nth-child(6),
.filings-table td:nth-child(6) {
  width: 680px;
}

.filings-table th:nth-child(7),
.filings-table td:nth-child(7) {
  width: 320px;
  text-align: right;
}

.filings-table th:not(:last-child),
.filings-table td:not(:last-child) {
  border-right: 1px solid #f7f7f7;
}

.filings-table a {
  color: var(--link-blue);
  text-decoration: none;
}

.filings-table a:hover {
  text-decoration: underline;
}

.filings-table input[type="checkbox"] {
  width: 34px;
  height: 34px;
  margin: 0;
  border: 2px solid #6c6c6c;
  border-radius: 4px;
  appearance: none;
  background: #fff;
}

.filings-table input[type="checkbox"]:checked {
  border-color: var(--power-blue);
  background-color: var(--power-blue);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M8.1 13.5 4.6 10l1.1-1.1 2.4 2.4 6.2-6.2 1.1 1.1-7.3 7.3Z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  box-shadow: none;
}

.sort-desc {
  display: inline-block;
  width: 14px;
  height: 24px;
  margin-left: 8px;
  border-left: 2px solid currentColor;
  vertical-align: middle;
}

.sort-desc::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-left: -6px;
  margin-top: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.table-footer {
  margin-top: auto;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px 0 22px;
  color: #3a3a3a;
  font-size: 28px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 28px;
}

.pager button {
  border: 0;
  background: transparent;
  color: #777;
  font-size: 32px;
}

.pager button:disabled {
  color: #b5b5b5;
  cursor: default;
}

@media (max-width: 1500px) {
  .topbar {
    grid-template-columns: 56px 90px 1px auto minmax(320px, 1fr) auto;
    gap: 20px;
  }

  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .nav-item,
  .nav-section h2,
  .command,
  .view-tools button,
  .filings-table th,
  .filings-table td,
  .table-footer {
    font-size: 22px;
  }

  .view-title {
    font-size: 34px;
  }
}

/* PowerApps-style desktop density. The source screenshot is retina-sized, so
   these rules keep the prototype aligned to normal CSS pixels. */
body {
  min-width: 1180px;
  font-size: 14px;
}

.topbar {
  height: 51px;
  grid-template-columns: 36px 56px 1px auto minmax(300px, 468px) auto;
  gap: 16px;
  padding: 0 9px 0 14px;
}

.app-launcher {
  width: 22px;
  height: 22px;
  grid-template-columns: repeat(3, 3px);
  grid-auto-rows: 3px;
  gap: 4px;
}

.app-launcher span {
  width: 3px;
  height: 3px;
}

.brand-mark {
  width: 53px;
  height: 48px;
}

.brand-swoop {
  top: 4px;
  width: 52px;
  height: 14px;
  border-top-width: 7px;
}

.brand-columns {
  left: 11px;
  top: 16px;
  gap: 5px;
}

.brand-columns span {
  width: 9px;
  height: 31px;
}

.brand-columns span:nth-child(2) {
  height: 37px;
}

.brand-columns span:nth-child(3) {
  height: 41px;
}

.brand-divider {
  height: 21px;
}

.app-title {
  font-size: 14px;
}

.global-search input {
  height: 32px;
  padding: 0 12px 0 35px;
  border-width: 1px;
  font-size: 14px;
}

.search-icon {
  left: 12px;
  width: 14px;
  height: 14px;
  border-width: 1px;
}

.search-icon::after {
  width: 7px;
  height: 1px;
  right: -5px;
  bottom: -3px;
}

.top-actions {
  gap: 21px;
}

.top-actions button {
  min-width: 22px;
  height: 22px;
  font-size: 21px;
}

.top-actions button:nth-child(2),
.top-actions button:nth-child(3) {
  font-size: 16px;
}

.top-actions .user-chip {
  width: 32px;
  height: 32px;
  border-width: 1px;
  font-size: 14px;
}

.workspace {
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: calc(100vh - 51px);
}

.hamburger {
  width: 32px;
  height: 28px;
  gap: 3px;
  margin: 9px 0 20px 12px;
}

.hamburger span {
  width: 17px;
  height: 1px;
}

.nav-section {
  margin-bottom: 31px;
}

.nav-section h2 {
  margin: 0 0 14px 15px;
  font-size: 14px;
}

.nav-item {
  gap: 14px;
  min-height: 36px;
  padding: 0 15px;
  font-size: 14px;
}

.nav-item.is-active::before {
  left: 5px;
  top: 7px;
  width: 4px;
  height: 21px;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.folder-icon {
  height: 12px;
}

.folder-icon::before {
  top: -4px;
  width: 7px;
  height: 4px;
}

.person-icon::before {
  left: 5px;
  width: 6px;
  height: 6px;
}

.person-icon::after {
  left: 3px;
  top: 10px;
  width: 10px;
  height: 5px;
}

.calendar-icon::before {
  top: 4px;
}

.calendar-icon::after {
  left: 3px;
  right: 3px;
  top: -3px;
  height: 4px;
}

.nav-section-help {
  margin-top: 38px;
}

.content {
  padding: 8px 16px 12px;
}

.command-bar {
  min-height: 44px;
  gap: 14px;
  padding: 5px 10px 5px 17px;
  margin-bottom: 8px;
}

.command {
  gap: 7px;
  min-height: 26px;
  font-size: 14px;
}

.command-separator {
  height: 32px;
}

.share-button {
  min-height: 24px;
  padding: 0 12px;
  font-size: 13px;
}

.back-arrow,
.refresh-icon {
  width: 15px;
  height: 15px;
  border-width: 2px;
}

.grid-icon,
.chart-icon,
.new-icon,
.delete-icon,
.bar-icon,
.columns-icon,
.filter-icon,
.share-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.grid-icon {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 10px 0 / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 0 10px / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 10px 10px / 6px 6px no-repeat;
}

.new-icon::before {
  width: 9px;
  height: 2px;
  left: 4px;
  top: 7px;
}

.new-icon::after {
  width: 2px;
  height: 9px;
  left: 7px;
  top: 4px;
}

.delete-icon::before {
  width: 19px;
  top: -3px;
}

.bar-icon {
  background:
    linear-gradient(#f5cb42 0 0) 2px 7px / 4px 9px no-repeat,
    linear-gradient(#e2b11f 0 0) 7px 4px / 4px 12px no-repeat,
    linear-gradient(#f5d765 0 0) 11px 1px / 4px 15px no-repeat;
}

.chevron {
  width: 7px;
  height: 7px;
  border-width: 1px;
}

.view-card {
  min-height: calc(100vh - 75px);
  padding: 10px 11px 0;
}

.view-header {
  gap: 12px;
}

.view-title {
  gap: 8px;
  margin: 2px 0 14px;
  padding: 12px 0 7px;
  font-size: 20px;
}

.view-title::after {
  left: -8px;
  right: -8px;
  height: 3px;
}

.view-tools {
  gap: 17px;
  padding-top: 9px;
}

.view-tools button {
  gap: 6px;
  font-size: 14px;
}

.columns-icon {
  border-width: 2px;
}

.columns-icon::before {
  left: 4px;
  width: 2px;
  height: 16px;
}

.columns-icon::after {
  top: 5px;
  width: 16px;
  height: 2px;
}

.filter-icon {
  border-left-width: 8px;
  border-right-width: 8px;
  border-top-width: 9px;
}

.filter-icon::after {
  left: -2px;
  top: -1px;
  width: 3px;
  height: 7px;
}

.keyword-search input {
  width: 180px;
  height: 32px;
  padding: 0 10px 0 36px;
  border-width: 1px;
  font-size: 14px;
}

.keyword-search .search-icon {
  left: 13px;
}

.filings-table {
  min-width: 1370px;
}

.filings-table th,
.filings-table td {
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
}

.filings-table th {
  height: 38px;
}

.filings-table th:first-child,
.filings-table td:first-child {
  width: 44px;
  padding-left: 15px;
  padding-right: 9px;
}

.filings-table th:nth-child(2),
.filings-table td:nth-child(2) {
  width: 215px;
}

.filings-table th:nth-child(3),
.filings-table td:nth-child(3) {
  width: 272px;
}

.filings-table th:nth-child(4),
.filings-table td:nth-child(4) {
  width: 172px;
}

.filings-table th:nth-child(5),
.filings-table td:nth-child(5) {
  width: 235px;
}

.filings-table th:nth-child(6),
.filings-table td:nth-child(6) {
  width: 330px;
}

.filings-table th:nth-child(7),
.filings-table td:nth-child(7) {
  width: 170px;
}

.filings-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border-width: 1px;
}

.sort-desc {
  width: 7px;
  height: 12px;
}

.sort-desc::after {
  width: 5px;
  height: 5px;
  margin-left: -3px;
  margin-top: 7px;
}

.table-footer {
  min-height: 52px;
  gap: 12px;
  padding: 0 9px 0 11px;
  font-size: 14px;
}

.pager {
  gap: 14px;
}

.pager button {
  font-size: 16px;
}

/* Fluent/PowerApps alignment pass. These overrides keep the prototype static
   while using Fluent colours, Segoe typography, and official Fluent SVG icons. */
:root {
  --ucms-blue: #003e5c;
  --power-blue: #0f6cbd;
  --link-blue: #115ea3;
  --page-bg: #f3f2f1;
  --nav-bg: #f3f2f1;
  --surface: #ffffff;
  --border: #edebe9;
  --border-strong: #c8c6c4;
  --text: #242424;
  --muted: #605e5c;
  --selected-bg: #cfe4fa;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  --font: "Segoe UI", "SegoeUI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  height: 67px;
  grid-template-columns: 67px 142px 1px auto minmax(420px, 936px) auto;
  gap: 14px;
  padding: 0 0 0 0;
  background: var(--ucms-blue);
}

.app-launcher {
  position: relative;
  width: 67px;
  height: 67px;
  padding: 0;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-auto-rows: 6px;
  place-content: center;
  gap: 7px;
  border-radius: 0;
}

.app-launcher .app-launcher-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: block;
  color: inherit;
}

.brand-logo {
  width: 142px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark,
.brand-swoop,
.brand-columns {
  display: none;
}

.brand-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.45);
}

.app-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.global-search input {
  height: 32px;
  padding: 0 14px 0 35px;
  border: 1px solid #6b605d;
  border-radius: 2px;
  background: #d8e1e7;
  color: #323130;
  font-size: 14px;
}

.global-search input::placeholder,
.keyword-search input::placeholder {
  color: #605e5c;
  opacity: 1;
}

.top-actions {
  gap: 30px;
}

.top-actions button {
  position: relative;
  min-width: 24px;
  width: 48px;
  height: 51px;
  display: grid;
  place-items: center;
  color: #fff;
}

.top-actions .user-chip {
  width: 51px;
  height: 51px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}

.user-initials {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.app-launcher:hover,
.app-launcher:focus-visible,
.top-actions button:hover,
.top-actions button:focus-visible {
  background: #e5f3f8;
  color: #111111;
}

.app-launcher:hover .app-launcher-dot,
.app-launcher:focus-visible .app-launcher-dot {
  color: #111111;
}

.global-search[data-tooltip]::before,
.app-launcher::before,
.top-actions button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 40;
  width: max-content;
  max-width: 420px;
  padding: 8px 10px;
  border: 1px solid #edebe9;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  color: #323130;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 120ms ease 650ms, transform 120ms ease 650ms;
}

.global-search[data-tooltip]::after,
.top-actions button[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  z-index: 41;
  width: 14px;
  height: 14px;
  border-left: 1px solid #edebe9;
  border-top: 1px solid #edebe9;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity 120ms ease 650ms;
}

.global-search[data-tooltip]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  z-index: 41;
  width: 14px;
  height: 14px;
  border-left: 1px solid #edebe9;
  border-top: 1px solid #edebe9;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity 120ms ease 650ms;
}

.top-actions button[data-tooltip]:hover::before,
.top-actions button[data-tooltip]:hover::after,
.top-actions button[data-tooltip]:focus-visible::before,
.top-actions button[data-tooltip]:focus-visible::after,
.app-launcher[data-tooltip]:hover::before,
.app-launcher[data-tooltip]:focus-visible::before,
.global-search[data-tooltip]:hover::before,
.global-search[data-tooltip]:hover::after,
.global-search[data-tooltip]:focus-within::before,
.global-search[data-tooltip]:focus-within::after {
  opacity: 1;
}

.top-actions button[data-tooltip]:hover::after,
.top-actions button[data-tooltip]:focus-visible::after,
.app-launcher[data-tooltip]:hover::before,
.app-launcher[data-tooltip]:focus-visible::before,
.global-search[data-tooltip]:hover::before,
.global-search[data-tooltip]:focus-within::before {
  transform: translateX(-50%) translateY(0);
}

.top-actions .user-chip[data-tooltip]::after {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.top-actions .user-chip[data-tooltip]:hover::after,
.top-actions .user-chip[data-tooltip]:focus-visible::after {
  transform: translateY(0);
}

.top-action-icon,
.apps-icon,
.nav-icon,
.grid-icon,
.table-icon,
.view-selector-icon,
.chart-icon,
.new-icon,
.delete-icon,
.bar-icon,
.bulk-settings-icon,
.legal-diary-icon,
.columns-icon,
.filter-icon,
.share-icon,
.back-arrow,
.open-icon,
.save-icon,
.save-close-icon,
.error-circle-icon,
.case-actions-icon,
.refresh-icon,
.more-icon,
.chevron,
.search-icon,
.settings-icon,
.help-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  transform: none;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.apps-icon { mask-image: url("../icons/fluent/apps_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/apps_20_regular.svg"); }
.grid-icon { mask-image: url("../icons/fluent/table_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/table_20_regular.svg"); }
.table-icon { mask-image: url("../icons/fluent/table_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/table_20_regular.svg"); }
.view-selector-icon { mask-image: url("../icons/fluent/table_multiple_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/table_multiple_20_regular.svg"); }
.chart-icon { mask-image: url("../icons/fluent/chart_multiple_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/chart_multiple_20_regular.svg"); }
.new-icon { mask-image: url("../icons/fluent/add_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/add_20_regular.svg"); color: #107c10; }
.delete-icon { mask-image: url("../icons/fluent/delete_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/delete_20_regular.svg"); }
.bar-icon { mask-image: url("../icons/fluent/chart_multiple_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/chart_multiple_20_regular.svg"); color: #d6a400; }
.bulk-settings-icon { mask-image: url("../icons/fluent/calendar_settings_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/calendar_settings_20_regular.svg"); }
.legal-diary-icon { mask-image: url("../icons/fluent/calendar_agenda_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/calendar_agenda_20_regular.svg"); }
.columns-icon { mask-image: url("../icons/fluent/table_settings_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/table_settings_20_regular.svg"); color: var(--power-blue); }
.filter-icon { mask-image: url("../icons/fluent/filter_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/filter_20_regular.svg"); color: var(--power-blue); }
.share-icon { mask-image: url("../icons/fluent/share_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/share_20_regular.svg"); }
.back-arrow { mask-image: url("../icons/fluent/arrow_left_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/arrow_left_20_regular.svg"); }
.open-icon { mask-image: url("../icons/fluent/open_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/open_20_regular.svg"); }
.save-icon { mask-image: url("../icons/fluent/save_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/save_20_regular.svg"); }
.save-close-icon { mask-image: url("../icons/fluent/save_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/save_20_regular.svg"); color: var(--power-blue); }
.error-circle-icon { mask-image: url("../../node_modules/@fluentui/svg-icons/icons/dismiss_circle_20_regular.svg"); -webkit-mask-image: url("../../node_modules/@fluentui/svg-icons/icons/dismiss_circle_20_regular.svg"); }
.case-actions-icon { mask-image: url("../icons/fluent/document_arrow_right_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/document_arrow_right_20_regular.svg"); }
.refresh-icon { mask-image: url("../icons/fluent/arrow_sync_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/arrow_sync_20_regular.svg"); }
.more-icon { mask-image: url("../icons/fluent/more_vertical_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/more_vertical_20_regular.svg"); }
.chevron { mask-image: url("../icons/fluent/chevron_down_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/chevron_down_20_regular.svg"); width: 16px; height: 16px; }
.search-icon { mask-image: url("../icons/fluent/search_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/search_20_regular.svg"); color: var(--power-blue); }
.settings-icon { mask-image: url("../icons/fluent/settings_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/settings_20_regular.svg"); }
.help-icon { mask-image: url("../icons/fluent/question_circle_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/question_circle_20_regular.svg"); }
.document-icon { mask-image: url("../icons/fluent/document_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/document_20_regular.svg"); }
.folder-icon { mask-image: url("../icons/fluent/folder_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/folder_20_regular.svg"); }
.person-icon { mask-image: url("../icons/fluent/person_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/person_20_regular.svg"); }
.list-icon { mask-image: url("../icons/fluent/document_text_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/document_text_20_regular.svg"); }
.cert-icon { mask-image: url("../icons/fluent/certificate_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/certificate_20_regular.svg"); }
.guide-icon { mask-image: url("../icons/fluent/briefcase_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/briefcase_20_regular.svg"); }
.search-small-icon { mask-image: url("../icons/fluent/document_search_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/document_search_20_regular.svg"); }
.calendar-icon { mask-image: url("../icons/fluent/calendar_20_regular.svg"); -webkit-mask-image: url("../icons/fluent/calendar_20_regular.svg"); }

.grid-icon::before,
.grid-icon::after,
.table-icon::before,
.table-icon::after,
.view-selector-icon::before,
.view-selector-icon::after,
.chart-icon::before,
.chart-icon::after,
.new-icon::before,
.new-icon::after,
.delete-icon::before,
.delete-icon::after,
.bar-icon::before,
.bar-icon::after,
.bulk-settings-icon::before,
.bulk-settings-icon::after,
.legal-diary-icon::before,
.legal-diary-icon::after,
.columns-icon::before,
.columns-icon::after,
.filter-icon::before,
.filter-icon::after,
.share-icon::before,
.share-icon::after,
.open-icon::before,
.open-icon::after,
.save-icon::before,
.save-icon::after,
.save-close-icon::before,
.save-close-icon::after,
.error-circle-icon::before,
.error-circle-icon::after,
.case-actions-icon::before,
.case-actions-icon::after,
.more-icon::before,
.more-icon::after,
.search-icon::before,
.search-icon::after,
.nav-icon::before,
.nav-icon::after,
.folder-icon::before,
.person-icon::before,
.person-icon::after,
.search-small-icon::before,
.search-small-icon::after,
.calendar-icon::before,
.calendar-icon::after {
  display: none;
  content: none;
}

.workspace {
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: calc(100vh - 51px);
}

.side-nav {
  background: var(--nav-bg);
  border-right: 1px solid var(--border-strong);
  box-shadow: 3px 0 20px rgba(0, 0, 0, 0.08);
}

.hamburger {
  position: relative;
  width: 28px;
  height: 24px;
  margin: 17px 0 34px 15px;
  border-radius: 2px;
}

.hamburger span {
  width: 17px;
  height: 1px;
  background: #323130;
}

.hamburger:hover,
.hamburger:focus-visible {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nav-section {
  margin-bottom: 34px;
}

.nav-section h2 {
  margin: 0 0 13px 15px;
  color: #242424;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

.nav-item {
  position: relative;
  gap: 18px;
  min-height: 36px;
  padding: 0 15px;
  color: #242424;
  font-size: 14px;
  line-height: 20px;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: #f8f8f8;
}

.nav-item.is-active {
  background: #ffffff;
}

.nav-item.is-active::before {
  left: 5px;
  top: 7px;
  width: 4px;
  height: 21px;
  background: var(--power-blue);
}

.nav-item.is-active span:last-child {
  background: transparent;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  color: #242424;
}

.nav-section-help {
  margin-top: 38px;
}

.hamburger[data-tooltip]::before,
.nav-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 50;
  width: max-content;
  max-width: 260px;
  padding: 5px 8px;
  border: 1px solid #c8c6c4;
  border-radius: 2px;
  background: #f3f2f1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  color: #323130;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-2px);
  transition: opacity 120ms ease 650ms, transform 120ms ease 650ms;
}

.hamburger[data-tooltip]:hover::before,
.hamburger[data-tooltip]:focus-visible::before,
.nav-item[data-tooltip]:hover::after,
.nav-item[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.workspace.is-nav-collapsed {
  grid-template-columns: 56px minmax(0, 1fr);
}

.workspace.is-nav-collapsed .side-nav {
  overflow: visible;
}

.workspace.is-nav-collapsed .hamburger {
  width: 40px;
  height: 40px;
  margin: 14px 8px 16px;
  place-content: center;
}

.workspace.is-nav-collapsed .nav-section {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #d2d0ce;
}

.workspace.is-nav-collapsed .nav-section:first-of-type {
  border-top: 0;
}

.workspace.is-nav-collapsed .nav-section-help {
  margin-top: 0;
}

.workspace.is-nav-collapsed .nav-section h2,
.workspace.is-nav-collapsed .nav-item span:last-child {
  display: none;
}

.workspace.is-nav-collapsed .nav-item {
  justify-content: center;
  gap: 0;
  min-height: 44px;
  padding: 0;
}

.workspace.is-nav-collapsed .nav-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.workspace.is-nav-collapsed .nav-item.is-active::before {
  left: 5px;
  top: 10px;
  width: 4px;
  height: 24px;
}

.content {
  padding: 8px 16px 12px;
}

.command-bar,
.view-card {
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.command-bar {
  min-height: 44px;
  gap: 20px;
  padding: 6px 10px 6px 20px;
  margin-bottom: 8px;
}

.command {
  position: relative;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  color: #242424;
  font-size: 14px;
  font-weight: 400;
}

.command.icon-only {
  min-width: 24px;
  padding: 0 6px;
}

.command-separator {
  height: 32px;
  background: #c8c6c4;
}

.share-button {
  position: relative;
  min-height: 24px;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d2d0ce;
  border-radius: 4px;
  color: #605e5c;
  font-size: 14px;
}

.command:hover,
.command:focus-visible,
.share-button:hover,
.share-button:focus-visible {
  background: #f3f2f1;
}

.command:disabled,
.command.is-disabled {
  color: #a19f9d;
  cursor: not-allowed;
  opacity: 0.65;
}

.command:disabled:hover,
.command:disabled:focus-visible,
.command.is-disabled:hover,
.command.is-disabled:focus-visible {
  background: transparent;
}

.command[data-tooltip]::before,
.share-button[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 360px;
  padding: 8px 10px;
  border: 1px solid #edebe9;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  color: #323130;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 120ms ease 650ms, transform 120ms ease 650ms;
}

.command[data-tooltip]::after,
.share-button[data-tooltip]::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 21;
  width: 14px;
  height: 14px;
  border-left: 1px solid #edebe9;
  border-top: 1px solid #edebe9;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease 650ms;
}

.command[data-tooltip-position="bottom"]::before,
.share-button[data-tooltip-position="bottom"]::before {
  top: calc(100% + 10px);
}

.command[data-tooltip-position="bottom"]::after,
.share-button[data-tooltip-position="bottom"]::after {
  top: calc(100% + 3px);
  transform: translateX(-50%) rotate(45deg);
}

.command[data-tooltip-position="top"]::before,
.share-button[data-tooltip-position="top"]::before {
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px);
}

.command[data-tooltip-position="top"]::after,
.share-button[data-tooltip-position="top"]::after {
  bottom: calc(100% + 3px);
  transform: translateX(-50%) rotate(225deg);
}

.command[data-tooltip]:hover::before,
.command[data-tooltip]:hover::after,
.command[data-tooltip]:focus-visible::before,
.command[data-tooltip]:focus-visible::after,
.share-button[data-tooltip]:hover::before,
.share-button[data-tooltip]:hover::after,
.share-button[data-tooltip]:focus-visible::before,
.share-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.command[data-tooltip-position="bottom"]:hover::after,
.command[data-tooltip-position="bottom"]:focus-visible::after,
.share-button[data-tooltip-position="bottom"]:hover::after,
.share-button[data-tooltip-position="bottom"]:focus-visible::after {
  transform: translateX(-50%) rotate(45deg);
}

.command[data-tooltip-position="top"]:hover::after,
.command[data-tooltip-position="top"]:focus-visible::after,
.share-button[data-tooltip-position="top"]:hover::after,
.share-button[data-tooltip-position="top"]:focus-visible::after {
  transform: translateX(-50%) rotate(225deg);
}

.view-card {
  min-height: calc(100vh - 118px);
  padding: 22px 22px 0;
}

.view-header {
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid #f3f2f1;
}

.view-title {
  gap: 8px;
  margin: 0 0 15px;
  padding: 0 0 10px;
  color: #242424;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.view-title::after {
  left: -8px;
  right: -8px;
  bottom: 0;
  height: 3px;
  background: var(--power-blue);
}

.view-tools {
  gap: 24px;
  padding-top: 2px;
}

.view-tools button {
  gap: 8px;
  color: #323130;
  font-size: 14px;
}

.keyword-search input {
  width: 178px;
  height: 32px;
  padding: 0 10px 0 36px;
  border: 1px solid #605e5c;
  border-radius: 1px;
  color: #323130;
  font-size: 14px;
}

.global-search .search-icon,
.keyword-search .search-icon {
  left: 12px;
  width: 20px;
  height: 20px;
}

.keyword-search .search-icon {
  color: #323130;
}

.table-wrap {
  overflow: auto;
}

.filings-table {
  min-width: 1438px;
  border-collapse: collapse;
  table-layout: fixed;
}

.filings-table th,
.filings-table td {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  color: #242424;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.filings-table th {
  height: 42px;
  color: #242424;
  font-weight: 600;
}

.filings-table th:first-child,
.filings-table td:first-child {
  width: 44px;
  padding-left: 15px;
  padding-right: 9px;
}

.filings-table th:nth-child(2),
.filings-table td:nth-child(2) {
  width: 215px;
}

.filings-table th:nth-child(3),
.filings-table td:nth-child(3) {
  width: 272px;
}

.filings-table th:nth-child(4),
.filings-table td:nth-child(4) {
  width: 172px;
}

.filings-table th:nth-child(5),
.filings-table td:nth-child(5) {
  width: 235px;
}

.filings-table th:nth-child(6),
.filings-table td:nth-child(6) {
  width: 340px;
}

.filings-table th:nth-child(7),
.filings-table td:nth-child(7) {
  width: 160px;
  text-align: right;
}

.filings-table th:not(:last-child),
.filings-table td:not(:last-child) {
  border-right: 1px solid #f8f8f8;
}

.filings-table a {
  color: var(--link-blue);
  text-decoration: none;
}

.filings-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border: 1px solid #605e5c;
  border-radius: 2px;
}

.sort-desc {
  width: 12px;
  height: 16px;
  margin-left: 4px;
  border-left: 1px solid currentColor;
}

.sort-desc::after {
  width: 6px;
  height: 6px;
  margin-left: -4px;
  margin-top: 8px;
  border-width: 1px;
}

.table-footer {
  min-height: 52px;
  padding: 0 0 0 0;
  color: #323130;
  font-size: 14px;
}

.pager {
  gap: 18px;
}

.pager button {
  color: #605e5c;
  font-size: 18px;
}

.edit-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  mask-image: url("../icons/fluent/edit_20_regular.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("../icons/fluent/edit_20_regular.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.add-icon,
.mail-link-icon,
.link-icon,
.flow-icon,
.create-version-icon,
.puzzle-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.add-icon {
  color: #107c10;
  mask-image: url("../icons/fluent/add_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/add_20_regular.svg");
}

.mail-link-icon {
  mask-image: url("../icons/fluent/mail_link_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/mail_link_20_regular.svg");
}

.link-icon {
  mask-image: url("../icons/fluent/link_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/link_20_regular.svg");
}

.flow-icon {
  mask-image: url("../icons/fluent/flow_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/flow_20_regular.svg");
}

.create-version-icon {
  mask-image: url("../icons/fluent/document_arrow_right_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/document_arrow_right_20_regular.svg");
}

.puzzle-icon {
  mask-image: url("../icons/fluent/box_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/box_20_regular.svg");
}

.ucms-data-grid tbody tr:hover td {
  background: #f3f2f1;
}

.ucms-data-grid tbody tr:hover td:hover {
  background: #d8d8d8;
  border-radius: 3px;
}

.ucms-data-grid tbody tr.is-selected td {
  background: #e8f1fd;
}

.ucms-data-grid tbody tr.is-selected:hover td {
  background: #e8f1fd;
}

.ucms-data-grid tbody tr.is-selected td:hover {
  background: #dbe8fb;
}

.ucms-data-grid .number-cell {
  text-align: right;
}

.legal-aid-view .table-wrap {
  max-height: calc(100vh - 188px);
  overflow: auto;
}

.legal-aid-table {
  min-width: 100%;
}

.legal-aid-table th:nth-child(2),
.legal-aid-table td:nth-child(2) {
  width: 260px;
}

.legal-aid-table th:nth-child(3),
.legal-aid-table td:nth-child(3) {
  width: 360px;
}

.legal-aid-table th:nth-child(4),
.legal-aid-table td:nth-child(4) {
  width: 390px;
}

.legal-aid-table th:nth-child(5),
.legal-aid-table td:nth-child(5) {
  width: 270px;
  text-align: left;
}

/* ── Cases table ─────────────────────────────────────────────────── */
.cases-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  table-layout: fixed;
}

.cases-table th,
.cases-table td {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  color: #242424;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cases-table th { font-weight: 600; }

.cases-table th:first-child,
.cases-table td:first-child { width: 44px; padding-left: 15px; padding-right: 9px; }

.cases-table th:nth-child(2),
.cases-table td:nth-child(2) { width: 230px; }

.cases-table th:nth-child(3),
.cases-table td:nth-child(3) { width: 160px; }

.cases-table th:nth-child(4),
.cases-table td:nth-child(4) { width: auto; }

.cases-table th:nth-child(5),
.cases-table td:nth-child(5) { width: 160px; }

.cases-table th:nth-child(6),
.cases-table td:nth-child(6) { width: 160px; }

.cases-table th:not(:last-child),
.cases-table td:not(:last-child) { border-right: 1px solid #f8f8f8; }

.cases-table a { color: var(--link-blue); text-decoration: none; }
.cases-table a:hover { text-decoration: underline; }

.cases-table input[type="checkbox"] { width: 17px; height: 17px; border: 1px solid #605e5c; border-radius: 2px; }
.cases-table tbody tr:hover td { background: #f3f2f1; }

/* Persons page table sizing */
.persons-page .filings-table {
  min-width: 1220px;
}

.persons-page .filings-table th:nth-child(2),
.persons-page .filings-table td:nth-child(2) {
  width: 220px;
}

.persons-page .filings-table th:nth-child(3),
.persons-page .filings-table td:nth-child(3) {
  width: 170px;
}

.persons-page .filings-table th:nth-child(4),
.persons-page .filings-table td:nth-child(4) {
  width: 300px;
}

.persons-page .filings-table th:nth-child(5),
.persons-page .filings-table td:nth-child(5) {
  width: 210px;
}

.persons-page .filings-table th:nth-child(6),
.persons-page .filings-table td:nth-child(6) {
  width: 180px;
  text-align: left;
}

/* Warrants page table sizing */
.warrants-page .filings-table {
  min-width: 1560px;
}

.warrants-page .filings-table th:nth-child(2),
.warrants-page .filings-table td:nth-child(2) {
  width: 160px;
}

.warrants-page .filings-table th:nth-child(3),
.warrants-page .filings-table td:nth-child(3) {
  width: 130px;
}

.warrants-page .filings-table th:nth-child(4),
.warrants-page .filings-table td:nth-child(4) {
  width: 140px;
}

.warrants-page .filings-table th:nth-child(5),
.warrants-page .filings-table td:nth-child(5) {
  width: 170px;
}

.warrants-page .filings-table th:nth-child(6),
.warrants-page .filings-table td:nth-child(6) {
  width: 250px;
}

.warrants-page .filings-table th:nth-child(7),
.warrants-page .filings-table td:nth-child(7) {
  width: 180px;
  text-align: left;
}

.warrants-page .filings-table th:nth-child(8),
.warrants-page .filings-table td:nth-child(8) {
  width: 180px;
  text-align: left;
}

/* ── App-height layout: body scrolls, headers fixed ─────────────── */
.workspace {
  height: calc(100vh - 51px);
  min-height: 0;
  overflow: hidden;
}

.content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.command-bar {
  flex-shrink: 0;
}

.view-card {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.view-header {
  flex-shrink: 0;
}

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

.table-footer {
  flex-shrink: 0;
}

/* Sticky column headers for both tables */
.filings-table thead th,
.cases-table thead th,
.ucms-data-grid thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  box-shadow: 0 1px 0 #edebe9;
  /* suppress individual bottom border so box-shadow acts as the separator */
  border-bottom: none;
}

/* ── Cases table: flexible column layout, no horizontal scroll ───── */
.cases-table {
  table-layout: auto;
  min-width: 0;
  width: 100%;
}

.cases-table th,
.cases-table td {
  text-align: left;
}

/* Case ref – fixed comfortable width */
.cases-table th:nth-child(2),
.cases-table td:nth-child(2) {
  width: 20%;
  min-width: 190px;
}

/* Shorthand – compact */
.cases-table th:nth-child(3),
.cases-table td:nth-child(3) {
  width: 14%;
  min-width: 130px;
}

/* Case Title – fills remaining space (no explicit width = auto) */
.cases-table th:nth-child(4),
.cases-table td:nth-child(4) {
  width: auto;
  min-width: 160px;
}

/* Next Listing Date */
.cases-table th:nth-child(5),
.cases-table td:nth-child(5) {
  width: 13%;
  min-width: 130px;
}

/* Date Entered */
.cases-table th:nth-child(6),
.cases-table td:nth-child(6) {
  width: 13%;
  min-width: 130px;
}

/* ── Orders table column layout ──────────────────────────────────── */
.orders-page .filings-table {
  min-width: 0;
  table-layout: auto;
}

.orders-page .filings-table th,
.orders-page .filings-table td {
  text-align: left;
}

/* Order number */
.orders-page .filings-table th:nth-child(2),
.orders-page .filings-table td:nth-child(2) {
  width: 14%;
  min-width: 145px;
}

/* Order Type */
.orders-page .filings-table th:nth-child(3),
.orders-page .filings-table td:nth-child(3) {
  width: 18%;
  min-width: 155px;
}

/* Document Link */
.orders-page .filings-table th:nth-child(4),
.orders-page .filings-table td:nth-child(4) {
  width: 11%;
  min-width: 110px;
}

/* Case ref */
.orders-page .filings-table th:nth-child(5),
.orders-page .filings-table td:nth-child(5) {
  width: 12%;
  min-width: 120px;
}

/* Shorthand Case Ref */
.orders-page .filings-table th:nth-child(6),
.orders-page .filings-table td:nth-child(6) {
  width: 13%;
  min-width: 130px;
  text-align: left;
}

/* Defendant Case Person */
.orders-page .filings-table th:nth-child(7),
.orders-page .filings-table td:nth-child(7) {
  width: auto;
  min-width: 140px;
  text-align: left;
}

/* Created On */
.orders-page .filings-table th:nth-child(8),
.orders-page .filings-table td:nth-child(8) {
  width: 13%;
  min-width: 130px;
  text-align: left;
}

/* ── Sittings table column layout ────────────────────────────────── */
.sittings-page .filings-table {
  min-width: 0;
  table-layout: auto;
}

.sittings-page .filings-table th,
.sittings-page .filings-table td {
  text-align: left;
}

/* Sitting ID */
.sittings-page .filings-table th:nth-child(2),
.sittings-page .filings-table td:nth-child(2) {
  width: 13%;
  min-width: 140px;
}

/* Sitting Date & Time */
.sittings-page .filings-table th:nth-child(3),
.sittings-page .filings-table td:nth-child(3) {
  width: 13%;
  min-width: 140px;
}

/* Court Venue – fills remaining space */
.sittings-page .filings-table th:nth-child(4),
.sittings-page .filings-table td:nth-child(4) {
  width: auto;
  min-width: 160px;
}

/* Court Room */
.sittings-page .filings-table th:nth-child(5),
.sittings-page .filings-table td:nth-child(5) {
  width: 10%;
  min-width: 110px;
}

/* List Type */
.sittings-page .filings-table th:nth-child(6),
.sittings-page .filings-table td:nth-child(6) {
  width: 12%;
  min-width: 120px;
}

/* # Listings */
.sittings-page .filings-table th:nth-child(7),
.sittings-page .filings-table td:nth-child(7) {
  width: 7%;
  min-width: 75px;
  text-align: right;
}

/* Judge presiding */
.sittings-page .filings-table th:nth-child(8),
.sittings-page .filings-table td:nth-child(8) {
  width: 14%;
  min-width: 140px;
  text-align: left;
}

/* Court Registrar */
.sittings-page .filings-table th:nth-child(9),
.sittings-page .filings-table td:nth-child(9) {
  width: 12%;
  min-width: 120px;
  text-align: left;
}

/* ── Topbar: force add-icon white against dark background ─────────── */
.top-actions .top-action-icon.add-icon {
  color: #fff;
}

/* ── Case record reusable layout ─────────────────────────────────── */
.case-record-view {
  padding: 0;
  background: transparent;
  box-shadow: none;
  gap: 8px;
  overflow: hidden;
}

.case-header-card,
.case-panel {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.case-header-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 0;
  flex-shrink: 0;
}

.case-head-main h1 {
  margin: 0;
  font-size: 25px;
  line-height: 32px;
  font-weight: 600;
}

.case-head-main h1 span {
  color: #8a8886;
  font-weight: 400;
  font-size: 15px;
}

.case-head-main > p {
  margin: 2px 0 10px;
  color: #605e5c;
  font-size: 14px;
}

.case-tabs {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  padding-bottom: 8px;
}

.case-tab {
  border: 0;
  background: transparent;
  color: #323130;
  font-size: 16px;
  padding: 9px 10px 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.case-tab.is-active {
  font-weight: 600;
}

.case-tab-label {
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.case-tab.is-active .case-tab-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--power-blue);
}

.case-head-meta {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-top: 8px;
}

.case-head-meta div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-head-meta > div + div {
  border-left: 1px solid #edebe9;
  margin-left: 18px;
  padding-left: 18px;
}

.case-head-meta strong {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: #242424;
}

.case-head-meta span {
  font-size: 13px;
  line-height: 18px;
  color: #605e5c;
}

.case-head-meta a {
  color: var(--link-blue);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
}

.case-head-meta a:hover {
  text-decoration: underline;
}

.case-content-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px;
  min-height: 0;
  align-items: start;
}

.case-panel {
  padding: 10px 12px;
}

.case-panel h2 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.case-right-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.case-info-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 28px;
  align-items: start;
}

.case-info-field {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  min-height: 40px;
}

.case-info-field.is-full {
  grid-column: 1 / -1;
}

.case-info-field .person-field-label {
  font-size: 14px;
  line-height: 20px;
}

.case-info-field .person-field-value {
  min-height: 42px;
  padding: 0 10px;
  font-size: 14px;
  line-height: 20px;
}

.case-info-field.is-locked::after {
  content: "";
  position: absolute;
  left: 158px;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #605e5c;
  transform: translateY(-50%);
  mask: url("../icons/fluent/lock_closed_20_regular.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/fluent/lock_closed_20_regular.svg") center / contain no-repeat;
}

.case-checkbox-field {
  align-items: center;
}

.case-checkbox-wrap {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.case-checkbox-wrap input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2b65c9;
}

.info-field,
.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.info-field > span,
.check-field > span {
  width: 130px;
  color: #323130;
  font-size: 12px;
}

.field-box {
  flex: 1;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 1px solid #edebe9;
  background: #f6f6f6;
  font-size: 12px;
}

.field-box.is-muted {
  color: #a19f9d;
}

.check-field input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.case-right-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header button {
  border: 0;
  background: transparent;
  color: #323130;
  font-size: 12px;
}

.empty-grid {
  border-top: 1px solid #edebe9;
  margin-top: 6px;
  padding-top: 8px;
}

.empty-grid-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #605e5c;
  font-size: 11px;
  margin-bottom: 12px;
}

.empty-grid p {
  min-height: 52px;
  margin: 0;
  display: grid;
  place-items: center;
  color: #605e5c;
  font-size: 12px;
}

.empty-grid footer {
  margin-top: 14px;
  border-top: 1px solid #edebe9;
  padding-top: 6px;
  color: #605e5c;
  font-size: 11px;
}

.comments .timeline-search {
  border: 0;
  background: #f3f2f1;
  border-radius: 4px;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #605e5c;
  font-size: 12px;
  width: 100%;
  text-align: left;
}

.timeline-entry {
  margin-top: 8px;
  border-top: 1px solid #edebe9;
  padding-top: 8px;
}

.timeline-entry h3 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
}

.timeline-entry p {
  margin: 0 0 4px;
  font-size: 12px;
  color: #323130;
}

.timeline-entry a {
  font-size: 12px;
  color: var(--link-blue);
  text-decoration: none;
}

.panel-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-tools .icon-only {
  border: 0;
  background: transparent;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel-tools button {
  border: 0;
  background: transparent;
  color: #323130;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empty-grid-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #edebe9;
  font-size: 12px;
  color: #605e5c;
}

.comments-group-toggle {
  margin-top: 8px;
  border: 0;
  background: transparent;
  border-top: 2px solid #106ebe;
  padding: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #323130;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comments-group-toggle.is-collapsed .chevron {
  transform: rotate(-90deg);
}

.comments-group {
  margin-top: 6px;
}

.timeline-entry {
  display: flex;
  gap: 8px;
}

.timeline-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffb900;
  color: #323130;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-content p .person-small-icon {
  margin-right: 4px;
  width: 12px;
  height: 12px;
}

.view-more-link {
  border: 0;
  background: transparent;
  color: var(--link-blue);
  font-size: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-more-link.is-expanded .chevron {
  transform: rotate(180deg);
}

.comments .timeline-toolbar {
  gap: 2px;
}

.timeline-toolbar-button {
  position: relative;
  width: 36px;
  height: 36px;
  color: #323130;
  border-radius: 0;
}

.timeline-toolbar-button .add-icon,
.timeline-toolbar-button .refresh-icon,
.timeline-toolbar-button .filter-icon,
.timeline-toolbar-button .more-icon,
.timeline-toolbar-button .sort-icon,
.timeline-toolbar-button .bookmark-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #323130;
}

.timeline-toolbar-button .add-icon,
.timeline-toolbar-button .filter-icon {
  color: #323130;
}

.timeline-toolbar-button .bookmark-icon,
.timeline-toolbar-button .sort-icon {
  display: inline-block;
  background: currentColor;
  border: 0;
  border-radius: 0;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 24px 24px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 24px 24px;
}

.timeline-toolbar-button .bookmark-icon {
  mask-image: url("../icons/fluent/bookmark_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/bookmark_20_regular.svg");
}

.timeline-toolbar-button .sort-icon {
  mask-image: url("../icons/fluent/text_sort_descending_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/text_sort_descending_20_regular.svg");
}

.timeline-toolbar-button .bookmark-icon::before,
.timeline-toolbar-button .bookmark-icon::after,
.timeline-toolbar-button .sort-icon::before,
.timeline-toolbar-button .sort-icon::after {
  display: none;
  content: none;
}

.timeline-toolbar-button:hover,
.timeline-toolbar-button:focus-visible,
.timeline-toolbar-button[aria-expanded="true"] {
  background: #f3f2f1;
  outline: 0;
}

.timeline-toolbar-button[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 80;
  width: max-content;
  max-width: 320px;
  padding: 6px 9px;
  border: 1px solid #c8c6c4;
  border-radius: 2px;
  background: #f3f2f1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  color: #323130;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 120ms ease 500ms, transform 120ms ease 500ms;
}

.timeline-toolbar-button[data-tooltip]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  z-index: 81;
  width: 12px;
  height: 12px;
  border-right: 1px solid #c8c6c4;
  border-bottom: 1px solid #c8c6c4;
  background: #f3f2f1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity 120ms ease 500ms;
}

.timeline-toolbar-button.has-dark-tooltip[data-tooltip]::before {
  padding: 10px 13px;
  border-color: #323130;
  background: #323130;
  color: #fff;
  font-size: 14px;
}

.timeline-toolbar-button.has-dark-tooltip[data-tooltip]::after {
  border-color: #323130;
  background: #323130;
}

.timeline-toolbar-button[data-tooltip]:hover::before,
.timeline-toolbar-button[data-tooltip]:hover::after,
.timeline-toolbar-button[data-tooltip]:focus-visible::before,
.timeline-toolbar-button[data-tooltip]:focus-visible::after {
  opacity: 1;
}

.timeline-toolbar-button[data-tooltip]:hover::before,
.timeline-toolbar-button[data-tooltip]:focus-visible::before {
  transform: translateX(-50%) translateY(0);
}

.timeline-more-wrap {
  position: relative;
  display: inline-flex;
}

.comments-more-menu {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 70;
  width: 260px;
  border: 1px solid #e1dfdd;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.comments-more-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  gap: 8px;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #edebe9;
  background: #fff;
  color: #323130;
  font-size: 16px;
  line-height: 22px;
  text-align: left;
}

.comments-more-item:hover,
.comments-more-item:focus-visible {
  background: #f3f2f1;
  outline: 0;
}

.comments-more-item.is-strong {
  font-weight: 600;
}

.comments-more-item .chevron {
  justify-self: end;
  transform: rotate(-90deg);
}

.comments-menu-check {
  position: relative;
  width: 20px;
  height: 20px;
}

.comments-menu-check::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 13px;
  height: 7px;
  border-left: 2px solid #323130;
  border-bottom: 2px solid #323130;
  transform: rotate(-45deg);
}

.offences-panel {
  min-height: 320px;
}

.offences-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.offences-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.offences-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.offences-actions button {
  border: 0;
  background: transparent;
  color: #323130;
  font-size: 12px;
}

.offences-table-wrap {
  overflow: auto;
  border-top: 1px solid #edebe9;
  border-bottom: 1px solid #edebe9;
}

.offences-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
  table-layout: fixed;
}

.offences-table th,
.offences-table td {
  height: 34px;
  padding: 0 8px;
  border-bottom: 1px solid #f3f2f1;
  font-size: 12px;
  color: #323130;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offences-table th {
  font-weight: 600;
}

.offences-table th:first-child,
.offences-table td:first-child {
  width: 28px;
}

.offences-table input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
}

.bail-table {
  min-width: 1180px;
}

.bail-table th:nth-child(2),
.bail-table td:nth-child(2) {
  width: 150px;
}

.bail-table th:nth-child(3),
.bail-table td:nth-child(3) {
  width: 120px;
}

.bail-table th:nth-child(4),
.bail-table td:nth-child(4) {
  width: 150px;
}

.bail-table th:nth-child(5),
.bail-table td:nth-child(5) {
  width: 90px;
}

.listings-table {
  min-width: 1450px;
}

.listings-table th:nth-child(2),
.listings-table td:nth-child(2) {
  width: 150px;
}

.listings-table th:nth-child(3),
.listings-table td:nth-child(3) {
  width: 150px;
}

.listings-table th:nth-child(4),
.listings-table td:nth-child(4) {
  width: 130px;
}

.listings-table th:nth-child(7),
.listings-table td:nth-child(7) {
  width: 130px;
}

.listings-table th:nth-child(10),
.listings-table td:nth-child(10) {
  width: 90px;
}

.activities-table {
  min-width: 1280px;
}

.activities-table th:nth-child(2),
.activities-table td:nth-child(2) {
  width: 350px;
}

.activities-table th:nth-child(3),
.activities-table td:nth-child(3) {
  width: 130px;
}

.activities-table th:nth-child(4),
.activities-table td:nth-child(4) {
  width: 130px;
}

.activities-table th:nth-child(5),
.activities-table td:nth-child(5) {
  width: 150px;
}

.activities-table th:nth-child(6),
.activities-table td:nth-child(6) {
  width: 180px;
}

.offences-panel footer {
  margin-top: 10px;
  font-size: 12px;
  color: #605e5c;
}

.case-persons-stack {
  display: grid;
  gap: 8px;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 24px;
  box-sizing: border-box;
}

.case-tab-stack {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 24px;
  box-sizing: border-box;
}

.person-record-view .case-tab-stack {
  padding-top: 8px;
}

.person-bail-table {
  min-width: 1380px;
}

.person-bail-table th:nth-child(2),
.person-bail-table td:nth-child(2) {
  width: 170px;
}

.person-bail-table th:nth-child(3),
.person-bail-table td:nth-child(3) {
  width: 130px;
}

.person-bail-table th:nth-child(4),
.person-bail-table td:nth-child(4),
.person-bail-table th:nth-child(5),
.person-bail-table td:nth-child(5),
.person-bail-table th:nth-child(6),
.person-bail-table td:nth-child(6) {
  width: 120px;
}

.person-bail-table th:nth-child(7),
.person-bail-table td:nth-child(7) {
  width: 130px;
}

.person-bail-table th:nth-child(8),
.person-bail-table td:nth-child(8) {
  width: 140px;
}

.person-bail-table th:nth-child(9),
.person-bail-table td:nth-child(9) {
  width: 220px;
}

.person-bail-table th:nth-child(10),
.person-bail-table td:nth-child(10) {
  width: 140px;
}

.person-record-placeholder,
.record-placeholder {
  margin: 0;
  padding: 16px;
  color: #605e5c;
  font-size: 13px;
}

.warrant-record-view .case-tab-stack {
  padding-top: 8px;
}

.warrant-general-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(520px, 1fr);
  grid-template-areas:
    "summary links"
    "court party";
  gap: 16px;
  min-height: 0;
  padding: 8px 0 28px;
  align-items: start;
}

.warrant-detail-panel {
  padding: 18px 20px;
  min-width: 0;
}

.warrant-summary-panel {
  grid-area: summary;
  min-height: 136px;
}

.warrant-links-panel {
  grid-area: links;
  min-height: 136px;
}

.warrant-court-panel {
  grid-area: court;
  min-height: 300px;
}

.warrant-party-panel {
  grid-area: party;
  min-height: 300px;
}

.warrant-record-view .la-cert-field {
  grid-template-columns: 170px 24px minmax(0, 1fr);
  min-height: 48px;
  padding: 4px 0;
  border-bottom: 0;
  column-gap: 8px;
}

.warrant-record-view .la-cert-label {
  font-size: 16px;
  line-height: 22px;
  padding-right: 0;
  color: #323130;
}

.warrant-record-view .la-cert-value {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 3px;
  background: #f3f2f1;
  font-size: 16px;
  line-height: 22px;
  color: #323130;
}

.warrant-record-view .la-cert-value a {
  color: var(--link-blue);
  text-decoration: underline;
}

.warrant-record-view .la-cert-lookup {
  gap: 8px;
  justify-content: flex-start;
}

.warrant-record-view .la-cert-lookup .search-small-icon,
.warrant-record-view .lookup-token button {
  display: none;
}

.warrant-record-view .lookup-token {
  max-width: calc(100% - 4px);
  padding: 3px 8px;
}

.warrant-nested-panel {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid #edebe9;
  border-radius: 4px;
  background: #fff;
}

.warrant-nested-panel:last-child {
  margin-bottom: 0;
}

.warrant-nested-panel .la-cert-field {
  grid-template-columns: 150px 24px minmax(0, 1fr);
}

.warrant-document-value {
  gap: 8px;
}

.warrant-word-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #2b579a;
  background: currentColor;
  mask: url("../icons/fluent/document_text_20_regular.svg") center / 18px 18px no-repeat;
  -webkit-mask: url("../icons/fluent/document_text_20_regular.svg") center / 18px 18px no-repeat;
}

.warrant-download-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--link-blue);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.warrant-download-button:hover {
  background: #f3f2f1;
  color: #004578;
}

@media (max-width: 1180px) {
  .warrant-general-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "links"
      "court"
      "party";
  }
}

.warrant-offences-grid {
  min-width: 1800px;
}

.warrant-offences-grid th:nth-child(2),
.warrant-offences-grid td:nth-child(2) {
  width: 155px;
}

.warrant-offences-grid th:nth-child(3),
.warrant-offences-grid td:nth-child(3),
.warrant-offences-grid th:nth-child(4),
.warrant-offences-grid td:nth-child(4) {
  width: 130px;
}

.warrant-offences-grid th:nth-child(5),
.warrant-offences-grid td:nth-child(5) {
  width: 120px;
}

.warrant-offences-grid th:nth-child(6),
.warrant-offences-grid td:nth-child(6),
.warrant-offences-grid th:nth-child(7),
.warrant-offences-grid td:nth-child(7),
.warrant-offences-grid th:nth-child(8),
.warrant-offences-grid td:nth-child(8) {
  width: 140px;
}

.warrant-offences-grid th:nth-child(9),
.warrant-offences-grid td:nth-child(9) {
  width: 100px;
}

.warrant-offences-grid th:nth-child(10),
.warrant-offences-grid td:nth-child(10) {
  width: 170px;
}

.warrant-offences-grid th:nth-child(11),
.warrant-offences-grid td:nth-child(11) {
  width: 120px;
}

.warrant-offences-grid th:nth-child(12),
.warrant-offences-grid td:nth-child(12) {
  width: 145px;
}

.sort-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.sort-icon::before,
.sort-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  width: 2px;
  background: currentColor;
}

.sort-icon::before {
  top: 3px;
  height: 8px;
  box-shadow: -4px 4px 0 0 currentColor;
}

.sort-icon::after {
  top: 11px;
  height: 6px;
  box-shadow: 4px -3px 0 0 currentColor;
}

.sitting-record-view .case-tab-stack {
  padding-top: 8px;
}

.sitting-general-stack {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 28px;
}

.sitting-general-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(420px, 1fr);
  gap: 16px;
  align-items: start;
}

.sitting-panel {
  padding: 18px 20px;
  min-width: 0;
}

.sitting-panel h2 {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.sitting-record-view .person-field-list {
  gap: 16px;
}

.sitting-record-view .person-field {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
}

.sitting-record-view .person-field-value {
  min-height: 40px;
  font-size: 16px;
  line-height: 22px;
}

.lookup-token-icon.box-icon,
.lookup-token-icon.person-small-icon {
  display: inline-block;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 18px 18px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 18px 18px;
}

.lookup-token-icon.box-icon {
  mask-image: url("../icons/fluent/box_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/box_20_regular.svg");
}

.lookup-token-icon.person-small-icon {
  mask-image: url("../icons/fluent/person_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/person_20_regular.svg");
}

.person-field-value .field-trailing-icon.clock-icon {
  mask-image: url("../icons/fluent/clock_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/clock_20_regular.svg");
}

.sitting-field-clear {
  width: 24px;
  height: 24px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #605e5c;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .sitting-general-grid {
    grid-template-columns: 1fr;
  }
}

.sitting-listings-grid {
  min-width: 1450px;
}

.sitting-listings-grid th:nth-child(2),
.sitting-listings-grid td:nth-child(2) {
  width: 160px;
}

.sitting-listings-grid th:nth-child(3),
.sitting-listings-grid td:nth-child(3) {
  width: 80px;
}

.sitting-listings-grid th:nth-child(4),
.sitting-listings-grid td:nth-child(4) {
  width: 170px;
}

.sitting-listings-grid th:nth-child(5),
.sitting-listings-grid td:nth-child(5) {
  width: 220px;
}

.sitting-listings-grid th:nth-child(6),
.sitting-listings-grid td:nth-child(6) {
  width: 150px;
}

.sitting-listings-grid th:nth-child(7),
.sitting-listings-grid td:nth-child(7) {
  width: 170px;
}

.sitting-listings-grid th:nth-child(8),
.sitting-listings-grid td:nth-child(8) {
  width: 150px;
}

.sitting-split-board {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  min-height: 0;
}

.split-left,
.split-right {
  padding: 0;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

.split-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edebe9;
  padding: 0 12px;
}

.split-head h2 {
  margin: 0;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.split-head-actions {
  display: flex;
  gap: 8px;
}

.split-head-actions button {
  border: 0;
  background: transparent;
  color: #605e5c;
}

.split-selection {
  min-height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #edebe9;
  padding: 0 12px;
  color: #605e5c;
  font-size: 12px;
}

.split-list {
  flex: 1;
  overflow: auto;
}

.split-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f3f2f1;
  padding: 6px 12px;
  cursor: pointer;
}

.split-row.is-active {
  background: #eef6fe;
}

.split-row-main {
  display: grid;
  grid-template-columns: 16px auto;
  gap: 8px;
  align-items: start;
}

.split-row-main strong {
  font-size: 13px;
  font-weight: 600;
}

.split-row-main small {
  grid-column: 2;
  font-size: 11px;
  color: #605e5c;
}

.split-row-main small a {
  color: var(--link-blue);
  text-decoration: none;
}

.split-row-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #605e5c;
  font-size: 12px;
}

.split-row-expand {
  border: 0;
  background: transparent;
  color: #605e5c;
  font-size: 11px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.split-pill {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid #8a8886;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 10px;
  color: #323130;
  background: #fff;
}

.split-row-offences {
  grid-column: 1 / -1;
  border-top: 1px solid #edebe9;
  margin-top: 6px;
  padding-top: 6px;
}

.split-offence-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.split-offence-grid th,
.split-offence-grid td {
  border-bottom: 1px solid #f3f2f1;
  padding: 6px;
  text-align: left;
  font-size: 11px;
  color: #323130;
  vertical-align: top;
}

.split-offence-grid thead th {
  color: #605e5c;
  font-weight: 600;
}

.split-result-actions {
  display: flex;
  gap: 8px;
}

.split-result-actions button {
  height: 24px;
  border: 1px solid #d2d0ce;
  border-radius: 3px;
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
}

.split-result-actions button:last-child {
  background: #0f6cbd;
  border-color: #0f6cbd;
  color: #fff;
}

.split-results-body {
  flex: 1;
  padding: 10px 12px;
  overflow: auto;
}

.split-results-body h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.split-results-body ol {
  margin: 0;
  padding-left: 18px;
}

.split-results-body li {
  margin-bottom: 10px;
  font-size: 13px;
}

.split-results-body li span {
  color: #605e5c;
  font-size: 12px;
}

.split-results-empty {
  min-height: 24px;
}

.split-result-tags {
  margin-top: 4px;
}

.split-result-tags em {
  display: block;
  color: #605e5c;
  font-size: 11px;
  font-style: normal;
}

.split-footer-text {
  min-height: 32px;
  border-top: 1px solid #edebe9;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #605e5c;
  font-size: 12px;
}

.split-action-bar {
  margin-top: 8px;
  min-height: 44px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}

.split-action-bar button {
  height: 26px;
  border: 1px solid #edebe9;
  border-radius: 3px;
  background: #f3f2f1;
  color: #a19f9d;
  font-size: 12px;
  padding: 0 10px;
}

.offence-record-view {
  gap: 6px;
}

.record-state-banner {
  min-height: 22px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #edebe9;
  border-radius: 3px;
  background: #faf9f8;
  color: #605e5c;
  font-size: 11px;
}

.offence-general-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  min-height: 0;
  padding: 6px 0 6px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.offence-left-panel {
  padding: 14px 16px 12px;
  min-width: 0;
  align-self: start;
  height: auto;
}

.offence-left-form-grid {
  display: block;
}

.offence-field {
  grid-template-columns: 165px minmax(0, 1fr);
}

.offence-left-panel .offence-field .person-field-value {
  width: 100%;
}

/* Offence Category stays compact like source UI */
.offence-left-panel .offence-field:nth-child(4) .person-field-value {
  width: auto;
  max-width: 220px;
}

.offence-textarea-field {
  align-items: start;
}

.offence-record-view .person-field-value.offence-textarea-value {
  min-height: 96px;
  align-items: flex-start;
  padding-top: 6px;
  white-space: normal;
}

.offence-record-view .person-field-value.offence-textarea-value > span:first-child:not(.lookup-token) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 22px;
}

.offence-right-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.offence-plea-summary {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 12px 14px 10px;
}

.offence-plea-summary h2 {
  margin: 0 0 12px;
}

.offence-plea-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 14px;
  min-width: 0;
}

.offence-plea-grid .person-field {
  grid-template-columns: 100px minmax(0, 1fr);
}

.offence-plea-grid .person-field-value {
  width: 100%;
  min-width: 0;
}

.offence-results-panel {
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.offence-results-panel .case-related-table-wrap {
  min-height: 260px;
  max-height: 420px;
  min-width: 0;
}

.embedded-related-header {
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #edebe9;
}

.embedded-related-table-wrap {
  flex: 1;
  min-height: 120px;
}

.embedded-related-grid th,
.embedded-related-grid td {
  height: 38px;
}

.offence-plea-grid-table {
  min-width: 420px;
}

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

.offence-results-table th:nth-child(2),
.offence-results-table td:nth-child(2) {
  width: 28%;
}

.offence-results-table th:nth-child(3),
.offence-results-table td:nth-child(3) {
  width: 20%;
}

.offence-results-table th:nth-child(4),
.offence-results-table td:nth-child(4) {
  width: 18%;
}

.offence-results-table th:nth-child(5),
.offence-results-table td:nth-child(5) {
  width: 24%;
}

.offence-results-table th:nth-child(6),
.offence-results-table td:nth-child(6) {
  width: 10%;
}

.bail-record-view {
  gap: 6px;
}

.bail-record-view .case-header-card {
  min-height: 150px;
}

.bail-information-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  padding: 8px 0 10px;
}

.bail-left-stack,
.bail-right-stack,
.bail-surety-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bail-info-panel {
  padding: 18px 20px 20px;
}

.bail-single-form-grid {
  display: block;
  grid-template-columns: 1fr;
}

.bail-single-form-grid .record-form-column,
.bail-single-form-grid .person-field-list {
  width: 100%;
}

.bail-field {
  grid-template-columns: 185px minmax(0, 1fr);
}

.bail-field .person-field-value {
  width: 100%;
}

.bail-conditions-field,
.bail-surety-wide {
  align-items: start;
}

.bail-record-view .person-field-value.bail-conditions-value,
.bail-record-view .person-field-value.bail-surety-address-value {
  min-height: 118px;
  align-items: flex-start;
  padding-top: 8px;
  white-space: normal;
}

.bail-record-view .person-field-value.bail-conditions-value > span:first-child:not(.lookup-token),
.bail-record-view .person-field-value.bail-surety-address-value > span:first-child:not(.lookup-token) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 22px;
}

.bail-two-column-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.bail-surety-summary-panel .bail-field {
  grid-template-columns: 185px minmax(0, 1fr);
}

.bail-history-panel {
  min-height: 330px;
}

.bail-history-grid {
  min-width: 560px;
}

.bail-history-grid th:nth-child(4),
.bail-history-grid td:nth-child(4) {
  width: 50px;
  text-align: center;
}

.bail-comments-panel {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
}

.bail-comments-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.bail-comments-toolbar h2 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.bookmark-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #605e5c;
}

.bookmark-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 10px;
  height: 14px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.bookmark-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.bail-timeline-search {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #f3f2f1;
  color: #605e5c;
  font-size: 14px;
}

.bail-timeline-search .search-small-icon {
  width: 20px;
  height: 20px;
  color: #323130;
}

.bail-comments-empty {
  flex: 1;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  color: #323130;
}

.bail-comments-empty strong {
  font-size: 20px;
  line-height: 26px;
}

.bail-comments-empty span {
  color: #605e5c;
  font-size: 14px;
}

.bail-surety-stack {
  padding: 8px 0 12px;
}

.bail-surety-panel {
  padding: 18px 20px 22px;
}

.bail-surety-panel h2 {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.bail-surety-full-fields {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.bail-surety-panel .bail-field {
  grid-template-columns: 220px minmax(0, 1fr);
}

.bail-surety-inline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.bail-offences-cases-panel {
  min-height: 640px;
  padding: 16px 20px 20px;
}

.bail-offences-cases-panel .embedded-related-header {
  padding-top: 0;
}

.bail-offences-cases-panel .embedded-related-grid {
  min-width: 980px;
}

.bail-embedded-separator {
  height: 28px;
}

.bail-cases-grid {
  min-width: 680px;
}

@media (max-width: 1200px) {
  .bail-information-layout {
    grid-template-columns: 1fr;
  }

  .bail-surety-inline-grid,
  .bail-two-column-grid {
    grid-template-columns: 1fr;
  }
}

.case-related-table {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 14px 18px 12px;
}

.case-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  border-bottom: 1px solid #edebe9;
  padding-bottom: 8px;
}

.case-related-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.case-related-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.case-related-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.case-related-actions > span[hidden] {
  display: none;
}

.case-related-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #323130;
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
}

.case-related-action.is-icon-only {
  width: 32px;
  justify-content: center;
  padding: 0;
}

.case-related-action:hover,
.case-related-action:focus-visible {
  background: #f3f2f1;
  outline: 0;
}

.case-related-action[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 50;
  width: max-content;
  max-width: 360px;
  padding: 8px 10px;
  border: 1px solid #edebe9;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  color: #323130;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 120ms ease 650ms, transform 120ms ease 650ms;
}

.case-related-action[data-tooltip]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 51;
  width: 14px;
  height: 14px;
  border-right: 1px solid #edebe9;
  border-bottom: 1px solid #edebe9;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity 120ms ease 650ms;
}

.case-related-action[data-tooltip]:hover::before,
.case-related-action[data-tooltip]:hover::after,
.case-related-action[data-tooltip]:focus-visible::before,
.case-related-action[data-tooltip]:focus-visible::after {
  opacity: 1;
}

.case-related-action[data-tooltip]:hover::before,
.case-related-action[data-tooltip]:focus-visible::before {
  transform: translateX(-50%) translateY(0);
}

.case-related-table-wrap {
  flex: 1;
  overflow: auto;
}

.case-related-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.case-related-grid th,
.case-related-grid td {
  height: 50px;
  padding: 0 12px;
  border-bottom: 1px solid #edebe9;
  color: #323130;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-related-grid th {
  font-weight: 600;
}

.case-related-grid .select-col,
.case-related-grid th:first-child,
.case-related-grid td:first-child {
  width: 44px;
  padding-left: 10px;
  padding-right: 8px;
}

.case-related-grid a {
  color: var(--link-blue);
  text-decoration: none;
}

.case-related-grid a:hover {
  text-decoration: underline;
}

.case-related-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.case-related-grid tbody tr:hover td {
  background: #f3f2f1;
}

.case-related-grid tbody tr:hover td:hover {
  background: #dedede;
}

.case-related-grid tbody tr.is-selected td,
.case-related-grid tbody tr.is-selected:hover td {
  background: #e8f1fd;
}

.case-related-grid tbody tr.is-selected td:hover {
  background: #dbe8fb;
}

.case-related-grid .is-empty td {
  height: 96px;
  color: #605e5c;
  text-align: center;
}

.case-related-footer {
  border-top: 1px solid #edebe9;
  padding-top: 12px;
  color: #605e5c;
  font-size: 14px;
}

.select-nav-table {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 290px);
  background: #ffffff;
}

.select-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid #d8d8d8;
}

.select-nav-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.select-nav-actions > span[hidden] {
  display: none;
}

.select-nav-table-wrap {
  flex: 1;
  overflow: auto;
}

.select-nav-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.select-nav-grid th,
.select-nav-grid td {
  height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid #f3f2f1;
  color: #323130;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-nav-grid th.number-cell,
.select-nav-grid td.number-cell {
  text-align: right;
}

.select-nav-grid th {
  height: 40px;
  border-bottom-color: #d8d8d8;
  color: #8a8886;
  cursor: pointer;
  font-weight: 400;
}

.case-related-grid th[data-table-sort-column] {
  cursor: pointer;
}

.select-nav-grid th[data-table-sort-column]:focus-visible,
.case-related-grid th[data-table-sort-column]:focus-visible {
  outline: 2px solid #0f6cbd;
  outline-offset: -2px;
}

.sort-indicator {
  display: inline-block;
  min-width: 10px;
  color: #323130;
}

.select-nav-grid th:not(:last-child) {
  border-right: 1px solid #d8d8d8;
}

.select-nav-grid th > span:first-child {
  vertical-align: middle;
}

.select-nav-grid th .chevron {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  color: #8a8886;
  vertical-align: middle;
}

.select-nav-grid tbody tr:hover td {
  background: #e1dfdd;
}

.select-nav-grid tbody tr.is-selected td,
.select-nav-grid tbody tr.is-selected:hover td {
  background: #bdd7ee;
  color: #111111;
}

.select-nav-check-col {
  width: 34px;
  padding-left: 8px;
  padding-right: 6px;
  text-align: center;
}

.select-nav-check-col button,
.select-nav-open-col button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: default;
}

.select-nav-check-col button span,
.select-nav-open-col button span {
  opacity: 0;
}

.select-nav-grid tbody tr.is-selected .select-nav-check-col button span,
.select-nav-grid tbody tr.is-selected .select-nav-open-col button span {
  opacity: 1;
}

.select-nav-lock {
  display: none;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  color: #000000;
  vertical-align: -2px;
}

.select-nav-grid tbody tr:not(.is-selected) .select-nav-lock {
  display: none !important;
}

.select-nav-grid tbody tr.is-selected .select-nav-lock {
  display: inline-block;
}

.select-nav-error-icon {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  color: #c50f1f;
  vertical-align: -3px;
}

.select-nav-grid td.is-editable {
  cursor: text;
}

.select-nav-cell-value {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.select-nav-grid td.number-cell .select-nav-cell-value {
  text-align: right;
}

.select-nav-grid td.is-editable .select-nav-cell-value {
  display: block;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid transparent;
  outline: 0;
}

.select-nav-grid td.has-validation-error .select-nav-cell-value {
  width: calc(100% - 24px);
  color: #111111;
}

.select-nav-grid td.number-cell.has-validation-error {
  text-align: left;
}

.select-nav-grid td.number-cell.has-validation-error .select-nav-cell-value {
  display: inline-block;
  text-align: right;
}

.select-nav-grid tbody tr.is-selected td.is-editable .select-nav-cell-value:focus {
  background: #ffffff;
  border-color: #0f6cbd;
  box-shadow: 0 0 0 1px #0f6cbd;
}

.select-nav-open-col {
  width: 42px;
  padding-left: 4px;
  padding-right: 6px;
  text-align: center;
}

.select-nav-open-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: currentColor;
  mask-image: url("../icons/fluent/arrow_left_20_regular.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("../icons/fluent/arrow_left_20_regular.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  transform: rotate(180deg);
}

.select-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 20px;
  border-top: 1px solid #edebe9;
  color: #605e5c;
  font-size: 14px;
}

.select-nav-pager {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.filing-offence-select-panel .filing-offences-grid th:nth-child(2),
.filing-offence-select-panel .filing-offences-grid td:nth-child(2) {
  width: 190px;
}

.filing-offence-select-panel .filing-offences-grid th:nth-child(3),
.filing-offence-select-panel .filing-offences-grid td:nth-child(3) {
  width: 90px;
}

.filing-offence-select-panel .filing-offences-grid th:nth-child(4),
.filing-offence-select-panel .filing-offences-grid td:nth-child(4),
.filing-offence-select-panel .filing-offences-grid th:nth-child(5),
.filing-offence-select-panel .filing-offences-grid td:nth-child(5) {
  width: 260px;
}

.filing-offence-select-panel .filing-offences-grid th:nth-child(6),
.filing-offence-select-panel .filing-offences-grid td:nth-child(6),
.filing-offence-select-panel .filing-offences-grid th:nth-child(7),
.filing-offence-select-panel .filing-offences-grid td:nth-child(7) {
  width: 220px;
}

.record-side-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.48);
}

.record-side-drawer {
  width: min(820px, 42vw);
  min-width: 620px;
  height: 100vh;
  overflow-y: auto;
  background: #f8f8f8;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.24);
}

.record-side-drawer-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid #edebe9;
  background: #ffffff;
}

.record-side-drawer-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.record-side-drawer-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.drawer-icon-button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #323130;
}

.drawer-icon-button:hover,
.drawer-icon-button:focus-visible,
.drawer-ribbon-button:hover,
.drawer-ribbon-button:focus-visible {
  background: #f3f2f1;
  outline: 0;
}

.drawer-icon-button.close-icon::before {
  content: "×";
  font-size: 26px;
  line-height: 1;
  color: #605e5c;
}

.record-side-drawer-ribbon {
  min-height: 52px;
  margin: 10px 20px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border: 1px solid #edebe9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.drawer-ribbon-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #323130;
  font: inherit;
  font-size: 14px;
}

.drawer-ribbon-button.is-icon-only {
  width: 34px;
  justify-content: center;
}

.drawer-ribbon-separator {
  width: 1px;
  height: 32px;
  background: #d2d0ce;
}

.new-offence-record-card {
  margin: 0 20px 14px;
  padding: 22px 24px 0;
}

.new-offence-record-card h3 {
  margin: 0;
  color: #242424;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.new-offence-record-card h3 span,
.new-offence-record-card p {
  color: #605e5c;
  font-weight: 400;
}

.new-offence-record-card p {
  margin: 4px 0 20px;
  font-size: 14px;
  line-height: 20px;
}

.new-offence-record-card p strong {
  color: #323130;
  font-weight: 600;
}

.new-offence-record-card .record-tabs {
  margin-left: 0;
}

.new-offence-form-panel {
  margin: 0 20px 28px;
  padding: 28px 20px;
}

.new-offence-form-panel .person-field-list {
  gap: 22px;
}

.new-offence-field {
  grid-template-columns: 180px 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.new-offence-field .person-field-label {
  padding-top: 9px;
  font-size: 16px;
}

.new-offence-field .record-field-lock {
  margin-top: 10px;
  color: #323130;
}

.new-offence-field .person-field-value,
.new-offence-input,
.new-offence-textarea {
  grid-column: 3;
}

.new-offence-field:not(:has(.record-field-lock)) .person-field-value,
.new-offence-field:not(:has(.record-field-lock)) .new-offence-input,
.new-offence-field:not(:has(.record-field-lock)) .new-offence-textarea {
  grid-column: 3;
}

.new-offence-input,
.new-offence-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  background: #f3f2f1;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
}

.new-offence-input {
  height: 40px;
}

.new-offence-textarea {
  min-height: 64px;
  padding-top: 9px;
  resize: vertical;
}

.new-offence-textarea.is-large {
  min-height: 128px;
}

.new-offence-input:focus,
.new-offence-textarea:focus,
.new-offence-category-control.is-active {
  border-bottom-color: var(--power-blue);
  box-shadow: inset 0 -2px 0 var(--power-blue);
  outline: 0;
}

.new-offence-category-control {
  width: 100%;
  font: inherit;
  text-align: left;
}

.new-offence-category-control > span:first-child {
  min-width: 0;
}

.new-offence-category-control .lookup-token {
  max-width: none;
}

.new-offence-category-field {
  position: relative;
}

.new-offence-category-flyout {
  left: 216px;
  right: 0;
  top: calc(100% - 1px);
  z-index: 280;
  max-height: 460px;
}

.new-offence-category-flyout .record-lookup-list {
  max-height: 354px;
}

.new-offence-category-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
}

.new-offence-category-option:hover,
.new-offence-category-option:focus-visible {
  background: #f3f2f1;
  outline: 0;
}

.new-offence-category-option .puzzle-icon {
  margin-top: 4px;
}

.new-offence-category-flyout footer .search-small-icon {
  width: 24px;
  height: 24px;
  background: currentColor;
}

@media (max-width: 1280px) {
  .record-side-drawer {
    width: min(860px, 62vw);
  }
}

@media (max-width: 900px) {
  .record-side-drawer {
    width: 100vw;
    min-width: 0;
  }

  .new-offence-field {
    grid-template-columns: 1fr;
  }

  .new-offence-field .record-field-lock,
  .new-offence-field .person-field-value,
  .new-offence-input,
  .new-offence-textarea {
    grid-column: 1;
  }

  .new-offence-category-flyout {
    left: 0;
  }
}

/* ── Filings tab layout ─────────────────────────────────── */
.case-filings-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  overflow-y: auto;
  padding: 8px 0 0;
  box-sizing: border-box;
}

.case-filing-panel {
  margin-bottom: 16px;
}

.case-filing-panel .case-related-header h2 {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Ensure the filing grid inherits the related table styles */
.filing-grid {
  width: 100%;
  table-layout: auto;
}

.filing-grid th,
.filing-grid td {
  white-space: nowrap;
}

.filing-grid .number-cell {
  text-align: right;
}

.offences-grid {
  min-width: 1420px;
}

.offences-grid th:nth-child(2),
.offences-grid td:nth-child(2) {
  width: 150px;
}

.offences-grid th:nth-child(3),
.offences-grid td:nth-child(3) {
  width: 90px;
}

.offences-grid th:nth-child(4),
.offences-grid td:nth-child(4) {
  width: 140px;
}

.offences-grid th:nth-child(5),
.offences-grid td:nth-child(5) {
  width: 180px;
}

.offences-grid th:nth-child(6),
.offences-grid td:nth-child(6),
.offences-grid th:nth-child(7),
.offences-grid td:nth-child(7) {
  width: 190px;
}

.offences-grid th:nth-child(8),
.offences-grid td:nth-child(8) {
  width: 170px;
}

.offences-grid th:nth-child(9),
.offences-grid td:nth-child(9) {
  width: 160px;
}

.offences-grid th:nth-child(10),
.offences-grid td:nth-child(10),
.offences-grid th:nth-child(11),
.offences-grid td:nth-child(11) {
  width: 130px;
}

.bail-grid {
  min-width: 1180px;
}

.listings-grid {
  min-width: 1450px;
}

.activities-grid {
  min-width: 1280px;
}

.legal-aid-grid {
  min-width: 1220px;
}

/* Sort indicator for filing panels */
.sort-asc::after {
  content: " ↑";
  font-size: 10px;
  color: #605e5c;
}

/* ── Outcomes tab layout ─────────────────────────────────── */
.case-outcomes-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 24px;
  box-sizing: border-box;
}

.case-outcome-panel {
  min-height: 300px;
}

.case-outcome-panel:first-child {
  min-height: 400px;
}

.outcome-grid {
  min-width: 1080px;
}

.outcome-grid th:nth-child(2),
.outcome-grid td:nth-child(2) {
  width: 20%;
}

.outcome-grid th:nth-child(3),
.outcome-grid td:nth-child(3) {
  width: 18%;
}

.outcome-grid th:nth-child(4),
.outcome-grid td:nth-child(4) {
  width: 17%;
}

.outcome-grid th:nth-child(5),
.outcome-grid td:nth-child(5) {
  width: 16%;
}

.outcome-grid th:nth-child(6),
.outcome-grid td:nth-child(6) {
  width: 15%;
}

.outcome-grid th:nth-child(7),
.outcome-grid td:nth-child(7) {
  width: 18%;
}

/* ── Legal Aid tab ──────────────────────────────────────── */
.legal-aid-panel .offences-header {
  justify-content: flex-end;
}

.legal-aid-table th:first-child {
  width: 32px;
}

/* ── Person record form layout ───────────────────────────────────── */
.person-record-view {
  min-height: 0;
}

.person-record-view .case-header-card {
  padding: 22px 28px 0;
}

.person-record-view .case-head-main h1 {
  font-size: 25px;
}

.person-record-view .case-head-meta {
  align-items: flex-start;
  padding-top: 10px;
}

.person-record-view .case-head-meta div + div {
  border-left: 1px solid #edebe9;
  padding-left: 18px;
}

.person-general-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(420px, 1fr);
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 0 28px;
  box-sizing: border-box;
  align-items: start;
}

.person-form-panel {
  padding: 14px 20px 20px;
}

.person-address-panel {
  margin-top: 0;
}

.person-form-panel h2 {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.person-field-list {
  display: grid;
  gap: 16px;
}

.record-form-panel {
  padding: 18px 20px;
}

.record-form-panel h2 {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.record-form-grid {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(460px, 1fr);
  gap: 28px;
  align-items: start;
}

.record-form-column {
  min-width: 0;
}

/* Offence left panel must use single full-width form column */
.offence-left-panel .record-form-grid.offence-left-form-grid {
  display: block;
  grid-template-columns: 1fr;
}

.offence-left-panel .record-form-grid.offence-left-form-grid .record-form-column,
.offence-left-panel .record-form-grid.offence-left-form-grid .person-field-list {
  width: 100%;
}

.person-field {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.person-field-label {
  position: relative;
  color: #323130;
  font-size: 16px;
  line-height: 22px;
}

.record-required {
  position: absolute;
  right: -10px;
  color: #a4262c;
}

.person-field-value {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #f3f2f1;
  color: #323130;
  font-size: 16px;
  line-height: 22px;
}

.person-field-value.is-interactive {
  cursor: pointer;
}

.person-field-value.is-active {
  border-bottom-color: var(--power-blue);
  box-shadow: inset 0 -2px 0 var(--power-blue);
}

.person-field-value.is-muted {
  color: #8a8886;
}

.person-field-value > span:first-child:not(.lookup-token) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-field-value .field-trailing-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-left: auto;
  color: #605e5c;
  background: currentColor;
  border: 0;
  border-radius: 0;
  opacity: 1;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 22px 22px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 22px 22px;
}

.person-field-value .field-trailing-icon.search-small-icon {
  mask-image: url("../icons/fluent/search_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/search_20_regular.svg");
}

.person-field-value .field-trailing-icon.calendar-icon {
  mask-image: url("../icons/fluent/calendar_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/calendar_20_regular.svg");
}

.person-field-value .field-trailing-icon.chevron {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  mask-image: url("../icons/fluent/chevron_down_20_regular.svg");
  -webkit-mask-image: url("../icons/fluent/chevron_down_20_regular.svg");
}

.person-field-value .field-trailing-icon::before,
.person-field-value .field-trailing-icon::after {
  display: none;
  content: none;
}

.person-lookup-value {
  justify-content: space-between;
}

.lookup-token {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 70%;
  padding: 4px 8px;
  border-radius: 3px;
  background: #eaf3ff;
}

.lookup-token:hover,
.lookup-token.is-chip-active {
  background: #d8ebff;
}

.lookup-token[data-token]:hover::after {
  content: attr(data-token);
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  z-index: 80;
  padding: 5px 9px;
  border: 1px solid #c8c6c4;
  border-radius: 2px;
  background: #f3f2f1;
  color: #323130;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.lookup-token a {
  color: var(--link-blue);
  text-decoration: underline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-token button {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--link-blue);
  font-size: 18px;
  line-height: 1;
}

.lookup-token-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--power-blue);
}

.person-toggle-field {
  align-items: center;
}

.person-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #323130;
  font-size: 16px;
  line-height: 22px;
}

.person-toggle {
  width: 48px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid #605e5c;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

.person-toggle span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #605e5c;
}

.person-toggle.is-on {
  justify-content: flex-end;
  border-color: var(--power-blue);
  background: var(--power-blue);
}

.person-toggle.is-on span {
  background: #fff;
}

.record-dropdown,
.record-datepicker,
.record-lookup-flyout {
  position: absolute;
  left: 216px;
  right: 0;
  top: calc(100% - 1px);
  z-index: 60;
  border: 1px solid #e1dfdd;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.record-dropdown {
  padding: 4px;
}

.record-dropdown-option {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: #323130;
  font: inherit;
  font-size: 16px;
  text-align: left;
}

.record-dropdown-option:hover {
  background: #f3f2f1;
}

.record-dropdown-option:focus-visible {
  outline: 2px solid #323130;
  outline-offset: -2px;
}

.record-option-check {
  text-align: center;
  font-size: 20px;
}

.record-datepicker {
  width: 560px;
  left: 216px;
  right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 22px;
}

.record-calendar-month {
  padding-right: 24px;
  border-right: 1px solid #d2d0ce;
}

.record-calendar-year {
  padding-left: 24px;
}

.record-datepicker header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.record-datepicker header strong {
  margin-right: auto;
  font-size: 18px;
  line-height: 24px;
}

.record-datepicker header span {
  color: #605e5c;
  font-size: 18px;
}

.record-weekdays,
.record-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.record-weekdays {
  margin-bottom: 10px;
  color: #323130;
  font-size: 15px;
}

.record-days button,
.record-calendar-year button {
  min-height: 30px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #323130;
  font: inherit;
}

.record-days button.is-muted {
  color: #8a8886;
}

.record-days button.is-selected {
  background: #cfe4fa;
}

.record-calendar-year div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px 28px;
}

.record-calendar-year button {
  color: #605e5c;
  font-size: 15px;
}

.record-lookup-flyout {
  max-height: 392px;
  overflow: hidden;
}

.record-lookup-title {
  margin: 8px;
  padding: 12px;
  border-radius: 4px;
  background: #faf9f8;
  font-size: 17px;
  font-weight: 600;
}

.record-lookup-list {
  max-height: 286px;
  overflow-y: auto;
  padding: 0 8px;
}

.record-lookup-row {
  display: grid;
  grid-template-columns: 28px 1fr 32px;
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 4px;
}

.record-lookup-row:hover {
  background: #f3f2f1;
}

.record-lookup-row strong,
.record-lookup-row span,
.record-lookup-row em {
  display: block;
}

.record-lookup-row strong {
  font-size: 17px;
  font-weight: 400;
}

.record-lookup-row span,
.record-lookup-row em {
  color: #605e5c;
  font-size: 14px;
  font-style: normal;
}

.record-lookup-row em {
  display: none;
}

.record-lookup-row.is-expanded em {
  display: block;
}

.record-lookup-row.is-expanded button .chevron {
  transform: rotate(180deg);
}

.record-lookup-row button {
  border: 0;
  background: transparent;
  color: #323130;
}

.record-lookup-flyout footer {
  min-height: 54px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 28px;
  border-top: 1px solid #d2d0ce;
}

.record-lookup-flyout footer button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #323130;
  font-size: 16px;
  text-decoration: underline;
}

.record-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.record-lookup-modal {
  width: min(1760px, calc(100vw - 56px));
  height: min(980px, calc(100vh - 56px));
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

.record-lookup-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 8px;
}

.record-lookup-modal h2 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
}

.record-lookup-modal > header button {
  border: 0;
  background: transparent;
  color: #605e5c;
  font-size: 22px;
}

.record-lookup-search {
  width: 420px;
  height: 34px;
  margin: 12px 22px 18px;
  border: 1px solid var(--power-blue);
  box-shadow: inset 0 0 0 1px var(--power-blue);
  padding: 0 10px;
  font: inherit;
}

.record-lookup-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 8px;
}

.record-lookup-viewbar button,
.record-lookup-viewbar label {
  border: 0;
  background: transparent;
  color: #323130;
  font-size: 14px;
}

.record-lookup-viewbar label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.record-lookup-viewbar input {
  width: 18px;
  height: 18px;
}

.record-lookup-table-wrap {
  flex: 1;
  overflow: auto;
  border-top: 1px solid #edebe9;
}

.record-lookup-table th:first-child,
.record-lookup-table td:first-child {
  width: 42px;
}

.record-lookup-table input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  border: 1.5px solid #323130;
  border-radius: 50%;
  background: #fff;
}

.record-lookup-table a {
  color: var(--link-blue);
  text-decoration: none;
}

.record-lookup-modal > footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-top: 1px solid #edebe9;
}

.record-lookup-modal > footer div {
  display: flex;
  gap: 10px;
}

.record-lookup-modal > footer button {
  min-width: 78px;
  height: 34px;
  border: 1px solid #d2d0ce;
  background: #fff;
  color: #323130;
  font-weight: 600;
}

.record-lookup-modal > footer .primary-button {
  border-color: var(--power-blue);
  background: var(--power-blue);
  color: #fff;
}

.new-filing-backdrop {
  place-items: start center;
  padding: 36px 18px;
}

.new-filing-modal {
  width: min(1500px, calc(100vw - 96px));
  min-height: min(900px, calc(100vh - 72px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 28px;
  border-radius: 8px;
  background: #f3f2f1;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.new-filing-modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin: 0;
  padding: 0 24px;
  border-bottom: 1px solid #e1dfdd;
  background: #fff;
}

.new-filing-modal-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.new-filing-modal-title div {
  display: flex;
  gap: 10px;
}

.modal-icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #605e5c;
  font-size: 28px;
}

.modal-icon-button:hover,
.modal-icon-button:focus-visible {
  background: #f3f2f1;
}

.new-filing-ribbon {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin: 0 20px;
  padding: 10px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
}

.new-filing-ribbon .command {
  min-height: 32px;
  gap: 8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #323130;
  font-size: 14px;
  line-height: 20px;
}

.new-filing-ribbon .command.icon-only {
  min-width: 32px;
  justify-content: center;
}

.new-filing-ribbon .command span {
  flex: 0 0 auto;
}

.new-filing-ribbon .command:hover,
.new-filing-ribbon .command:focus-visible {
  background: #f3f2f1;
  outline: 0;
}

.new-filing-ribbon .command-separator {
  height: 36px;
}

.filing-confirm-dialog {
  width: min(500px, calc(100vw - 48px));
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.filing-confirm-dialog header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.filing-confirm-dialog h2 {
  margin: 0;
  color: #323130;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.filing-confirm-dialog p {
  margin: 0;
  padding: 8px 24px 46px;
  color: #323130;
  font-size: 16px;
  line-height: 24px;
}

.filing-confirm-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 24px 28px;
}

.filing-confirm-dialog footer button {
  min-width: 104px;
  min-height: 36px;
  border: 1px solid #d2d0ce;
  border-radius: 3px;
  background: #fff;
  color: #323130;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.filing-confirm-dialog footer .primary-button {
  border-color: #0f6cbd;
  background: #0f6cbd;
  color: #fff;
}

.filing-confirm-dialog footer button:hover,
.filing-confirm-dialog footer button:focus-visible {
  filter: brightness(0.96);
}

.indictment-create-dialog {
  width: min(560px, calc(100vw - 48px));
}

.indictment-create-body {
  display: grid;
  gap: 12px;
  padding: 6px 24px 34px;
}

.indictment-create-body p,
.indictment-paste-body p {
  margin: 0;
  padding: 0;
}

.indictment-method-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #d2d0ce;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.indictment-method-card.is-selected {
  border-color: var(--power-blue);
  box-shadow: inset 0 0 0 1px var(--power-blue);
}

.indictment-method-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.indictment-method-card span {
  display: grid;
  gap: 3px;
}

.indictment-method-card strong {
  color: #323130;
  font-size: 15px;
  line-height: 20px;
}

.indictment-method-card small {
  color: #605e5c;
  font-size: 14px;
  line-height: 20px;
}

.indictment-paste-dialog {
  width: min(860px, calc(100vw - 64px));
}

.indictment-paste-body {
  display: grid;
  gap: 18px;
  padding: 6px 24px 24px;
}

.indictment-paste-textarea {
  width: 100%;
  min-height: 360px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #8a8886;
  border-radius: 3px;
  color: #323130;
  font: inherit;
  line-height: 22px;
}

.indictment-validation-message {
  color: #a4262c;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.indictment-upload-dropzone {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border: 2px dashed #8a8886;
  border-radius: 6px;
  background: #faf9f8;
  color: #323130;
  text-align: center;
  cursor: pointer;
}

.indictment-upload-dropzone.is-dragging,
.indictment-upload-dropzone:focus-within,
.indictment-upload-dropzone:hover {
  border-color: var(--power-blue);
  background: #eff6fc;
}

.indictment-upload-dropzone strong {
  font-size: 18px;
  line-height: 24px;
}

.indictment-upload-dropzone span,
.indictment-upload-dropzone small {
  color: #605e5c;
  font-size: 14px;
  line-height: 20px;
}

.indictment-preview-backdrop {
  z-index: 240;
  place-items: center;
}

.indictment-preview-modal {
  width: min(1120px, calc(100vw - 80px));
  max-height: min(900px, calc(100vh - 72px));
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.indictment-preview-drawer {
  width: min(760px, 42vw);
  min-width: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.indictment-preview-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid #edebe9;
  background: #fff;
}

.indictment-preview-header h2 {
  margin: 0;
  color: #323130;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.indictment-preview-toggle {
  border: 0;
  background: transparent;
  color: #605e5c;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 18px;
  text-decoration: underline;
}

.indictment-preview-toggle:hover,
.indictment-preview-toggle:focus-visible {
  color: #323130;
  outline: 1px solid #c8c6c4;
  outline-offset: 2px;
}

.indictment-preview-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 26px;
  background: #faf9f8;
}

.indictment-jump-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.indictment-jump-control label {
  color: #323130;
  font-size: 14px;
  font-weight: 600;
}

.indictment-jump-control input {
  width: 88px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #8a8886;
  border-radius: 3px;
  background: #fff;
  color: #323130;
}

.indictment-accordion-list {
  display: grid;
  gap: 10px;
}

.indictment-count-accordion {
  border: 1px solid #edebe9;
  border-radius: 6px;
  background: #fff;
}

.indictment-count-accordion h3 {
  margin: 0;
}

.indictment-count-accordion h3 button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #323130;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.indictment-count-accordion h3 button:hover,
.indictment-count-accordion h3 button:focus-visible {
  background: #f3f2f1;
  outline: 0;
}

.indictment-count-accordion h3 button .chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #605e5c;
  border-bottom: 2px solid #605e5c;
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

.indictment-count-accordion h3 button[aria-expanded="true"] .chevron {
  transform: rotate(225deg);
}

.indictment-count-panel {
  padding: 2px 16px 18px;
  border-top: 1px solid #edebe9;
}

.indictment-count-panel dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.indictment-count-panel dt {
  margin-top: 12px;
  color: #323130;
  font-size: 14px;
  font-weight: 600;
}

.indictment-count-panel dd {
  margin: 0;
  color: #323130;
  font-size: 14px;
  line-height: 21px;
}

.indictment-count-panel textarea,
.indictment-count-panel input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d2d0ce;
  border-radius: 3px;
  background: #fff;
  color: #323130;
  font: inherit;
  font-size: 14px;
  line-height: 21px;
}

.indictment-count-panel textarea {
  min-height: 92px;
  resize: vertical;
}

.indictment-count-panel input {
  min-height: 38px;
}

.indictment-count-panel textarea:focus,
.indictment-count-panel input:focus {
  border-color: var(--power-blue);
  outline: 1px solid var(--power-blue);
}

.indictment-preview-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 24px;
  border-top: 1px solid #edebe9;
  background: #fff;
}

.indictment-preview-footer button {
  min-width: 86px;
  min-height: 36px;
  border: 1px solid #d2d0ce;
  border-radius: 3px;
  background: #fff;
  color: #323130;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.indictment-preview-footer .primary-button {
  border-color: #0f6cbd;
  background: #0f6cbd;
  color: #fff;
}

.indictment-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 320;
  min-width: 240px;
  padding: 14px 18px;
  border-radius: 4px;
  background: #323130;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  font-size: 14px;
  line-height: 20px;
}

.new-filing-modal .record-header-card {
  flex: 0 0 auto;
  margin: 0 20px;
  padding: 20px 22px 0;
}

.new-filing-modal .case-head-main h1 {
  font-size: 22px;
  line-height: 30px;
}

.new-filing-modal .case-head-main > p {
  min-height: 18px;
}

.new-filing-modal .case-tab {
  padding-top: 26px;
}

.new-filing-form-panel {
  min-height: 360px;
  margin: 0 20px;
  padding: 18px 20px 24px;
}

.new-filing-form-grid {
  grid-template-columns: minmax(500px, 1fr) minmax(500px, 1fr);
  gap: 30px;
}

.new-filing-field {
  grid-template-columns: 210px minmax(0, 1fr);
}

.new-filing-field.is-locked .person-field-label::after {
  content: "";
  position: absolute;
  right: -32px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #605e5c;
  mask: url("../icons/fluent/lock_closed_20_regular.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/fluent/lock_closed_20_regular.svg") center / contain no-repeat;
}

.new-filing-note-field {
  align-items: start;
}

.new-filing-note-value {
  min-height: 118px;
  align-items: flex-start;
  padding-top: 10px;
}

.new-filing-note-value > span:first-child:not(.lookup-token) {
  white-space: normal;
}

.person-fines-grid,
.person-garda-grid,
.person-solicitor-grid {
  min-width: 920px;
}

.person-certs-grid {
  min-width: 1260px;
}

.person-certs-grid th:nth-child(2),
.person-certs-grid td:nth-child(2) {
  width: 180px;
}

.person-certs-grid th:nth-child(3),
.person-certs-grid td:nth-child(3) {
  width: 180px;
}

.person-certs-grid th:nth-child(4),
.person-certs-grid td:nth-child(4) {
  width: 150px;
}

.person-certs-grid th:nth-child(5),
.person-certs-grid td:nth-child(5) {
  width: 170px;
}

.person-certs-grid th:nth-child(6),
.person-certs-grid td:nth-child(6) {
  width: 150px;
}

.person-certs-grid th:nth-child(7),
.person-certs-grid td:nth-child(7) {
  width: 180px;
}

.person-certs-grid th:nth-child(8),
.person-certs-grid td:nth-child(8),
.person-certs-grid th:nth-child(9),
.person-certs-grid td:nth-child(9) {
  width: 140px;
}

.person-listings-grid,
.person-two-column-grid {
  min-width: 760px;
}

.person-listings-grid th:nth-child(2),
.person-listings-grid td:nth-child(2),
.person-two-column-grid th:nth-child(2),
.person-two-column-grid td:nth-child(2) {
  width: 70%;
}

.person-listings-grid th:nth-child(3),
.person-listings-grid td:nth-child(3),
.person-two-column-grid th:nth-child(3),
.person-two-column-grid td:nth-child(3) {
  width: 30%;
}

@media (max-width: 1100px) {
  .person-record-view .case-header-card {
    flex-direction: column;
  }

  .person-general-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .person-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .record-required {
    position: static;
    margin-left: 6px;
  }

  .record-dropdown,
  .record-datepicker,
  .record-lookup-flyout {
    left: 0;
    right: 0;
  }

  .record-datepicker {
    width: auto;
    grid-template-columns: 1fr;
  }

  .record-calendar-month {
    padding-right: 0;
    border-right: 0;
  }

  .record-calendar-year {
    display: none;
  }

  .record-modal-backdrop {
    padding: 6px;
  }

  .record-lookup-modal {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }
}

/* ── Order record page ──────────────────────────────────── */
.order-general-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 24px;
  box-sizing: border-box;
}

.order-form-panel {
  padding: 16px 20px 20px;
}

.order-field-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.order-textarea-field {
  align-items: flex-start;
}

.order-textarea-wrap {
  width: 100%;
  min-height: 72px;
  border: 1px solid #d2d0ce;
  border-radius: 4px;
  background: #faf9f8;
  padding: 8px 10px;
  box-sizing: border-box;
}

.order-textarea-value {
  font-size: 13px;
  color: #605e5c;
}

/* Document panel */
.order-doc-panel {
  padding: 14px 20px 16px;
}

.order-doc-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.order-doc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #edebe9;
}

.order-doc-label {
  font-size: 13px;
  color: #323130;
  min-width: 100px;
}

.order-doc-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #605e5c;
}

.order-doc-link {
  font-size: 13px;
  color: var(--link-blue);
  text-decoration: none;
  flex: 1;
}

.order-doc-link:hover {
  text-decoration: underline;
}

.order-doc-download {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--link-blue);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ── Legal Aid Cert record ──────────────────────────────── */

/* Lock icon — small padlock shape */
.lock-icon,
.la-lock {
  display: inline-flex;
  justify-self: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #8a8886;
  background: currentColor;
  mask: url("../icons/fluent/lock_closed_20_regular.svg") center / 16px 16px no-repeat;
  -webkit-mask: url("../icons/fluent/lock_closed_20_regular.svg") center / 16px 16px no-repeat;
}

.la-lock::before {
  display: none;
  content: none;
}

.la-lock::after {
  display: none;
  content: none;
}

.select-nav-grid .select-nav-lock {
  color: #000000;
}

/* Scrollable stack for cert general/practitioner tabs and filing tabs */
.la-cert-general-stack,
.la-cert-practitioner-stack,
.filing-general-stack,
.filing-persons-stack,
.filing-legal-aid-stack {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filing-general-panel {
  min-height: 254px;
}

.filing-general-grid {
  gap: 28px;
}

.filing-form-field {
  grid-template-columns: 190px minmax(0, 1fr);
}

/* Form panel */
.la-cert-form-panel {
  padding: 0;
}

.la-cert-record-view .case-tab-stack {
  padding-top: 8px;
}

.la-cert-record-view .la-cert-form-panel {
  overflow: hidden;
}

.la-cert-form {
  display: flex;
  flex-direction: column;
}

/* Each field row: label | lock | value */
.la-cert-field {
  display: grid;
  grid-template-columns: 220px 28px 1fr;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid #f3f2f1;
  padding: 2px 16px 2px 12px;
  gap: 0;
}

.la-cert-field:last-child {
  border-bottom: none;
}

.la-cert-label {
  font-size: 13px;
  color: #323130;
  padding-right: 12px;
}

.la-cert-value {
  font-size: 13px;
  color: #323130;
  background: #faf9f8;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 4px 8px;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.la-cert-lookup {
  gap: 6px;
}

.la-cert-toggle {
  gap: 8px;
  background: transparent;
  border-color: transparent;
}

.la-cert-record-view .la-cert-field {
  grid-template-columns: 220px 28px minmax(0, 1fr);
  min-height: 36px;
  padding: 2px 16px 2px 12px;
  border-bottom: 1px solid #f3f2f1;
  column-gap: 0;
}

.la-cert-record-view .la-cert-label {
  font-size: 13px;
  line-height: 18px;
  padding-right: 12px;
}

.la-cert-record-view .la-cert-value {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 2px;
  background: #faf9f8;
  font-size: 13px;
  line-height: 18px;
}

.la-cert-record-view .la-cert-lookup {
  gap: 6px;
}

.la-cert-record-view .la-cert-lookup .search-small-icon {
  display: none;
}

.la-cert-record-view .lookup-token {
  max-width: 70%;
  padding: 3px 8px;
  background: #eaf3ff;
}

.la-cert-record-view .lookup-token:hover {
  background: #d8ebff;
}

.la-cert-record-view .lookup-token a {
  font-size: 13px;
  line-height: 18px;
}

.la-cert-record-view .lookup-token button {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.la-cert-record-view .person-toggle {
  width: 48px;
  height: 24px;
}

.la-cert-record-view .la-cert-toggle {
  background: transparent;
  color: #605e5c;
}

/* Attendance empty state — circular grid icon */
.la-attendance-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 12px;
}

.la-attendance-empty-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e1dfdd;
  background-image:
    linear-gradient(#c8c6c4 0 0),
    linear-gradient(#c8c6c4 0 0),
    linear-gradient(#c8c6c4 0 0),
    linear-gradient(#c8c6c4 0 0),
    linear-gradient(#c8c6c4 0 0),
    linear-gradient(#c8c6c4 0 0),
    linear-gradient(#c8c6c4 0 0),
    linear-gradient(#c8c6c4 0 0),
    linear-gradient(#c8c6c4 0 0);
  background-repeat: no-repeat;
  background-size: 12px 12px;
  background-position:
    14px 14px, 26px 14px, 38px 14px,
    14px 26px, 26px 26px, 38px 26px,
    14px 38px, 26px 38px, 38px 38px;
}

.la-attendance-empty p {
  margin: 0;
  font-size: 13px;
  color: #605e5c;
}

/* ── List page view selector dropdown ───────────────────── */
.view-selector {
  position: relative;
}

.view-selector .view-title {
  border-radius: 10px;
  background: #fff;
  padding: 10px 18px;
}

.view-selector .view-title:hover {
  background: #f3f2f1;
}

.view-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: min(620px, 78vw);
  background: #fff;
  border: 1px solid #e1dfdd;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  padding: 14px 10px 10px;
}

.view-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #605e5c;
  border-radius: 3px;
  background: #fff;
  padding: 8px 12px;
  margin: 0 12px 10px;
}

.view-search-wrap .search-icon {
  position: static;
  left: auto;
  top: auto;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 0;
  transform: none;
  pointer-events: none;
}

.view-search-wrap .search-icon::after {
  display: none;
}

.view-search-wrap input {
  border: 0;
  width: 100%;
  font-size: 18px;
  color: #605e5c;
  background: transparent;
  outline: none;
}

.view-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 360px;
  overflow: auto;
  width: 100%;
  padding: 2px 4px 0;
}

.view-option {
  border: 0;
  background: #fff;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 10px 8px;
  border-radius: 4px;
  font-size: 17px;
  line-height: 1.25;
  color: #323130;
}

.view-option:hover {
  background: #edebe9;
}

.view-option.is-selected {
  background: #fff;
}

.view-option-check {
  display: none;
}

.view-option-label {
  display: block;
  font-size: 17px;
  white-space: nowrap;
}

.view-option-meta {
  display: none;
}

.view-manage-row {
  border-top: 1px solid #d2d0ce;
  margin: 8px 4px 0;
  padding: 10px 8px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #323130;
  font-size: 17px;
}
