/* 租户页「营业执照读数并排核实」块。按《设计总纲》：字阶 13/16/20/24、间距 4 的倍数、圆角 8/12、只有浮层带影、一屏一个强调色、状态只用一种线索、尊重「减少动画」。
   令牌沿用租户页（tenants.css）的变量；规则全部以 .lr 开头，不影响别的页。 */
.lr{margin:0;padding:24px;border-top:1px solid var(--line)}
.lr-h{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.lr-h h4{margin:0;font-size:16px;line-height:24px;font-weight:600}
.lr-tip{margin:8px 0 16px;font-size:13px;line-height:20px;color:var(--ink2)}
.lr-chip{display:inline-flex;align-items:center;padding:0 8px;border-radius:999px;font-size:13px;line-height:24px;font-weight:600;background:#eef1f5;color:var(--ink2);white-space:nowrap}
.lr-chip.ok{background:var(--ok-bg);color:var(--ok)}
.lr-chip.warn{background:var(--warn-bg);color:var(--warn)}
.lr-chip.cand{background:#eef1f5;color:var(--ink2)}
.lr-dim{color:var(--ink2);font-size:13px;line-height:20px;font-weight:400}
.lr-why{display:block;margin-top:4px;font-size:13px;line-height:20px;color:var(--ink2);font-weight:400}

.lr-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}
.lr-card+.lr-card{margin-top:12px}
.lr-src{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line);font-size:13px;line-height:20px;color:var(--ink2)}
.lr-t{width:100%;border-collapse:collapse;font-size:16px;line-height:24px}
.lr-t th,.lr-t td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.lr-t thead th{font-size:13px;line-height:20px;font-weight:600;color:var(--ink2);background:#f7f8fa}
.lr-t tbody th{width:20%;font-weight:600;color:var(--ink)}
.lr-t tbody tr:last-child th,.lr-t tbody tr:last-child td{border-bottom:0}
.lr-t td b{font-weight:600}
.lr-code{white-space:nowrap;font-variant-numeric:tabular-nums;overflow-wrap:normal}
.lr-t td{padding-left:12px;padding-right:12px}
.lr-t tbody th{padding-left:16px}
.lr-t td .lr-btn{display:flex;align-items:center;margin-top:8px}

.lr-foot{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;justify-content:space-between;margin-top:16px}
.lr-blocked{padding:12px 16px;border:1px dashed var(--line);border-radius:12px;color:var(--ink2);font-size:13px;line-height:20px}
.lr-blocked b{color:var(--ink)}
.lr-blocked ul{margin:4px 0 0;padding-left:20px}

.lr-btn{height:40px;padding:0 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:inherit;font-weight:600;color:inherit;cursor:pointer;white-space:nowrap;transition:background-color .15s var(--ease),border-color .15s var(--ease)}
.lr-btn:hover{background:#f4f6f9}
.lr-btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.lr-btn.primary:hover{background:#014f9b;border-color:#014f9b}
.lr-btn.sm{height:32px;padding:0 12px;font-size:13px;line-height:20px;color:var(--blue);background:var(--blue-soft);border-color:var(--blue-soft)}
.lr-btn:disabled{opacity:.5;cursor:not-allowed}
.lr-link{display:inline-flex;align-items:center;min-height:32px;padding:0 4px;border:0;background:none;font:inherit;font-size:13px;line-height:20px;font-weight:600;color:var(--blue);cursor:pointer}
.lr-link:hover{text-decoration:underline}
.lr :focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* 操作空间：点按钮后在这一块下面就地展开，不弹窗 */
.lr-space{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s var(--ease)}
.lr-space.on{grid-template-rows:1fr}
.lr-form{min-height:0;overflow:hidden;margin:0 16px;padding:16px 0;border-top:1px solid var(--line)}
.lr-foot+.lr-space .lr-form,.lr-card .lr-space .lr-form{margin:0 16px}
.lr-form p{margin:0 0 8px}
.lr-form label{display:block;margin-bottom:8px;font-size:13px;line-height:20px;font-weight:600;color:var(--ink2)}
.lr-form textarea{width:100%;min-height:64px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;color:var(--ink);resize:vertical}
.lr-err{min-height:20px;margin:4px 0 8px;font-size:13px;line-height:20px;color:var(--bad)}
.lr-row{display:flex;justify-content:flex-end;gap:8px}

/* 空态 / 加载态 / 出错态 / 无权限态 */
.lr-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:32px 24px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--ink2)}
.lr-empty b{color:var(--ink);font-size:16px;line-height:24px;font-weight:600}
.lr-empty span{max-width:480px}
.lr-skel{display:flex;flex-direction:column;gap:8px}
.lr-skel i{display:block;height:48px;border-radius:12px;background:#eceff3;animation:lr-pulse 1.4s ease-in-out infinite}
@keyframes lr-pulse{50%{opacity:.5}}

/* 手机：表格改成每个字段一张小卡，列名用 data-l 补在值前面 */
@media (max-width:760px){
  .lr{padding:16px}
  .lr-t thead{display:none}
  .lr-t,.lr-t tbody,.lr-t tr,.lr-t th,.lr-t td{display:block;width:100%}
  .lr-t tr{padding:12px 16px;border-bottom:1px solid var(--line)}
  .lr-t tbody tr:last-child{border-bottom:0}
  .lr-t th,.lr-t td{padding:4px 0;border:0}
  .lr-t tbody th{width:100%;padding-left:0}
  .lr-t td::before{content:attr(data-l);display:block;font-size:13px;line-height:20px;color:var(--ink2)}
  .lr-btn{height:44px}
  .lr-btn.sm{height:44px}
  .lr-link{min-height:44px}
  .lr-row .lr-btn{flex:1}
}
@media (prefers-reduced-motion:reduce){.lr *{animation:none!important;transition:none!important}}

/* 壳（skin.css）给 #extApp 里所有 button 统一加了 40 高 / 16 内边距 / 白底；租户页挂在原生页里不受它影响，但壳开着时同样压一遍，保险 */
html.sh-on .lr button.lr-link{height:auto;min-height:32px;padding:0 4px;border:0;background:none;color:var(--blue);font-size:13px;line-height:20px;font-weight:600}
html.sh-on .lr button.lr-btn.sm{height:32px;padding:0 12px;font-size:13px;line-height:20px;background:var(--blue-soft);border-color:var(--blue-soft);color:var(--blue)}
@media (max-width:760px){html.sh-on .lr button.lr-btn.sm{height:44px}html.sh-on .lr button.lr-link{min-height:44px}}

/* ===== 手机端（§3C，11/14 本地起草，zc-fast）：证照读数块 ===== */
@media (max-width:900px){
  /* 4. 营业执照读数块 .lr：列表行、细线分隔、无卡中卡 */
  .lr .lr-card{border:0;border-radius:0;background:transparent;overflow:visible}
  .lr .lr-card+.lr-card{margin-top:0}
  .lr .lr-src{border:0;border-bottom:1px solid var(--line);padding:12px 16px}
  .lr .lr-t thead{display:none}
  .lr .lr-t,.lr .lr-t tbody,.lr .lr-t tr,.lr .lr-t th,.lr .lr-t td{display:block;width:100%}
  .lr .lr-t tr{padding:0;border:0;border-bottom:1px solid var(--line)}
  .lr .lr-t tr:last-child{border-bottom:0}
  .lr .lr-t th,.lr .lr-t td{padding:12px 16px;border:0;text-align:left}
  .lr .lr-t th{font-weight:600;color:var(--ink);width:100%;padding-left:0}
  .lr .lr-t td{padding-left:16px;padding-right:16px}
  .lr .lr-t td::before{content:attr(data-l);display:block;font-size:13px;line-height:20px;color:var(--ink2);margin-bottom:4px}
  .lr .lr-code{white-space:nowrap}

  /* 5. 读数块按钮：nowrap、min-height44px */
  .lr .lr-btn,.lr .lr-btn.sm,.lr .lr-link{min-height:44px;white-space:nowrap}
  .lr .lr-btn.sm{background:var(--blue-soft);border-color:var(--blue-soft);color:var(--blue)}
  .lr .lr-row{flex-wrap:wrap;gap:8px}
  .lr .lr-row .lr-btn{flex:1 1 auto}

  /* 6. 壳兼容：确保按钮不被覆盖 */
  html.sh-on .lr button.lr-btn,html.sh-on .lr button.lr-btn.sm,html.sh-on .lr button.lr-link{min-height:44px;height:auto;padding:0 16px}
}
