/* 放心签 SaaS 两端共用样式（index.html 货主 body.page-shipper / driver.html 司机 body.page-driver）。
   两端原样式只差两处：货主端选择器多了 textarea（司机端页面没有 textarea，合并无影响）；司机端多了合同要点表格样式（已限定 .page-driver）。 */
 body{font:15px/1.6 system-ui,sans-serif;max-width:560px;margin:24px auto;padding:0 16px;color:#222}
 input,button,textarea{font:inherit;font-size:16px;padding:12px 12px;margin:6px 0;width:100%;box-sizing:border-box}
 button{background:#1a73e8;color:#fff;border:0;border-radius:8px;cursor:pointer;min-height:46px;touch-action:manipulation;-webkit-tap-highlight-color:rgba(0,0,0,.15)}
 #pdfOv .bar a{padding:10px 4px;min-height:24px}
 button.secondary{background:#666}
 button:disabled{opacity:.5;cursor:not-allowed}
 .box{border:1px solid #ddd;border-radius:8px;padding:12px;margin:12px 0}
 .muted{color:#777;font-size:13px}
 .ok{color:#0a7;font-weight:600}
 .item{display:block;width:100%;text-align:left;background:#fff;color:#222;border:1px solid #ddd;border-radius:10px;padding:12px;margin:8px 0;min-height:64px;line-height:1.5;font-size:15px}
 .item .t{font-weight:600}.item .s{font-size:13px;color:#555}.item .b{display:inline-block;font-size:12px;padding:1px 8px;border-radius:999px;background:#e8f0fe;color:#174ea6;margin-left:6px}
 .item .b.done{background:#c8e6c9;color:#1b5e20}.item .b.bad{background:#fde7e9;color:#a50e0e}.item .b.old{background:#eee;color:#555}
 .steps{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 16px;font-size:12px}
 .steps span{padding:2px 8px;border-radius:999px;background:#eee;color:#555}
 .steps span.on{background:#1a73e8;color:#fff}
 .steps span.done{background:#c8e6c9;color:#1b5e20}
 #pdfOv{display:none;position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.85);flex-direction:column}
 #pdfOv.on{display:flex}
 #pdfOv .bar{display:flex;gap:8px;padding:8px 12px;background:#111;color:#fff;align-items:center}
 #pdfOv .bar button{width:auto;margin:0;padding:6px 14px}
 #pdfOv .pages{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background:#525659;padding:8px;text-align:center}
 #pdfOv .pages img{width:100%;max-width:900px;height:auto;background:#fff;margin:0 auto 8px;display:block}
 #pdfOv .bar a{color:#8ab4f8;font-size:13px;margin-left:auto}
 /* ── 仅司机端：合同要点表格（body.page-driver）── */
 .page-driver table{width:100%;border-collapse:collapse;font-size:14px}
 .page-driver td{padding:3px 6px;border-bottom:1px solid #eee;vertical-align:top}
 .page-driver td:first-child{color:#777;width:34%}
 /* ── 以下两端共用 ── */
 .box.fold{padding:0;overflow:hidden}
 .fh{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 14px;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:rgba(0,0,0,.08)}
 .fh:focus{outline:2px solid #8ab4f8;outline-offset:-2px}
 .ft{flex:1;font-weight:600;min-width:0}
 .tag{font-size:12px;line-height:1.5;padding:1px 9px;border-radius:999px;background:#e8f0fe;color:#174ea6;white-space:nowrap}
 .tag.ok{background:#c8e6c9;color:#1b5e20}.tag.warn{background:#ffe9d6;color:#9a3412}.tag.bad{background:#fde7e9;color:#a50e0e}.tag.off{background:#eee;color:#555}
 .fa{flex:none;width:9px;height:9px;margin:0 4px 3px 4px;border-right:2px solid #666;border-bottom:2px solid #666;transform:rotate(45deg);transition:transform .15s}
 .fold.closed>.fh .fa{transform:rotate(-45deg);margin-bottom:0}
 .fb{padding:0 14px 14px}
 .fold.closed>.fb{display:none}
 #log{position:sticky;bottom:0;z-index:5;background:#fff;border-top:1px solid #ddd;margin:12px 0 0;padding:8px 2px;white-space:pre-wrap;word-break:break-all;max-height:30vh;overflow:auto;font-family:inherit}
 #log:empty{display:none}
 .tabs{display:flex;gap:8px;margin:4px 0 8px}
 .tabs button{flex:1;min-height:46px;margin:0;background:#eee;color:#555;font-weight:600}
 .tabs button.on{background:#1a73e8;color:#fff}
 .err{color:#c5221f;font-size:13px;margin:2px 0 4px}
 .err:empty{display:none}
