/* crm.insco.ai — staff console (login, 申请列表, 客户, 申请详情). Modelled on crm.aksonow.com: light slate UI, left sidebar. */
:root { --ink: #1e293b; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --card: #fff; --green: #15803d; --green-bg: #dcfce7; --blue: #2563eb; --blue-bg: #dbeafe; --amber: #b45309; --amber-bg: #fef3c7; --red: #b91c1c; --red-bg: #fee2e2; --forest: #0f3d23; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; }
.loading { padding: 60px; text-align: center; color: var(--muted); }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login .box { width: min(380px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.login h1 { font-size: 20px; margin: 0 0 4px; } .login p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.login label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.login input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; }
.login button { width: 100%; margin-top: 18px; padding: 11px; background: var(--forest); color: #fff; border: 0; border-radius: 8px; font-weight: 600; cursor: pointer; }
.login .err { color: var(--red); font-size: 13px; margin-top: 10px; }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px 18px; } .brand b { font-size: 20px; color: var(--forest); font-family: Georgia, serif; letter-spacing: .04em; } .brand span { font-size: 12px; color: var(--muted); }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.side nav a:hover { background: var(--bg); } .side nav a.on { background: var(--forest); color: #fff; }
.side .who { position: absolute; bottom: 18px; left: 14px; right: 14px; font-size: 12.5px; color: var(--muted); padding: 10px 12px; border-top: 1px solid var(--line); }
.side .who button { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; margin-left: 6px; }
.main { padding: 26px 32px 60px; }
.main h1 { font-size: 22px; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.main h1 small { font-size: 13px; color: var(--muted); font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.stat.on { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(15,61,35,.12); }
.stat b { display: block; font-size: 24px; } .stat span { font-size: 12.5px; color: var(--muted); }
.bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.bar input, .bar select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.bar input { min-width: 260px; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 13.5px; }
.tbl th { background: var(--bg); color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr { cursor: pointer; } .tbl tbody tr:hover td { background: #f8fafc; }
.tbl .who { display: flex; align-items: center; gap: 10px; } .tbl .who img, .tbl .who .ini { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; } .tbl .who .ini { display: inline-flex; align-items: center; justify-content: center; background: var(--green-bg); color: var(--green); font-weight: 700; font-size: 13px; }
.tbl .who b { display: block; } .tbl .who small { color: var(--muted); }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-draft { background: var(--amber-bg); color: var(--amber); } .st-submitted { background: var(--blue-bg); color: var(--blue); } .st-reviewing { background: #ede9fe; color: #6d28d9; } .st-sent_to_insurer { background: #e0f2fe; color: #0369a1; } .st-issued { background: var(--green-bg); color: var(--green); } .st-cancelled { background: #f1f5f9; color: var(--muted); }
.prog { width: 90px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; } .prog i { display: block; height: 100%; background: var(--green); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cbd5e1; border-radius: 12px; }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 13.5px; } .kv.one { grid-template-columns: 1fr; }
.kv div b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; } .kv .full { grid-column: 1 / -1; }
.list div { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .list div:first-child { border-top: 0; }
.card select, .card textarea, .card input { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.card button.go { margin-top: 8px; padding: 8px 14px; background: var(--forest); color: #fff; border: 0; border-radius: 8px; cursor: pointer; font-weight: 600; }
.ev { font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); } .ev:first-child { border-top: 0; } .ev small { color: var(--muted); display: block; }
.back { font-size: 13px; }
.lic img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.secret { font-family: ui-monospace, Menlo, monospace; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .side .who { position: static; margin-top: 10px; } .main { padding: 16px; } .detail { grid-template-columns: 1fr; } .tbl .hide-m { display: none; } }
