/* Persi Chat production workflows: contact ficha, negotiation editor and batch review */
.prod-client-link,.prod-deal-title{
 appearance:none;border:0;background:none;color:inherit;font:inherit;font-weight:800;
 text-align:left;padding:0;max-width:100%;overflow-wrap:anywhere;cursor:pointer;
 text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;
 transition:color .15s,text-decoration-color .15s
}
.prod-client-link:hover,.prod-deal-title:hover{
 color:#12a279;text-decoration-color:currentColor
}
.prod-client-link:focus-visible,.prod-deal-title:focus-visible{
 outline:3px solid #e2b558;outline-offset:3px;border-radius:4px
}
.prod-thread-client{display:block;font-size:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prod-deal-top{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}
.prod-deal-title{font-size:14px;line-height:1.45;flex:1}
.prod-icon{appearance:none;border:1px solid #c7d6ce;border-radius:10px;background:#ebf2ec;
 color:#236b4d;padding:7px;cursor:pointer;display:grid;place-items:center}
.prod-icon svg{width:16px;height:16px}
.prod-deal-person{font-size:13px;color:#3e8a6a;margin:11px 0}
.prod-deal-notes{font-size:12px;line-height:1.5;overflow-wrap:anywhere;min-height:24px}
.prod-deal-card .kanban-card-footer{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:space-between}
.prod-deal-card .kanban-card-footer select{max-width:140px;min-width:0}
.prod-empty{padding:26px;text-align:center;color:#8e9f94}
.prod-ficha-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
 gap:14px;padding:15px;border-radius:14px;background:#e6f3eb;color:#214b35;margin-bottom:15px}
.prod-ficha-head>div{display:flex;flex-direction:column;gap:4px}
.prod-ficha-head strong{font-size:17px}
.prod-ficha-head span{font-size:12px}
.prod-ficha-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.prod-history-section{
 padding:14px;min-width:0;border:1px solid #d5e1d8;background:#fbfefb;border-radius:16px
}
.prod-history-section:first-child{grid-column:1/-1}
.prod-history-section h3{font-size:15px;margin:0 0 12px;color:#1d4c34}
.prod-history-list{display:flex;flex-direction:column;gap:8px;max-height:420px;overflow-y:auto}
.prod-history-row,.prod-history-message{
 display:flex;flex-direction:column;gap:5px;padding:12px;background:#edf4ee;
 border:1px solid #d8e6db;border-radius:12px;min-width:0
}
.prod-history-row b,.prod-history-message b{font-size:12px;overflow-wrap:anywhere}
.prod-history-row span,.prod-history-row small{font-size:11px;color:#5a7562;overflow-wrap:anywhere}
.prod-history-message>div{display:flex;justify-content:space-between;gap:12px}
.prod-history-message small{font-size:10px;color:#718779}
.prod-history-message p{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.prod-history-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.prod-history-actions .btn{font-size:11px;padding:7px 9px}
.prod-batch-recipients,.prod-batch-review,.prod-batch-results{display:flex;flex-direction:column;gap:10px}
.prod-batch-recipient{
 display:flex;align-items:center;gap:11px;padding:12px;border-radius:13px;
 background:#e9f2ec;border:1px solid #d4e5d9;cursor:pointer
}
.prod-batch-recipient input{width:18px;height:18px;accent-color:#117c5b;flex-shrink:0}
.prod-batch-recipient span{display:flex;flex-direction:column;gap:5px;min-width:0}
.prod-batch-recipient strong{font-size:13px;overflow-wrap:anywhere}
.prod-batch-recipient small{font-size:11px;color:#567363}
.prod-batch-message{
 display:flex;flex-direction:column;gap:7px;padding:12px;
 border:1px solid #d4e5d9;border-radius:14px;background:#f7faf8
}
.prod-batch-message strong{font-size:13px}
.prod-batch-message span{font-size:11px;color:#577162}
.prod-batch-message textarea{min-height:110px;resize:vertical}
.prod-batch-result{
 display:flex;justify-content:space-between;gap:15px;align-items:center;
 border:1px solid #c5dfcf;padding:13px;border-radius:13px;background:#eef9f1
}
.prod-batch-result b{font-size:12px}
.prod-batch-result span{font-size:12px;font-weight:800;color:#286a49}
.prod-feedback{
 border:1px solid #f0bf95;background:#fff2e5;color:#78360f;
 padding:11px;border-radius:11px;margin:12px 0;font-size:12px;font-weight:750
}
body.dark .prod-history-section{background:#26342d;border-color:#405547}
body.dark .prod-history-section h3{color:#c4e8d0}
body.dark .prod-history-row,body.dark .prod-history-message,
body.dark .prod-batch-recipient,body.dark .prod-batch-message{
 background:#2d4034;border-color:#526557;color:#dceee0
}
body.dark .prod-ficha-head{background:#31503b;color:#ecfff0}
body.dark .prod-history-message small,body.dark .prod-history-row span,body.dark .prod-batch-recipient small{color:#bacfc2}
@media(max-width:760px){
 .prod-ficha-sections{grid-template-columns:1fr}
 .prod-history-section:first-child{grid-column:1}
 .prod-history-list{max-height:380px}
 .prod-deal-top{gap:12px}
 .prod-deal-card{min-width:0}
 .prod-batch-result{align-items:flex-start;flex-direction:column;gap:6px}
 .prod-ficha-head{align-items:flex-start}
}

body.dark .prod-batch-result{background:#284238;border-color:#416b55;color:#e7f4ea}
body.dark .prod-batch-result span{color:#95dcb3}
body.dark .prod-deal-title{color:#e4f7e9}
body.dark .prod-deal-person .prod-client-link{color:#97ddb8}
.prod-deal-card:focus-visible{outline:3px solid #d8a63d;outline-offset:3px}

.prod-retry-actions{display:flex;justify-content:flex-end;margin-top:14px}
.prod-retry-actions .btn{font-size:12px;min-height:39px}
@media(max-width:760px){.prod-retry-actions .btn{width:100%}}
