:root{--ink:#162131;--muted:#6e7c90;--line:#dce4ee;--soft:#f4f7fb;--blue:#126ee8;--blue2:#0c57bd;--green:#13865a;--amber:#bd6b00;--red:#be3a3a;--shadow:0 18px 45px rgba(31,48,76,.09)}
*{box-sizing:border-box}
body{margin:0;background:#f3f6fa;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
button,input,select,textarea{font:inherit}
button,.button-link{border:0;border-radius:12px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-weight:750}
button:disabled{opacity:.5;cursor:not-allowed}
.primary{background:var(--ink);color:#fff;padding:12px 18px}.primary:hover{background:#26364b}
.secondary{background:#fff;border:1px solid var(--line);color:#245f9f;padding:11px 16px}
.app-header{height:64px;padding:0 max(26px,calc((100vw - 1500px)/2));display:flex;align-items:center;gap:22px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(18px)}
.global-brand{display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;color:var(--ink);text-decoration:none;white-space:nowrap}.global-brand img{width:34px;height:34px;border-radius:10px;box-shadow:0 7px 18px rgba(18,110,232,.2)}.global-brand strong{font-size:17px}
.global-nav{display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none}.global-nav::-webkit-scrollbar{display:none}.global-nav a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;height:38px;padding:0 15px;border-radius:10px;color:#667085;font-size:14px;font-weight:700;text-decoration:none;transition:background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}.global-nav a:not(.active):hover{background:#edf5ff;color:#1769dc}.global-nav a.active{background:#1769dc;color:#fff;box-shadow:0 7px 18px rgba(23,105,220,.28)}.global-nav a.active:hover{background:#0d58c5;transform:translateY(-1px)}.global-nav a:focus-visible{outline:3px solid rgba(23,105,220,.28);outline-offset:3px}
.header-actions,.hero-actions{display:flex;gap:10px;align-items:center}.header-actions{margin-left:auto;flex:0 0 auto}.cloud-state{border:1px solid #cfe9da;background:#f2fff7;color:var(--green);padding:10px 14px;border-radius:999px;font-weight:750}.cloud-state i{width:8px;height:8px;background:#20a86e;border-radius:50%;display:inline-block;margin-right:7px}
main{max-width:1500px;margin:0 auto;padding:28px}
.hero{background:linear-gradient(125deg,#101e31 0%,#173a65 60%,#0d6ccf 130%);color:#fff;border-radius:24px;padding:34px 38px;display:flex;justify-content:space-between;align-items:end;gap:30px;box-shadow:var(--shadow);overflow:hidden;position:relative}.hero:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.08);right:-90px;top:-160px}.hero>div{position:relative;z-index:1}.eyebrow{font-size:12px;letter-spacing:.22em;font-weight:850;color:#8bc5ff}.hero h1{font-size:32px;margin:10px 0}.hero p:not(.eyebrow){max-width:760px;color:#d6e6f8;line-height:1.75;margin:0}.hero .primary{background:#fff;color:#173a65}.hero .secondary{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3);color:#fff}
.metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:20px 0}.metric{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 20px;box-shadow:0 8px 25px rgba(30,48,78,.04)}.metric span{color:var(--muted);font-size:13px}.metric strong{display:block;font-size:26px;margin-top:8px}.metric em{font-style:normal;color:var(--muted);font-size:12px}
.workspace{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);min-height:570px}.workspace-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line);gap:20px}.tabs{display:flex;background:var(--soft);border-radius:13px;padding:4px;gap:3px}.tabs button{padding:10px 15px;background:transparent;color:var(--muted)}.tabs button.active{background:#fff;color:var(--blue);box-shadow:0 3px 10px rgba(25,54,96,.1)}.filters{display:flex;gap:9px}.filters input,.filters select{border:1px solid var(--line);border-radius:11px;padding:10px 12px;background:#fff;min-width:190px}
.panel{display:none;padding:22px}.panel.active{display:block}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title strong,.section-title span{display:block}.section-title strong{font-size:22px}.section-title span{color:var(--muted);font-size:13px;margin-top:5px}
.kanban{display:grid;grid-template-columns:repeat(5,minmax(240px,1fr));gap:14px;overflow-x:auto;padding-bottom:8px}.lane{background:var(--soft);border:1px solid #e5ebf3;border-radius:16px;min-height:440px;padding:12px}.lane-head{display:flex;justify-content:space-between;padding:4px 3px 12px;font-weight:800}.lane-head span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:2px 8px;color:var(--muted);font-size:12px}.order-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:10px;box-shadow:0 6px 16px rgba(30,48,76,.05)}.order-card.is-focused{border-color:#2473d4;box-shadow:0 0 0 4px rgba(36,115,212,.14),0 10px 24px rgba(30,48,76,.1)}.order-card.overdue{border-color:#f0c3c3}.order-card .top{display:flex;justify-content:space-between;gap:8px}.order-card .order-no{color:var(--blue);font-size:12px;font-weight:800}.order-card .status{font-size:11px;border-radius:999px;padding:3px 8px;background:#eef5ff;color:#245f9f}.order-card h3{font-size:16px;margin:10px 0 4px}.order-card p{font-size:13px;color:var(--muted);margin:4px 0;line-height:1.55}.order-card .money{color:var(--ink);font-weight:850}.order-card footer{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.order-card button{padding:7px 10px;border-radius:9px;font-size:12px;background:#edf4fd;color:#175fae}.order-card button.strong{background:var(--ink);color:#fff}
.supplier-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.supplier-card{border:1px solid var(--line);border-radius:16px;padding:18px}.supplier-card header{display:flex;justify-content:space-between}.supplier-card h3{margin:0}.supplier-card .state{font-size:11px;border-radius:999px;background:#edfff6;color:var(--green);padding:4px 8px}.supplier-card p{color:var(--muted);font-size:13px;margin:9px 0}.chips{display:flex;gap:6px;flex-wrap:wrap}.chips span{border:1px solid var(--line);border-radius:999px;padding:4px 8px;font-size:12px;color:#51647d}.supplier-card footer{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}.supplier-card footer strong{font-size:13px}.supplier-card footer button{color:var(--blue);background:none}
.statement-list{display:grid;gap:12px}.statement{border:1px solid var(--line);border-radius:16px;padding:17px}.statement>header{display:flex;justify-content:space-between;gap:20px}.statement h3{margin:0 0 5px}.statement p{margin:0;color:var(--muted);font-size:13px}.statement .amount{text-align:right}.statement .amount strong{display:block;font-size:22px}.statement .progress{height:7px;background:#edf1f6;border-radius:999px;margin:15px 0;overflow:hidden}.statement .progress i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),#42a5ff)}.statement details{border-top:1px solid var(--line);padding-top:12px}.statement summary{cursor:pointer;font-weight:750}.statement table{margin-top:10px}.statement footer{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}.statement footer button{padding:8px 12px;background:#edf4fd;color:#175fae}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:15px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--line);font-size:13px}th{background:var(--soft);color:#52647b}tbody tr:last-child td{border-bottom:0}
.empty{padding:70px 20px;text-align:center;color:var(--muted)}.empty strong{display:block;color:var(--ink);font-size:18px;margin-bottom:7px}
dialog{border:0;padding:0;border-radius:22px;width:min(760px,calc(100vw - 32px));box-shadow:0 30px 90px rgba(13,29,51,.3)}dialog::backdrop{background:rgba(13,25,43,.58);backdrop-filter:blur(4px)}dialog form>header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}dialog header strong,dialog header span{display:block}dialog header strong{font-size:21px}dialog header span{color:var(--muted);font-size:12px;margin-top:4px}.icon-button{width:38px;height:38px;border-radius:50%;background:var(--soft);color:#53647b;font-size:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:22px 24px}.form-grid label{display:block}.form-grid label.full{grid-column:1/-1}.form-grid label>span{display:block;font-size:13px;font-weight:750;margin-bottom:7px}.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid #ced9e6;border-radius:11px;padding:11px 12px;color:var(--ink);background:#fff}.form-grid textarea{resize:vertical}.form-grid small{display:block;color:var(--muted);margin-top:5px}.privacy-note{margin:18px 24px 0;padding:11px 13px;border-radius:11px;background:#eff8ff;color:#245f9f;font-size:13px}dialog footer{display:flex;justify-content:flex-end;gap:9px;padding:17px 24px;border-top:1px solid var(--line)}
.wide-dialog{width:min(1180px,calc(100vw - 28px));max-height:calc(100vh - 34px);overflow:auto}.wide-dialog>div>header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);background:#fff}.collaboration-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;padding:18px 24px 0}.collaboration-summary article{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:12px}.collaboration-summary span,.collaboration-summary strong{display:block}.collaboration-summary span{color:var(--muted);font-size:12px}.collaboration-summary strong{font-size:19px;margin-top:5px}.collaboration-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:18px 24px 24px}.collaboration-columns>section{min-width:0;border:1px solid var(--line);border-radius:16px;padding:16px}.subsection-head strong,.subsection-head span{display:block}.subsection-head span{color:var(--muted);font-size:12px;margin-top:4px}.compact-table{margin-top:12px;max-height:220px}.compact-table th,.compact-table td{padding:9px;font-size:12px}.inline-form{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.inline-form label>span{display:block;font-size:12px;font-weight:750;margin-bottom:5px}.inline-form label.wide{grid-column:span 2}.inline-form input,.inline-form select,.inline-form textarea{width:100%;border:1px solid #ced9e6;border-radius:9px;padding:9px;background:#fff}.inline-form small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.inline-form button{align-self:end;min-height:40px}.rework-list{display:grid;gap:9px;margin-top:12px;max-height:220px;overflow:auto}.rework-item{border:1px solid var(--line);border-radius:12px;padding:12px}.rework-item header{display:flex;justify-content:space-between;gap:10px}.rework-item p{font-size:12px;color:var(--muted);line-height:1.6;margin:7px 0 0}.rework-item footer{border:0;padding:8px 0 0}.rework-item button{padding:6px 9px;font-size:11px;background:#edf4fd;color:#175fae}
.toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,20px);background:#152134;color:#fff;border-radius:12px;padding:12px 18px;opacity:0;pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.cloud-state{display:none}.global-nav a{padding:0 11px}.metrics{grid-template-columns:repeat(2,1fr)}.supplier-grid{grid-template-columns:1fr 1fr}.workspace-head{align-items:flex-start;flex-direction:column}.kanban{grid-template-columns:repeat(5,270px)}}
@media(max-width:900px){.app-header{height:auto;min-height:64px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:8px 12px}.global-nav{order:3;width:100%}.header-actions{margin-left:auto}.collaboration-columns{grid-template-columns:1fr}.collaboration-summary{grid-template-columns:repeat(3,1fr)}}@media(max-width:680px){.app-header{padding:10px 16px}.global-brand strong{font-size:15px}.global-nav a{height:34px;padding:0 11px;font-size:12px}.header-actions{gap:5px}.app-header .secondary{padding:9px 10px;font-size:12px}main{padding:14px}.hero{padding:25px;display:block}.hero h1{font-size:26px}.hero-actions{margin-top:20px}.metrics{grid-template-columns:1fr 1fr}.workspace-head{padding:13px}.tabs{width:100%;overflow:auto}.tabs button{white-space:nowrap}.filters{width:100%}.filters input{min-width:0;flex:1}.filters select{min-width:110px}.panel{padding:13px}.supplier-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid label.full{grid-column:auto}.collaboration-summary{grid-template-columns:1fr 1fr}.collaboration-columns{padding:12px}.inline-form{grid-template-columns:1fr 1fr}.inline-form label.wide{grid-column:1/-1}}
