:root {
  --ink: #17221f;
  --muted: #66726d;
  --line: #dfe6e2;
  --surface: #ffffff;
  --canvas: #f3f6f4;
  --green-950: #1b1c1c;
  --green-800: #282929;
  --green-700: #41423f;
  --green-100: #fff0d5;
  --lime: #f9a91d;
  --amber: #b96b18;
  --amber-bg: #fff3e2;
  --red: #b43838;
  --red-bg: #fdeaea;
  --paid: #236b49;
  --paid-bg: #ddf3e6;
  --paid-row: #ecf8f1;
  --blue: #315f9a;
  --blue-bg: #eaf1fa;
  --shadow: 0 18px 50px rgba(30, 59, 50, 0.08);
  --radius: 18px;
  --radius-sm: 11px;
}

.section-toolbar,
.filter-group,
.toolbar-actions {
  flex-wrap: wrap;
}

.status.status-pending {
  color: #8a5c0a;
  background: #fff3d8;
}

.invoice-report-summary.br-summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .invoice-report-summary.br-summary-strip {
    grid-template-columns: 1fr;
  }
}

/* Work queue: keep cards readable when the main area or device is narrow. */
.my-work-item {
  grid-template-columns:
    auto minmax(0, 1.5fr) minmax(145px, 0.9fr) 92px minmax(150px, auto);
  align-items: start;
}

.my-work-kind {
  align-self: start;
  white-space: nowrap;
}

.my-work-main strong {
  overflow-wrap: anywhere;
  white-space: normal;
}

.my-work-actions,
.my-work-assignee {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#view-home .dashboard-grid {
  grid-template-columns: 1fr;
}

.my-work-assignee select {
  min-width: 0;
  width: 100%;
  min-height: 38px;
}

@media (max-width: 900px) {
  .my-work-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .my-work-main {
    grid-column: 2 / -1;
  }

  .my-work-status {
    grid-column: 2 / -1;
  }

  .my-work-due {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }

  .my-work-actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: end;
  }
}

@media (max-width: 640px) {
  #view-home .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #view-home .kpi-card {
    min-width: 0;
    padding: 15px;
  }

  .my-work-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .my-work-kind {
    grid-column: 1;
    justify-self: start;
  }

  .my-work-main {
    grid-column: 1 / -1;
  }

  .my-work-status {
    grid-column: 1 / -1;
  }

  .my-work-due {
    grid-column: 2;
    grid-row: 1;
  }

  .my-work-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .my-work-actions .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  #view-home .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.email-connection-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf9;
}

.email-connection-card > div {
  display: grid;
  gap: 4px;
}

.email-connection-card small {
  color: var(--muted);
}

.client-address-copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faf9;
}

.client-address-copy-bar > div:first-child {
  display: grid;
  gap: 3px;
}

.client-address-copy-bar span {
  color: var(--muted);
  font-size: 10px;
}

.readiness-warning {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid #efd3a4;
  border-radius: 11px;
  color: #714610;
  background: #fff8ec;
  line-height: 1.65;
}

.readiness-warning.is-critical {
  border-color: #e5bbb6;
  color: #7b2525;
  background: #fff1f0;
}

@media (max-width: 640px) {
  .client-address-copy-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .client-address-copy-bar .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .email-connection-card {
    grid-template-columns: 1fr;
  }

  .email-connection-card .button {
    width: 100%;
  }
}

.my-work-panel {
  margin-bottom: 18px;
}

.my-work-list {
  display: grid;
  gap: 8px;
}

.my-work-item {
  display: grid;
  grid-template-columns: auto minmax(220px, 1.3fr) minmax(240px, 1fr) 115px auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.my-work-item:hover {
  border-color: #acc8bc;
  background: #f7faf8;
}

.my-work-item.is-overdue {
  border-color: #e7b7b2;
  background: #fff7f6;
}

.my-work-kind {
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--green-100);
  font-size: 9px;
  font-weight: 800;
}

.my-work-main,
.my-work-status,
.my-work-due {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.my-work-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-work-main small,
.my-work-status small,
.my-work-due small {
  color: var(--muted);
  font-size: 9px;
}

.my-work-due {
  text-align: right;
}

.br-client-matches {
  display: grid;
  gap: 8px;
}

.br-client-match {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
}

.br-client-match input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.br-client-match span {
  display: grid;
  gap: 3px;
}

.br-client-match small {
  color: var(--muted);
  font-size: 9px;
}

.company-form-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

@media (max-width: 900px) {
  .my-work-item {
    grid-template-columns: auto 1fr auto;
  }

  .my-work-status,
  .my-work-due {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .my-work-item {
    grid-template-columns: auto 1fr;
  }

  .my-work-status {
    grid-column: 1 / -1;
  }

  .my-work-due {
    grid-column: 1 / 2;
  }

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

.company-secretary-settings-panel {
  margin-top: 18px;
}

.company-secretary-preview {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #c8dccf;
  border-radius: 11px;
  background: #f1f8f4;
}

.company-secretary-preview span {
  color: var(--muted);
  font-size: 10px;
}

.former-record-group {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbfa;
}

.former-record-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
}

.former-record-group > summary::-webkit-details-marker {
  display: none;
}

.former-record-group > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.former-record-group > summary small {
  color: var(--muted);
  font-size: 9px;
}

.former-record-group[open] > summary {
  border-bottom: 1px solid var(--line);
}

.nar1-person.is-former {
  background: #faf7f2;
}

.stakeholder-card.is-former {
  border-color: #e3d6c4;
  background: #fffdf9;
}

.stakeholder-card.is-former > summary {
  color: #6d6255;
}

.stakeholder-card.is-current {
  border-color: #b8d4c7;
}

.scr-person-row.is-former {
  background: #faf7f2;
}

@media (max-width: 640px) {
  .former-record-group > summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.br-work-created {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid #c8dccf;
  border-radius: 12px;
  background: #f1f8f4;
}

.br-work-created > div {
  display: grid;
  gap: 4px;
}

.br-work-created span {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 640px) {
  .br-work-created {
    align-items: stretch;
    flex-direction: column;
  }
}

.section-toolbar,
.filter-group,
.toolbar-actions {
  flex-wrap: wrap;
}

.toolbar-actions .button,
.toolbar-actions a.button,
.bulk-action-group .button {
  white-space: nowrap;
}

.status-pending {
  color: #8a5c0a;
  background: #fff3d8;
}

.br-kpis {
  margin-bottom: 14px;
}

.br-summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.br-summary-strip span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf8;
  color: var(--muted);
  font-size: 11px;
}

.br-table {
  min-width: 1120px;
}

.br-row-actions {
  min-width: 190px;
}

.br-selected-client {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #bfd6cb;
  border-radius: 11px;
  background: #f3f8f5;
}

.br-selected-client span {
  color: var(--muted);
  font-size: 10px;
}

.br-drop-zone {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  border: 1px dashed #89ada0;
  border-radius: 13px;
  background: #f7faf8;
}

.br-drop-zone input {
  height: auto;
  min-height: 44px;
  padding: 10px;
  background: white;
}

.br-drop-zone small {
  color: var(--muted);
  line-height: 1.65;
}

.br-review-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7faf8;
}

.br-review-banner > div {
  display: grid;
  gap: 4px;
}

.br-review-banner span {
  color: var(--muted);
  font-size: 10px;
}

.br-invoice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.br-invoice-banner.is-issued {
  border-color: #b9dfcf;
  background: #f2fbf6;
}

.br-invoice-banner.is-missing {
  border-color: #f0d1a8;
  background: #fff9ef;
}

.br-invoice-banner > div {
  display: grid;
  gap: 4px;
}

.br-invoice-banner span {
  color: var(--muted);
  font-size: 10px;
}

.invoice-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.br-editor-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: 18px;
}

.br-document-panel,
.br-fields-panel {
  min-width: 0;
}

.br-document-panel {
  display: grid;
  gap: 10px;
}

.br-document-frame {
  width: 100%;
  min-height: 690px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.br-document-image {
  display: block;
  width: 100%;
  max-height: 690px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #eef2f0;
}

.br-fields-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
}

.ro-address-control {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 235px;
  align-items: stretch;
  gap: 10px;
}

.ro-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bfd6cb;
  border-radius: 11px;
  background: #f3f8f5;
  cursor: pointer;
}

.ro-switch input {
  appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: 46px;
  height: 26px;
  min-height: 26px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #b9c4be;
  transition: background 160ms ease;
}

.ro-switch input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 34, 28, 0.28);
  content: "";
  transition: transform 160ms ease;
}

.ro-switch input:checked {
  background: var(--green-800);
}

.ro-switch input:checked::after {
  transform: translateX(20px);
}

.ro-switch input:focus-visible {
  outline: 3px solid rgba(20, 112, 93, 0.18);
  outline-offset: 2px;
}

.ro-switch span {
  display: grid;
  gap: 3px;
}

.ro-switch small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.stakeholder-editor-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.stakeholder-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.stakeholder-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
}

.stakeholder-card > summary::-webkit-details-marker {
  display: none;
}

.stakeholder-card > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.stakeholder-card > summary small {
  color: var(--muted);
  font-size: 9px;
}

.stakeholder-card[open] > summary {
  border-bottom: 1px solid var(--line);
}

.stakeholder-summary-caret {
  color: var(--muted);
  font-size: 18px;
}

.stakeholder-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.stakeholder-flags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.remove-stakeholder {
  justify-self: start;
  color: #a44242;
}

.scr-person-list {
  border-top: 1px solid var(--line);
}

.scr-person-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px minmax(150px, 0.6fr);
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}

.scr-person-row:last-child {
  border-bottom: 0;
}

.scr-person-row > div {
  display: grid;
  gap: 2px;
}

.scr-person-row small,
.scr-person-row span {
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 1180px) and (min-width: 641px) {
  #view-invoices .section-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  #view-invoices .filter-group {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(130px, 0.7fr));
    align-items: end;
    width: 100%;
  }

  #view-invoices .toolbar-actions {
    justify-content: flex-end;
  }

  #view-invoices .search-box input {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .br-editor-layout,
  .ro-address-control {
    grid-template-columns: 1fr;
  }

  .br-document-frame,
  .br-document-image {
    min-height: 480px;
    max-height: 620px;
  }

  .br-summary-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .br-review-banner,
  .br-invoice-banner,
  .scr-person-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .br-review-banner {
    flex-direction: column;
  }

  .br-invoice-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .br-fields-panel {
    padding: 12px;
  }

  .br-document-frame,
  .br-document-image {
    min-height: 360px;
    max-height: 520px;
  }

  .stakeholder-flags {
    grid-template-columns: 1fr;
  }

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

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 280px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% -10%, rgba(185, 217, 139, 0.2), transparent 34rem),
    var(--canvas);
  font-family:
    "Segoe UI",
    "Noto Sans TC",
    "Microsoft JhengHei",
    sans-serif;
  font-size: 14px;
}

.login-screen {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 10%, rgba(249, 169, 29, 0.2), transparent 26rem),
    linear-gradient(145deg, #101211, #292b29 58%, #171917);
}

.login-screen[hidden] {
  display: none;
}

.login-card {
  width: min(410px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--ink);
  background: #f9fbfa;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.login-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  object-fit: contain;
}

.login-card h1 {
  margin-bottom: 9px;
  font-size: 28px;
}

.login-intro {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.login-card label {
  display: block;
  margin-top: 14px;
}

.login-card label > span {
  display: block;
  margin-bottom: 7px;
  color: #40504a;
  font-size: 11px;
  font-weight: 700;
}

.login-error {
  min-height: 18px;
  margin: 8px 0;
  color: var(--red);
  font-size: 11px;
}

.current-user {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 20px;
  color: #f2f7f4;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 35%),
    var(--green-950);
  overflow: hidden;
}

.sidebar::after {
  position: absolute;
  right: -95px;
  bottom: 24px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, 0.025),
    0 0 0 64px rgba(255, 255, 255, 0.018);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
}

.mobile-menu-button,
.mobile-nav-head,
.mobile-nav-scrim {
  display: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: grid;
  gap: 6px;
  min-height: 0;
  padding-right: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-section-label {
  margin: 13px 12px 2px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.nav-section-label:first-child {
  margin-top: 0;
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  list-style: none;
}

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

.nav-group summary::after {
  content: "+";
  font-size: 13px;
}

.nav-group[open] summary::after {
  content: "−";
}

.nav-group-items {
  display: grid;
  gap: 5px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.11);
}

.nav-item.active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 20px;
  border-radius: 4px;
  background: var(--lime);
  content: "";
}

.nav-icon {
  display: none;
}

.nav-badge {
  display: none;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--green-950);
  background: var(--lime);
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.nav-badge.visible {
  display: inline-block;
}

.sidebar-note {
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-note strong,
.sidebar-note span {
  display: block;
}

.sidebar-note strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.sidebar-note span:last-child {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  line-height: 1.45;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(185, 217, 139, 0.13);
}

.main {
  min-width: 0;
  padding: 0 36px 54px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 4px;
  font-size: 14px;
}

.topbar-actions,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.today {
  color: var(--muted);
  font-size: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--green-800);
  box-shadow: 0 8px 22px rgba(14, 91, 76, 0.16);
}

.button-primary:hover {
  background: var(--green-700);
}

.button-secondary {
  color: var(--green-800);
  border-color: #bdd4ca;
  background: #f6faf8;
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button-danger {
  margin-right: auto;
  color: #9d2f2f;
  border-color: #e5b7b7;
  background: #fff5f5;
}

.button-danger:hover {
  color: #fff;
  border-color: #a93636;
  background: #a93636;
}

.button-wide {
  width: 100%;
}

.button-compact {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 11px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.text-button {
  padding: 4px 0;
  border: 0;
  color: var(--green-700);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.view {
  display: none;
  animation: fade-up 180ms ease both;
}

.view.active {
  display: block;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 280px;
  color: var(--muted);
}

.loading-screen.hidden {
  display: none;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 28px rgba(30, 59, 50, 0.035);
}

.kpi-emphasis {
  color: white;
  border-color: transparent;
  background:
    radial-gradient(circle at 90% 12%, rgba(185, 217, 139, 0.21), transparent 8rem),
    var(--green-800);
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.kpi-emphasis .kpi-head {
  color: rgba(255, 255, 255, 0.65);
}

.kpi-tag {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green-950);
  background: var(--lime);
  font-size: 9px;
  text-transform: uppercase;
}

.kpi-card > strong {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: clamp(18px, 1.9vw, 26px);
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.kpi-emphasis p {
  color: rgba(255, 255, 255, 0.62);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(30, 59, 50, 0.035);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-hint {
  color: var(--muted);
  font-size: 10px;
}

.aging-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 15px;
  min-height: 190px;
  padding-top: 8px;
}

.aging-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-width: 0;
}

.aging-value {
  overflow: hidden;
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aging-bar-track {
  position: relative;
  flex: 1;
  width: min(54px, 100%);
  min-height: 100px;
  border-radius: 8px 8px 2px 2px;
  background: #eef3f0;
  overflow: hidden;
}

.aging-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 5px;
  border-radius: inherit;
  background: var(--green-700);
}

.aging-column:nth-child(2) .aging-bar {
  background: #7f9d70;
}

.aging-column:nth-child(3) .aging-bar {
  background: #d69d43;
}

.aging-column:nth-child(4) .aging-bar,
.aging-column:nth-child(5) .aging-bar {
  background: #bf5b54;
}

.aging-label {
  color: var(--muted);
  font-size: 10px;
}

.monthly-panel {
  margin-bottom: 18px;
}

.monthly-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(54px, 1fr));
  align-items: end;
  gap: 9px;
  min-width: 790px;
  min-height: 220px;
  padding-top: 6px;
}

.monthly-panel {
  overflow-x: auto;
}

.month-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.month-value {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.month-track {
  position: relative;
  width: min(46px, 100%);
  height: 130px;
  border-radius: 7px 7px 2px 2px;
  background: #eef2ef;
  overflow: hidden;
}

.month-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 2px;
  border-radius: inherit;
  background: var(--green-700);
}

.month-column.current .month-bar {
  background: var(--lime);
}

.month-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.compact-list {
  display: grid;
  gap: 2px;
}

.compact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #ecf0ee;
  color: inherit;
  background: transparent;
  text-align: left;
}

.compact-item:last-child {
  border-bottom: 0;
}

.compact-item strong,
.compact-item span {
  display: block;
}

.compact-item strong {
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item span {
  color: var(--muted);
  font-size: 10px;
}

.compact-item > b {
  font-size: 12px;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th {
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 14px 12px;
  border-top: 1px solid #edf1ef;
  font-size: 12px;
}

.invoice-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.invoice-table {
  min-width: 990px;
  table-layout: fixed;
}

.invoice-table th:nth-child(1),
.invoice-table td:nth-child(1) {
  width: 105px;
}

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

.invoice-table th:nth-child(3),
.invoice-table td:nth-child(3) {
  width: 190px;
  white-space: normal;
}

.invoice-table th:last-child,
.invoice-table td:last-child {
  position: sticky;
  right: 0;
  width: 48px;
  background: #fff;
  box-shadow: -9px 0 12px -12px rgba(27, 43, 37, 0.28);
}

.invoice-table tbody tr:hover {
  background: #f7faf8;
}

td strong,
td small {
  display: block;
}

td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.number {
  text-align: right;
}

.pdf-link {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid #f0c36a;
  border-radius: 7px;
  color: #8d5b00;
  background: #fff8e9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pdf-link:hover {
  color: #5d3b00;
  border-color: var(--lime);
  background: #ffefcd;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

.status-issued {
  color: var(--blue);
  background: var(--blue-bg);
}

.status-partial {
  color: var(--amber);
  background: var(--amber-bg);
}

.status-overdue {
  color: var(--red);
  background: var(--red-bg);
}

.status-paid {
  color: var(--paid);
  background: var(--paid-bg);
}

.status-draft {
  color: var(--muted);
  background: #eef1ef;
}

.status-deregistering {
  color: var(--amber);
  background: var(--amber-bg);
}

.client-code-status {
  margin-top: 6px;
  font-size: 8px;
}

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

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  position: relative;
  display: block;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd8d2;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: 140ms ease;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  padding: 11px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(20, 112, 93, 0.1);
}

.search-box input {
  min-width: 250px;
  padding-left: 15px;
  background: rgba(255, 255, 255, 0.8);
}

#invoiceStatusFilter {
  width: auto;
  min-width: 125px;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 18px;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.stack-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #40504a;
  font-size: 11px;
  font-weight: 700;
}

.stack-form label small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.allocation-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding-top: 4px;
}

.allocation-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.allocation-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.allocation-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfb;
}

.allocation-row input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--green-700);
}

.allocation-row strong,
.allocation-row span {
  display: block;
}

.allocation-row strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.allocation-row span {
  color: var(--muted);
  font-size: 10px;
}

.allocation-row input[type="number"] {
  min-height: 36px;
  padding: 0 8px;
  text-align: right;
}

.allocation-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  background: #f1f6f3;
  font-size: 11px;
}

.allocation-summary strong {
  color: var(--ink);
}

.payment-history {
  display: grid;
  gap: 4px;
}

.payment-item {
  padding: 14px 0;
  border-bottom: 1px solid #edf1ef;
}

.payment-item:last-child {
  border-bottom: 0;
}

.payment-item-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.payment-item-head strong {
  font-size: 13px;
}

.payment-item p,
.payment-item small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.reminder-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: var(--radius);
  color: white;
  background:
    radial-gradient(circle at 78% 20%, rgba(185, 217, 139, 0.2), transparent 14rem),
    var(--green-950);
}

.comsec-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 21px 23px;
  border: 1px solid #efdcb6;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 0%, rgba(249, 169, 29, 0.18), transparent 14rem),
    #fffaf0;
}

.comsec-hero h2 {
  margin-bottom: 5px;
}

.comsec-hero p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.comsec-hero select {
  width: 90px;
}

#comsecScopeFilter {
  width: auto;
  min-width: 150px;
}

.comsec-home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: var(--radius);
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(249, 169, 29, 0.18), transparent 16rem),
    linear-gradient(135deg, #1b1c1c, #30312f);
  box-shadow: var(--shadow);
}

.comsec-home-hero .eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.comsec-home-hero h2 {
  margin-bottom: 7px;
  font-size: 25px;
}

.comsec-home-hero p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.module-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.module-card {
  position: relative;
  min-height: 164px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  box-shadow: 0 12px 34px rgba(30, 59, 50, 0.05);
  transition: 160ms ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: #c6d4cc;
}

.module-card span,
.module-card strong,
.module-card small {
  display: block;
}

.module-card span {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.module-card strong {
  margin-bottom: 7px;
  font-size: 18px;
}

.module-card small {
  max-width: 250px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.module-card b {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--amber);
  font-size: 28px;
}

.module-card-featured {
  background: #f5f1e8;
}

.scr-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
}

.scr-table th:nth-child(1),
.scr-table td:nth-child(1) {
  width: 27%;
  white-space: normal;
}

.scr-table th:nth-child(2),
.scr-table td:nth-child(2) {
  width: 12%;
}

.scr-table th:nth-child(3),
.scr-table td:nth-child(3) {
  width: 10%;
}

.scr-table th:nth-child(4),
.scr-table td:nth-child(4) {
  width: 14%;
}

.scr-table th:nth-child(5),
.scr-table td:nth-child(5) {
  width: 15%;
  white-space: normal;
}

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

.scr-table th:nth-child(7),
.scr-table td:nth-child(7) {
  width: 12%;
}

.scr-status-current {
  color: var(--paid);
  background: var(--paid-bg);
}

.scr-status-due,
.scr-status-missing {
  color: var(--red);
  background: var(--red-bg);
}

.director-fields {
  display: grid;
  gap: 8px;
}

.director-field {
  display: grid;
  grid-template-columns: 86px minmax(180px, 1fr) minmax(140px, 0.7fr) 32px;
  align-items: center;
  gap: 8px;
}

.director-role {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.director-add-button {
  justify-self: start;
  margin-top: 8px;
}

.inline-alert {
  padding: 12px 14px;
  border: 1px solid #e9c98e;
  border-radius: 10px;
  color: #674714;
  background: #fff8e9;
  font-size: 11px;
  line-height: 1.55;
}

.comsec-search {
  width: min(430px, 100%);
  margin-bottom: 16px;
}

.reminder-controls,
.br-fee-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
}

.br-fee-panel {
  margin-top: 18px;
}

.scr-import-box {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7faf8;
}

.scr-import-box strong,
.scr-import-box small {
  display: block;
}

.scr-import-box small,
.scr-import-result {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.scr-import-result {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.coupon-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-width: 330px;
}

table td:last-child :is(.button, .text-button, .pdf-link) + :is(.button, .text-button, .pdf-link) {
  margin-left: 12px;
}

table td:last-child {
  white-space: nowrap;
}

.text-button-accent {
  color: var(--green-dark);
  font-weight: 700;
}

.client-scr-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7faf8;
}

.client-scr-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.client-scr-stack .client-scr-panel {
  margin-bottom: 0;
}

.scr-imported-records {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.scr-imported-records > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 15px;
  cursor: pointer;
  list-style: none;
}

.scr-imported-records > summary::-webkit-details-marker {
  display: none;
}

.scr-imported-records > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.scr-imported-records > summary small {
  color: var(--muted);
  font-size: 9px;
}

.scr-imported-records[open] > summary {
  border-bottom: 1px solid var(--line);
}

.scr-sheet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.scr-sheet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  background: #fff;
}

.scr-sheet-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scr-sheet-row span {
  color: var(--muted);
  font-size: 10px;
}

.client-scr-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.client-scr-panel span {
  color: var(--muted);
  font-size: 9px;
}

.br-fee-package-options {
  display: grid;
  gap: 9px;
}

.cr-credential-box {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(180px, 1fr) minmax(150px, 0.8fr);
  gap: 11px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dfd3bd;
  border-radius: 11px;
  background: #fffaf0;
}

.cr-credential-box > div:first-child {
  align-self: center;
}

.cr-credential-box > div:first-child strong,
.cr-credential-box > div:first-child small {
  display: block;
}

.cr-credential-box > div:first-child small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.credential-display span,
.credential-display strong {
  display: block;
}

.credential-display span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.credential-display strong {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
  background: white;
  font-family: Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.credential-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
}

.client-document-actions {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.client-result-summary {
  margin: -2px 2px 12px;
  color: var(--muted);
  font-size: 11px;
}

.client-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
}

.client-pagination[hidden] {
  display: none;
}

.client-pagination label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.client-pagination select {
  width: 68px;
  min-height: 34px;
  padding: 0 8px;
}

.client-page-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.client-page-button {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.client-page-button:hover:not(:disabled) {
  border-color: #b8c7c0;
  background: #f4f8f6;
}

.client-page-button.active,
.client-page-button[aria-current="page"] {
  border-color: var(--green-950);
  color: white;
  background: var(--green-950);
}

.client-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.client-page-gap {
  padding: 0 3px;
}

.nar1-profile {
  display: grid;
  gap: 13px;
}

.nar1-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 23px;
  border-radius: 14px;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(249, 169, 29, 0.2), transparent 15rem),
    linear-gradient(135deg, #1c1d1d, #343633);
}

.nar1-profile-head span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.nar1-profile-head h3 {
  margin: 6px 0 4px;
  font-size: 20px;
}

.nar1-profile-head p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.nar1-profile-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
}

.nar1-completeness {
  flex: 0 0 auto;
  text-align: right;
}

.nar1-completeness strong,
.nar1-completeness span {
  display: block;
}

.nar1-completeness strong {
  color: var(--lime);
  font-size: 24px;
}

.nar1-completeness span {
  margin-top: 2px;
  font-size: 10px;
}

.nar1-edit-button {
  border-color: rgba(255, 255, 255, 0.22);
  color: #1c1d1d;
  background: var(--lime);
  white-space: nowrap;
}

.nar1-guide {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid #ead7b8;
  border-radius: 10px;
  color: #725321;
  background: #fffaf1;
  font-size: 11px;
  line-height: 1.5;
}

.nar1-guide strong {
  flex: 0 0 auto;
  font-size: 11px;
}

.nar1-section {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.nar1-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.nar1-section-head > b {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--amber);
  background: #fff1d7;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: center;
}

.nar1-section-head h4 {
  margin: 0 0 2px;
  font-size: 15px;
}

.nar1-section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.nar1-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.client-edit-fields {
  gap: 10px;
}

.client-edit-fields > label,
.client-edit-fields > .check-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e9e5;
  border-radius: 9px;
  background: #f5f8f6;
}

.client-edit-fields > label input,
.client-edit-fields > label select,
.client-edit-fields > label textarea {
  min-height: 38px;
  border-color: #cbd8d1;
  background: #fff;
}

.client-edit-fields > label textarea {
  padding: 8px 10px;
}

.client-edit-fields > label small {
  margin-top: 4px;
}

.client-edit-fields .director-fields,
.client-edit-fields .director-add-button {
  grid-column: 1 / -1;
}

.client-profile-editor {
  gap: 12px;
}

.client-profile-editor .field-span-2 {
  grid-column: 1 / -1;
}

.nar1-field {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f5f8f6;
}

.nar1-field span,
.nar1-field strong {
  display: block;
}

.nar1-field span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nar1-field strong {
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.nar1-field.is-missing {
  background: #fff7eb;
}

.nar1-field.is-missing strong {
  color: #aa6418;
}

.nar1-person-list {
  display: grid;
  gap: 8px;
}

.nar1-person {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 2fr);
  gap: 12px;
  padding: 11px;
  border: 1px solid #e5ebe7;
  border-radius: 9px;
}

.nar1-person > div:first-child strong,
.nar1-person > div:first-child span {
  display: block;
}

.nar1-person > div:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.nar1-person > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.company-search-box {
  padding: 13px;
  border: 1px solid #d9e1dc;
  border-radius: 10px;
  background: #f7faf8;
}

.formation-document-requirements {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-left: 3px solid var(--lime);
  border-radius: 8px;
  background: #fffaf0;
  font-size: 10px;
  line-height: 1.5;
}

.formation-document-requirements strong {
  font-size: 11px;
}

.stakeholder-list {
  display: grid;
  gap: 10px;
}

.stakeholder-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfb;
}

.stakeholder-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.stakeholder-role {
  color: var(--amber);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stakeholder-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.stakeholder-flags label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: #eef3f0;
  font-size: 10px;
}

.stakeholder-flags input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--paid);
}

.scr-preview {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #d9e1dc;
  border-radius: 11px;
  background: #f8fbf9;
}

.scr-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.scr-preview-head span {
  color: var(--muted);
  font-size: 10px;
}

.comsec-kpis .kpi-card > strong {
  font-size: 26px;
}

.comsec-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.urgency-unverified {
  color: #665b4c;
  background: #f0ece5;
}

.comsec-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
}

.comsec-table th:nth-child(1),
.comsec-table td:nth-child(1) {
  width: 21%;
  white-space: normal;
}

.comsec-table th:nth-child(2),
.comsec-table td:nth-child(2) {
  width: 7%;
}

.comsec-table th:nth-child(3),
.comsec-table td:nth-child(3),
.comsec-table th:nth-child(4),
.comsec-table td:nth-child(4),
.comsec-table th:nth-child(5),
.comsec-table td:nth-child(5) {
  width: 10%;
}

.comsec-table th:nth-child(6),
.comsec-table td:nth-child(6) {
  width: 14%;
  white-space: normal;
}

.comsec-table th:nth-child(7),
.comsec-table td:nth-child(7) {
  width: 8%;
}

.comsec-table th:nth-child(8),
.comsec-table td:nth-child(8) {
  width: 12%;
  white-space: normal;
}

.comsec-table th:last-child,
.comsec-table td:last-child {
  width: 8%;
}

.job-progress {
  min-width: 92px;
}

.job-progress span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.job-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: #edf1ee;
  overflow: hidden;
}

.job-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.urgency {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.urgency-overdue {
  color: var(--red);
  background: var(--red-bg);
}

.urgency-action {
  color: #9a5300;
  background: #ffe8c0;
}

.urgency-due_soon {
  color: var(--amber);
  background: var(--amber-bg);
}

.urgency-upcoming {
  color: var(--blue);
  background: var(--blue-bg);
}

.urgency-closed {
  color: var(--green-700);
  background: var(--green-100);
}

.comsec-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.comsec-checklist-title {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.comsec-checklist {
  display: grid;
  gap: 7px;
}

.comsec-task {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfb;
}

.comsec-task input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
  accent-color: var(--green-700);
}

.comsec-task span {
  margin: 0 !important;
}

.comsec-task strong,
.comsec-task small {
  display: block;
}

.comsec-task strong {
  font-size: 11px;
}

.comsec-task small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.comsec-linked-docs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.pack-grid article {
  min-width: 0;
}

.pack-grid h3 {
  margin-bottom: 8px;
}

.pack-preview {
  display: block;
  width: 100%;
  max-height: 520px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: contain;
  background: #f5f6f5;
}

.pack-document-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  margin-bottom: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #f8faf9;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}

.comsec-send-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pack-send-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f1f6f3;
}

.pack-send-note span {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.progress-confirmation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--paid);
  background: var(--paid-bg);
}

.progress-confirmation strong {
  font-size: 11px;
}

.progress-confirmation span {
  color: var(--muted);
  font-size: 10px;
}

.ro-address {
  min-width: 220px;
  max-width: 340px;
  white-space: normal;
}

.reminder-banner .eyebrow {
  color: rgba(255, 255, 255, 0.53);
}

.reminder-banner p:last-child {
  max-width: 650px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.filter-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 15px;
}

.filter-tab {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.filter-tab.active {
  color: white;
  border-color: var(--green-800);
  background: var(--green-800);
}

.reminder-list {
  display: grid;
  gap: 11px;
}

.reminder-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
}

.channel-label {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 34px;
  border-radius: 9px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.channel-label.whatsapp {
  color: #1c6e44;
  background: #e4f4e9;
}

.reminder-content strong,
.reminder-content span {
  display: block;
}

.reminder-content strong {
  margin-bottom: 5px;
}

.reminder-content .muted {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.reminder-content p {
  max-width: 790px;
  margin-bottom: 0;
  color: #4e5c56;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-line;
}

.reminder-actions {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.reminder-actions .button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 10px;
}

.reminder-status {
  display: inline-block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.client-channel {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.client-row:hover {
  background: #f7faf8;
}

.client-table {
  min-width: 950px;
  table-layout: fixed;
}

.client-table tbody tr,
.invoice-table tbody tr {
  --row-accent: transparent;
}

.invoice-row-status-paid {
  --row-accent: #2f8b5b;
  background: var(--paid-row);
}

.invoice-row-status-overdue {
  --row-accent: #c54c4c;
  background: #fff0ef;
}

.invoice-row-status-partial {
  --row-accent: #d89220;
  background: #fffbf1;
}

.invoice-row-status-issued {
  --row-accent: #567cac;
  background: #f8fbfe;
}

.invoice-table tbody tr td:first-child {
  box-shadow: inset 4px 0 var(--row-accent);
}

.invoice-row-status-paid td {
  background: var(--paid-row);
}

.invoice-row-status-overdue td {
  background: #fff0ef;
}

.invoice-row-status-partial td {
  background: #fffbf1;
}

.invoice-row-status-issued td {
  background: #f8fbfe;
}

.invoice-row-status-paid:hover td {
  background: #e3f4eb;
}

.invoice-row-status-overdue:hover td {
  background: #ffe7e5;
}

.invoice-row-status-partial:hover td,
.invoice-row-status-issued:hover td {
  background: #f2f7f4;
}

.client-table .client-select-cell {
  width: 44px;
  text-align: center;
}

.client-select-cell input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--paid);
}

.client-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
}

.bulk-select-all {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.bulk-select-all input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--paid);
}

#clientSelectionSummary {
  color: var(--muted);
  font-size: 10px;
}

.bulk-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.bulk-action-group select {
  width: 190px;
  min-height: 36px;
}

.bulk-action-group .button {
  min-height: 36px;
}

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

.client-table th:nth-child(3),
.client-table td:nth-child(3) {
  width: 220px;
  white-space: normal;
}

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

.client-table th:nth-child(5),
.client-table td:nth-child(5) {
  width: 175px;
  white-space: normal;
}

.client-table th:nth-child(6),
.client-table td:nth-child(6) {
  width: 105px;
  white-space: normal;
}

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

.client-table th:last-child,
.client-table td:last-child {
  position: sticky;
  right: 0;
  width: 145px;
  background: #fff;
  box-shadow: -9px 0 12px -12px rgba(27, 43, 37, 0.28);
}

.client-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-detail-head,
.client-year-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.client-detail-head {
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(249, 169, 29, 0.2), transparent 15rem),
    linear-gradient(135deg, #1c1d1d, #343633);
}

.client-detail-head h3,
.client-year-head h3 {
  margin-bottom: 3px;
}

.client-detail-head p,
.client-year-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.client-detail-head p {
  color: rgba(255, 255, 255, 0.62);
}

.client-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 20px;
}

.client-address-grid .detail-item strong {
  line-height: 1.55;
  white-space: pre-line;
}

.client-year-head {
  align-items: flex-end;
  margin-bottom: 8px;
}

.client-year-head select {
  width: 100px;
}

.client-year-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f1f6f3;
}

.client-year-summary span {
  color: var(--muted);
  font-size: 10px;
}

.client-year-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}

.client-record-table {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.client-invoice-row {
  cursor: pointer;
}

.client-invoice-row:hover {
  background: #fffaf0;
}

.client-detail-actions {
  margin-top: 18px;
}

.client-inline-editor {
  margin-bottom: 22px;
}

.inline-edit-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(249, 169, 29, 0.2), transparent 15rem),
    linear-gradient(135deg, #1c1d1d, #343633);
}

.inline-edit-banner strong,
.inline-edit-banner span {
  display: block;
}

.inline-edit-banner span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.55;
}

.inline-edit-banner .status {
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--blue);
  background: var(--blue-bg);
}

.advanced-client-fields {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcfb;
}

.advanced-client-fields summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.advanced-client-fields summary::-webkit-details-marker {
  display: none;
}

.advanced-client-fields summary::after {
  color: var(--muted);
  content: "+";
  font-size: 18px;
}

.advanced-client-fields[open] summary::after {
  content: "−";
}

.advanced-client-fields summary span {
  font-size: 12px;
  font-weight: 700;
}

.advanced-client-fields summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.advanced-client-fields .form-grid {
  padding: 0 16px 16px;
}

.inline-client-flags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.client-inline-edit-actions {
  position: sticky;
  z-index: 2;
  bottom: -26px;
  margin: 0 -24px -26px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.document-output-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid #d9e8df;
  border-radius: 12px;
  background: #f0f7f3;
}

.document-output-summary strong,
.document-output-summary span {
  display: block;
}

.document-output-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.document-output-summary .status {
  flex: 0 0 auto;
  margin-top: 0;
}

.document-output-actions {
  align-items: flex-start;
}

.document-output-actions .toolbar-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.document-download-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.document-download-links .button {
  width: 100%;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 18px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.user-table {
  min-width: 900px;
}

.user-editor-form {
  gap: 16px;
}

.user-editor-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7faf8;
}

.user-editor-hero > div,
.account-summary-row,
.account-permission > div {
  display: grid;
  gap: 3px;
}

.user-editor-hero span,
.account-summary-row span,
.account-permission small {
  color: var(--muted);
  font-size: 9px;
}

.account-summary {
  display: grid;
  gap: 8px;
}

.account-summary-row {
  grid-template-columns: 92px 1fr;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.account-summary-row:last-child {
  border-bottom: 0;
}

.permission-list-readonly {
  display: grid;
  gap: 8px;
}

.account-permission {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fafbfa;
}

.account-permission.enabled {
  color: var(--ink);
  border-color: #bdd4ca;
  background: #f3f8f5;
}

.account-permission > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: white;
  background: #aab3ae;
  font-weight: 800;
}

.account-permission.enabled > span {
  background: var(--green-800);
}

.account-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.permission-tag {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-bg);
  font-size: 8px;
  font-weight: 700;
}

.password-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}

.password-input-row .button {
  min-height: 42px;
  padding: 0 12px;
  white-space: nowrap;
}

.credential-result {
  display: grid;
  gap: 12px;
}

.credential-account-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f2f6f4;
}

.credential-account-row strong {
  font-family: Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.settings-panel {
  max-width: 820px;
}

.form-section-title {
  padding-top: 3px;
  border-top: 1px solid var(--line);
}

.form-section-title:first-child {
  padding-top: 0;
  border-top: 0;
}

.form-section-title h3 {
  margin-bottom: 4px;
}

.form-section-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.channel-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.compact-check {
  min-height: 58px;
}

.section-description {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.payment-method-detail {
  max-width: 350px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.team-chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #7c5200;
  background: #fff0cf;
  font-size: 9px;
  font-weight: 800;
}

.check-card {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  min-height: 70px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfb;
  cursor: pointer;
}

.check-card input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--green-700);
}

.check-card span {
  margin: 0 !important;
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.check-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.token-help {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  color: var(--muted);
  border: 1px dashed #cfd9d4;
  border-radius: 12px;
  font-size: 12px;
  text-align: center;
}

.empty-state.small {
  min-height: 74px;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 33, 27, 0.42);
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 30px 90px rgba(10, 46, 37, 0.28);
}

.modal.modal-wide {
  width: min(980px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  max-height: calc(100vh - 130px);
  padding: 22px 24px 26px;
  overflow-y: auto;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f1f5f3;
  font-size: 21px;
}

.invoice-lines {
  display: grid;
  gap: 9px;
}

.invoice-lines-head {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(260px, 1.6fr) 62px 92px 32px;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.invoice-line {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(260px, 1.6fr) 62px 92px 32px;
  gap: 8px;
  align-items: start;
}

.invoice-line input,
.invoice-line select,
.invoice-line textarea {
  min-height: 38px;
  padding: 0 9px;
  font-size: 11px;
}

.invoice-line textarea {
  min-height: 54px;
  padding: 8px 9px;
  line-height: 1.4;
  resize: vertical;
}

.remove-line {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f1f5f3;
}

.invoice-total-preview {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f1f6f3;
}

.invoice-total-preview strong {
  font-size: 16px;
}

.coupon-payment-field {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf8;
}

.coupon-payment-field label {
  flex: 1;
}

.compact-filter {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}

.compact-filter input {
  min-height: 38px;
}

.invoice-report-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.invoice-report-summary article {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf8;
}

.invoice-report-summary span {
  color: var(--muted);
  font-size: 9px;
}

.invoice-report-summary strong {
  color: var(--green-dark);
  font-size: 15px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
}

.pdf-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.pdf-preview-actions span {
  color: var(--muted);
  font-size: 11px;
}

.pdf-preview {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.detail-item {
  padding: 12px;
  border-radius: 10px;
  background: #f4f7f5;
}

.detail-item span,
.detail-item strong {
  display: block;
}

.detail-item span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.detail-item strong {
  font-size: 12px;
}

.detail-lines {
  margin-top: 8px;
}

.detail-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1ef;
}

.detail-line span:last-child {
  font-weight: 700;
  text-align: right;
}

.toast-region {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 9px;
}

.toast {
  min-width: 250px;
  max-width: 390px;
  padding: 13px 15px;
  border-radius: 11px;
  color: white;
  background: var(--green-950);
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: toast-in 180ms ease both;
}

.toast.error {
  background: #7d2929;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1120px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

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

  .invoice-line {
    grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.3fr) 58px 86px 30px;
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    z-index: 20;
    top: 0;
    height: auto;
    padding: 12px 16px;
  }

  .brand {
    padding: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand span,
  .sidebar-note {
    display: none;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
  }

  .nav-group summary {
    min-width: max-content;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.035);
    font-size: 9px;
  }

  .nav-group[open] .nav-group-items {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
  }

  .nav-group:not([open]) .nav-group-items {
    display: none;
  }

  .nav-section-label {
    display: none;
  }

  .nav-item {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .nav-item.active::before,
  .nav-icon {
    display: none;
  }

  .main {
    padding: 0 18px 40px;
  }

  .topbar {
    min-height: 92px;
  }

  .today {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .reminder-card {
    grid-template-columns: 1fr;
  }

  .channel-label {
    width: fit-content;
    padding: 0 10px;
  }
}

@media (max-width: 960px) {
  #view-clients .table-panel {
    padding: 12px;
    scroll-margin-top: 78px;
  }

  .client-table {
    display: block;
    min-width: 0;
    table-layout: auto;
    white-space: normal;
  }

  .client-table > thead {
    display: none;
  }

  .client-table > tbody {
    display: grid;
    gap: 10px;
  }

  .client-table > tbody > tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "select amount"
      "code amount"
      "company company"
      "contact secretary"
      "email email"
      "actions actions";
    gap: 9px 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .client-table > tbody > tr > td {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    white-space: normal;
  }

  .client-table > tbody > tr > td:nth-child(1) {
    grid-area: select;
  }

  .client-table > tbody > tr > td:nth-child(2) {
    grid-area: code;
  }

  .client-table > tbody > tr > td:nth-child(3) {
    grid-area: company;
  }

  .client-table > tbody > tr > td:nth-child(4) {
    grid-area: contact;
  }

  .client-table > tbody > tr > td:nth-child(5) {
    grid-area: email;
  }

  .client-table > tbody > tr > td:nth-child(6) {
    grid-area: secretary;
    font-size: 10px;
    text-align: right;
  }

  .client-table > tbody > tr > td:nth-child(7) {
    grid-area: amount;
    text-align: right;
  }

  .client-table > tbody > tr > td:last-child {
    grid-area: actions;
    padding-top: 10px;
    border-top: 1px solid #edf1ef;
  }

  .client-table tbody td:nth-child(3) strong,
  .client-table tbody td:nth-child(5) strong,
  .client-table tbody td:nth-child(3) small,
  .client-table tbody td:nth-child(5) small {
    display: block;
    overflow-wrap: anywhere;
  }

  .client-table .client-actions {
    justify-content: flex-end;
  }

  .client-bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bulk-action-group {
    width: 100%;
    margin-left: 0;
  }

  .bulk-action-group select {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 640px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .sidebar {
    z-index: 40;
    flex-direction: row;
    align-items: center;
    height: 64px;
    min-height: 64px;
    padding: 8px 14px;
    overflow: visible;
  }

  .sidebar::after {
    display: none;
  }

  .brand {
    width: 100%;
    padding: 0;
  }

  .brand strong {
    font-size: 12px;
    letter-spacing: 0.01em;
  }

  .mobile-menu-button {
    display: grid;
    flex: 0 0 auto;
    place-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
  }

  .mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: white;
    transition: transform 160ms ease;
  }

  .sidebar.nav-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .sidebar.nav-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .sidebar.nav-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-nav-scrim {
    position: fixed;
    z-index: 19;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(8, 24, 19, 0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(2px);
    transition: opacity 160ms ease, visibility 160ms ease;
  }

  .mobile-nav-open .mobile-nav-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav {
    position: fixed;
    z-index: 25;
    top: 70px;
    right: 12px;
    left: 12px;
    display: flex;
    max-height: calc(100dvh - 82px);
    margin: 0;
    padding: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
      radial-gradient(circle at 100% 0%, rgba(249, 169, 29, 0.14), transparent 14rem),
      #1b1c1c;
    box-shadow: 0 24px 60px rgba(5, 21, 16, 0.32);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .sidebar.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 2px 2px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-head strong,
  .mobile-nav-head span {
    display: block;
  }

  .mobile-nav-head strong {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .mobile-nav-head span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
  }

  .mobile-nav-head .icon-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    font-size: 26px;
    line-height: 1;
  }

  .nav-group {
    display: block;
    width: 100%;
  }

  .nav-group summary {
    display: flex;
    width: 100%;
    min-height: 38px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
  }

  .nav-group[open] .nav-group-items {
    display: grid;
    width: 100%;
    margin: 2px 0 5px;
    grid-template-columns: 1fr;
  }

  .nav-group:not([open]) .nav-group-items {
    display: none;
  }

  .nav-item {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    font-size: 12px;
  }

  .sidebar-note {
    display: none;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal,
  .modal.modal-wide {
    width: 100%;
    max-height: calc(100dvh - 8px);
    border-radius: 18px 18px 0 0;
  }

  .modal-head {
    padding: 16px 18px 14px;
  }

  .modal-body {
    max-height: calc(100dvh - 83px);
    padding: 18px 16px 24px;
  }

  .topbar {
    align-items: flex-start;
    padding: 20px 0;
  }

  .topbar-actions {
    align-self: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .kpi-grid,
  .form-grid,
  .channel-settings,
  .settings-layout,
  .permission-grid,
  .detail-grid,
  .client-address-grid,
  .client-year-summary,
  .invoice-report-summary,
  .comsec-detail-summary,
  .pack-grid,
  .module-card-grid,
  .director-field,
  .scr-import-box,
  .cr-credential-box,
  .nar1-fields,
  .nar1-person,
  .nar1-person > div:last-child {
    grid-template-columns: 1fr;
  }

  .nar1-profile-head,
  .nar1-profile-side,
  .nar1-guide,
  .panel-head,
  .inline-edit-banner,
  .client-scr-panel,
  .document-output-summary,
  .client-detail-head,
  .client-year-head,
  .coupon-payment-field,
  .pdf-preview-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .nar1-completeness {
    text-align: left;
  }

  .nar1-edit-button {
    width: 100%;
  }

  .comsec-home-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-toolbar,
  .filter-group,
  .toolbar-actions,
  .reminder-controls {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .filter-group > *,
  .toolbar-actions > * {
    width: 100%;
  }

  .client-scr-panel .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions {
    align-self: stretch;
  }

  .search-box input {
    min-width: 0;
  }

  .panel {
    padding: 16px;
  }

  .table-panel {
    padding: 12px;
  }

  .client-table {
    display: block;
    min-width: 0;
    table-layout: auto;
    white-space: normal;
  }

  #view-clients .table-panel {
    scroll-margin-top: 78px;
  }

  .client-table thead {
    display: none;
  }

  .client-table tbody {
    display: grid;
    gap: 10px;
  }

  .client-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "select amount"
      "code amount"
      "company company"
      "contact secretary"
      "email email"
      "actions actions";
    gap: 9px 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .client-table tbody td {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    white-space: normal;
  }

  .client-table tbody td:nth-child(1) {
    grid-area: select;
  }

  .client-table tbody td:nth-child(2) {
    grid-area: code;
  }

  .client-table tbody td:nth-child(3) {
    grid-area: company;
  }

  .client-table tbody td:nth-child(4) {
    grid-area: contact;
  }

  .client-table tbody td:nth-child(5) {
    grid-area: email;
  }

  .client-table tbody td:nth-child(6) {
    grid-area: secretary;
    font-size: 10px;
    text-align: right;
  }

  .client-table tbody td:nth-child(7) {
    grid-area: amount;
    text-align: right;
  }

  .client-table tbody td:last-child {
    grid-area: actions;
    padding-top: 10px;
    border-top: 1px solid #edf1ef;
  }

  .client-table tbody td:nth-child(3) strong,
  .client-table tbody td:nth-child(5) strong {
    overflow-wrap: anywhere;
  }

  .client-table tbody td:nth-child(3) small,
  .client-table tbody td:nth-child(5) small {
    display: block;
    margin-top: 3px;
  }

  .client-table .client-actions {
    justify-content: flex-end;
  }

  .client-bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bulk-action-group {
    width: 100%;
    margin-left: 0;
  }

  .bulk-action-group select {
    flex: 1;
    width: auto;
  }

  .client-pagination {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
  }

  .client-page-controls {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .client-page-button {
    min-width: 36px;
    height: 36px;
  }

  .client-record-table {
    max-height: none;
    border: 0;
    overflow: visible;
  }

  .responsive-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    table-layout: auto;
    white-space: normal;
  }

  .responsive-table > thead {
    display: none;
  }

  .responsive-table > tbody {
    display: grid;
    gap: 10px;
  }

  .responsive-table > tbody > tr {
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .responsive-table > tbody > tr > td {
    position: static !important;
    display: block;
    width: auto !important;
    padding: 7px 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
    white-space: normal;
  }

  .responsive-table > tbody > tr > td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .responsive-table > tbody > tr > td[colspan] {
    padding: 0 !important;
    text-align: center !important;
  }

  .responsive-table > tbody > tr > td[colspan]::before {
    display: none;
  }

  .responsive-table > tbody > tr > td.number {
    font-variant-numeric: tabular-nums;
  }

  .advanced-client-fields summary {
    align-items: flex-start;
  }

  .advanced-client-fields summary small {
    display: none;
  }

  .advanced-client-fields .form-grid {
    padding: 0 12px 12px;
  }

  .inline-client-flags {
    grid-template-columns: 1fr;
  }

  .client-inline-edit-actions {
    bottom: -24px;
    margin: 0 -16px -24px;
    padding: 12px 16px 16px;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-actions .button {
    width: 100%;
  }

  .stakeholder-flags {
    grid-template-columns: 1fr;
  }

  .aging-chart {
    gap: 7px;
  }

  .reminder-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-line {
    grid-template-columns: 1fr 1fr 34px;
  }

  .invoice-lines-head {
    display: none;
  }

  .invoice-line [data-line-service],
  .invoice-line .line-description {
    grid-column: 1 / 3;
  }

  .invoice-line .line-qty,
  .invoice-line .line-price {
    grid-column: auto;
  }

  .invoice-line .remove-line {
    grid-column: 3;
    grid-row: 1;
  }

  .detail-lines .detail-line {
    grid-template-columns: 1fr auto;
  }
}

.section-toolbar,
.filter-group,
.toolbar-actions {
  flex-wrap: wrap;
}

.status.status-pending {
  color: #8a5c0a;
  background: #fff3d8;
}

.invoice-report-summary.br-summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .invoice-report-summary.br-summary-strip {
    grid-template-columns: 1fr;
  }
}
