* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --primary: #1a6fd4;
  --primary-dark: #145bb0;
  --primary-light: #e8f1fc;
  --accent: #f5a623;
  --success: #27ae60;
  --success-light: #eafaf1;
  --danger: #e74c3c;
  --warning: #f59e0b;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f4f7fb;
  --card: #fff;
  --radius: 10px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px
}

a {
  color: inherit;
  text-decoration: none
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: 13px
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 13px;
  outline: none
}

#portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a6fd4 0%, #145bb0 100%)
}

.portal-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px
}

.portal-sub {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  margin-bottom: 40px
}

.portal-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center
}

.portal-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
  min-width: 200px
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18)
}

.portal-card .pci {
  font-size: 48px;
  margin-bottom: 12px
}

.portal-card .pcn {
  font-size: 18px;
  font-weight: 700;
  color: var(--text)
}

.portal-card .pcd {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px
}

#adminApp,
#instApp {
  display: none
}

#driverApp {
  display: none
}

.app-wrap {
  display: flex;
  height: 100vh;
  overflow: hidden
}

.sidebar {
  width: 200px;
  background: #1a1a2e;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.sidebar-logo .sln {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3
}

.sidebar-logo .sls {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  margin-top: 2px
}

.sidebar-back {
  padding: 12px 16px;
  cursor: pointer;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.sidebar-back:hover {
  color: #fff
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: pointer;
  color: rgba(255, 255, 255, .6);
  transition: .15s;
  font-size: 13px
}

.nav-item:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff
}

.nav-item.active {
  background: var(--primary);
  color: #fff
}

.nav-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0
}

.main-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column
}

.topbar {
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0
}

.topbar-title {
  font-size: 16px;
  font-weight: 700
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted)
}

.content {
  padding: 24px;
  flex: 1
}

.page {
  display: none
}

.page.active {
  display: block
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text)
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px
}

.sc-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px
}

.sc-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary)
}

.sc-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  transition: .15s;
  white-space: nowrap;
  line-height: 1.4
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary)
}

.btn-primary:hover {
  background: var(--primary-dark)
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border)
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success)
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger)
}

.btn-warning {
  background: var(--warning);
  color: #fff;
  border-color: var(--warning)
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px
}

.btn-xs {
  padding: 2px 7px;
  font-size: 11px;
  border-radius: 5px
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px
}

.filter-bar input,
.filter-bar select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary)
}

.table-wrap {
  overflow-x: auto
}

table {
  width: 100%;
  border-collapse: collapse
}

thead th {
  background: #f9fafb;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle
}

tbody tr:hover {
  background: #fafafa
}

tbody tr:last-child td {
  border-bottom: none
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap
}

.badge-success {
  background: var(--success-light);
  color: var(--success)
}

.badge-danger {
  background: #fdecea;
  color: var(--danger)
}

.badge-warning {
  background: #fff8e1;
  color: #b45309
}

.badge-info {
  background: var(--primary-light);
  color: var(--primary)
}

.badge-muted {
  background: #f3f4f6;
  color: var(--text-muted)
}

.badge-orange {
  background: #fff4e6;
  color: #c05621
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px
}

.modal-overlay.open {
  display: flex
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2)
}

.modal-box.modal-lg {
  max-width: 680px
}

.modal-box.modal-xl {
  max-width: 1200px;
  width: calc(100vw - 48px)
}

.modal-box.modal-sm {
  max-width: 500px
}

.modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 700
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1
}

.modal-close:hover {
  color: var(--text)
}

.modal-body {
  padding: 20px 24px
}

.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end
}

.form-row {
  margin-bottom: 14px
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px
}

.form-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  transition: .15s
}

.form-input:focus {
  border-color: var(--primary)
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px
}

/* Login Modal Specific Styles */
#adminLoginModal .modal-box {
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
#adminLoginModal .modal-head {
  border-bottom: none;
  padding-bottom: 0;
  padding-top: 30px;
  text-align: center;
  justify-content: center;
  position: relative;
}
#adminLoginModal .modal-head h3 {
  font-size: 20px;
  color: var(--primary);
}
#adminLoginModal .modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
}
#adminLoginModal .modal-body {
  padding: 30px;
}
#adminLoginModal .modal-foot {
  border-top: none;
  padding-top: 0;
  padding-bottom: 30px;
  padding-left: 30px;
  padding-right: 30px;
}
#adminLoginModal .btn {
  padding: 10px 20px;
  font-size: 14px;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a2e;
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  opacity: 0;
  transition: .3s;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.toast.toast-success {
  background: var(--success)
}

.toast.toast-danger {
  background: var(--danger)
}

.toast.toast-warning {
  background: var(--warning)
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 130px;
  padding: 0 4px
}

.bc-bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  position: relative
}

.bc-bar {
  width: 100%;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  opacity: .75;
  transition: .2s;
  min-height: 4px
}

.bc-bar-wrap:hover .bc-bar {
  opacity: 1
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  padding: 12px 0 0;
  font-size: 13px
}

.page-btn {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 12px
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary)
}

.upload-box {
  background: #f9fafb;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: .2s
}

.upload-box:hover {
  border-color: var(--primary)
}

.upload-box.uploaded {
  background: var(--success-light);
  border-color: var(--success);
  border-style: solid
}

.step-flow {
  display: flex;
  margin-bottom: 16px
}

.step {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 12px;
  color: var(--text-muted)
}

.step.active {
  color: var(--primary);
  font-weight: 600
}

.step.done {
  color: var(--success)
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin: 0 auto 4px
}

.step.active .step-dot {
  background: var(--primary)
}

.step.done .step-dot {
  background: var(--success)
}

.inst-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px
}

.inst-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: .15s
}

.inst-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600
}

.inst-tab:hover:not(.active) {
  color: var(--text)
}

.inst-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border)
}

.inst-header-left .ihl-name {
  font-size: 16px;
  font-weight: 700
}

.inst-header-left .ihl-sub {
  font-size: 12px;
  color: var(--text-muted)
}

#driverApp {
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 30px;
  gap: 24px;
  background: var(--bg)
}

.driver-nav {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
  width: 148px;
  flex-shrink: 0;
  position: sticky;
  top: 30px
}

.driver-nav h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase
}

.driver-nav-item {
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  transition: .15s;
  margin-bottom: 2px
}

.driver-nav-item:hover {
  background: var(--primary-light);
  color: var(--primary)
}

.driver-nav-item.active {
  background: var(--primary);
  color: #fff
}

.phone-frame {
  width: 375px;
  height: 700px;
  background: #fff;
  border-radius: 40px;
  border: 8px solid #1a1a2e;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  flex-shrink: 0
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden
}

.dpage {
  display: none;
  min-height: 100%
}

.dpage.active {
  display: block
}

.login-bg {
  background: linear-gradient(160deg, #1a6fd4 0%, #145bb0 55%, #1a1a2e 100%);
  min-height: 100%;
  padding: 60px 28px 28px;
  color: #fff
}

.login-logo {
  text-align: center;
  margin-bottom: 36px
}

.login-logo .ll-icon {
  font-size: 44px;
  margin-bottom: 8px
}

.login-logo .ll-name {
  font-size: 19px;
  font-weight: 700
}

.login-logo .ll-sub {
  font-size: 12px;
  opacity: .7;
  margin-top: 2px
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  color: var(--text)
}

.login-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px
}

.login-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px
}

.login-input:focus {
  border-color: var(--primary);
  outline: none
}

.code-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px
}

.code-row .login-input {
  flex: 1;
  margin-bottom: 0
}

.code-btn {
  padding: 10px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0
}

.code-btn:disabled {
  opacity: .5;
  cursor: not-allowed
}

.login-btn {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px
}

.login-btn:hover {
  background: var(--primary-dark)
}

.dscreen-head {
  background: var(--primary);
  padding: 14px 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px
}

.dscreen-head h3 {
  font-size: 14px;
  font-weight: 700;
  flex: 1
}

.dscreen-back {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1
}

.dscreen-inner {
  padding: 14px 14px
}

.home-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 18px 14px 28px;
  color: #fff
}

.home-banner h2 {
  font-size: 16px;
  font-weight: 700
}

.home-banner p {
  font-size: 11px;
  opacity: .8;
  margin-top: 3px
}

.home-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px;
  margin-top: -12px;
  background: #fff;
  border-radius: 14px 14px 0 0;
  position: relative
}

.home-icon {
  text-align: center;
  padding: 10px 2px;
  cursor: pointer;
  border-radius: 8px;
  transition: .15s
}

.home-icon:hover {
  background: var(--primary-light)
}

.home-icon .hi-icon {
  font-size: 22px;
  margin-bottom: 2px
}

.home-icon .hi-label {
  font-size: 10px;
  color: var(--text-muted)
}

.home-section {
  padding: 10px 14px;
  border-top: 6px solid var(--bg)
}

.home-section h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px
}

.notice-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer
}

.notice-item:last-child {
  border-bottom: none
}

.notice-item:hover .ni-title {
  color: var(--primary)
}

.ni-title {
  font-size: 12px
}

.ni-date {
  font-size: 10px;
  color: var(--text-muted)
}

.d-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 8px
}

.d-card h5 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text)
}

.inst-pick-item {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: .15s
}

.inst-pick-item:hover,
.inst-pick-item.selected {
  border-color: var(--primary);
  background: var(--primary-light)
}

.inst-pick-item .ipn {
  font-size: 12px;
  font-weight: 600
}

.inst-pick-item .ipp {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px
}

.pkg-pick-item {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: .15s;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.pkg-pick-item:hover,
.pkg-pick-item.selected {
  border-color: var(--primary);
  background: var(--primary-light)
}

.pkg-pick-item .ppn {
  font-size: 12px;
  font-weight: 600
}

.pkg-pick-item .ppd {
  font-size: 10px;
  color: var(--text-muted)
}

.pkg-pick-item .ppp {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary)
}

.qr-block {
  text-align: center;
  padding: 14px 0
}

.qr-box {
  width: 140px;
  height: 140px;
  border: 2px solid var(--border);
  border-radius: 10px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: #f9fafb
}

.exam-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: .15s;
  font-size: 12px
}

.exam-option:hover {
  border-color: var(--primary);
  background: var(--primary-light)
}

.exam-option.selected {
  border-color: var(--primary);
  background: var(--primary-light)
}

.exam-option.correct {
  border-color: var(--success);
  background: var(--success-light)
}

.exam-option.wrong {
  border-color: var(--danger);
  background: #fdecea
}

.option-key {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0
}

.exam-option.selected .option-key {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff
}

.exam-option.correct .option-key {
  background: var(--success);
  border-color: var(--success);
  color: #fff
}

.exam-option.wrong .option-key {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff
}

.score-big {
  font-size: 52px;
  font-weight: 800;
  text-align: center;
  margin: 10px 0;
  line-height: 1
}

.violation-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--border)
}

.violation-item:last-child {
  border-bottom: none
}

.vi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px
}

.vi-title {
  font-size: 12px;
  font-weight: 600
}

.vi-date {
  font-size: 10px;
  color: var(--text-muted)
}

.vi-sub {
  font-size: 11px;
  color: var(--text-muted)
}

.profile-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 20px 16px;
  color: #fff;
  text-align: center
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 6px
}

.profile-name {
  font-size: 16px;
  font-weight: 700
}

.profile-phone {
  font-size: 11px;
  opacity: .8
}

.profile-list {
  background: #fff
}

.profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer
}

.profile-item:hover {
  background: #fafafa
}

.profile-item:last-child {
  border-bottom: none
}

.pi-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px
}

.pi-icon {
  font-size: 16px
}

.pi-arrow {
  color: var(--text-muted);
  font-size: 12px
}

.audit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px
}

.audit-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  position: relative
}

.audit-card .ac-check {
  position: absolute;
  top: 14px;
  left: 14px
}

.audit-card .ac-head {
  padding-left: 28px;
  margin-bottom: 10px
}

.audit-card .ac-name {
  font-size: 14px;
  font-weight: 700
}

.audit-card .ac-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px
}

.audit-card .ac-score {
  display: inline-block;
  background: var(--success-light);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 3px
}

.audit-card .ac-photos {
  display: flex;
  gap: 6px;
  margin-bottom: 10px
}

.audit-card .ac-photo {
  flex: 1;
  height: 52px;
  background: #f3f4f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: .15s;
  user-select: none
}

.audit-card .ac-photo:hover {
  background: var(--primary-light);
  color: var(--primary);
  outline: 2px solid var(--primary)
}

.audit-card .ac-actions {
  display: flex;
  gap: 6px
}

.funnel {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap
}

.funnel-step {
  flex: 1;
  min-width: 80px;
  background: var(--primary-light);
  padding: 14px 8px;
  text-align: center;
  border-radius: 8px
}

.funnel-step .fs-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary)
}

.funnel-step .fs-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px
}

.pending-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px
}

.pending-item {
  background: var(--primary-light);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: .15s
}

.pending-item:hover {
  background: #d0e4f5
}

.pending-item .pin {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary)
}

.pending-item .pil {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px
}

.info-row {
  display: flex;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border)
}

.info-row:last-child {
  border-bottom: none
}

.info-key {
  min-width: 90px;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0
}

.info-val {
  font-size: 13px;
  flex: 1
}

.qr-scanner-wrap {
  text-align: center;
  padding: 16px 0
}

.qr-scanner {
  width: 240px;
  height: 240px;
  border: 3px solid var(--primary);
  border-radius: 12px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  background: #f9fafb;
  overflow: hidden
}

.qr-scanner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 2s linear infinite;
  z-index: 5
}

@keyframes scan {
  0% {
    top: 0
  }

  100% {
    top: 100%
  }
}

.qr-result {
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
  text-align: left
}

.cb {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary)
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px
}

.section-bar h4 {
  font-size: 14px;
  font-weight: 700
}

.mt16 {
  margin-top: 16px
}

.text-center {
  text-align: center
}

.color-success {
  color: var(--success)
}

.color-danger {
  color: var(--danger)
}