.deal-detail-page{color:#123443;max-width:1600px;margin:auto}.deal-detail-back{display:inline-block;margin-bottom:24px;color:hsl(var(--brand-h) 100% 35.5%);font-size:14px}.deal-detail-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.deal-detail-header h1{font-size:26px;line-height:1.35;margin:0 0 12px;overflow-wrap:anywhere}.deal-detail-status{display:flex;gap:12px;align-items:center}.deal-detail-status>.pill{text-transform:uppercase}.deal-detail-status>button:not(.icon){font-size:12px;text-transform:uppercase;min-height:30px;border:0;background:#eef2f5}.deal-stage-rail{display:flex;overflow:auto;margin-bottom:32px;gap:3px;padding-bottom:4px}.deal-stage-rail button{flex:1 0 110px;border:0;border-radius:0;min-height:40px;background:#edf1f4;color:#40545e;font-size:12px;padding:8px 18px;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%,10px 50%)}.deal-stage-rail button:first-child{clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%)}.deal-stage-rail button.reached{background:hsl(var(--brand-h) 100% 35.5%);color:white}.deal-stage-rail button[aria-current]{background:hsl(var(--brand-h) 100% 25.5%);font-weight:700}.deal-stage-rail button:focus-visible{outline:3px solid hsl(var(--brand-h) 100% 12.0%);outline-offset:-4px}.deal-detail-columns{display:grid;grid-template-columns:320px minmax(0,1fr);gap:32px}.deal-info-section{border:1px solid #d4dce1;border-radius:3px;margin-bottom:16px;background:white}.deal-info-section>summary{list-style:none;display:flex;justify-content:space-between;cursor:pointer;font-weight:700;padding:16px 20px;font-size:16px;border-bottom:1px solid transparent}.deal-info-section[open]>summary{border-bottom-color:#e4e8eb}.deal-info-section:not([open])>summary span{transform:rotate(180deg)}.deal-info-section>div{padding:16px 20px}.deal-info-section dl{margin:0}.deal-info-field{margin-bottom:18px}.deal-info-field:last-child{margin-bottom:0}.deal-info-field dt{font-size:12px;color:#637782;margin-bottom:4px}.deal-info-field dd{margin:0;display:flex;align-items:start;justify-content:space-between;gap:12px;font-size:14px;overflow-wrap:anywhere}.deal-info-field dd span{min-width:0}.deal-info-field .icon,.deal-contact-title .icon{min-height:24px;width:24px;padding:3px;border:0;color:hsl(var(--brand-h) 100% 35.5%);flex-shrink:0}.deal-info-field .icon svg,.deal-contact-title .icon svg{width:16px;height:16px}.deal-contact-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.deal-contact-title>.ghost{padding:0;min-height:26px;color:hsl(var(--brand-h) 100% 35.5%);white-space:normal;text-align:left}.deal-info-section p{font-size:14px;line-height:1.5;margin:12px 0;overflow-wrap:anywhere}.deal-info-section a,.deal-info-section details{font-size:13px;color:hsl(var(--brand-h) 100% 35.5%)}.deal-info-section>div>button{margin-top:16px;font-size:13px;color:hsl(var(--brand-h) 100% 35.5%);border:0;padding:0;min-height:24px}.deal-next-tasks{border:1px solid #d4dce1;border-radius:3px;padding:20px 24px;margin-bottom:28px}.deal-next-tasks>header{display:flex;align-items:center;justify-content:space-between}.deal-next-tasks h2{font-size:18px;margin:0}.deal-next-tasks>header svg{width:20px;height:20px}.deal-tasks-empty{text-align:center;padding:28px 0 18px;color:#6c7d87;font-size:14px}.deal-tasks-empty>svg{width:40px;height:40px;color:#99bbc9}.deal-next-tasks>button{margin:0 auto;display:flex;color:hsl(var(--brand-h) 100% 35.5%);border:0}.deal-task-row{padding:16px 0;border-bottom:1px solid #e6e9ed;display:flex;gap:16px;align-items:center;justify-content:space-between}.deal-task-row>div{display:flex;align-items:center;gap:12px}.deal-task-row svg{width:20px;height:20px}.deal-task-row small{display:block;color:#637782;font-size:12px;margin-top:6px}.deal-detail-tabs{display:flex;overflow:auto;border-bottom:1px solid #cdd5dc;gap:24px}.deal-detail-tabs a{white-space:nowrap;padding:12px 0;font-size:14px;color:#4c606c;border-bottom:3px solid transparent}.deal-detail-tabs a.active{color:hsl(var(--brand-h) 100% 35.5%);border-bottom-color:hsl(var(--brand-h) 100% 35.5%);font-weight:700}.deal-detail-content{padding:24px 0}.deal-history-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:12px;font-size:14px}.deal-history-toolbar button{font-size:14px}.deal-detail-content .timeline-item{padding:16px 20px;border:1px solid #dde3e7;background:#fff;border-radius:4px;margin-bottom:18px}.deal-detail-content .timeline-item p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.deal-detail-content .timeline-item small{display:block;margin:8px 0;color:#637782}.deal-detail-content .product-row{flex-wrap:wrap}.deal-detail-content .button-link{display:inline-flex;align-items:center;gap:8px}.deal-detail-content .button-link svg{width:20px;height:20px}
@media(max-width:1100px){.deal-detail-columns{grid-template-columns:280px minmax(0,1fr);gap:24px}.deal-detail-header{align-items:flex-start}.deal-detail-header>.actions{flex-wrap:wrap;justify-content:flex-end}.deal-task-row{flex-wrap:wrap}}
.deal-detail-columns>*{min-width:0}
@media(max-width:760px){.deal-detail-columns{grid-template-columns:minmax(0,1fr)}.deal-detail-header{flex-wrap:wrap}.deal-detail-header h1{font-size:24px}.deal-detail-header>.actions{justify-content:flex-start}.deal-detail-status{flex-wrap:wrap}.deal-stage-rail{margin-bottom:24px}.deal-detail-tabs{gap:20px}.deal-next-tasks{padding:20px}.deal-history-toolbar{flex-wrap:wrap}}

.deal-products-table{overflow:auto}.deal-products-table table{width:100%;border-collapse:collapse}.deal-products-table th,.deal-products-table td{padding:16px 12px;text-align:left;border-bottom:1px solid #dce2e6;font-size:14px}.deal-products-table th{font-size:12px;color:#61747f}.deal-products-total{display:flex;justify-content:flex-end;gap:24px;padding:16px}.deal-product-drawer{width:600px;max-width:100%;top:64px;height:calc(100vh - 64px);padding:0;display:flex;flex-direction:column;background:white;border-left:1px solid #d1dbe1}.deal-product-drawer[hidden]{display:none}.deal-product-drawer>header{display:flex;align-items:center;justify-content:space-between;min-height:84px;padding:20px 24px;border-bottom:1px solid #dce2e6}.deal-product-drawer h2{font-size:20px;margin:0}.deal-product-drawer>section,.deal-product-drawer form>section{padding:24px;overflow:auto;flex:1}.deal-product-drawer form{display:flex;flex-direction:column;min-height:0;flex:1}.deal-product-drawer footer{display:flex;justify-content:space-between;padding:20px 24px;border-top:1px solid #dce2e6}.deal-product-steps{display:flex;align-items:center;gap:16px;padding:24px;font-size:14px;color:#6c7d87}.deal-product-steps .active{color:hsl(var(--brand-h) 100% 35.5%)}.deal-product-drawer .field{margin-bottom:20px}.deal-catalog-head{display:flex;justify-content:space-between;font-size:11px;background:#f2f5f7;padding:16px;margin-top:24px}.deal-product-choice{display:flex;align-items:center;gap:12px;padding:20px 12px;border-bottom:1px solid #dce2e6;cursor:pointer;font-size:14px}.deal-product-choice input{width:18px;height:18px}.deal-product-choice span{flex:1}.deal-product-summary{margin-top:32px;padding:20px;background:#f5f7f9}.deal-product-summary h3{font-size:16px}.deal-product-summary p{display:flex;justify-content:space-between;gap:16px;font-size:14px}

.deal-products-table td small{display:block;font-size:12px;color:#61747f;margin-top:5px}

.deal-history-toolbar{justify-content:flex-start;flex-wrap:wrap}.deal-history-toolbar>label{display:flex;align-items:center;gap:10px;font-size:14px;white-space:nowrap}.deal-history-toolbar select{min-height:40px;padding:8px 30px 8px 12px;border:1px solid #d4dce1;border-radius:8px;background:white;color:#123443;max-width:240px}.deal-history-toolbar>button{margin-left:auto}.deal-history-filters{position:relative}.deal-history-filters>summary{padding:10px 14px;border:1px solid #d4dce1;border-radius:8px;cursor:pointer;list-style:none}.deal-history-filters>summary:after{content:'⌄';margin-left:12px}.deal-history-filters>div{position:absolute;z-index:12;top:100%;left:0;margin-top:6px;width:280px;background:white;border:1px solid #d4dce1;border-radius:8px;padding:16px;box-shadow:0 8px 24px hsl(var(--brand-h) 100% 12.0% / 0.13);max-height:400px;overflow:auto}.deal-history-filters label{display:flex;align-items:center;gap:10px;font-size:14px;padding:8px 0;cursor:pointer}.deal-history-filters input{width:16px;height:16px}.deal-history-filters strong{font-size:11px;color:#647984}.deal-contact-choice{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #dde4e8;cursor:pointer}.deal-contact-choice input{width:18px;height:18px}.deal-contact-choice small{display:block;font-size:12px;margin-top:4px;color:#647984}#deal-contact-choices{max-height:280px;overflow:auto}.deal-linked-contact{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #dde4e8}.deal-linked-contact:last-child{margin-bottom:0}.deal-linked-contact>.ghost{font-size:12px;min-height:24px;margin-top:12px;padding:0;color:#647984}.deal-contact-title button{max-width:100%;overflow-wrap:anywhere}
@media(max-width:600px){.deal-history-filters>div{width:min(280px,70vw)}.deal-history-toolbar select{max-width:190px}.deal-history-toolbar>button{margin-left:0}}
