:root{font:14px "Microsoft YaHei",system-ui,sans-serif;color:#203955;background:#f3f7fc}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{min-height:68px;padding:16px 24px;background:#fff;display:flex;align-items:center;gap:18px;border-bottom:1px solid #dee6f0;flex-wrap:wrap}header b{font-size:1.5rem;margin-right:auto}small,.hint{color:#778ca6;font-size:0.85714rem}header small{color:#1767ed}button,input,select{font:inherit;border:1px solid #d9e3f0;border-radius:7px;background:white;color:inherit;padding:9px 12px}button{cursor:pointer}button:hover{background:#ecf4ff}button:disabled{opacity:.5;cursor:default}.primary{background:#1767ed;color:#fff}.primary:hover{background:#1258ce}input{min-width:0}label{display:flex;align-items:center;gap:8px}main{max-width:1600px;margin:auto;padding:24px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.toolbar label input{width:100px}#search{flex:1}#loginPanel{max-width:440px;background:white;border:1px solid #dce5f2;border-radius:16px;padding:32px;margin:10vh auto}form label{margin:16px 0;flex-direction:column;align-items:stretch}form button{width:100%}#quotes{margin-top:20px}.card{background:white;border:1px solid #e0e7f0;border-radius:12px;margin:16px 0;overflow:hidden}.group{display:flex;width:100%;text-align:left;border:0;border-radius:0;background:#eaf3ff;font-weight:bold;font-size:1.1429rem;padding:15px}.card.closed .tablewrap{display:none}.tablewrap{overflow:auto}table{width:100%;min-width:950px;border-collapse:collapse;table-layout:fixed}th,td{text-align:left;padding:11px 14px;border-bottom:1px solid #edf1f7;font-variant-numeric:tabular-nums}th{color:#7c8da4;font-size:0.85714rem;font-weight:500}td{font-size:0.92857rem}.num{text-align:right}.price{color:#1767ed;font-weight:700}.note{display:block;font-size:0.78571rem;color:#9c814c;margin-top:4px}.section{background:#f7f9fd;font-weight:600;color:#58718f}.badge{background:#fff3dc;color:#a5742e;border-radius:5px;padding:3px 6px}.dialoghead{display:flex;justify-content:space-between;align-items:center}dialog{width:650px;max-width:94vw;max-height:85vh;border:1px solid #dce5f2;border-radius:14px;padding:24px;overflow:auto}dialog::backdrop{background:#17324d66}.event{border-bottom:1px solid #e4ebf4;padding:14px 0}.event small{display:block;margin:5px 0}#historyButton{position:relative}#dot{position:absolute;right:2px;top:2px;width:8px;height:8px;border-radius:50%;background:#ef4444}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#183957;color:white;padding:12px 18px;border-radius:8px;display:none;max-width:90vw;z-index:20}.user{display:flex;align-items:center;justify-content:space-between;padding:10px;border-bottom:1px solid #edf1f7}.offline{color:#b55a23}@media(max-width:700px){main{padding:12px}header{padding:12px}header b{font-size:1.2143rem}.toolbar{gap:8px}}

th:nth-child(3),th:nth-child(4),th:nth-child(5){text-align:right}td{overflow-wrap:anywhere}

col:nth-child(1){width:15%}col:nth-child(2){width:18%}col:nth-child(3){width:10%}col:nth-child(4){width:7%}col:nth-child(5){width:13%}col:nth-child(6){width:15%}col:nth-child(7){width:16%}col:nth-child(8){width:6%}

.brandmark{width:38px;height:24px;object-fit:contain;vertical-align:middle;margin-right:8px}.cash-platform td{padding:0}.cash-platform button{width:100%;text-align:left;border:0;background:transparent;border-radius:0;font-weight:600}.cash-table col:nth-child(1){width:11%}.cash-table col:nth-child(2){width:7%}.cash-table col:nth-child(3){width:22%}.cash-table col:nth-child(4){width:9%}.cash-table col:nth-child(5){width:6%}.cash-table col:nth-child(6){width:11%}.cash-table col:nth-child(7){width:14%}.cash-table col:nth-child(8){width:13%}.cash-table col:nth-child(9){width:7%}.cash-table th:nth-child(3){text-align:left}.cash-table th:nth-child(6){text-align:right}.cash-table .note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#quoteDetailText{white-space:pre-wrap;font:inherit;line-height:1.8}button.details{padding:4px 8px;margin-top:4px}

.group{align-items:center;gap:9px}.group-icon{width:28px;height:28px;object-fit:contain;flex:none}.group-count{font-size:0.85714rem;color:#70829d;font-weight:400}.group-chevron{margin-left:auto;transition:transform .2s}.card.closed .group-chevron{transform:rotate(-90deg)}

#quotes col{width:auto}#quotes .panel .num{text-align:right}#quotes .panel th:not(.num){text-align:left}#quotes .panel .groupbar{background:var(--tint,#edf5ff)}

#sessionLoading{max-width:440px;margin:10vh auto;padding:32px;background:white;border:1px solid #dce5f2;border-radius:16px;text-align:center}#sessionLoading h1{font-size:1.2rem}#sessionLoading p{color:#778ca6;line-height:1.7}

/* Account controls stay within the original management dialog. */
#users .user{gap:12px;flex-wrap:wrap;padding:12px 0}
#users .user-identity{flex:1 1 110px;min-width:0;overflow-wrap:anywhere}
#users .user-identity small{display:block;margin-top:4px}
#users .user-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:100%}
#users .user-actions button,#users .user-actions select{padding:7px 9px}
#users .delete-user{color:#b42318}
#users .delete-user:hover:not(:disabled){background:#fff0ee;border-color:#edb5b0}
#users .delete-user:disabled{color:inherit}
#userMessage{line-height:1.6;color:#1767ed;overflow-wrap:anywhere}
#userMessage:empty{display:none}
@media(max-width:500px){#users .user-actions{width:100%}#users .user-actions select{flex:1 1 100%;width:100%}}
