.sales-page{display:grid;gap:14px}.sales-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px}.sales-metrics .metric{padding:12px 14px;border-radius:6px}.sales-metrics .metric strong{font-family:inherit;font-size:22px;margin-top:3px}.sales-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 150px 170px auto auto;gap:8px;align-items:end;margin:0}.sales-toolbar label{min-width:0}.sales-toolbar input,.sales-toolbar select{margin-top:4px}.sales-table{max-height:calc(100vh - 260px);border-radius:6px}.sales-table table{min-width:1260px;table-layout:fixed}.sales-table th:nth-child(1){width:230px}.sales-table th:nth-child(2){width:92px}.sales-table th:nth-child(3){width:128px}.sales-table th:nth-child(4){width:190px}.sales-table th:nth-child(5){width:92px}.sales-table th:nth-child(6){width:120px}.sales-table th:nth-child(7){width:220px}.sales-table th:nth-child(8){width:160px}.sales-table th:nth-child(9){width:76px}.sales-company{display:grid;gap:2px}.sales-company button{width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-company small,.sales-subtle{color:var(--muted)}.sales-last-activity{display:grid;gap:3px;max-height:46px;overflow:hidden}.sales-last-activity time{color:var(--muted);font-size:11px}.sales-last-activity span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:19px;word-break:break-word}.sales-overdue{color:var(--red);font-weight:700}.sales-stage{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border:1px solid #ccd8ee;border-radius:4px;background:#f2f6fd;color:#244887;font-size:11px}.sales-stage.won{border-color:#b9ddcc;background:#edf8f2;color:#24734c}.sales-stage.lost,.sales-stage.stopped{border-color:#ead1cd;background:#fcf0ee;color:#9b4036}.sales-detail-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:6px;background:#fff}.sales-detail-title{display:flex;align-items:center;gap:10px;min-width:0}.sales-detail-title h2{margin:0;color:var(--ink-strong);font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-detail-actions,.sales-inline-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.sales-detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);gap:14px}.sales-stack{display:grid;gap:14px}.sales-panel{padding:0;border-radius:6px;overflow:hidden}.sales-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:45px;padding:9px 13px;border-bottom:1px solid var(--line);background:#f8fafc}.sales-panel-head h2{margin:0;font-size:14px}.sales-panel-body{padding:13px}.sales-kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sales-kv div{min-width:0}.sales-kv small{display:block;color:var(--muted);font-size:11px}.sales-kv strong{display:block;margin-top:3px;color:var(--ink);font-size:13px;overflow-wrap:anywhere}.sales-compact-table{border:0;border-radius:0;box-shadow:none;max-height:340px}.sales-compact-table table{min-width:680px}.sales-compact-table th,.sales-compact-table td{padding:9px 11px}.sales-activity{display:grid;gap:9px}.sales-activity-item{display:grid;grid-template-columns:112px minmax(0,1fr);gap:11px;padding-bottom:9px;border-bottom:1px solid var(--line)}.sales-activity-item:last-child{border-bottom:0;padding-bottom:0}.sales-activity-item time{color:var(--muted);font-size:11px}.sales-activity-item p{margin:0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.sales-contact-list{display:grid;gap:8px}.sales-contact-list>div{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding-bottom:8px;border-bottom:1px solid var(--line)}.sales-contact-list>div:last-child{border-bottom:0;padding-bottom:0}.sales-contact-list strong{font-size:13px;color:var(--ink)}.sales-contact-list span,.sales-contact-list b{font-size:12px;color:var(--muted);font-weight:500;overflow-wrap:anywhere}.sales-empty{padding:26px 12px;text-align:center;color:var(--muted);font-size:12px}.sales-master{display:grid;gap:9px}.sales-master a{color:var(--green);font-weight:700}.sales-dialog{width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:0;border-radius:6px;box-shadow:0 24px 72px #102b2440}.sales-dialog::backdrop{background:#10203880}.sales-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid var(--line);background:#fff}.sales-dialog-head h2{margin:0;font-size:16px;color:var(--ink-strong)}.sales-dialog-close{width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:4px;background:#fff;font-size:18px}.sales-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.sales-form label{font-size:12px;color:var(--muted-strong)}.sales-form .wide{grid-column:1/-1}.sales-form textarea{min-height:82px;resize:vertical}.sales-form-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;grid-column:1/-1;margin:4px -16px -16px;padding:12px 16px;border-top:1px solid var(--line);background:#fff}.sales-opportunity-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:14px}.sales-contract-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sales-contract-fields label{font-size:12px;color:var(--muted)}.sales-section-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);background:#fff}.sales-section-tabs button{padding:10px 15px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted)}.sales-section-tabs button.active{border-bottom-color:#002fa7;color:#002fa7;font-weight:700}.sales-signature-signed{border-left:3px solid #27815a}.sales-signature-failed{border-left:3px solid var(--red)}
@media(max-width:1200px){.sales-metrics{grid-template-columns:repeat(3,1fr)}.sales-toolbar{grid-template-columns:1fr 140px 160px auto}.sales-toolbar .sales-sync{grid-column:4}.sales-detail-grid,.sales-opportunity-layout{grid-template-columns:1fr}.sales-kv{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sales-metrics{grid-template-columns:repeat(2,1fr)}.sales-toolbar{grid-template-columns:1fr 1fr}.sales-toolbar label:first-child{grid-column:1/-1}.sales-detail-head{grid-template-columns:1fr}.sales-detail-actions{justify-content:flex-start}.sales-kv,.sales-contract-fields,.sales-form{grid-template-columns:1fr}.sales-form .wide{grid-column:auto}.sales-form-actions{grid-column:auto}.sales-activity-item{grid-template-columns:1fr;gap:3px}}
.sales-metrics .metric{cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.sales-metrics .metric:hover,.sales-metrics .metric:focus-visible{border-color:#002fa7;box-shadow:0 4px 14px rgba(0,47,167,.12);outline:0;transform:translateY(-1px)}.sales-metrics .metric.active{border-color:#002fa7;box-shadow:inset 0 0 0 1px #002fa7}.sales-table th.sales-actions-column,.sales-table td.sales-actions-column{position:sticky;right:0;z-index:2;min-width:216px;border-left:1px solid var(--line);background:#fff}.sales-table th.sales-actions-column{z-index:4;background:#f8fafc}.sales-row-actions{display:grid;grid-template-columns:repeat(4,48px);gap:4px}.sales-row-actions .action{min-height:30px;padding:4px 6px;font-size:12px}.sales-table tbody tr:hover td.sales-actions-column{background:#f8fafc}@media(max-width:760px){.sales-table th.sales-actions-column,.sales-table td.sales-actions-column{min-width:112px}.sales-row-actions{grid-template-columns:repeat(2,52px)}}
.sales-metrics button.metric{width:100%;color:inherit;text-align:left;font:inherit}.sales-dialog-wide{width:min(1120px,calc(100vw - 32px))}.sales-template-form{display:grid;gap:0}.sales-assessment-meta{position:sticky;top:59px;z-index:1;display:grid;grid-template-columns:210px minmax(240px,1fr) 120px 90px;gap:12px;align-items:end;padding:12px 16px;border-bottom:1px solid var(--line);background:#f8fafc}.sales-assessment-meta label,.sales-assessment-status span{color:var(--muted-strong);font-size:12px}.sales-assessment-meta select{margin-top:4px}.sales-assessment-status{display:grid;gap:5px}.sales-assessment-status strong{display:flex;align-items:center;min-height:36px;color:#174f3e}.sales-form-section{padding:15px 16px;border-bottom:1px solid var(--line)}.sales-form-section:last-of-type{border-bottom:0}.sales-form-section h3{margin:0 0 12px;color:var(--ink-strong);font-size:13px}.sales-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sales-template-field{min-width:0;color:var(--muted-strong);font-size:12px}.sales-template-field.wide{grid-column:1/-1}.sales-template-field>span:first-child{display:block}.sales-template-field b,.sales-template-grid legend b{margin-left:3px;color:var(--red)}.sales-template-grid input,.sales-template-grid select,.sales-template-grid textarea{width:100%;margin-top:4px}.sales-template-grid input[readonly],.sales-template-grid textarea[readonly]{border-color:#dbe2e8;background:#f3f6f8;color:#4f5c67}.sales-template-grid input[type="file"]{padding:6px;background:#fff}.sales-template-grid textarea{min-height:80px;resize:vertical}.sales-template-grid fieldset{grid-column:1/-1;margin:0;padding:0;border:0}.sales-template-grid legend{margin-bottom:7px;color:var(--muted-strong);font-size:12px}.sales-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 12px}.sales-check-grid label{display:flex;align-items:center;gap:7px;min-height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:4px;background:#fff}.sales-check-grid input{width:auto;margin:0}.sales-conditional.is-hidden{display:none}.sales-file-name{display:block;min-height:16px;margin-top:3px;color:#315a4c;font-size:11px;overflow-wrap:anywhere}.sales-template-form>.sales-form-actions{position:sticky;bottom:0;z-index:2;margin:0;padding:12px 16px;border-top:1px solid var(--line);background:#fff}.sales-dialog button[disabled]{cursor:wait;opacity:.62}
.sales-toolbar-wide{grid-template-columns:minmax(180px,1fr) 128px 140px 120px 120px 120px 90px auto auto auto}.sales-customer-row{height:72px;cursor:pointer}.sales-customer-row:hover td{background:#f8fafc}.sales-company strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-row-actions.three{grid-template-columns:52px 52px 76px}.sales-panel-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.sales-panel-controls select{height:32px}.sales-panel-controls .action.active{border-color:#002fa7;color:#002fa7;background:#eef4ff}.sales-collapse p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.sales-collapse.expanded p{display:block}.sales-collapse .drill{margin-top:5px}.sales-master button.drill{width:100%;padding:2px 0;text-align:left}.sales-assessment-meta.compact{grid-template-columns:240px 120px}.sales-form label.is-hidden{display:none}
.sales-attachments{display:grid;gap:8px}.sales-attachment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--line)}.sales-attachment-row:last-child{padding-bottom:0;border-bottom:0}.sales-attachment-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-attachment-row div{display:flex;gap:8px}.sales-attachment-row button.drill{padding:0}
@media(max-width:1000px){.sales-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.sales-dialog-wide{width:calc(100vw - 16px)}.sales-assessment-meta{position:static;grid-template-columns:1fr}.sales-template-grid{grid-template-columns:1fr}.sales-template-field.wide{grid-column:auto}.sales-check-grid{grid-template-columns:1fr}}

#content .sales-workbench{gap:12px;max-width:100%;min-width:0;overflow:hidden;color:var(--ink)}
#content .sales-workbench>*{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.sales-command-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line-strong);background:#fff;border-radius:6px}
.sales-stage-tabs{display:flex;gap:6px;min-width:0;overflow:auto;padding-bottom:1px}
.sales-stage-tab{display:flex;align-items:center;gap:8px;min-width:max-content;height:34px;padding:0 11px;border:1px solid transparent;border-radius:4px;background:#f5f7fa;color:#536070;font-size:12px;font-weight:600;cursor:pointer}
.sales-stage-tab b{font-size:13px;color:#161b22}
.sales-stage-tab:hover,.sales-stage-tab.active{border-color:#002fa7;background:#eef3ff;color:#002fa7}
.sales-stage-tab.active b{color:#002fa7}
.sales-command-actions{display:flex;gap:8px;justify-content:flex-end;white-space:nowrap}
.sales-filter-strip{display:flex;flex-wrap:wrap;gap:8px;align-items:end;padding:11px 12px;border:1px solid var(--line-strong);background:#fff;border-radius:6px}
.sales-filter-strip label{display:grid;gap:4px;min-width:0;color:var(--muted-strong);font-size:12px}
.sales-filter-strip label{flex:0 1 116px}
.sales-filter-strip .sales-search-field{flex:1 1 220px}
.sales-filter-strip input,.sales-filter-strip select{width:100%;height:34px;margin:0;padding:7px 10px;border:1px solid var(--line-strong);border-radius:4px;background:#fff;font-size:12px}
.sales-filter-strip .action{flex:0 0 auto;margin-left:auto}
.sales-filter-strip .action,.sales-command-actions .action{height:34px;padding:0 12px}
.sales-list-panel{min-width:0;overflow:hidden;border:1px solid var(--line-strong);border-radius:6px;background:#fff}
.sales-list-panel .pager{border:0;border-radius:0;background:#fafbfc}
.sales-list-panel .pager.top{border-bottom:1px solid var(--line)}
.sales-list-panel .pager.bottom{border-top:1px solid var(--line)}
#content .sales-customer-table{box-sizing:border-box;width:100%;max-width:100%;min-width:0!important;max-height:calc(100vh - 286px);border:0;border-radius:0;box-shadow:none}
.sales-customer-table table{min-width:1160px;table-layout:fixed}
.sales-customer-table th,.sales-customer-table td{padding:9px 12px;vertical-align:middle}
.sales-customer-table th:nth-child(1){width:245px}
.sales-customer-table th:nth-child(2){width:98px}
.sales-customer-table th:nth-child(3){width:116px}
.sales-customer-table th:nth-child(4){width:136px}
.sales-customer-table th:nth-child(5){width:160px}
.sales-customer-table th:nth-child(6){width:128px}
.sales-customer-table th:nth-child(7){width:230px}
.sales-customer-table th:nth-child(8){width:194px}
.sales-customer-row{height:68px}
.sales-customer-row td{background:#fff}
.sales-customer-row:hover td{background:#f7faf9}
.sales-company strong,.sales-muted-cell strong,.sales-owner-cell strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#15181e;font-size:13px}
.sales-company small,.sales-muted-cell small,.sales-owner-cell small,.sales-count-cell small{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7b8490;font-size:11px;font-weight:500}
.sales-count-cell{display:grid;gap:2px}
.sales-count-cell span{font-weight:700;color:#26323f}
.sales-last-activity{max-height:48px}
.sales-last-activity time{font-size:11px;color:#697386}
.sales-last-activity span{line-height:18px;color:#384452}
.sales-stage{border-color:#cbd7ea;background:#f3f7fd;color:#264c86;font-weight:700}
.sales-stage-converted{border-color:#b7dec9;background:#edf8f2;color:#236f4a}
.sales-stage-stopped{border-color:#edd0ca;background:#fff1ed;color:#9a4438}
.sales-row-actions.three{grid-template-columns:48px 48px 80px;justify-content:end}
#content .sales-row-actions.three .action{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-width:48px!important;max-width:none!important;height:30px;min-height:30px;padding:0 7px;border-radius:4px;font-size:12px;line-height:1;white-space:nowrap;word-break:keep-all}
#content .sales-row-actions.three .action:last-child{min-width:78px!important}
.sales-customer-table th.sales-actions-column,.sales-customer-table td.sales-actions-column{min-width:194px}
.sales-customer-table th.sales-actions-column,.sales-customer-table td.sales-actions-column{min-width:270px}
.sales-customer-table th:nth-child(8){width:270px}
.sales-row-actions.four{grid-template-columns:48px 48px 80px 78px;justify-content:end}
#content .sales-row-actions.four .action{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-width:48px!important;max-width:none!important;height:30px;min-height:30px;padding:0 7px;border-radius:4px;font-size:12px;line-height:1;white-space:nowrap;word-break:keep-all}
#content .sales-row-actions.four .action:nth-child(3){min-width:78px!important}
#content .sales-row-actions.four .action:nth-child(4){min-width:76px!important}

.sales-detail-page{gap:12px}
.sales-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--line-strong);border-radius:6px;background:#fff}
.sales-detail-title{gap:12px}
.sales-detail-title>div{display:flex;align-items:center;gap:10px;min-width:0}
.sales-detail-title h2{font-size:18px;line-height:1.35}
.sales-detail-actions .action{height:34px;padding:0 12px}
.sales-overview-panel{padding:14px 16px;border:1px solid var(--line-strong);border-radius:6px;background:#fff}
.sales-kv-compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px;padding:0}
.sales-kv-compact div{padding:0}
.sales-kv-compact small{font-size:11px;color:#7b8490}
.sales-kv-compact strong{font-size:13px;color:#15181e}
.sales-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:12px;align-items:start}
.sales-timeline-column,.sales-side-column{display:grid;gap:12px;min-width:0}
.sales-panel,.sales-side-block{border:1px solid var(--line-strong);border-radius:6px;background:#fff;box-shadow:none;overflow:hidden}
.sales-panel-head{min-height:43px;padding:9px 12px;background:#fafbfc}
.sales-panel-head h2{font-size:14px;color:#15181e}
.sales-panel-controls .action{height:30px;padding:0 10px;font-size:12px}
.sales-panel-controls .action.active{border-color:#002fa7;background:#eef3ff;color:#002fa7}
.sales-panel-controls select{height:30px;min-width:116px;padding:4px 8px;border:1px solid var(--line-strong);border-radius:4px;background:#fff}
.sales-timeline{display:grid;gap:0;padding:0}
.sales-timeline-item{display:grid;grid-template-columns:142px minmax(0,1fr);gap:14px;padding:13px 14px;border-bottom:1px solid var(--line);position:relative}
.sales-timeline-item:last-child{border-bottom:0}
.sales-timeline-item time{color:#697386;font-size:12px;line-height:20px}
.sales-timeline-item p,.sales-timeline-item .sales-collapse p{margin:0;color:#283341;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.sales-timeline-item p strong{display:block;color:#15181e;font-size:13px}
.sales-timeline-item p span,.sales-timeline-item p small{display:block;margin-top:2px;color:#5a6573}
.sales-collapse p{-webkit-line-clamp:4}
.sales-collapse .drill{margin-top:7px}
.sales-side-title{height:38px;padding:10px 12px;border-bottom:1px solid var(--line);background:#fafbfc;color:#15181e;font-size:13px;font-weight:700}
.sales-side-body{display:grid;gap:0;padding:0}
.sales-side-row,.sales-side-link{display:grid;gap:3px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;color:#15181e}
.sales-side-row:last-child,.sales-side-link:last-child{border-bottom:0}
.sales-side-row strong,.sales-side-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#15181e}
.sales-side-row span,.sales-side-row b,.sales-side-link b{font-size:12px;color:#748091;font-weight:500;overflow-wrap:anywhere}
.sales-side-link{cursor:pointer}
.sales-side-link:hover{background:#f7faf9}
.sales-attachment-link i{display:flex;gap:9px;align-items:center;margin-top:4px;font-style:normal}
.sales-attachment-link i .drill{padding:0}
.sales-master{padding:10px 12px}
.sales-master-link{display:block;color:#0f6b4b;font-weight:700;overflow-wrap:anywhere}

@media(max-width:1180px){
  .sales-command-bar{grid-template-columns:1fr}
  .sales-command-actions{justify-content:flex-start}
  .sales-detail-layout{grid-template-columns:1fr}
  .sales-kv-compact{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .sales-command-bar,.sales-filter-strip,.sales-detail-hero,.sales-overview-panel{margin-left:-4px;margin-right:-4px}
  .sales-filter-strip label{flex:1 1 calc(50% - 8px)}
  .sales-filter-strip .sales-search-field{flex-basis:100%}
  .sales-command-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .sales-command-actions .action{width:100%}
  .sales-detail-hero{grid-template-columns:1fr}
  .sales-detail-title{align-items:flex-start}
  .sales-detail-title>div{display:grid;gap:6px}
  .sales-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .sales-detail-actions .action{width:100%}
  .sales-kv-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sales-timeline-item{grid-template-columns:1fr;gap:4px}
}
@media(max-width:520px){
  .sales-filter-strip label,.sales-filter-strip .sales-search-field{flex-basis:100%}
  .sales-filter-strip .action{width:100%;margin-left:0}
  .sales-detail-actions,.sales-kv-compact{grid-template-columns:1fr}
}

.startup-order-page{display:grid;gap:12px;max-width:100%;min-width:0;overflow:hidden}
.startup-order-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:end;padding:11px 12px;border:1px solid var(--line-strong);border-radius:6px;background:#fff}
.startup-order-toolbar label{display:grid;gap:4px;flex:0 1 132px;min-width:0;color:var(--muted-strong);font-size:12px}
.startup-order-toolbar .startup-order-search{flex:1 1 240px}
.startup-order-toolbar input,.startup-order-toolbar select{width:100%;height:34px;margin:0;padding:7px 10px;border:1px solid var(--line-strong);border-radius:4px;background:#fff;font-size:12px}
.startup-order-toolbar .action{height:34px;padding:0 12px}
.startup-order-toolbar #startupOrderFilter{margin-left:auto}
.startup-order-list,.startup-order-detail-section,.startup-order-detail-grid,.startup-order-detail-head{border:1px solid var(--line-strong);border-radius:6px;background:#fff;overflow:hidden}
.startup-order-list .pager{border:0;border-radius:0;background:#fafbfc}
.startup-order-list .pager:first-child{border-bottom:1px solid var(--line)}
.startup-order-list .pager:last-child{border-top:1px solid var(--line)}
.startup-order-table{width:100%;min-width:0!important;max-height:calc(100vh - 250px);border:0;border-radius:0;box-shadow:none}
.startup-order-table table{min-width:1180px;table-layout:fixed}
.startup-order-table th,.startup-order-table td{padding:9px 12px;vertical-align:middle}
.startup-order-table th:nth-child(1){width:142px}
.startup-order-table th:nth-child(2){width:150px}
.startup-order-table th:nth-child(3){width:240px}
.startup-order-table th:nth-child(4){width:96px}
.startup-order-table th:nth-child(5){width:96px}
.startup-order-table th:nth-child(6){width:104px}
.startup-order-table th:nth-child(7){width:106px}
.startup-order-table th:nth-child(8){width:122px}
.startup-order-table th:nth-child(9){width:132px}
.startup-order-table th:nth-child(10){width:82px}
.startup-order-row{height:62px;cursor:pointer}
.startup-order-row:hover td{background:#f7faf9}
.startup-order-table strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#15181e}
.startup-order-table small{display:block;margin-top:3px;color:#748091;font-size:11px}
.startup-order-operation{position:sticky;right:0;z-index:2;background:#fff;border-left:1px solid var(--line)}
th.startup-order-operation{z-index:4;background:#f3f5f8}
.startup-order-row:hover .startup-order-operation{background:#f7faf9}
.startup-order-detail-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 16px}
.startup-order-detail-head>div{display:flex;align-items:center;gap:10px;min-width:0}
.startup-order-detail-head h2{margin:0;font-size:18px;color:#15181e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.startup-order-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px;padding:14px 16px}
.startup-order-detail-grid div{min-width:0}
.startup-order-detail-grid small{display:block;color:#7b8490;font-size:11px}
.startup-order-detail-grid strong{display:block;margin-top:4px;color:#15181e;font-size:13px;overflow-wrap:anywhere}
.startup-order-section-title{height:40px;padding:11px 12px;border-bottom:1px solid var(--line);background:#fafbfc;color:#15181e;font-size:14px;font-weight:700}
.startup-order-detail-table{border:0;border-radius:0;box-shadow:none;max-height:360px}
.startup-order-detail-table table{min-width:860px}

@media(max-width:1180px){
  .startup-order-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .startup-order-toolbar label{flex:1 1 calc(50% - 8px)}
  .startup-order-toolbar .startup-order-search{flex-basis:100%}
  .startup-order-toolbar #startupOrderFilter{margin-left:0}
  .startup-order-detail-head{grid-template-columns:1fr}
  .startup-order-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .startup-order-toolbar label,.startup-order-toolbar .startup-order-search{flex-basis:100%}
  .startup-order-toolbar .action{width:100%}
  .startup-order-detail-grid{grid-template-columns:1fr}
}

/* release polish */
#content .sales-page{--sales-accent:#1f6f5b;--sales-accent-soft:#edf7f3;--sales-amber:#996d1b;--sales-amber-soft:#fff7e6;--sales-ink:#17202b;--sales-muted:#687386;gap:12px;color:var(--sales-ink)}
#content .sales-command-bar,#content .sales-filter-strip,#content .sales-list-panel,#content .sales-detail-hero,#content .sales-overview-panel,#content .sales-panel,#content .sales-side-block,#content .startup-order-toolbar,#content .startup-order-list,#content .startup-order-detail-head,#content .startup-order-detail-grid,#content .startup-order-detail-section{border-color:#d9dee8;border-radius:6px;background:#fff;box-shadow:none}
#content .sales-command-bar{grid-template-columns:minmax(0,1fr) auto;padding:12px 14px}
#content .sales-stage-tabs{gap:4px;padding:0}
#content .sales-stage-tab{height:32px;border-color:#e3e7ef;background:#fff;color:#475467}
#content .sales-stage-tab:hover,#content .sales-stage-tab.active{border-color:#7aa998;background:var(--sales-accent-soft);color:#175f4d}
#content .sales-stage-tab.active b{color:#175f4d}
#content .sales-command-actions .action,#content .sales-filter-strip .action,#content .sales-detail-actions .action{height:32px;border-radius:4px}
#content .sales-filter-strip{padding:10px 14px}
#content .sales-filter-strip input,#content .sales-filter-strip select{height:32px;border-radius:4px}
#content .sales-customer-table{max-height:calc(100vh - 272px)}
#content .sales-customer-table table{min-width:1230px}
#content .sales-customer-table th,#content .sales-customer-table td{border-width:0 0 1px 0;border-color:#eef1f5;padding:9px 12px}
#content .sales-customer-table th{height:38px;background:#f7f8fa;color:#667085;font-size:12px}
#content .sales-customer-row{height:70px}
#content .sales-customer-row:hover td{background:#f6faf8}
#content .sales-company strong,#content .sales-muted-cell strong,#content .sales-owner-cell strong{font-size:13px;font-weight:700}
#content .sales-company small,#content .sales-muted-cell small,#content .sales-owner-cell small,#content .sales-count-cell small{color:var(--sales-muted)}
#content .sales-stage{border-color:#cbd6e3;background:#f5f7fb;color:#314560}
#content .sales-stage-converted{border-color:#a8d5bf;background:#edf8f2;color:#176448}
#content .sales-stage-active{border-color:#d9c486;background:var(--sales-amber-soft);color:var(--sales-amber)}
#content .sales-row-actions.four{grid-template-columns:48px 48px 78px 76px;gap:5px}
#content .sales-row-actions.four .action{border-color:#d9dee8;background:#fff;color:#2f3a4a}
#content .sales-row-actions.four .action:hover{border-color:#7aa998;background:var(--sales-accent-soft);color:#175f4d}
#content .sales-actions-column{box-shadow:-8px 0 14px #ffffffd9}
#content .sales-detail-hero{padding:13px 16px}
#content .sales-detail-title h2{font-size:19px;font-weight:700;letter-spacing:0}
#content .sales-detail-layout{grid-template-columns:minmax(0,1fr) 360px}
#content .sales-kv-compact{grid-template-columns:repeat(6,minmax(0,1fr))}
#content .sales-kv-compact div{min-height:42px}
#content .sales-kv-compact strong{line-height:1.45}
#content .sales-panel-head,#content .sales-side-title{background:#f7f8fa;border-bottom-color:#e8ebf0}
#content .sales-panel-controls{gap:5px}
#content .sales-panel-controls .action,#content .sales-panel-controls select{height:28px}
#content .sales-timeline-item{grid-template-columns:136px minmax(0,1fr);padding:12px 14px}
#content .sales-timeline-item time{color:#667085}
#content .sales-collapse p{-webkit-line-clamp:3;line-height:1.62}
#content .sales-side-link,#content .sales-side-row{padding:10px 12px;border-bottom-color:#edf0f4}
#content .sales-side-link b{display:flex;gap:6px;align-items:center;min-width:0}
#content .sales-error-dot{display:inline-flex;align-items:center;height:20px;padding:0 6px;border:1px solid #f0c36d;border-radius:4px;background:#fff7e6;color:#8a5a00;font-size:11px;font-style:normal;font-weight:700;white-space:nowrap}
#content .sales-attachment-link i{gap:10px}
#content .sales-empty{padding:22px 12px;color:#8a94a3}
@media(max-width:1280px){#content .sales-kv-compact{grid-template-columns:repeat(3,minmax(0,1fr))}#content .sales-detail-layout{grid-template-columns:1fr}}
@media(max-width:760px){#content .sales-command-bar{grid-template-columns:1fr}#content .sales-command-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}#content .sales-kv-compact{grid-template-columns:repeat(2,minmax(0,1fr))}#content .sales-timeline-item{grid-template-columns:1fr}#content .sales-detail-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
