/* ===== Tablero tipo Monday: tabla agrupada, kanban, panel de detalle, popovers ===== */
.overlay { z-index: 80; } .toasts { z-index: 120; }
.hidden { display: none !important; }

/* píldoras, avatares, chips */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); white-space: nowrap; }
.pill.block { display: flex; justify-content: center; width: 100%; padding: 6px 8px; border-radius: 6px; color: #fff; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.avatar { display: inline-grid; place-items: center; width: var(--s, 26px); height: var(--s, 26px); border-radius: 50%; background: var(--bg, #98a2b3); color: #fff; font: 700 calc(var(--s, 26px) * .4) Inter, sans-serif; flex: none; }
.avatar.empty { background: #e7e2d3; color: #8a8478; border: 1px dashed #b9b2a0; }
.person { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.stars { color: #f5b301; letter-spacing: 1px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.mention { color: var(--primary); font-weight: 700; background: var(--primary-soft); border-radius: 4px; padding: 0 3px; }
.due { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: #eef2f6; color: #475467; } .due.late { background: #fde9e7; color: var(--bad); }
.prob { display: flex; align-items: center; gap: 8px; } .prob i { position: relative; flex: 1; height: 6px; border-radius: 4px; background: #e7e2d3; overflow: hidden; } .prob i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, #d97706, #2e7d4f); }
.prob b { font-size: 12px; min-width: 34px; text-align: right; } .prob.mini { gap: 5px; flex: 1; max-width: 90px; }

/* popover y menús de opciones */
.popover { position: fixed; z-index: 95; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(34, 31, 28, .28), 0 0 0 1px rgba(34, 31, 28, .06); padding: 6px; max-width: calc(100vw - 16px); animation: pop-in .14s ease; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.optmenu { display: flex; flex-direction: column; gap: 2px; } .optmenu > .input { margin-bottom: 4px; }
.optlist { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.opt { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; text-align: left; cursor: pointer; font-size: 13.5px; }
.opt:hover, .opt:focus-visible { background: #f3efe4; outline: none; } .opt.on { background: var(--primary-soft); font-weight: 600; } .opt .tick { margin-left: auto; color: var(--primary); } .opt.clear { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.viewrow { display: flex; align-items: center; } .viewrow .opt { flex: 1; }
.reasons { display: flex; flex-direction: column; gap: 4px; }
.fctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .fshow { min-height: 28px; display: flex; align-items: center; } .fbtn { padding: 5px 12px; } .fbtn.wide { width: 100%; text-align: left; display: flex; justify-content: space-between; } .ratepick { display: flex; } .ratepick button { border: 0; background: transparent; font-size: 22px; color: #f5b301; cursor: pointer; }
.checkrow { display: flex; align-items: center; gap: 8px; margin: 6px 0; }

/* barra de herramientas */
.pipetabs { display: inline-flex; gap: 4px; flex-wrap: wrap; } .pipetabs button { border: 0; padding: 6px 14px; border-radius: 99px; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.pipetabs button.on { color: var(--ink); background: #fff; box-shadow: var(--shadow); border-bottom-color: var(--c); }
.board-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; } .board-toolbar .input { width: 220px; }
.btn.tb { padding: 6px 12px; font-weight: 600; } .btn.tb.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.board-summary { font-size: 12.5px; white-space: nowrap; }
.board-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 0; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; } .chip button { border: 0; background: #f0ece0; border-radius: 50%; width: 18px; height: 18px; cursor: pointer; font-size: 10px; }
.filter-editor { display: flex; flex-direction: column; gap: 8px; padding: 6px; } .fe-title { font: 700 14px Manrope, sans-serif; } .fe-row { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 32px; gap: 6px; align-items: center; } .fe-pick { text-align: left; cursor: pointer; } .fe-actions { display: flex; justify-content: space-between; }

/* tabla */
.board-content { overflow-x: auto; padding-bottom: 12px; }
.tbl { min-width: 100%; width: max-content; background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: clip; }
.tr { display: grid; grid-template-columns: var(--cols); align-items: stretch; border-bottom: 1px solid #f0ece0; background: #fff; } .tr:hover { background: #fcfaf5; } .tr.selected { background: #fdf3f1; }
.td { padding: 7px 10px; min-height: 42px; display: flex; align-items: center; min-width: 0; overflow: hidden; } .td.right { justify-content: flex-end; text-align: right; }
.thead { position: sticky; top: 0; z-index: 5; background: #faf8f2; border-bottom: 2px solid var(--line); } .thead:hover { background: #faf8f2; }
.th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; position: relative; user-select: none; } .th:hover { color: var(--ink); background: #f3efe4; } .th.sorted { color: var(--primary); } .th .arrow { margin-left: 5px; font-size: 9px; } .th.dropcol { box-shadow: inset 3px 0 0 var(--primary); }
.resizer { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: col-resize; } .resizer:hover { background: rgba(153, 19, 19, .25); }
.td.chk { justify-content: center; padding: 0; position: sticky; left: 0; background: inherit; z-index: 2; } .td.title { position: sticky; left: 38px; z-index: 2; background: inherit; border-left: 4px solid var(--c); font-weight: 600; justify-content: space-between; gap: 6px; }
.thead .td.title, .thead .td.chk { background: #faf8f2; }
.ttext { cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; } .ttext:hover { color: var(--primary); text-decoration: underline; }
.openbtn { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 26px; height: 26px; cursor: pointer; opacity: 0; transition: opacity .15s; flex: none; } .tr:hover .openbtn, .openbtn:focus-visible { opacity: 1; }
.cell { cursor: pointer; } .cell:hover:not(.ro) { background: #f6f2e6; outline: 1px solid var(--line); outline-offset: -1px; } .cell.ro { cursor: default; } .cell:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.cell-input { width: 100%; border: 2px solid var(--primary); border-radius: 6px; padding: 5px 8px; font: inherit; background: #fff; outline: none; }
.grouphead { position: sticky; left: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-top: 14px; background: color-mix(in srgb, var(--c) 10%, #fff); border-left: 6px solid var(--c); font-weight: 700; } .grouphead:first-of-type { margin-top: 0; }
.gtoggle, .ktoggle { border: 0; background: transparent; cursor: pointer; font-size: 14px; width: 22px; color: var(--c); } .gname { display: inline-flex; align-items: center; gap: 8px; font-family: Manrope, sans-serif; color: color-mix(in srgb, var(--c) 80%, #000); } .gcount { font-weight: 500; font-size: 12.5px; color: var(--muted); } .gsum { margin-left: auto; font-family: Manrope, sans-serif; }
.addrow .td { min-height: 36px; } .addbtn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px 0; } .addbtn:hover { color: var(--primary); }
.sumrow { background: #faf8f2; } .sumrow:hover { background: #faf8f2; } .sumrow .td { min-height: 34px; font-size: 13px; }
.tbl .empty { grid-column: 1 / -1; box-shadow: none; }

/* barra de acciones masivas */
.bulkbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: var(--side); color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); animation: pop-in .2s ease; }
.bulkbar .btn { background: #3a3530; border-color: #4a443d; color: #fff; } .bulkbar .btn.danger { color: #ffb4ab; } .bulkbar .btn.ghost { background: transparent; border-color: transparent; }

/* kanban */
.kanban2 { display: flex; flex-direction: column; gap: 18px; }
.lane { display: flex; flex-direction: column; gap: 8px; } .lanehead { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-left: 5px solid var(--c); background: #fff; border-radius: 8px; box-shadow: var(--shadow); position: sticky; left: 0; width: max-content; min-width: 280px; }
.kgrid { display: flex; gap: 12px; align-items: flex-start; }
.kcol { flex: 0 0 292px; width: 292px; background: #ece7d9; border-radius: 14px; border-top: 4px solid var(--c); padding: 8px; transition: flex-basis .2s; display: flex; flex-direction: column; }
.kcol > header { display: flex; align-items: center; gap: 6px; padding: 4px 4px 2px; } .kname { font: 700 14px Manrope, sans-serif; display: inline-flex; align-items: center; gap: 6px; flex: 1; } .kcount { background: #fff; border-radius: 99px; font-size: 12px; padding: 0 8px; font-weight: 700; color: var(--muted); }
.kadd { border: 0; background: #fff; border-radius: 8px; width: 26px; height: 26px; cursor: pointer; font-size: 16px; } .kadd:hover { background: var(--primary); color: #fff; }
.ksum { padding: 0 8px 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kbody { display: flex; flex-direction: column; gap: 8px; min-height: 60px; padding: 2px; border-radius: 10px; transition: background .15s; } .kbody.over { background: rgba(153, 19, 19, .07); outline: 2px dashed rgba(153, 19, 19, .4); outline-offset: -2px; }
.kempty { text-align: center; color: #a39c8c; font-size: 12.5px; padding: 18px 0; border: 1px dashed #cfc8b6; border-radius: 10px; }
.kaddbtn { border: 0; background: transparent; color: var(--muted); padding: 8px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13px; } .kaddbtn:hover { background: rgba(255, 255, 255, .6); color: var(--primary); }
.kcol.collapsed { flex-basis: 56px; width: 56px; align-items: center; } .kcol.collapsed > header { flex-direction: column; } .kcol.collapsed .kname { writing-mode: vertical-rl; transform: rotate(180deg); }
.kcard { background: #fff; border-radius: 10px; padding: 10px 12px; border-left: 4px solid var(--c); box-shadow: 0 1px 2px rgba(34, 31, 28, .1); cursor: grab; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 6px; }
.kcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34, 31, 28, .16); } .kcard:focus-visible { outline: 2px solid var(--primary); } .kcard.dragging { opacity: .4; transform: rotate(2deg); } .kcard.big { box-shadow: 0 0 0 1.5px rgba(153, 19, 19, .55), 0 1px 2px rgba(34, 31, 28, .1); }
.kc-title { font-weight: 700; line-height: 1.3; } .kc-client { font-size: 12.5px; color: var(--muted); } .kc-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .kc-ch { font-size: 14px; }
.kc-money { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .kc-money > b { font: 800 15px Manrope, sans-serif; }
.kc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); } .kc-meta { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dropline { height: 3px; background: var(--primary); border-radius: 3px; margin: 1px 0; box-shadow: 0 0 8px rgba(153, 19, 19, .6); }

/* panel de detalle */
.drawer-wrap { position: fixed; inset: 0; z-index: 60; pointer-events: none; } .drawer-wrap.open { pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(34, 31, 28, .45); opacity: 0; transition: opacity .25s; } .drawer-wrap.open .drawer-backdrop { opacity: 1; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(660px, 100vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 60px rgba(0, 0, 0, .3); } .drawer-wrap.open .drawer { transform: none; }
.drawer-head { padding: 14px 22px 8px; border-bottom: 1px solid var(--line); background: #faf8f2; } .dh-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-title { width: 100%; border: 1px solid transparent; background: transparent; font: 800 22px Manrope, sans-serif; padding: 6px 8px; margin: 4px -8px; border-radius: 8px; } .drawer-title:hover { border-color: var(--line); background: #fff; } .drawer-title:focus { outline: 2px solid var(--primary); background: #fff; }
.dh-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 2px 0 12px; }
.pillbtn { border: 0; cursor: pointer; padding: 5px 14px; border-radius: 99px; background: var(--c); color: #fff; font-weight: 700; font-size: 12.5px; } .ownerbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 3px 12px 3px 3px; cursor: pointer; font-size: 13px; }
.dh-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; } .dk { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; } .dk span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .dk b { font: 800 15px Manrope, sans-serif; } .dk.late b { color: var(--bad); }
.dtabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); } .dtabs button { border: 0; background: transparent; padding: 12px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; } .dtabs button.on { color: var(--primary); border-bottom-color: var(--primary); } .dtabs button:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 40px; background: #fff; }
.composer-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fcfaf5; margin-bottom: 18px; } .composer { border: 0; background: transparent; resize: vertical; } .composer:focus { outline: none; } .composer-actions { display: flex; justify-content: space-between; align-items: center; }
.feed { display: flex; flex-direction: column; gap: 14px; } .feeditem { display: flex; gap: 12px; } .feeditem .fi-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; } .fi-ico { width: 30px; height: 30px; border-radius: 50%; background: #f0ece0; display: grid; place-items: center; flex: none; }
.feeditem.sys { background: #f6f3ea; border-radius: 10px; padding: 8px 10px; } .feeditem.sys.fail { background: #fde9e7; }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; } .drow { display: flex; flex-direction: column; gap: 4px; } .drow > label { font-size: 12px; font-weight: 700; color: var(--muted); } .dsec { font: 800 14px Manrope, sans-serif; margin: 22px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); } .dsave { margin-top: 12px; }
.taskadd { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .taskadd .input { width: auto; flex: 1 1 160px; }
.tasklist { display: flex; flex-direction: column; gap: 6px; } .taskitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; } .taskitem.done { opacity: .55; } .taskitem.done .tk-title { text-decoration: line-through; } .tk-main { flex: 1; } .tk-title { font-weight: 600; }
.quoteitem { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font-size: 14px; } .quoteitem:hover { background: #fcfaf5; } .quoteitem span:nth-child(2) { margin-left: auto; font-weight: 700; }
.cal .ev.task { --c: #2e7d4f; }

@media (max-width: 760px) { .dh-kpis { grid-template-columns: 1fr 1fr; } .dgrid { grid-template-columns: 1fr; } .board-toolbar .input { width: 100%; } .fe-row { grid-template-columns: 1fr 1fr; } }
@media print { .drawer-wrap, .bulkbar, .popover { display: none !important; } }

/* campana de notificaciones */
.bell { position: relative; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; border-radius: 10px; width: 38px; height: 34px; cursor: pointer; font-size: 16px; }
.bell:hover { background: rgba(255, 255, 255, .1); } .bell-badge { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--side); } .bell-badge[hidden] { display: none; }
.notif-box { display: flex; flex-direction: column; } .notif-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.notif-list { max-height: 420px; overflow-y: auto; } .notif { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: #fff; padding: 10px; cursor: pointer; border-radius: 8px; } .notif:hover { background: #f6f2e6; } .notif.unread { background: #fdf3f1; }
.n-ico { width: 28px; height: 28px; border-radius: 50%; background: #f0ece0; display: grid; place-items: center; flex: none; font-size: 13px; } .n-title { font-weight: 600; font-size: 13.5px; } .n-body { font-size: 12.5px; color: var(--muted); } .n-time { font-size: 11.5px; color: #a39c8c; margin-top: 2px; }
.side .brand-row { display: flex; align-items: center; justify-content: space-between; }

/* ===== Configuración: embudo, campos, listas, automatizaciones ===== */
.grip { cursor: grab; color: #a39c8c; padding: 0 6px; user-select: none; font-size: 16px; letter-spacing: -3px; } .grip:active { cursor: grabbing; }
.dragging { opacity: .45; } .dropbefore { box-shadow: 0 -3px 0 var(--primary); }
.cfg { display: grid; gap: 16px; } .cfg-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .cfg-head h2 { margin: 0; } .cfg-help { color: var(--muted); font-size: 13px; margin: 2px 0 0; max-width: 70ch; }
.funnel-prev { display: flex; gap: 2px; overflow-x: auto; padding: 4px 0; } .funnel-prev span { flex: 1 0 auto; min-width: 90px; padding: 8px 18px 8px 22px; background: var(--c); color: #fff; font-weight: 700; font-size: 12.5px; text-align: center; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); white-space: nowrap; } .funnel-prev span:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.stagelist, .fieldlist, .itemlist { display: flex; flex-direction: column; gap: 6px; }
.stagerow, .fieldrow, .itemrow { display: grid; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; border-left: 5px solid var(--c, var(--line)); }
.stagerow { grid-template-columns: 24px 40px minmax(140px, 1.4fr) 140px 120px 90px 36px; } .fieldrow { grid-template-columns: 24px minmax(140px, 1.2fr) 150px 1.6fr 110px 110px 70px; } .itemrow { grid-template-columns: 24px 40px 1fr 36px; }
.colorpick { width: 36px; height: 30px; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 6px; } .stagerow .input, .itemrow .input { padding: 6px 9px; }
.kindtag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; } .kindtag.won { background: #d6efdf; color: var(--ok); } .kindtag.lost { background: #e8e6e0; color: #6b665e; } .kindtag.open { background: #dbe7fd; color: var(--s-nuevo); }
.optrows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; } .optrow { display: grid; grid-template-columns: 40px 1fr 32px; gap: 8px; align-items: center; }
.switch { position: relative; width: 40px; height: 22px; display: inline-block; flex: none; } .switch input { opacity: 0; width: 0; height: 0; } .switch span { position: absolute; inset: 0; background: #cfc8b6; border-radius: 99px; transition: background .2s; cursor: pointer; } .switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; } .switch input:checked + span { background: var(--ok); } .switch input:checked + span::before { transform: translateX(18px); } .switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.pillrow { display: flex; flex-wrap: wrap; gap: 4px; }

/* automatizaciones */
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; } .recipe { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--gold); } .recipe h3 { font: 800 14px Manrope, sans-serif; } .recipe p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.autos { display: flex; flex-direction: column; gap: 10px; } .auto { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); border-left: 5px solid var(--ok); } .auto.off { border-left-color: #cfc8b6; opacity: .8; } .auto-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .auto-top h3 { font: 800 15px Manrope, sans-serif; flex: 1; }
.sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 6px; font-size: 13.5px; } .sentence .kw { font-weight: 800; color: var(--primary); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; } .sentence .blk { background: #f6f3ea; border-radius: 8px; padding: 3px 9px; }
.runlog { font-size: 12.5px; color: var(--muted); margin-top: 6px; } .runlog .okdot { color: var(--ok); } .runlog .faildot { color: var(--bad); }
.builder .bsec { margin: 14px 0; padding: 12px; border-radius: 10px; background: #faf8f2; border: 1px solid var(--line); } .builder .bsec > .kw { font: 800 11px Manrope, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; display: block; }
.brow { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 32px; gap: 6px; margin-bottom: 6px; align-items: center; } .arow { display: grid; grid-template-columns: 1.1fr 2fr 32px; gap: 6px; margin-bottom: 8px; align-items: start; } .arow .params { display: flex; flex-wrap: wrap; gap: 6px; } .arow .params .input { flex: 1 1 140px; width: auto; }
.modal.xl { width: min(900px, 100%); }
@media (max-width: 900px) { .stagerow, .fieldrow { grid-template-columns: 24px 1fr; } .stagerow > *:nth-child(n+3), .fieldrow > *:nth-child(n+3) { grid-column: 2; } .brow, .arow { grid-template-columns: 1fr; } }

/* ===== Tablero (diseño Stitch): KPIs, filtros rápidos, grupos como tarjetas, tarjetas kanban ===== */
.board-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.bk { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.bk-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; } .bk.ok .bk-ico { background: #e0f1e7; color: var(--ok); } .bk.bad .bk-ico { background: #fde9e7; color: var(--bad); } .bk.bad b { color: var(--bad); }
.bk b { display: block; font: 800 18px Manrope, sans-serif; line-height: 1.2; } .bk-l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; } .bk-s { font-size: 12px; color: var(--muted); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; } .qchip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); } .qchip:hover { border-color: #cfc8b6; color: var(--ink); } .qchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.searchbox { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--muted); } .searchbox:focus-within { outline: 2px solid var(--primary); } .searchbox .input { border: 0; padding: 8px 0; width: 190px; outline: none; background: transparent; }
.board-foot { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 8px; margin: 12px -28px -48px; padding: 9px 28px; background: rgba(245, 242, 233, .94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); font-size: 12.5px; } .board-foot .grow { flex: 1; } .board-foot .sep { color: #b4aea0; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(46, 125, 79, .2); }

/* tabla: cada grupo es una tarjeta */
.tbl { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.tr { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.thead { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.grouphead, .grouphead:first-of-type { margin-top: 18px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 10px 10px 0 0; box-shadow: var(--shadow); } .thead + .grouphead { margin-top: 10px; } .grouphead.closed { border-radius: 10px; }
.gname { color: var(--ink); } .gpill { background: var(--c); color: #fff; padding: 3px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.gtoggle { display: grid; place-items: center; color: var(--muted); }
.gtotals { margin-left: auto; display: flex; align-items: center; gap: 18px; } .gwtd { color: var(--muted); font-size: 12px; font-weight: 600; } .gsum { margin-left: 0; font-size: 15px; font-weight: 800; }
.addbtn { display: inline-flex; align-items: center; gap: 6px; }
.sumrow { border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; } .addrow:not(:has(+ .sumrow)) { border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.openbtn { display: grid; place-items: center; }
.pill.block { border-radius: 99px; width: auto; min-width: 96px; padding: 4px 12px; box-shadow: none; }

/* kanban */
.kcol { background: #ece7d9; border-top: 0; box-shadow: inset 0 3px 0 var(--c); }
.kcol > header { padding-top: 8px; } .ktoggle { display: grid; place-items: center; }
.kcard { border: 1px solid var(--line); border-left: 4px solid var(--c); gap: 7px; }
.kc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kc-prio { flex: none; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.kc-client { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; } .kc-city { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; color: #8a8478; }
.kc-alert { display: flex; align-items: center; gap: 6px; margin: -10px -12px 2px; padding: 6px 12px; background: #fde9e7; color: var(--bad); font-size: 11.5px; font-weight: 700; border-radius: 6px 8px 0 0; }
.kcard.overdue { box-shadow: 0 0 0 1px rgba(180, 35, 24, .35), 0 1px 2px rgba(34, 31, 28, .1); }
.kcard.dragging { opacity: .6; transform: rotate(3deg); border-color: var(--primary); box-shadow: 0 14px 30px rgba(153, 19, 19, .3); }
.kc-chips { align-items: center; } .kc-ch { display: inline-flex; color: var(--muted); margin-left: auto; }
.kc-meta > span, .due { display: inline-flex; align-items: center; gap: 4px; } .kc-check, .kc-note { color: var(--muted); }
.dropline { height: 70px; background: rgba(153, 19, 19, .06); border: 2px dashed rgba(153, 19, 19, .45); border-radius: 10px; box-shadow: none; margin: 2px 0; display: grid; place-items: center; color: var(--primary); font-size: 12px; font-weight: 700; } .dropline::before { content: 'Soltar aquí'; }
.kempty { color: #8a8478; }
@media (max-width: 900px) { .board-kpis { grid-template-columns: 1fr 1fr; } .board-foot { margin-inline: -16px; padding-inline: 16px; } }

/* ===== Panel de detalle (diseño Stitch) ===== */
.drawer { width: min(720px, 100vw); }
.drawer-head { padding: 12px 24px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.dh-top { gap: 12px; margin-bottom: 6px; } .dh-crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; } .dh-crumbs b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dh-crumbs span { white-space: nowrap; }
.dh-actions { display: flex; align-items: center; gap: 2px; flex: none; } .dh-actions .btn { padding: 6px 9px; } .btn.ghost.withic { font-size: 12.5px; color: var(--muted); } .btn.ghost:hover { background: #f3efe4; }
.drawer-title { font-size: 24px; line-height: 1.2; }
.dh-client { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ink); margin: 2px 0 10px; } .dh-client svg { color: var(--primary); } .dh-city { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); } .dh-city::before { content: '·'; margin-right: 4px; }
.dh-sub { gap: 8px; margin: 0 0 8px; }
.pillbtn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 85%, #000); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); } .pillbtn .dot { width: 9px; height: 9px; background: var(--c); }
.ownerbtn { padding: 3px 10px 3px 4px; gap: 7px; font-weight: 600; background: #f6f3ea; } .ownerbtn:hover, .prio-btn:hover { filter: brightness(.97); }
.prio-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.dh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .hashtag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; background: #f1ede1; border: 1px solid var(--line); color: #5a554c; } .hashtag.ch { color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border-color: color-mix(in srgb, var(--c) 30%, #fff); }
.dh-kpis { gap: 10px; margin: 12px 0 0; } .dk { background: #faf8f2; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; gap: 4px; justify-content: space-between; min-height: 84px; }
.dk-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); } .dk-top span, .dk > span { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); } .dk-top em { font: 800 13px Manrope, sans-serif; font-style: normal; color: var(--primary); }
.dk b { font: 800 19px Manrope, sans-serif; } .dk small { font-size: 12px; color: var(--ok); font-weight: 600; } .dk.late small, .dk.late b { color: var(--bad); }
.dk-bar { height: 8px; border-radius: 99px; background: #e7e2d3; overflow: hidden; margin-top: 14px; } .dk-bar i { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .4s; }
.dtabs { padding: 0 20px; gap: 6px; background: #fff; overflow-x: auto; } .dtabs button { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dcount { background: #eee9da; border-radius: 99px; font-size: 11.5px; font-weight: 700; padding: 0 8px; color: var(--ink); } .dtabs button.on .dcount { background: var(--primary-soft); color: var(--primary); }
.drawer-body { background: #faf8f2; padding: 18px 24px 24px; }
.composer-box { background: #fff; border-radius: 12px; padding: 0; overflow: hidden; box-shadow: var(--shadow); } .composer-box .composer { padding: 14px 16px; min-height: 84px; width: 100%; } .composer-actions { padding: 8px 12px; border-top: 1px solid var(--line); background: #fcfaf5; }
.ctools { display: flex; align-items: center; gap: 4px; } .ctool { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; } .ctool:hover { background: #efe9d8; color: var(--ink); } .ctools .small { margin-left: 8px; }
.feed { gap: 12px; }
.comment { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); } .cm-head { display: flex; align-items: center; gap: 12px; } .cm-who { display: flex; flex-direction: column; line-height: 1.25; } .cm-who span { font-size: 12px; color: var(--muted); }
.comment .fi-body { margin: 10px 0 4px; padding-left: 48px; line-height: 1.55; }
.cm-foot { display: flex; gap: 14px; padding: 8px 0 0 48px; margin-top: 8px; border-top: 1px solid #f0ece0; } .cm-act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 0; } .cm-act:hover { color: var(--primary); }
.autocard { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f4efe2; border: 1px solid #e8dfc8; } .autocard.fail { background: #fde9e7; border-color: #f4c9c4; }
.ac-ico { width: 38px; height: 38px; border-radius: 10px; background: #fff3e0; color: #b45309; display: grid; place-items: center; flex: none; } .autocard.fail .ac-ico { background: #fff; color: var(--bad); }
.ac-body { flex: 1; min-width: 0; } .ac-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; } .ac-top span { color: var(--muted); font-size: 12px; white-space: nowrap; } .ac-text { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: #4a453d; margin-top: 3px; } .ac-text svg { margin-top: 2px; color: #b45309; flex: none; }
.drawer-foot { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 18px rgba(34, 31, 28, .06); } .drawer-foot .grow { flex: 1; } .auto-saved { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ok); font-weight: 600; }
.taskitem, .quoteitem { background: #fff; border-radius: 12px; }
@media (max-width: 760px) { .dh-kpis { grid-template-columns: 1fr 1fr; } .comment .fi-body, .cm-foot { padding-left: 0; } }

/* ===== Panel (diseño Stitch) ===== */
.dash-head { margin-bottom: 18px; } .dash-head h1 { font-size: 30px; letter-spacing: -.02em; } .dash-sub { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; } .stat-top > span:first-child { font-weight: 600; color: var(--muted); font-size: 13px; }
.stat-val { font: 800 28px Manrope, sans-serif; letter-spacing: -.02em; line-height: 1.15; } .stat-sub { color: var(--muted); font-size: 13px; }
.stat-bar { height: 8px; border-radius: 99px; background: #e7e2d3; overflow: hidden; margin-top: 8px; } .stat-bar i { display: block; height: 100%; background: linear-gradient(90deg, #d97706, #2e7d4f); border-radius: 99px; }
.stat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f0ece0; font-size: 12.5px; color: var(--muted); } .stat-foot svg { color: var(--gold); } .spark { flex: none; }
.delta { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eee9da; color: var(--muted); } .delta.up { background: #e0f1e7; color: var(--ok); } .delta.down { background: #fde9e7; color: var(--bad); } .delta.down svg { transform: scaleY(-1); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; } .dash-grid .stack { gap: 16px; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.dc-head { display: flex; align-items: flex-start; gap: 12px; } .dc-head > div:not(.legend) { flex: 1; min-width: 0; } .dc-head h2 { font-size: 17px; } .dc-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.dc-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; } .dc-ico.gold { background: #f6ecd5; color: var(--gold); }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #f0ece0; font-size: 13px; } .dc-foot .accent { color: var(--primary); font-weight: 700; }
.dc-total { font: 800 14px Manrope, sans-serif; color: var(--muted); white-space: nowrap; }
.fbars { display: flex; flex-direction: column; gap: 14px; } .fb-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 13.5px; } .fb-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; } .fb-name em { font-style: normal; color: var(--muted); font-weight: 400; } .fb-track { height: 11px; border-radius: 99px; background: #f0ece0; overflow: hidden; } .fb-track i { display: block; height: 100%; border-radius: 99px; background: var(--c); min-width: 4px; transition: width .5s; }
.chart-svg { width: 100%; height: auto; display: block; } .chart-svg .ax { font: 600 11px Inter, sans-serif; fill: #8a8478; } .chart-svg .vl { font: 700 11px Manrope, sans-serif; fill: var(--ink); } .chart-svg .gl { font: 700 11px Manrope, sans-serif; fill: var(--gold); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .legend i.dash { height: 0; width: 16px; border-top: 2px dashed var(--gold); border-radius: 0; }
.chip-late { background: #fde9e7; color: var(--bad); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; } .chip-late.soft { font-weight: 600; }
.tlist, .clist, .ilist { display: flex; flex-direction: column; gap: 8px; }
.tcard { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; } .tcard.late { background: #fff5f3; border-color: #f4c9c4; } .tcard.done { opacity: .4; } .tcard input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.tk-meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: 2px; } .tcard.late .tk-meta { color: var(--bad); }
.cl-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f0ece0; background: transparent; padding: 10px 4px; cursor: pointer; } .cl-row:last-child { border-bottom: 0; } .cl-row:hover { background: #fcfaf5; }
.cl-ini { width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); display: grid; place-items: center; font: 800 13px Manrope, sans-serif; flex: none; }
.cl-main { display: flex; flex-direction: column; flex: 1; min-width: 0; } .cl-main small, .cl-end small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cl-end { display: flex; flex-direction: column; align-items: flex-end; } .cl-end b { font: 800 14px Manrope, sans-serif; } .pc { background: #fdebc8; color: #8a5a06; font-weight: 700; padding: 0 6px; border-radius: 6px; }
.i-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid #f0ece0; } .i-row:last-child { border-bottom: 0; }
.ai-out { white-space: pre-wrap; font-size: 13.5px; color: #4a453d; } .dcard.ai { border-left: 4px solid var(--gold); } .pad { padding: 8px 2px; margin: 0; }
@media (max-width: 1200px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* ===== Clientes (diseño Stitch) ===== */
.ctbl .crow { cursor: pointer; min-height: 62px; } .ctbl .crow:hover { background: #fcfaf5; } .ctbl .td { min-height: 62px; } .ctbl .thead .td { min-height: 40px; }
.ctbl .empty-row .td { min-height: 44px; }
.cname { gap: 12px; } .logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font: 800 13px Manrope, sans-serif; flex: none; border: 1px solid color-mix(in srgb, var(--c) 25%, #fff); }
.cn-txt { display: flex; flex-direction: column; min-width: 0; } .cn-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cn-txt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ktype { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; border: 1px solid; } .ktype i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ktype.cliente { color: var(--ok); background: #e8f5ed; border-color: #b9dfc7; } .ktype.prospecto { color: #9a5b06; background: #fdf1d8; border-color: #f0d79b; }
.loc { gap: 6px; color: #4a453d; } .loc svg { color: var(--muted); flex: none; } .loc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wabtn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; background: #16a34a; color: #fff; font-weight: 700; font-size: 12.5px; text-decoration: none; white-space: nowrap; } .wabtn:hover { background: #15803d; }
.copps { gap: 4px; } .cowner { margin-left: auto; padding-left: 8px; }
.ctbl .grouphead .addbtn { color: var(--primary); font-weight: 700; }

/* ===== Configuración: embudo (diseño Stitch) ===== */
a.btn { text-decoration: none; color: var(--ink); } a.btn.primary { color: #fff; }
.sec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; } .sec-head h3 { font-size: 16px; } .sec-head > svg { color: var(--primary); } .sec-head .grow { flex: 1; } .sec-head .legend { margin-left: auto; }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.phase { background: #faf8f2; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; } .phase.won { background: #eef8f1; } .phase.lost { background: #fdf1ef; }
.ph-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--c); } .ph-top em { font-style: normal; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; color: var(--ink); letter-spacing: 0; }
.phase b { font: 800 15px Manrope, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .phase small { color: var(--muted); }
.ph-money { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font: 800 13px Manrope, sans-serif; } .ph-money svg { color: var(--c); }
.stagerow, .stagehead { grid-template-columns: 24px 40px minmax(140px, 1.4fr) 140px 120px 150px 36px; }
.stagehead { display: grid; gap: 10px; padding: 0 12px 8px 17px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ocount { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #4a453d; flex-wrap: wrap; } .ocount small { color: var(--muted); width: 100%; margin-left: 18px; margin-top: -3px; font-size: 11.5px; } .ocount svg { color: var(--primary); }
.stagerow .btn.ghost { color: var(--muted); } .stagerow .btn.ghost:hover { color: var(--bad); background: #fde9e7; }
@media (max-width: 900px) { .stagehead { display: none; } }

/* ===== Automatizaciones (diseño Stitch) ===== */
.recipes { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.recipe { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 14px; padding: 18px; gap: 8px; box-shadow: var(--shadow); } .recipe:hover { border-color: #d6cdb4; transform: translateY(-1px); transition: transform .15s; }
.rc-ico { width: 40px; height: 40px; border-radius: 10px; background: #f1ede1; color: var(--primary); display: grid; place-items: center; margin-bottom: 4px; }
.recipe h3 { font-size: 15px; } .recipe p { line-height: 1.5; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0ece0; padding-top: 12px; margin-top: 4px; } .rc-tag { font-size: 12px; font-weight: 600; color: var(--muted); }
.auto { border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: 14px; padding: 16px 18px; } .auto-top .btn { padding: 6px 12px; font-size: 13px; }
.sentence { padding: 12px 14px; background: #faf8f2; border-radius: 10px; margin: 12px 0 4px; } .sentence .blk { background: #fff; border: 1px solid var(--line); }
.auto-top .btn.ghost { color: var(--muted); } .auto-top .btn.ghost:hover { color: var(--bad); background: #fde9e7; }
/* constructor en tres tiempos */
.builder { position: relative; padding-left: 22px; } .builder::before { content: ''; position: absolute; left: 6px; top: 70px; bottom: 20px; width: 2px; background: var(--line); }
.builder .bsec { position: relative; background: #faf8f2; border-radius: 12px; padding: 14px 16px; margin: 14px 0; } .builder .bsec::before { content: ''; position: absolute; left: -23px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--dot, #2563eb); box-shadow: 0 0 0 4px var(--bg); }
.builder .bsec:nth-of-type(2) { --dot: #2563eb; } .builder .bsec:nth-of-type(3) { --dot: #d97706; } .builder .bsec:nth-of-type(4) { --dot: #991313; }
.builder .bsec > .kw { display: inline-block; padding: 2px 10px; border-radius: 6px; margin-bottom: 10px; color: var(--dot); background: color-mix(in srgb, var(--dot) 12%, #fff); border: 1px solid color-mix(in srgb, var(--dot) 30%, #fff); }

/* arrastrar filas de la tabla y soltar en pestañas de pipeline */
.rowgrip { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); cursor: grab; color: #a39c8c; font-size: 14px; letter-spacing: -3px; opacity: 0; padding: 4px 2px; user-select: none; } .tr:hover .rowgrip, .rowgrip:focus-visible { opacity: 1; } .rowgrip:active { cursor: grabbing; }
.td.chk { position: sticky; }
.tr.dragging { opacity: .45; }
.tr.dropbefore { box-shadow: 0 -3px 0 var(--primary); } .tr.dropafter { box-shadow: 0 3px 0 var(--primary); }
.grouphead.dropgroup { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.pipetabs button.dropok { background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
