:root {
  font-family:
    Inter,
    "Noto Sans TC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18344a;
  background: #f3f7fb;
  font-synthesis: none;
  line-height: 1.6;
  --blue: #0768a9;
  --border: #dbe6ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.proposal-banner {
  padding: 9px 28px;
  background: #163b59;
  color: white;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
.proposal-banner span {
  color: #c1d9eb;
}
#notice {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #e8f4ff;
  color: #124d7d;
  padding: 0 28px;
}
#notice:not(:empty) {
  padding: 12px 28px;
  border-bottom: 1px solid #bfd9ed;
}
#app {
  display: flex;
  min-height: calc(100vh - 40px);
}
aside {
  width: 240px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--border);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand {
  font-size: 21px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
}
.environment {
  font-size: 12px;
  color: #607b8e;
  margin-top: 0;
}
nav {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}
.nav-button {
  border: 0;
  text-align: left;
  background: transparent;
  padding: 13px 16px;
  color: #456278;
}
.nav-button.active {
  background: #e6f2fb;
  color: #055d99;
  font-weight: 700;
  border-left: 3px solid #0874bb;
}
.identity {
  margin-top: auto;
  font-size: 14px;
  color: #607588;
}
main {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px;
  min-width: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}
h1 {
  font-size: 30px;
  margin: 0;
  letter-spacing: -1px;
}
h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #7793a7;
  margin: 0 0 5px;
}
.muted {
  color: #667d8e;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  border: 1px solid #c5d7e4;
  background: white;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #214d6a;
  cursor: pointer;
}
button:hover {
  background: #edf6fc;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
button.primary:hover {
  background: #05548a;
}
button.danger {
  color: #a73c40;
  border-color: #e7c6c8;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #80beec;
  outline-offset: 3px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.stats article {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stats span {
  display: block;
  font-size: 14px;
  color: #60798c;
}
.stats strong {
  font-size: 36px;
  color: #155f91;
  line-height: 1.6;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 12px;
  color: #5b7589;
  background: #eef4f9;
  font-weight: 600;
  padding: 14px 18px;
}
td {
  padding: 17px 18px;
  border-top: 1px solid #e8eff4;
}
tbody tr:hover {
  background: #f8fbfd;
}
.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  background: white;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 22px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #47667d;
}
input,
select,
textarea {
  padding: 10px 12px;
  border: 1px solid #bfd2e0;
  background: white;
  border-radius: 6px;
  color: #173f59;
  max-width: 100%;
  min-height: 44px;
}
textarea {
  min-height: 130px;
  resize: vertical;
  width: 100%;
  line-height: 1.7;
}
.panel,
.faq-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  margin: 24px 0;
}
.faq-card label,
.panel label {
  margin: 14px 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  color: #4d728c;
  background: #eef5fa;
  padding: 5px 9px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 15px;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  border: 1px dashed #b7cfdf;
  border-radius: 10px;
  color: #678194;
  background: #f8fbfd;
}
.detail {
  border-top: 3px solid #1480bd;
}
.login-card {
  width: min(440px, calc(100% - 40px));
  margin: 70px auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 38px;
  box-shadow: 0 16px 50px #194b7020;
  align-self: flex-start;
}
.login-card h1 {
  margin-top: 30px;
}
.login-card label {
  margin: 20px 0;
}
.login-card button {
  width: 100%;
  margin-top: 10px;
}
.jev-result {
  white-space: pre-wrap;
  margin-top: 24px;
}
.jev-result:empty {
  display: none;
}
@media (max-width: 900px) {
  aside {
    width: 190px;
    padding: 24px 14px;
  }
  main {
    padding: 28px 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .proposal-banner {
    padding: 8px 16px;
  }
  .proposal-banner span {
    display: none;
  }
  #app {
    display: block;
  }
  aside {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 18px;
    display: block;
  }
  aside .environment,
  aside .identity {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 12px 0;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav-button.active {
    border-left: 0;
    border-bottom: 3px solid #0874bb;
  }
  aside > button {
    padding: 6px 14px;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 25px;
  }
  .stats {
    gap: 10px;
  }
  .stats article {
    padding: 17px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .panel,
  .faq-card {
    padding: 20px;
  }
  header {
    gap: 10px;
  }
  header > button {
    white-space: nowrap;
    padding: 8px 12px;
  }
  .login-card {
    margin: 35px auto;
    padding: 28px;
  }
  td,
  th {
    padding: 13px;
  }
  .brand {
    font-size: 20px;
  }
}
.confirmation {
  position: fixed;
  z-index: 30;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px));
  margin: 0;
  box-shadow:
    0 0 0 100vmax #153b5a66,
    0 20px 70px #0b304b44;
  border-top: 4px solid var(--blue);
}
.balance-number {
  font-size: 38px;
  color: #12618f;
  font-weight: 750;
  letter-spacing: -1px;
}
.wallet-balance {
  border-left: 4px solid #1594b3;
}
.customer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.customer-badges .badge {
  margin-bottom: 4px;
}
.membership {
  background: #e6f2fb;
  color: #075d90;
}
.tag-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.tag-row label {
  margin: 0;
}
.quote-line {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 14px 0;
}
.quote-line label {
  display: inline-flex;
  max-width: 100%;
  margin-right: 16px;
}
.wallet-confirmation {
  border: 2px solid #7eb4d9;
  background: #eff8ff;
}
.wallet-confirmation p {
  white-space: pre-line;
}
.error {
  color: #a73c40;
}
.ledger td {
  white-space: normal;
  min-width: 85px;
}
.ledger td:nth-child(5),
.ledger td:nth-child(6) {
  min-width: 130px;
  overflow-wrap: anywhere;
}
.order-card table {
  margin-bottom: 20px;
}
.order-card h3 {
  font-size: 16px;
}
.panel > form label {
  margin: 14px 0;
}
input[type="checkbox"] {
  min-height: 20px;
  width: 20px;
  align-self: flex-start;
}
