.crm-hub-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.crm-hub-tabs button{padding:10px 18px;border:1px solid #dbe2ed;border-radius:10px;background:#fff;color:#526078;cursor:pointer;font:inherit;font-weight:600}.crm-hub-tabs button[aria-selected=true]{background:#316bff;border-color:#316bff;color:#fff}.crm-hub-filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.crm-hub-filters input,.crm-hub-filters select{padding:10px;border:1px solid #dbe2ed;border-radius:8px;font:inherit;max-width:100%}.crm-hub-filters input{flex:1;min-width:200px}.crm-hub-table{overflow:auto}.crm-hub-table table{width:100%;border-collapse:collapse}.crm-hub-table th,.crm-hub-table td{padding:14px;text-align:left;border-bottom:1px solid #e8edf5;font-size:13px}.crm-hub-open{display:flex;flex-direction:column;gap:4px;text-align:left;background:none;border:0;color:#2456cf;cursor:pointer;font:inherit;padding:0}.crm-hub-open b{font-size:15px}.crm-hub-open span{color:#526078}.crm-hub-activity{padding:14px 0;border-bottom:1px solid #e8edf5}.crm-hub-activity small{display:block;color:#718096;margin-top:4px}.crm-hub-activity p{white-space:pre-wrap}.staff-sales-pipeline{overflow-x:auto}.staff-sales-card{margin-bottom:10px}.staff-sales-card small{display:block;margin-top:6px}#salesCrmModal .staff-work-dialog{max-width:940px}#salesCrmModal h3{margin-top:28px}#salesCrmModal textarea{min-height:80px}#salesCrmModal .task-row{margin-bottom:12px}@media(max-width:600px){.crm-hub-filters>*{width:100%}.crm-hub-tabs button{padding:8px 12px}.crm-hub-table th,.crm-hub-table td{padding:10px}.crm-hub-tabs{gap:6px}}

/* Fit all seven stages in one desktop row; contain overflow on smaller screens. */
#hubBody{container-type:inline-size;min-width:0}.crm-board-caption{display:flex;justify-content:space-between;gap:12px;padding:0 14px 12px;font-size:12px;color:#718096}.crm-board-status{color:#316bff}
#hubBody .crm-fit-board{display:grid;grid-template-columns:repeat(7,minmax(170px,1fr));gap:10px;padding:0 12px 12px;overflow-x:auto;overflow-y:hidden;align-items:stretch;max-width:100%;height:clamp(260px,calc(100dvh - 375px),640px);scrollbar-width:thin;scrollbar-color:#bdcce2 transparent;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
#hubBody .crm-board-column{min-width:0;display:flex;flex-direction:column;background:#f5f7fb;border:1px solid #e2e8f1;border-radius:12px;overflow:hidden;scroll-snap-align:start;transition:background .15s,border-color .15s}
#hubBody .crm-board-column>header{flex:none;padding:12px 10px;min-height:48px;gap:5px;background:#eef3fb;border-top:3px solid #8098ba;align-items:flex-start}
#hubBody .crm-board-column>header b{font-size:10px!important;line-height:1.35;overflow-wrap:anywhere}#hubBody .crm-board-column>header span{font-size:10px!important;min-width:20px;height:20px}
#hubBody [data-drop-stage=demo]>header{border-top-color:#8b73d4}#hubBody [data-drop-stage=propuesta]>header{border-top-color:#d4a24a}#hubBody [data-drop-stage=cliente]>header{border-top-color:#3b8dcb}#hubBody [data-drop-stage=implementacion]>header{border-top-color:#41a2ad}#hubBody [data-drop-stage=activo]>header{border-top-color:#44a777}#hubBody [data-drop-stage=perdido]>header{border-top-color:#c78286}
#hubBody .crm-stage-deals{display:flex;flex-direction:column;gap:10px;padding:9px;overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin}
#hubBody .crm-board-deal{flex:none;min-width:0;padding:10px;margin:0;border-radius:10px;overflow-wrap:anywhere;transition:box-shadow .15s;cursor:grab}#hubBody .crm-board-deal[draggable=false]{cursor:default}
.crm-deal-heading{display:flex;align-items:flex-start;gap:5px}.crm-deal-heading .crm-hub-open{min-width:0;flex:1}.crm-deal-heading b{font-size:13px;line-height:1.4}.crm-deal-heading span{font-size:12px;line-height:1.35}
.crm-drag-grip{font-size:20px;color:#8d9bb2;background:none;border:0;cursor:grab;padding:0 2px;touch-action:none;flex:none}.crm-drag-grip:focus-visible{outline:2px solid #316bff;border-radius:4px}
#hubBody .crm-board-deal>small{font-size:11px!important;line-height:1.4;margin-top:8px}#hubBody .crm-board-deal>.crm-deal-heading{margin:0}#hubBody .crm-board-deal>.crm-deal-next{font-size:11px!important;line-height:1.4;color:#718096}
.crm-deal-value{display:block;font-size:12px;margin:10px 0;color:#34445f}.crm-deal-move{display:block;margin-top:12px;font-size:10px;color:#718096}.crm-deal-move select{display:block;width:100%;min-width:0;margin-top:4px;padding:6px;border:1px solid #e0e7f0;background:#f9fbfe;border-radius:6px;font:inherit;font-size:11px;color:#526078}
#hubBody .crm-drop-active{background:#e6efff;border-color:#316bff;box-shadow:inset 0 0 0 1px #316bff}#hubBody .crm-deal-dragging{opacity:.35}.crm-drag-ghost{position:fixed;z-index:10000;pointer-events:none;opacity:.95!important;transform:rotate(2deg);box-shadow:0 12px 28px #17386d35}.crm-board-dragging{user-select:none}
@container (min-width:1100px){#hubBody .crm-fit-board{grid-template-columns:repeat(7,minmax(0,1fr));overflow-x:hidden}}
@media(max-width:600px){#hubBody .crm-fit-board{grid-template-columns:repeat(7,minmax(205px,70vw));height:clamp(280px,calc(100dvh - 390px),540px)}.crm-board-caption{font-size:11px;padding-left:8px}.crm-hub-filters{padding:10px;gap:8px;margin-bottom:12px}}

.crm-workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.crm-workspace-toolbar p{margin:0;font-size:13px;color:#718096}.crm-hub-filters{padding:12px 12px 0}.crm-workspace-toolbar .btn{flex:none}@media(max-width:600px){.crm-workspace-toolbar{align-items:flex-start}.crm-workspace-toolbar p{font-size:12px}}
