@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/c/assets/fonts/Poppins-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/c/assets/fonts/Poppins-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/c/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/c/assets/fonts/Poppins-Bold.ttf") format("truetype");
}

:root {
  --clr-bergus: #29656d;
  --clr-bergus-beige: #e4d0b7;
  --clr-bg: #f6f8f8;
  --clr-text: #172326;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-frame {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

a {
  color: var(--clr-bergus);
}

button,
.btn {
  display: inline-block;
  width: 100%;
  border: 1px solid rgba(41, 101, 109, 0.18);
  border-radius: 6px;
  padding: 0.63rem 1rem;
  background: var(--clr-bergus);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.12);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

button:hover,
.btn:hover {
  background: #245a61;
  border-color: rgba(36, 90, 97, 0.35);
  box-shadow: 0 2px 6px rgba(23, 35, 38, 0.14);
  transform: translateY(-1px);
}

button:disabled,
button:disabled:hover {
  background: #c9d3d5;
  border-color: rgba(102, 118, 121, 0.18);
  color: #667679;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.topheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  position: relative;
  z-index: 1;
  background: var(--clr-bergus);
  color: #fff;
  font-weight: 700;
}

.topheader a {
  color: #fff;
}

.brand {
  text-decoration: none;
}

.client-act-as {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateX(-50%);
  font-weight: 500;
}

.client-act-as select {
  width: auto;
  min-width: 13rem;
  margin: 0;
  padding: 0.35rem 2rem 0.35rem 0.6rem;
  border-color: rgba(255, 255, 255, 0.45);
  background-color: #fff;
  color: var(--clr-bergus);
}

.client-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.client-user a {
  font-weight: 600;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 800px);
  gap: 2rem;
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

@supports (height: 100dvh) {
  body,
  .page-frame {
    min-height: 100dvh;
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-delegated-away > :not(.sidebar-settings):not(script) {
  pointer-events: none;
  opacity: 0.38;
}

.sidebar a,
.sidebar button,
.sidebar summary {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(41, 101, 109, 0.14);
  border-radius: 7px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: #203236;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.06);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.sidebar-group {
  width: 100%;
}

.sidebar summary {
  list-style: none;
  cursor: pointer;
}

.sidebar summary::-webkit-details-marker {
  display: none;
}

.sidebar summary::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 140ms ease;
}

.sidebar-group[open] > summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.sidebar-submenu {
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem 0 0 0.85rem;
}

.sidebar .sidebar-submenu a {
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar .navigation-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--clr-bergus-beige);
  color: var(--clr-text);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(23, 35, 38, 0.2);
  pointer-events: none;
}

.sidebar a:hover,
.sidebar button:hover,
.sidebar summary:hover {
  background: #f1f7f7;
  border-color: rgba(41, 101, 109, 0.28);
  color: var(--clr-bergus);
  box-shadow: 0 2px 7px rgba(23, 35, 38, 0.08);
  transform: translateY(-1px);
}

.sidebar a.active,
.sidebar button.active,
.sidebar-group.active > summary {
  border-color: rgba(41, 101, 109, 0.32);
  background: #e9f3f3;
  color: var(--clr-bergus);
}

.sidebar button.sidebar-primary-action {
  border-color: rgba(41, 101, 109, 0.35);
  background: var(--clr-bergus);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.12);
}

.sidebar button.sidebar-primary-action:hover {
  background: #245a61;
  border-color: rgba(36, 90, 97, 0.35);
  color: #fff;
  box-shadow: 0 2px 6px rgba(23, 35, 38, 0.14);
}

.page {
  width: 100%;
  max-width: 800px;
  padding: 0;
}

.home-page {
  position: relative;
  /* padding: 2.5rem; */
  isolation: isolate;
}

.home-page-content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.home-status-list {
  display: grid;
  gap: 0.75rem;
}

.home-status-card,
.home-all-clear {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(41, 101, 109, 0.14);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 18px rgba(23, 35, 38, 0.08);
}

.home-status-card {
  color: inherit;
  text-decoration: none;
}

.home-status-card:hover {
  border-color: rgba(41, 101, 109, 0.34);
  box-shadow: 0 8px 22px rgba(23, 35, 38, 0.11);
}

.home-status-card strong {
  color: var(--clr-bergus-dark);
}

.home-status-card span,
.home-all-clear p {
  color: #516265;
}

.home-all-clear {
  position: relative;
  min-height: 7rem;
  overflow: hidden;
}

.home-all-clear p {
  position: relative;
  z-index: 1;
  margin: 2.8rem 0 0;
}

.home-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-confetti span {
  position: absolute;
  top: 0.75rem;
  width: 0.42rem;
  height: 0.78rem;
  border-radius: 1px;
  opacity: 0;
  animation: homeConfettiFall 5.7s ease-out forwards;
}

@keyframes homeConfettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -0.75rem, 0) rotate(0deg);
  }

  18% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-x), 5.4rem, 0) rotate(var(--confetti-r));
  }
}

.home-blob-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.home-blob {
  position: absolute;
  mix-blend-mode: multiply;
  filter: blur(1px);
  animation-name: homeBlobUndulate;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  transform-origin: center;
  will-change: transform, border-radius;
}

@keyframes homeBlobUndulate {
  0% {
    border-radius: 34% 66% 58% 42% / 38% 33% 67% 62%;
    transform: translate3d(0, 0, 0) rotate(var(--blob-rotate-start)) scale(1);
  }

  33% {
    border-radius: 68% 32% 41% 59% / 31% 64% 36% 69%;
    transform: translate3d(var(--blob-move-x-1), var(--blob-move-y-1), 0) rotate(calc(var(--blob-rotate-start) * 0.4)) scale(1.09);
  }

  66% {
    border-radius: 28% 72% 63% 37% / 66% 29% 71% 34%;
    transform: translate3d(var(--blob-move-x-2), var(--blob-move-y-2), 0) rotate(var(--blob-rotate-end)) scale(0.92);
  }

  100% {
    border-radius: 34% 66% 58% 42% / 38% 33% 67% 62%;
    transform: translate3d(0, 0, 0) rotate(var(--blob-rotate-start)) scale(1);
  }
}

.page h1 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.page p {
  margin: 0 0 1.2rem;
}

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

footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  background: var(--clr-bergus);
  color: #fff;
  font-size: 70%;
  line-height: 1.2;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0.55rem 0;
  color: inherit;
  font-weight: 300;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  font-weight: 300;
  text-decoration: none;
}

.fa-icon {
  width: 1rem;
  height: 1rem;
}

.notice {
  border: 1px solid rgba(41, 101, 109, 0.18);
  border-radius: 7px;
  padding: 0.75rem 0.85rem;
  background: #edf6f3;
  color: #1f5a43;
}

.notice-error {
  border-color: rgba(143, 63, 63, 0.24);
  background: #fbf0f0;
  color: #8f3f3f;
}

.form-panel {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.8rem 1rem;
  max-width: 560px;
}

.form-panel label {
  align-self: center;
  font-weight: 600;
}

.form-panel input,
.form-panel select,
.form-panel .ss-main {
  width: 100%;
  border: 1px solid rgba(41, 101, 109, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--clr-text);
  font: inherit;
  box-sizing: border-box;
}

.form-panel .ss-main {
  min-height: 2.8rem;
  padding: 0;
}

.form-panel button {
  grid-column: 2;
  max-width: 12rem;
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.table-tools-search,
.table-tools-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-tools label {
  font-weight: 700;
}

.table-tools input {
  width: min(14rem, 100%);
  border: 1px solid rgba(41, 101, 109, 0.25);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  background: #fff;
  color: var(--clr-text);
  font: inherit;
}

.table-tools button,
.tool-button {
  width: auto;
  padding: 0.6rem 0.85rem;
  background: #fff;
  color: var(--clr-bergus);
}

.tool-button {
  border: 1px solid rgba(41, 101, 109, 0.18);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.06);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.tool-button:hover {
  background: #f1f7f7;
  border-color: rgba(41, 101, 109, 0.28);
  box-shadow: 0 2px 7px rgba(23, 35, 38, 0.08);
  transform: translateY(-1px);
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.document-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(41, 101, 109, 0.14);
  border-radius: 7px;
  padding: 0.85rem;
  background: #fff;
  color: var(--clr-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.06);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.document-row:hover {
  background: #f7fbfb;
  border-color: rgba(41, 101, 109, 0.28);
  box-shadow: 0 2px 7px rgba(23, 35, 38, 0.08);
  transform: translateY(-1px);
}

.document-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.document-main {
  min-width: 0;
}

.document-title,
.document-description,
.document-meta span {
  display: block;
}

.document-title {
  overflow: hidden;
  color: var(--clr-bergus);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-description {
  margin-top: 0.2rem;
  color: #516265;
  font-size: 0.92rem;
}

.document-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: #667679;
  font-size: 0.86rem;
  text-align: right;
  white-space: nowrap;
}

.orders-view {
  display: grid;
  gap: 1rem;
}

.orders-view[hidden] {
  display: none;
}

.orders-intro p {
  margin-bottom: 0;
}

.orders-list {
  display: grid;
  gap: 1rem;
}

.order-card,
.order-empty {
  border: 1px solid rgba(41, 101, 109, 0.14);
  border-radius: 7px;
  padding: 0.95rem 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.06);
}

.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.order-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.order-card-subtitle {
  margin: 0.2rem 0 0;
  color: #667679;
  font-size: 0.88rem;
}

.order-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: #edf6f3;
  color: var(--clr-bergus);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.order-detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
}

.order-detail-list div {
  border-bottom: 1px solid rgba(41, 101, 109, 0.1);
  padding-bottom: 0.65rem;
}

.order-detail-list .order-detail-wide {
  grid-column: 1 / -1;
}

.order-detail-list dt {
  color: #667679;
  font-size: 0.82rem;
  font-weight: 700;
}

.order-detail-list dd {
  margin: 0.25rem 0 0;
}

.order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.order-card-actions button,
.order-card-actions .tool-button {
  width: auto;
}

.order-reply-action {
  border-color: rgba(41, 101, 109, 0.34);
}

.order-reply-action.active,
.order-reply-action.active:hover {
  border-color: var(--clr-bergus);
  background: var(--clr-bergus);
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.order-reply-panel {
  margin-top: 0.9rem;
}

.order-reply-panel label {
  display: block;
  color: #667679;
  font-size: 0.82rem;
  font-weight: 700;
}

.order-reply-panel textarea {
  width: 100%;
  min-height: 5.5rem;
  margin-top: 0.3rem;
  border: 1px solid rgba(41, 101, 109, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--clr-text);
  font: inherit;
  resize: vertical;
}

.orders-answered {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.orders-answered h2 {
  margin: 0;
  font-size: 0.95rem;
}

.orders-answered-list {
  display: grid;
  gap: 0.45rem;
}

.order-answered-card {
  display: grid;
  grid-template-columns: 6.2rem minmax(8rem, 12rem) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(41, 101, 109, 0.12);
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.04);
  font-size: 0.88rem;
}

.order-outgoing-card {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(41, 101, 109, 0.12);
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.04);
  font-size: 0.88rem;
}

.order-outgoing-line {
  display: grid;
  grid-template-columns: 6.2rem minmax(8rem, 12rem) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.order-outgoing-reply {
  display: grid;
  gap: 0.15rem;
  border-top: 1px solid rgba(41, 101, 109, 0.1);
  padding-top: 0.45rem;
  color: #516265;
}

.order-outgoing-reply strong {
  color: #667679;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.order-answered-date {
  color: #667679;
  white-space: nowrap;
}

.order-answered-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-answered-request {
  color: #516265;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-form-panel {
  max-width: none;
}

.order-form-panel label[for="order-reason"] {
  align-self: start;
  padding-top: 0.65rem;
}

.order-form-panel textarea {
  width: 100%;
  min-height: 8rem;
  border: 1px solid rgba(41, 101, 109, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--clr-text);
  font: inherit;
  resize: vertical;
}

.order-empty {
  display: grid;
  gap: 0.3rem;
  background: #f7fbfb;
  color: #516265;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(41, 101, 109, 0.14);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.06);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(41, 101, 109, 0.1);
  text-align: left;
}

.data-table th {
  background: #f1f7f7;
  color: #203236;
  font-weight: 700;
}

.sortable-table th {
  padding: 0;
}

.sortable-table th button {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  background: transparent;
  color: inherit;
  box-shadow: none;
  text-align: left;
  transform: none;
}

.sortable-table th button:hover {
  background: #e7f1f1;
  color: var(--clr-bergus);
  box-shadow: none;
  transform: none;
}

.sortable-table th button::after {
  content: "";
  float: right;
  color: #667679;
}

.sortable-table th button[data-sort="asc"]::after {
  content: "▼";
}

.sortable-table th button[data-sort="desc"]::after {
  content: "▲";
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 140ms ease;
}

.clickable-row:hover {
  background: #f7fbfb;
}

.clickable-row a {
  color: var(--clr-bergus);
  font-weight: 700;
  text-decoration: none;
}

.back-link {
  color: var(--clr-bergus);
  font-weight: 700;
  text-decoration: none;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.5rem;
}

.detail-list div {
  border-bottom: 1px solid rgba(41, 101, 109, 0.1);
  padding-bottom: 0.65rem;
}

.detail-list dt {
  color: #667679;
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-list dd {
  margin: 0.25rem 0 0;
}

.detail-note {
  border-left: 4px solid rgba(41, 101, 109, 0.45);
  border-radius: 0 6px 6px 0;
  padding: 0.8rem 1rem;
  background: #f7fbfb;
  margin: 0 0 1.5rem;
  color: #31474b;
}

.detail-note p {
  margin: 0;
  white-space: pre-wrap;
}

.message-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.message-search {
  margin: 0 0 1rem;
}

.message-search[hidden] {
  display: none;
}

.message-search input {
  width: 100%;
  border: 1px solid rgba(41, 101, 109, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--clr-text);
  box-sizing: border-box;
  font: inherit;
}

.delegation-panel {
  max-width: 44rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(41, 101, 109, 0.14);
  border-radius: 7px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.06);
}

.delegation-panel h2 {
  margin-top: 0;
}

.delegation-panel table {
  width: 100%;
}

.delegation-panel th {
  text-align: left;
}

.delegation-panel form:not(.form-panel) button {
  width: auto;
}

.message-form input[type="text"],
.message-form input[type="email"],
.message-form select,
.message-form textarea {
  width: 100%;
  border: 1px solid rgba(41, 101, 109, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--clr-text);
  box-sizing: border-box;
  font: inherit;
}

.message-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.message-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.message-form-actions button,
.message-card-actions button {
  width: auto;
}

.message-card-actions button {
  margin-left: auto;
  padding: 0.48rem 0.75rem;
}

.message-card-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.message-card-buttons form {
  margin: 0;
}

.message-card-buttons button {
  margin-left: 0;
}

.message-list-divider {
  height: 1px;
  margin: 1.75rem 0;
  background: rgba(41, 101, 109, 0.16);
}

.message-list {
  display: grid;
  gap: 0.85rem;
}

.message-thread {
  display: grid;
  gap: 0.55rem;
}

.message-thread[hidden] {
  display: none;
}

.message-card {
  position: relative;
  border: 1px solid rgba(41, 101, 109, 0.14);
  border-radius: 7px;
  padding: 0.9rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.06);
}

.message-card-unread::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  bottom: 0.85rem;
  left: -0.55rem;
  width: 4px;
  border-radius: 999px;
  background: var(--clr-bergus);
}

.message-card-out {
  background: #f7fbfb;
}

.message-card-reply {
  margin-left: 2.10rem;
}

.message-card-head,
.message-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.message-card-head {
  color: #667679;
  font-size: 0.86rem;
}

.message-card-subject {
  margin-top: 0.45rem;
  color: var(--clr-bergus);
  font-weight: 700;
}

.message-card-body {
  margin: 0.45rem 0 0;
  white-space: pre-wrap;
}

.message-card-actions {
  align-items: center;
  margin-top: 0.75rem;
}

.message-card-actions a {
  color: var(--clr-bergus);
  font-weight: 700;
  text-decoration: none;
}

.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.message-attachments-label {
  flex-basis: 100%;
  color: #667679;
  font-size: 0.72rem;
  font-weight: 600;
}

.message-attachments a {
  border: 1px solid rgba(41, 101, 109, 0.16);
  border-radius: 5px;
  padding: 0.28rem 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 35, 38, 0.04);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.message-attachments a:hover {
  background: #f1f7f7;
  border-color: rgba(41, 101, 109, 0.28);
  box-shadow: 0 2px 6px rgba(23, 35, 38, 0.08);
  transform: translateY(-1px);
}

.register-form {
  display: grid;
  gap: 0.65rem;
  width: min(100%, 28rem);
  text-align: left;
}

.register-form label {
  color: #516265;
  font-size: 0.9rem;
  font-weight: 700;
}

.register-form input {
  width: 100%;
  border: 1px solid rgba(41, 101, 109, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--clr-text);
  font: inherit;
}

.register-form input[readonly] {
  background: #eef4f4;
}

.register-form button {
  margin-top: 0.5rem;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
  text-align: center;
}

.login-panel h1,
.login-panel p {
  width: 100%;
}

.bankid-qr {
  width: 192px;
  height: 192px;
  margin: 0.95rem auto 0;
  background: #fff;
}

.bankid-frame {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 19rem);
  min-height: 20rem;
  margin: 0 auto;
  padding: 1.1rem;
  border: 1px solid #d7dde7;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.1);
  box-sizing: border-box;
}

.bankid-frame p {
  margin: 0;
  color: #263449;
  font-weight: 600;
  line-height: 1.45;
}

.login-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 22rem);
}

.qr-panel {
  width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

.page-action {
  width: auto;
}

@media (max-width: 760px) {
  .topheader,
  .client-user {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-act-as {
    position: static;
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    transform: none;
  }

  .client-act-as select {
    width: 100%;
  }

  .app-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .form-panel {
    grid-template-columns: 1fr;
  }

  .form-panel button {
    grid-column: 1;
  }

  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .table-tools-search,
  .table-tools-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .table-tools input,
  .table-tools button,
  .tool-button {
    width: 100%;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .order-card-head {
    flex-direction: column;
  }

  .order-detail-list {
    grid-template-columns: 1fr;
  }

  .order-answered-card,
  .order-outgoing-line {
    grid-template-columns: 1fr;
  }

  .message-form-actions,
  .message-card-head,
  .message-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .message-card-reply {
    margin-left: 0.85rem;
  }

  .document-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .document-meta {
    grid-column: 2;
    text-align: left;
  }
}
