* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2430;
  background: #f4f6f9;
}

input,
button,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 28px;
}

.workspace {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #2f6690;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 30px;
}

h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

label {
  font-size: 13px;
  font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="file"],
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #c8d2df;
  border-radius: 6px;
  background: #ffffff;
}

small {
  color: #667085;
}

.note {
  margin: 0 0 18px;
  color: #475467;
  line-height: 1.55;
}

button {
  min-height: 42px;
  padding: 0 16px;
  color: #eef6ff;
  background: #2f6690;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #1d4e6f;
}

.errorlist {
  margin: 0;
  padding-left: 18px;
  color: #b42318;
}

.messages {
  margin-bottom: 18px;
}

.message {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #eef6ff;
  border: 1px solid #b9d9ff;
}

.message.error {
  background: #fff1f0;
  border-color: #ffccc7;
}

pre {
  overflow: auto;
  margin: 0;
  padding: 14px;
  color: #172033;
  background: #f7f9fc;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.jobs {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid #e4e9f0;
  text-align: left;
  vertical-align: top;
}

th {
  color: #475467;
  font-size: 12px;
  text-transform: uppercase;
}

a {
  color: #2f6690;
  font-weight: 700;
}

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

.text-center {
  display: flex;
  justify-content: center;
  padding: 0 16px 32px;
}

.empty {
  margin: 0;
  color: #667085;
}

.login-body {
  min-width: 320px;
  background: #e8edf3;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.login-panel {
  width: min(420px, 100%);
  padding: 32px;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgb(30 41 59 / 12%);
}

.login-header {
  padding-bottom: 24px;
  border-bottom: 3px solid #2f6690;
  margin-bottom: 24px;
}

.login-header h1 {
  font-size: 26px;
}

.login-form {
  display: grid;
  gap: 4px;
}

.login-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #aebccc;
  border-radius: 6px;
  background: #ffffff;
}

.login-form input:focus {
  outline: 3px solid rgb(47 102 144 / 18%);
  border-color: #2f6690;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.login-error {
  padding: 10px 12px;
  margin: 0 0 18px;
  color: #8f1c13;
  background: #fff1f0;
  border: 1px solid #f0b5af;
  border-radius: 6px;
  line-height: 1.45;
}

.user-session {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-session form,
.hidden-session-form {
  margin: 0;
}

.hidden-session-form {
  display: none;
}

.session-name {
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.session-action {
  min-height: 38px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #aebccc;
}

.session-action:hover {
  background: #eef2f6;
}

.editor-body {
  width: 100%;
  overflow-x: hidden;
  background: #dfe4ea;
}

.document-editor {
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

.editor-toolbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px 24px;
  color: #ffffff;
  background: #202b38;
  border-bottom: 1px solid #111923;
  box-shadow: 0 2px 8px rgb(15 23 42 / 20%);
}

.editor-title {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 12px;
  align-items: baseline;
  min-width: 0;
}

.editor-title h1 {
  overflow: hidden;
  grid-column: 1 / -1;
  max-width: 52vw;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-title > span:last-child {
  color: #c9d3de;
  font-size: 12px;
}

.editor-status {
  color: #7dd3a7;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.editor-status.save-error {
  color: #ffb4ab;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #e8edf3;
  background: #1d2939;
  border: 1px solid #718096;
  border-radius: 6px;
  text-decoration: none;
}

.secondary-action:hover {
  background: #324151;
}

.delete-form {
  margin: 0;
}

.danger-action,
.editor-toolbar .danger-action {
  background: #b42318;
}

.danger-action:hover,
.editor-toolbar .danger-action:hover {
  background: #8f1c13;
}

.editor-toolbar button {
  background: #147d52;
}

.editor-toolbar button:hover {
  background: #0f6843;
}

.editor-toolbar .logout-action {
  color: #e8edf3;
  background: #1d2939;
  border: 1px solid #718096;
}

.editor-toolbar .logout-action:hover {
  background: #324151;
}

.editor-toolbar button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.editor-messages {
  position: sticky;
  z-index: 15;
  top: 76px;
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 0;
}

.participant-editor {
  display: grid;
  min-width: 0;
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #c8d2df;
  border-radius: 6px;
}

.participant-block + .participant-block {
  border-top: 1px solid #d9e0ea;
}

.participant-block {
  min-width: 0;
}

.participant-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 8px 12px 8px 16px;
  background: #edf5f8;
}

.participant-heading h2 {
  margin: 0;
  color: #173a5e;
  font-size: 15px;
}

.icon-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: #2f6690;
  border-radius: 4px;
  font-size: 22px;
  line-height: 1;
}

.icon-action:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.participant-table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.participant-table {
  min-width: 840px;
  border: 1px solid #6f8faa;
  border-collapse: collapse;
  table-layout: fixed;
}

.participant-table th,
.participant-table td {
  padding: 6px;
  border: 1px solid #6f8faa;
  vertical-align: middle;
}

.participant-table th:first-child,
.participant-table td:first-child {
  width: 54px;
}

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

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

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

.participant-table th:last-child,
.participant-table td:last-child {
  width: 48px;
  border-right: 0;
}

.participant-table input {
  min-height: 34px;
  padding: 5px 7px;
  border-radius: 3px;
}

.participant-table input[readonly] {
  color: #475467;
  background: #f2f4f7;
  text-align: center;
}

.participant-row-action {
  text-align: center;
}

.participant-row-action .icon-action {
  margin: auto;
  color: #b42318;
  background: transparent;
  border: 1px solid #d0d5dd;
}

.participant-row-action .icon-action:hover:not(:disabled) {
  background: #fff1f0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.pdf-pages {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 24px 16px 48px;
}

.pdf-page {
  position: relative;
  container-type: inline-size;
  width: min(100%, var(--page-width));
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 18px rgb(15 23 42 / 24%);
}

.pdf-page > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.pdf-page input.pdf-field {
  position: absolute;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0 2px;
  color: var(--field-text);
  background: var(--field-fill);
  border: 1px solid #2777c8;
  border-radius: 1px;
  outline: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: max(7px, var(--field-font-size));
  line-height: 1;
  text-align: var(--field-align, left);
}

.pdf-page input.pdf-field::placeholder {
  color: #5f6772;
  opacity: 0.82;
}

.pdf-page input.pdf-field:hover {
  border-color: #0f5ca9;
  box-shadow: 0 0 0 1px rgb(39 119 200 / 25%);
}

.pdf-page input.pdf-field:focus {
  z-index: 3;
  border-color: #005fcc;
  box-shadow: 0 0 0 2px rgb(0 95 204 / 32%);
}

.editor-empty {
  width: min(720px, calc(100% - 32px));
  margin: 32px auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #c8d2df;
  border-radius: 6px;
}

.final-document-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: calc(100vh - 76px);
  padding: 24px 16px 48px;
  align-items: start;
  justify-items: center;
  background: #4a5059;
}

.final-document-view img {
  display: block;
  width: 100%;
  max-width: 980px;
  min-width: 0;
  height: auto;
  box-shadow: 0 4px 18px rgb(15 23 42 / 24%);
}

.public-document-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  background: #ffffff;
  transition: background-color 160ms ease;
}

.public-header {
  min-height: 104px;
  color: #ffffff;
  background: #0b4077;
}

.public-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1080px, 100%);
  min-height: 104px;
  margin: 0 auto;
  padding: 16px 38px;
}

.siat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.siat-emblem {
  display: grid;
  width: 40px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  transform: skew(-8deg);
}

.siat-word {
  color: #ffffff;
  font-size: 52px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.public-theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
}

.public-theme-toggle:hover {
  background: rgb(255 255 255 / 10%);
}

.public-moon {
  display: block;
  width: 25px;
  height: 25px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 8px 0 0 #0b4077;
}

.public-document-main {
  display: grid;
  place-items: start center;
  padding: 38px 24px 92px;
}

.public-file {
  display: grid;
  grid-template-rows: 49% 10% 41%;
  width: min(538px, 100%);
  aspect-ratio: 0.72;
  overflow: hidden;
  background: #202124;
  border: 3px solid #c8c8c8;
}

.public-file-top {
  position: relative;
  overflow: hidden;
  color: #b9bbc0;
  background: #202124;
}

.public-pdf-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 12px 8px;
  color: #202124;
  background: #1e1f22;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.public-document-code {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  overflow: hidden;
  padding-left: 2px;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: clip;
  white-space: nowrap;
}

.public-open-button {
  display: grid;
  place-items: center;
  color: #111820;
  background: #85afea;
  border-top: 1px solid #9cc0f0;
  border-bottom: 1px solid #6f9dde;
  font-size: 21px;
  font-weight: 400;
  text-decoration: none;
}

.public-open-button:hover {
  background: #96bbee;
}

.public-file-bottom {
  background: #202124;
}

.public-footer {
  display: grid;
  min-height: 126px;
  place-items: center;
  padding: 22px;
  color: #ffffff;
  background: #06396e;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.public-document-body.public-night {
  background: #111820;
}

.public-night .public-moon {
  background: #ffdc79;
}

.bank-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.bank-public-body {
  min-height: 100vh;
  margin: 0;
  color: #2b2d31;
  background: #f7f8fa;
  transition: color 160ms ease, background-color 160ms ease;
}

.bank-public-header {
  color: #ffffff;
  background: #0b4077;
  box-shadow: 0 2px 6px rgb(15 23 42 / 16%);
}

.bank-public-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1080px, 100%);
  min-height: 98px;
  margin: 0 auto;
  padding: 14px 36px;
}

.bank-siat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-siat-emblem {
  width: 48px;
  height: 54px;
  color: #ffffff;
  overflow: visible;
}

.bank-siat-network {
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.bank-siat-network path {
  fill: none;
}

.bank-siat-word {
  color: #ffffff;
  font-size: 50px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.bank-theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  background: transparent;
}

.bank-theme-toggle:hover {
  background: rgb(255 255 255 / 10%);
}

.bank-theme-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
  fill: currentColor;
}

.bank-public-main {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 52px 24px 72px;
}

.bank-public-main > h1 {
  margin: 0 0 24px;
  color: #27292d;
  font-size: 30px;
  text-align: center;
}

.bank-receipt-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(15 23 42 / 14%);
}

.bank-receipt-card > h2 {
  min-height: 72px;
  margin: 0;
  padding: 23px 38px;
  border-bottom: 1px solid #d9dde4;
  font-size: 18px;
  font-weight: 400;
}

.bank-detail-list {
  display: grid;
  margin: 0;
  padding: 26px 38px 8px;
}

.bank-detail-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 88px;
}

.bank-detail-icon {
  width: 38px;
  height: 38px;
  color: #0b4077;
  fill: currentColor;
}

.bank-icon-cutout {
  fill: #ffffff;
}

.bank-icon-check {
  fill: none;
  stroke: #0b4077;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.bank-detail-row dt {
  margin-bottom: 10px;
  color: #26292e;
  font-size: 16px;
  font-weight: 700;
}

.bank-detail-row dd {
  margin: 0;
  color: #64686f;
  font-size: 19px;
  line-height: 1.35;
}

.bank-long-value {
  overflow-wrap: anywhere;
}

.bank-print-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  width: calc(100% - 76px);
  min-height: 54px;
  margin: 8px 38px 28px;
  padding: 10px 16px;
  color: #ffffff;
  background: #0b4077;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.bank-print-button:hover {
  color: #ffffff;
  background: #07345f;
}

.bank-print-button svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.bank-public-body.bank-night {
  color: #eef2f6;
  background: #121820;
}

.bank-night .bank-public-main > h1,
.bank-night .bank-detail-row dt {
  color: #f4f7fa;
}

.bank-night .bank-receipt-card {
  background: #1d2631;
  border-color: #344252;
}

.bank-night .bank-receipt-card > h2 {
  border-color: #344252;
}

.bank-night .bank-detail-row dd {
  color: #c1cad4;
}

.bank-night .bank-detail-icon {
  color: #77b4ed;
}

.bank-night .bank-theme-icon {
  color: #ffdc79;
}

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

  .editor-toolbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .editor-title h1 {
    max-width: calc(100vw - 32px);
  }

  .editor-actions {
    width: 100%;
  }

  .editor-actions > * {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .editor-messages {
    position: static;
  }

  .pdf-pages {
    padding: 16px 8px 32px;
  }

  .public-header {
    min-height: 84px;
  }

  .public-header-inner {
    min-height: 84px;
    padding: 12px 34px;
  }

  .siat-emblem {
    width: 31px;
    height: 39px;
    font-size: 20px;
  }

  .siat-word {
    font-size: 42px;
  }

  .public-theme-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .public-document-main {
    padding: 24px 23px 92px;
  }

  .public-document-code {
    bottom: 12px;
    font-size: 13px;
  }

  .public-open-button {
    font-size: 17px;
  }

  .public-footer {
    min-height: 82px;
    padding: 16px;
    font-size: 14px;
  }

  .bank-public-header-inner {
    min-height: 98px;
    padding: 14px 34px;
  }

  .bank-siat-emblem {
    width: 42px;
    height: 48px;
  }

  .bank-siat-word {
    font-size: 44px;
  }

  .bank-public-main {
    padding: 52px 32px 64px;
  }

  .bank-public-main > h1 {
    margin-bottom: 22px;
    font-size: 28px;
  }

  .bank-receipt-card > h2 {
    min-height: 70px;
    padding: 23px 38px;
    font-size: 18px;
  }

  .bank-detail-list {
    padding: 24px 38px 8px;
  }

  .bank-detail-row {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 88px;
  }

  .bank-print-button {
    width: calc(100% - 76px);
    margin-right: 38px;
    margin-left: 38px;
    font-size: 15px;
  }
}

@media (max-width: 430px) {
  .bank-public-header-inner {
    padding-right: 24px;
    padding-left: 24px;
  }

  .bank-public-main {
    padding: 40px 16px 56px;
  }

  .bank-public-main > h1 {
    font-size: 25px;
  }

  .bank-receipt-card > h2 {
    padding-right: 24px;
    padding-left: 24px;
  }

  .bank-detail-list {
    padding-right: 24px;
    padding-left: 24px;
  }

  .bank-detail-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .bank-detail-icon {
    width: 34px;
    height: 34px;
  }

  .bank-detail-row dd {
    font-size: 17px;
  }

  .bank-print-button {
    width: calc(100% - 48px);
    margin-right: 24px;
    margin-left: 24px;
    font-size: 13px;
  }
}
