:root {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #1e302b;
  background: #f5f7f6;
  font-size: 14px;
  --green: #14805e;
  --muted: #68766f;
  --line: #e6ece8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 11px 17px;
  color: inherit;
}
button:hover {
  background: #eff5f1;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cad6cf;
  border-radius: 8px;
  background: white;
  padding: 12px;
  color: inherit;
}
label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
}
h1 {
  font-size: 28px;
  margin: 0 0 12px;
}
h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.login {
  max-width: 460px;
  margin: 10vh auto;
  padding: 24px;
}
.login button {
  width: 100%;
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #203a30;
  color: white;
  border-radius: 9px;
  padding: 12px 20px;
  z-index: 100;
  display: none;
}
a {
  color: var(--green);
}
:focus-visible {
  outline: 3px solid #75bc9c;
  outline-offset: 3px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #14805e;
  color: white;
  margin-bottom: 25px;
}
.mobile {
  max-width: 430px;
  min-height: 100vh;
  margin: auto;
  background: #f6f8f6;
  box-shadow: 0 12px 45px #203a3010;
}
.mobile-header {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}
.brand svg {
  color: var(--green);
}
.mobile-header button {
  border: 0;
  padding: 7px;
}
.mobile main {
  padding: 25px 20px 100px;
}
.mobile h1 {
  font-size: 24px;
  line-height: 1.4;
}
.greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
.avatar {
  border-radius: 50%;
  background: #e0eee6;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #176649;
}
.shift-card {
  background: #14805e;
  color: white;
  border-radius: 15px;
  padding: 22px;
  margin-bottom: 20px;
}
.shift-card > div > span {
  color: #e0f2e9;
}
.shift-card h2 {
  font-size: 28px;
  margin: 10px 0 22px;
}
.shift-card h2 small {
  font-size: 17px;
  font-weight: 400;
  margin-left: 12px;
}
.shift-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff38;
  padding-top: 16px;
  font-size: 13px;
}
.shift-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.target {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 21px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.target strong {
  display: inline-block;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  margin: 16px 0;
}
.badge {
  display: inline-block;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
}
.green {
  background: #e8f5ed;
  color: #167044;
}
.red {
  background: #fceceb;
  color: #b53a36;
}
.yellow {
  background: #fff4d9;
  color: #8a630c;
}
.progress {
  height: 6px;
  background: #edf1ee;
  border-radius: 8px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--green);
}
.section-heading {
  margin: 26px 0 14px;
  font-size: 17px;
}
.workflow {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
}
.step {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 89px;
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border: 0;
}
.step-number {
  width: 25px;
  height: 25px;
  border: 1px solid #cdd9d1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #637368;
  flex-shrink: 0;
  font-size: 12px;
}
.step-number.done {
  background: #e8f5ed;
  color: var(--green);
  border-color: #e8f5ed;
}
.step-number svg {
  width: 16px;
}
.step-info {
  flex: 1;
}
.step h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.step button {
  padding: 8px 11px;
  font-size: 12px;
  white-space: nowrap;
}
.incident-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #aa4f38;
  background: #fff;
}
.incident-link svg:last-child {
  margin-left: auto;
}
.page-note {
  text-align: center;
  color: #596c5f;
  font-size: 11px;
  margin-top: 21px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  height: 77px;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: white;
  border-top: 1px solid var(--line);
  z-index: 10;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #69766e;
  font-size: 12px;
}
.bottom-nav a.active {
  color: var(--green);
  font-weight: 700;
}
.wide {
  width: 100%;
  margin-top: 24px;
}
.back {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  margin-bottom: 24px;
}
.mobile .card {
  padding: 20px;
}
.empty {
  padding: 40px 15px;
  text-align: center;
  color: var(--muted);
}
input[type="file"] {
  padding: 15px 10px;
  border: 1px dashed #aebfb4;
  font-size: 12px;
  margin-bottom: 8px;
}
small.muted {
  font-size: 11px;
}
.photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.photos img {
  max-width: 100%;
  border-radius: 8px;
}
.evidence img {
  width: 86px;
  height: 70px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.evidence {
  display: inline-block;
  margin: 5px 8px 5px 0;
}
.login button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
button svg {
  vertical-align: middle;
}
.time-picker {
  display: flex;
  gap: 12px;
}
.time-picker label {
  flex: 1;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-weight: 400;
}
.time-picker select {
  margin-top: 8px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 13px 5px;
}
.duration-result {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  color: #586b5f;
}
.task-edit {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}
.task-edit:first-child {
  padding-top: 0;
}
.task-edit h2 {
  font-size: 16px;
  margin: 0;
}
.remove-task {
  font-size: 12px;
  padding: 6px 10px;
  color: #a73d37;
}
.task-edit label {
  font-size: 13px;
}
.task-edit input,
.task-edit textarea {
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 65px;
}
.upload-status {
  margin-top: 20px;
}
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.record-card {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  padding: 20px;
  margin: 16px 0;
  border-radius: 14px;
}
.record-duration {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.big-number {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.detail-task {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.detail-task:last-child {
  border: 0;
}
.detail-task h3 {
  margin: 0;
  font-size: 16px;
}
.detail-task p {
  overflow-wrap: anywhere;
}
.file-chip {
  display: inline-block;
  padding: 9px 13px;
  background: #eef5f0;
  border-radius: 6px;
  margin: 5px 8px 5px 0;
  font-size: 13px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.detail-heading {
  margin-bottom: 25px;
}
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
}
.admin-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 9px 26px;
}
.admin-brand .brand-mark {
  margin: 0;
  width: 38px;
  height: 38px;
}
.admin-brand strong {
  font-size: 19px;
}
.admin-brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.project-label {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 10px;
  margin-bottom: 23px;
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.project-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}
.project-label .muted {
  margin-left: auto;
  font-size: 10px;
}
.sidebar nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 17px;
  text-decoration: none;
  color: #607067;
  margin-bottom: 7px;
  border-radius: 8px;
}
.sidebar nav a.active {
  background: #e9f4ed;
  color: #14805e;
  font-weight: 700;
}
.sidebar nav a:hover {
  background: #f2f6f3;
}
.sidebar-foot {
  margin-top: auto;
  padding: 16px 9px 0;
  color: var(--muted);
}
.sidebar-foot p {
  font-size: 12px;
}
.sidebar-foot small {
  font-size: 10px;
  line-height: 1.8;
  display: block;
}
.admin-main {
  margin-left: 228px;
  width: calc(100% - 228px);
}
.admin-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 13px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions button {
  font-size: 12px;
  padding: 7px 9px;
  border: 0;
}
.admin-avatar {
  width: 31px;
  height: 31px;
  background: #e4efe8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
}
#admin-content {
  padding: 30px 32px 36px;
  max-width: 1900px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 27px;
  margin-bottom: 6px;
}
.page-heading p {
  font-size: 12px;
  margin: 0;
}
.date-label {
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 10px 15px;
  font-size: 12px;
  white-space: nowrap;
}
.metrics {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.4fr 1fr 1fr 0.85fr;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 25px;
  padding: 23px 6px;
}
.metrics section {
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.metrics section:last-child {
  border: 0;
}
.metrics section > span {
  font-size: 12px;
  color: var(--muted);
}
.metrics strong {
  display: block;
  font-size: 29px;
  font-weight: 600;
  margin: 12px 0 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metrics strong small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.metrics p {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  margin: 0;
}
.metrics p i {
  font-style: normal;
  margin: 0 6px;
}
.metrics .total-duration {
  color: var(--green);
  font-size: 27px;
}
.danger-text {
  color: #b9423d !important;
}
.warning-text {
  color: #936a16 !important;
}
.attention > .row h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.count {
  font-size: 11px;
  border-radius: 12px;
  padding: 2px 7px;
  background: #eef3ef;
  color: #576c5e;
  margin-left: 6px;
}
.attention .row > .muted {
  font-size: 11px;
}
.attention-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.attention-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  padding: 16px 0;
  background: white;
}
.attention-item strong {
  font-size: 12px;
}
.attention-item p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.attention-item > svg {
  margin-left: auto;
  width: 16px;
  color: #9ca9a0;
}
.attention-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
}
.attention-dot.red {
  background: #cc6259;
}
.attention-dot.yellow {
  background: #d4a644;
}
.card > .row {
  margin-bottom: 16px;
}
.card > .row h2 {
  margin: 0;
  font-size: 17px;
}
.card > .row > .muted {
  font-size: 11px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: #5f7064;
  background: #f7f9f7;
  padding: 14px 12px;
  white-space: nowrap;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
tbody tr:last-child td {
  border: 0;
}
.cell-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.text-btn {
  padding: 4px 0;
  color: var(--green);
  border: 0;
  background: none;
  font-size: 12px;
  margin-right: 12px;
}
.filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.filters label {
  font-size: 12px;
  min-width: 120px;
  flex: 1;
  margin: 0;
}
.filters input,
.filters select {
  margin-top: 8px;
  padding: 9px;
  font-size: 12px;
}
.filters button {
  padding: 9px 16px;
  font-size: 12px;
}
.footnote {
  font-size: 11px;
}
.admin-detail {
  max-width: 960px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.admin-detail > .detail-heading {
  grid-column: 1/-1;
}
.admin-detail .card {
  min-width: 0;
}
.admin-detail p {
  font-size: 13px;
}
.admin-detail .card .row {
  align-items: flex-start;
}
.admin-detail .card h2 {
  font-size: 16px;
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
  }
  .admin-main {
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  #admin-content {
    padding: 24px;
  }
  .metrics {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 25px;
  }
  .metrics section:nth-child(3) {
    border: 0;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 160px;
    padding: 18px 8px;
  }
  .admin-main {
    margin-left: 160px;
    width: calc(100% - 160px);
    min-width: 620px;
  }
  .admin-brand {
    padding-left: 0;
    gap: 6px;
  }
  .admin-brand strong {
    font-size: 16px;
  }
  .admin-header {
    padding: 0 18px;
  }
  .header-actions {
    gap: 3px;
  }
  .admin-detail {
    display: block;
  }
}
.narrow-form {
  max-width: 680px;
}
.keyword-filter {
  min-width: 200px !important;
}
.filters input::placeholder {
  color: #5d6e62;
}
.admin-main select[data-incident] {
  min-width: 100px;
  padding: 8px;
  font-size: 12px;
}
.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline-form button {
  white-space: nowrap;
}
.name-chip {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 6px;
  background: #f0f5f1;
  margin: 0 7px 8px 0;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid select,
.form-grid input {
  margin-top: 8px;
}
.schedule-layout p {
  font-size: 12px;
}
.date-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin: 0;
}
.date-preview input {
  width: 150px;
  padding: 7px;
}
.stats-metrics {
  grid-template-columns: repeat(4, 1fr);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.notice {
  margin-top: 18px;
}
.notice p {
  overflow-wrap: anywhere;
}
.file-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.file-previews img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
}
.offline-notice {
  padding: 14px;
  background: #fff4d9;
  border-radius: 8px;
  color: #825e16;
  font-size: 12px;
}
.required {
  color: #bd3434;
  margin-right: 5px;
  font-weight: 700;
}
.profile-head {
  text-align: center;
  padding: 10px 0 25px;
}
.profile-head .avatar {
  margin: 0 auto 12px;
  width: 64px;
  height: 64px;
  font-size: 26px;
}
.profile-head h1 {
  margin-bottom: 5px;
}
.profile-device {
  font-size: 26px;
  font-weight: 700;
  margin: 18px 0 7px;
}
.calendar {
  padding: 14px !important;
}
.calendar h2 {
  font-size: 17px !important;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.weekday {
  text-align: center;
  font-size: 12px;
  color: #5d6e62;
  padding: 10px 0;
}
.calendar-day {
  padding: 8px 1px;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 7px;
}
.calendar-day strong {
  display: block;
  font-size: 15px;
}
.calendar-day small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.calendar-day.is-today {
  border-color: #14805e;
}
.calendar-legend {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.calendar-legend .badge {
  font-size: 10px;
  padding: 4px 6px;
}
.calendar .row button {
  padding: 6px 14px;
  font-size: 22px;
}
dialog {
  width: min(90vw, 400px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  color: #1e302b;
}
dialog::backdrop {
  background: #15352977;
}
dialog .row {
  margin-top: 18px;
}
dialog textarea {
  width: 100%;
}
#employee-create {
  flex-wrap: wrap;
}
#employee-create input {
  flex: 1 1 140px;
  min-width: 0;
}
.required[hidden] {
  display: none;
}
.account-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.account-form label {
  font-size: 12px;
  margin: 6px 0 0;
}
.account-form button {
  margin-top: 7px;
}
.inline-form label {
  white-space: nowrap;
  font-size: 12px;
}
.workload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
}
.workload-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.workload-grid strong {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}
.workload-grid small {
  font-size: 13px;
  font-weight: 400;
}
.calendar-day {
  background: white;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.calendar-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  min-height: 7px;
  border-radius: 50%;
  padding: 0;
}
.calendar-dot.green {
  background: #14805e;
}
.calendar-dot.yellow {
  background: #bf8918;
}
.calendar-dot.red {
  background: #be4540;
}
.calendar-dot.gray {
  background: #a0aaa4;
}
.calendar-legend {
  gap: 12px;
  justify-content: space-between;
}
.calendar-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #58685e;
}
.device-management {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 2fr);
  gap: 22px;
  align-items: start;
}
