/* Django Unfold 0.91 presentation extension, aligned with the member H5.
   Apple HIG: materials, sidebars, toolbars. Framework7/Vant/Unfold: MIT.
   Sources and validation: docs/iOS27后台视觉优化.md, licenses/. */
:root {
  --sc-primary: #00845b;
  --sc-ink: #1c1c1e;
  --sc-muted: #68717c;
  --sc-line: #e5e9ee;
  --sc-background: #f5f6f8;
  --sc-surface: #fff;
  --sc-glass: rgba(255, 255, 255, 0.84);
  --sc-radius: 24px;
}
html,
body,
button,
input,
select,
textarea {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
body {
  background: var(--sc-background);
  color: var(--sc-ink);
}
#main {
  background: var(--sc-background);
}
/* The installed Unfold header has #header-inner, rather than Django's #header. */
#main > .border-b {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--sc-glass);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border-bottom-color: var(--sc-line);
}
#nav-sidebar {
  background: #f1f3f6;
  border-color: var(--sc-line);
}
#nav-sidebar-inner {
  background: rgba(250, 251, 253, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
}
#nav-sidebar-apps a {
  height: 42px;
  border-radius: 15px;
  transition: background 0.15s;
}
#nav-sidebar-apps a:hover {
  background: #e7f1ec;
}
#nav-sidebar-apps a.active {
  background: #e1f0e8;
  color: #006e4d;
}
#nav-sidebar-apps h2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--sc-muted);
}
#nav-sidebar-inner #nav-filter {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline-offset: -2px;
}
/* Style text fields without repainting submit buttons, hidden fields or switches. */
input:not(
  [type="checkbox"],
  [type="radio"],
  [type="hidden"],
  [type="submit"],
  [type="button"],
  [type="reset"],
  [type="file"],
  [type="range"],
  [type="color"]
),
select,
textarea {
  min-height: 42px;
  border-radius: 14px;
  background-color: #fff;
  border-color: #d9dfe7;
  color: #25313c;
  box-shadow: 0 1px 2px #17233203;
}
select[multiple] {
  min-height: 144px;
}
textarea {
  line-height: 1.8;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--sc-primary);
}
button,
input[type="submit"],
.sc-primary,
.sc-secondary {
  min-height: 42px;
}
:is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #00845b66;
  outline-offset: 3px;
}
#submit-row > div {
  background: var(--sc-glass);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-color: var(--sc-line);
}
#submit-row button {
  border-radius: 999px;
}
#changelist {
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
#content-main > .module:not(#changelist),
fieldset.module {
  border-radius: var(--sc-radius);
  overflow: visible;
  background: #fff;
}
#result_list thead {
  background: #f8f9fb;
}
#result_list tbody tr.data-row:hover {
  background: #f3f8f5;
}
#result_list :is(th, td) {
  font-variant-numeric: tabular-nums;
}
#result_list .sc-inline-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 11px;
  border-radius: 99px;
  background: #eaf5ef;
}
.sc-filter-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 99px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #43525f;
}
.sc-filter-trigger .material-symbols-outlined {
  font-size: 19px;
}
.sc-filter-trigger.is-filtered {
  background: var(--sc-primary);
  color: #fff;
  border-color: var(--sc-primary);
}
.sc-filter-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 70;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e0e5eb;
  border-radius: 50%;
  background: #f5f7f9;
  color: #46515e;
  cursor: pointer;
}
#changelist-filter h3 {
  color: #384452;
  font-weight: 600;
}
#changelist-filter a {
  line-height: 1.65;
}
#changelist-actions select {
  /* Unfold marks the action select's inverted colors important. */
  color: var(--sc-ink) !important;
  background: #fff !important;
  border-radius: 12px;
}
#changelist-actions > div {
  border-radius: 22px;
  box-shadow: 0 6px 20px #173e2d14;
}
#changelist-actions button {
  border-radius: 99px;
  padding: 7px 17px;
}
.calendarbox,
.clockbox {
  z-index: 80;
  border-radius: 16px;
  box-shadow: 0 8px 30px #1723321a;
}
@media (min-width: 1024px) {
  #result_list :is(th, td) {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  #result_list thead th {
    font-size: 12px;
    font-weight: 600;
    color: #5f6976;
  }
}
.sc-dashboard {
  max-width: 1360px;
  margin: 0 auto;
}
.sc-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 32px;
  gap: 18px;
}
.sc-overline {
  font-size: 12px;
  color: var(--sc-muted);
  margin-bottom: 10px;
}
.sc-dashboard-header h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.sc-dashboard-header p:last-child {
  font-size: 14px;
  color: var(--sc-muted);
}
.sc-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 30px;
  border: 1px solid #fff;
  background: var(--sc-glass);
  white-space: nowrap;
}
.sc-live .material-symbols-outlined {
  font-size: 18px;
  color: var(--sc-primary);
}
.sc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.sc-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 23px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: 0 4px 18px #273c5b04;
  transition: box-shadow 0.15s;
}
.sc-stat:hover {
  box-shadow: 0 9px 24px #273c5b09;
}
.sc-stat > .material-symbols-outlined:not(.sc-card-arrow) {
  color: var(--sc-primary);
  display: grid;
  place-items: center;
  background: #e8f4ed;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 16px;
}
.sc-stat-label {
  font-size: 13px;
  color: var(--sc-muted);
}
.sc-stat strong {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.3;
  margin: 5px 0 10px;
}
.sc-stat small {
  font-size: 12px;
  color: var(--sc-muted);
}
.sc-card-arrow {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #aaaab3;
  font-size: 20px;
}
.sc-section {
  margin-top: 30px;
}
.sc-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 14px;
}
.sc-section h2 {
  font-size: 18px;
  font-weight: 650;
}
.sc-section-heading a {
  color: var(--sc-primary);
  font-size: 13px;
  padding: 8px 0 8px 10px;
}
.sc-queue {
  background: #fff;
  border-radius: var(--sc-radius);
  border: 1px solid var(--sc-line);
  overflow: hidden;
}
.sc-queue-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 16px;
  align-items: center;
  padding: 19px 23px;
  gap: 15px;
  border-bottom: 1px solid #edf0f4;
  min-height: 80px;
}
.sc-queue-row:last-child {
  border: 0;
}
.sc-queue-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 550;
}
.sc-queue-row small {
  display: block;
  margin-top: 5px;
  color: var(--sc-muted);
  font-size: 12px;
}
.sc-queue-row time {
  font-size: 12px;
  color: var(--sc-muted);
  margin-left: auto;
  white-space: nowrap;
}
.sc-queue-icon {
  display: grid;
  place-items: center;
  background: #e8f4ed;
  color: var(--sc-primary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 21px;
}
.sc-empty {
  text-align: center;
  padding: 58px 20px;
}
.sc-empty > .material-symbols-outlined {
  font-size: 35px;
  color: #a3b6ad;
}
.sc-empty h3 {
  font-size: 15px;
  margin: 16px 0 8px;
}
.sc-empty p {
  font-size: 12px;
  color: var(--sc-muted);
}
.sc-summary {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--sc-muted);
  padding: 24px 4px;
}
.sc-summary strong {
  color: #494954;
  margin-left: 5px;
  font-weight: 550;
}
body.login #page {
  background: var(--sc-background);
}
.sc-login-panel {
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 28px;
  padding: 32px;
  margin: 24px 0;
  box-shadow: 0 8px 36px #24334706;
}
.sc-login-heading {
  text-align: center;
  margin-bottom: 34px;
}
.sc-app-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: var(--sc-primary);
  color: white;
  font-size: 34px;
  box-shadow:
    0 9px 20px #00845b1a,
    inset 0 1px 0 #ffffff80;
}
.sc-login-heading h1 {
  font-size: 27px;
  font-weight: 650;
  margin: 0 0 8px;
}
.sc-login-heading p {
  font-size: 13px;
  color: var(--sc-muted);
}
.sc-login-footnote {
  text-align: center;
  color: var(--sc-muted);
  font-size: 12px;
  margin-top: 23px;
}
.sc-login-error {
  background: #fff1f0;
  color: #c94336;
  padding: 12px 15px;
  font-size: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.sc-primary,
.sc-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}
.sc-primary {
  background: var(--sc-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.sc-secondary {
  background: #eef1f5;
  color: #4a5765;
  border: 0;
  cursor: pointer;
}
.sc-login-submit {
  width: 100%;
  margin-top: 14px;
}
.sc-inline-action {
  color: #006e4d;
  font-size: 13px;
  white-space: nowrap;
}
.sc-operation {
  max-width: 1120px;
  margin: 0 auto;
}
.sc-operation.sc-payee {
  max-width: 760px;
}
.sc-operation-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 24px;
}
.sc-operation-header h1,
.sc-operation > h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--sc-ink);
  letter-spacing: -0.03em;
}
.sc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #fff;
  border-radius: 99px;
  color: #46535e;
  background: var(--sc-glass);
  font-size: 13px;
}
.sc-back-link .material-symbols-outlined {
  font-size: 18px;
}
.sc-operation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.sc-operation-summary {
  background: #fff;
  border-radius: var(--sc-radius);
  padding: 24px;
  border: 1px solid var(--sc-line);
}
.sc-operation-summary h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 13px;
}
.sc-operation-summary p {
  font-size: 13px;
  color: #5c6672;
  line-height: 1.8;
  margin: 12px 0;
}
.sc-operation-summary dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 15px;
  font-size: 14px;
  margin: 18px 0;
}
.sc-operation-summary dt {
  color: var(--sc-muted);
}
.sc-operation-summary dd {
  overflow-wrap: anywhere;
  margin: 0;
}
.sc-business-form {
  background: #fff;
  border-radius: var(--sc-radius);
  padding: 26px;
  border: 1px solid var(--sc-line);
}
.sc-business-form > p {
  margin: 0 0 22px;
}
.sc-form-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--sc-ink);
  margin: 0 0 22px;
}
.sc-business-form .helptext {
  display: block;
  font-size: 12px;
  color: var(--sc-muted);
  line-height: 1.7;
  margin-top: 6px;
}
.sc-business-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 9px;
  color: #54616e;
}
.sc-business-form input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.sc-business-form select,
.sc-business-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d9dfe7;
}
.sc-business-form input[type="file"] {
  font-size: 13px;
  overflow: hidden;
  border-radius: 14px;
  background: #fbfcfd;
}
.sc-business-form input::file-selector-button {
  font: inherit;
  padding: 8px 10px;
  margin-right: 10px;
  border: 0;
  border-radius: 10px;
  background: #eef2f5;
  color: #3e4e5b;
}
.sc-business-form input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
  width: 18px;
  height: 18px;
}
.sc-business-form p:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sc-business-form p:has(> input[type="checkbox"]) label {
  order: 2;
  flex: 1;
  margin: 0;
  line-height: 1.7;
}
.sc-business-form p > input[type="checkbox"] {
  order: 1;
  flex: 0 0 18px;
  margin: 3px 0 0;
}
#header-inner .cursor-pointer > .material-symbols-outlined {
  min-width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
}
#header-inner .cursor-pointer > .material-symbols-outlined:hover {
  background: #edf0f4;
}
#nav-sidebar-inner > .border-b > .material-symbols-outlined {
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
}
.sc-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.sc-form-actions > :is(button, a) {
  flex: 1;
}
.errorlist {
  color: #b43b32;
  font-size: 12px;
  margin: 8px 0;
  line-height: 1.7;
}
.sc-business-form .errorlist {
  padding: 10px 13px;
  border-radius: 12px;
  background: #fff1ef;
}
.sc-evidence-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sc-evidence-gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sc-evidence-gallery a {
  flex: 1 1 180px;
  min-width: 0;
}
.sc-evidence-gallery img {
  width: 100%;
  max-width: 340px;
}
.sc-evidence-gallery img,
.sc-evidence-image {
  max-height: 320px;
  object-fit: contain;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: #f5f5f7;
  margin: 5px 0;
}
.sc-evidence-image {
  width: 180px;
}
.sc-agreement-preview {
  white-space: pre-wrap;
  max-height: 350px;
  overflow: auto;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.8;
}
@media (min-width: 1280px) {
  .sc-operation-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (min-width: 1536px) {
  .sc-filter-trigger[class~="2xl:hidden"],
  .sc-filter-close[class~="2xl:hidden"] {
    display: none;
  }
}
@media (max-width: 1535px) {
  #changelist-filter > div:last-child {
    padding-top: 56px;
  }
}
@media (max-width: 1000px) {
  .sc-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .sc-login-panel {
    padding: 26px 22px;
  }
  .sc-dashboard-header h1 {
    font-size: 28px;
  }
  .sc-dashboard-header {
    margin-bottom: 22px;
  }
  .sc-stat-grid {
    gap: 10px;
  }
  .sc-stat {
    padding: 18px;
  }
  .sc-stat strong {
    font-size: 31px;
  }
  .sc-queue-row {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    padding: 17px 15px;
    gap: 10px;
  }
  .sc-queue-row time {
    grid-column: 2;
    margin-left: 0;
    margin-top: -4px;
  }
  .sc-queue-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .sc-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .sc-business-form,
  .sc-operation-summary {
    padding: 20px;
  }
  .sc-business-form input,
  .sc-business-form select,
  .sc-business-form textarea,
  #login-form input {
    font-size: 16px;
  }
  .sc-operation-summary dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sc-operation-summary dd {
    margin-bottom: 10px;
  }
  .sc-summary {
    gap: 12px;
  }
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  #main > .border-b,
  #nav-sidebar-inner,
  #submit-row > div {
    background: #fff;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  #main > .border-b,
  #nav-sidebar-inner,
  #submit-row > div {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  :is(button, a, input, select, textarea):focus-visible {
    outline-color: #006e4d;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
