/* StmtPdf Key — licence portal, dashboard v2 (loaded after key.css). */

body { background: #F7F8FA; }

.top { height: 64px; padding: 0 32px; }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; }

.page { max-width: 1120px; padding: 40px 32px 64px; }
.page-head h1 { font-size: 26px; letter-spacing: -.5px; }
.page-head .sub { margin-top: 8px; font-size: 12.5px; color: #667085; }
.page-head .actions .btn {
  height: 36px; padding: 0 16px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center;
}
.page-head .actions .btn-secondary { background: #fff; border: 1px solid #E4E7EC; color: #0F172A; }
.page-head .actions .btn-primary { background: #0D9488; color: #fff; }

.grid { display: flex; gap: 20px; margin-top: 26px; align-items: stretch; }
.card {
  background: #fff;
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  padding: 22px 24px;
}
.card.plan { flex: 1 1 auto; }
.card.side { flex: 0 0 420px; }

.card-head { display: flex; align-items: center; gap: 10px; }
.card-title { font-size: 14px; font-weight: 600; color: #0F172A; }
.tag {
  font-size: 11px; font-weight: 600; color: #067647;
  background: #ECFDF5; border-radius: 10px; padding: 3px 10px;
}
.tag.warn { color: #B54708; background: #FFFAEB; }

.card.plan .big {
  margin-top: 14px;
  font-size: 40px; font-weight: 700; letter-spacing: -1.4px; color: #0F172A;
  display: flex; align-items: baseline; gap: 10px;
}
.card.plan .big small { font-size: 13px; font-weight: 400; color: #667085; letter-spacing: 0; }
.card.plan .meta { margin-top: 8px; font-size: 11.5px; color: #98A2B3; }

.bar { height: 8px; border-radius: 4px; background: #EEF1F5; margin-top: 20px; overflow: hidden; }
.bar i { display: block; height: 8px; background: #0D9488; border-radius: 4px; }
.bar-foot {
  margin-top: 10px; display: flex; justify-content: space-between;
  font-size: 11.5px; color: #667085;
}
.split { margin-top: 22px; display: flex; gap: 10px; align-items: center; }
.split .btn {
  height: 32px; padding: 0 14px; border-radius: 8px;
  border: 1px solid #E4E7EC; background: #fff;
  font-size: 12px; font-weight: 500; color: #0F172A;
  display: inline-flex; align-items: center;
}
.split .right { margin-left: auto; font-size: 11.5px; color: #98A2B3; }

.kv {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid #F1F3F7;
  font-size: 12px; color: #667085;
}
.kv span:last-child { font-weight: 600; color: #0F172A; }
.card.side .note { margin-top: 14px; font-size: 11px; line-height: 1.6; color: #98A2B3; }

.table-card {
  margin-top: 20px;
  background: #fff; border: 1px solid #E4E7EC; border-radius: 12px;
  overflow: hidden;
}
.table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.table-head .hint { font-size: 11px; color: #98A2B3; }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th {
  text-align: left; font-size: 11px; font-weight: 600; color: #667085;
  padding: 12px 24px; border-top: 1px solid #E4E7EC; border-bottom: 1px solid #F1F3F7;
  background: #FCFDFD;
}
.table-card td {
  padding: 14px 24px; font-size: 12px; color: #475467;
  border-top: 1px solid #F1F3F7; vertical-align: top;
}
.table-card tr:first-child td { border-top: none; }
.table-card td b { font-size: 12.5px; color: #0F172A; font-weight: 600; }
.table-card .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }

.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #067647; margin-right: 7px;
}
.dot.off { background: #C4CBD5; }

.table-card .link { color: #B42318; font-size: 12px; font-weight: 500; }

.auth {
  width: 420px; margin: 96px auto;
  background: #fff; border: 1px solid #E4E7EC; border-radius: 14px;
  padding: 30px 32px;
}
.auth h1 { font-size: 22px; letter-spacing: -.4px; }
.auth p { margin-top: 10px; font-size: 13px; line-height: 1.7; color: #667085; }
.auth label { display: block; margin-top: 20px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: #98A2B3; }
.auth input {
  width: 100%; height: 42px; margin-top: 8px;
  border: 1px solid #E4E7EC; border-radius: 9px;
  padding: 0 14px; font-size: 13px;
}
.auth .btn { width: 100%; height: 42px; margin-top: 16px; border-radius: 9px; }
.hint-box {
  margin-top: 18px; padding: 12px 14px;
  background: #F7F8FA; border: 1px solid #EDF0F4; border-radius: 9px;
  font-size: 11.5px; line-height: 1.7; color: #667085;
}

/* ------------------------------------------------------------------ mobile */
@media (max-width: 820px) {
  .top { height: 56px; padding: 0 16px; }
  .top-nav { display: none; }
  .top-right .email { display: none; }
  .logo .mark { width: 26px; height: 26px; }
  .brand { font-size: 14px; }

  .page { padding: 24px 16px 48px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-head h1 { font-size: 22px; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .page-head .actions .btn { flex: 1; justify-content: center; white-space: nowrap; }
  .card-title, .table-head .card-title { white-space: nowrap; }

  .grid { flex-direction: column; gap: 14px; margin-top: 20px; }
  .card { padding: 18px; }
  .card.side { flex: 1 1 auto; }
  .card.plan .big { font-size: 34px; }
  .split { flex-wrap: wrap; }
  .split .right { width: 100%; margin-left: 0; }

  .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-card table { min-width: 620px; }
  .table-head { padding: 14px 16px; }
  .table-card th, .table-card td { padding: 12px 16px; }

  .auth { width: auto; max-width: none; margin: 32px 16px; padding: 22px; }
  .auth h1 { font-size: 20px; }
}
