.operation-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:18px 0}.operation-row:last-child{border-bottom:0}.operation-row p,.operation-row small{color:var(--muted);font-size:14px;margin-top:7px}.operation-row .actions{justify-content:flex-end;max-width:65%}.handler-crm-root .btn{gap:8px}.handler-crm-root .panel .panel-body{padding:24px}.handler-crm-root .panel .panel-head{padding:20px 24px}.handler-crm-root .topbar select{max-width:210px}
.demo-dialog{width:min(960px,calc(100vw - 36px));max-height:88dvh;overflow:auto;border:1px solid #525b6d;border-radius:16px;padding:30px;background:var(--surface,#1b1c1f);color:var(--ink,#f3f4f5);font:16px Inter,-apple-system,sans-serif;box-shadow:0 25px 100px #0009}.demo-dialog::backdrop{background:#050812b8}.demo-dialog h2{margin:0 30px 22px 0}.demo-dialog h3{margin:20px 0 12px}.demo-dialog p{margin:14px 0;line-height:1.65}.demo-dialog .btn{min-height:42px;border:1px solid #526078;border-radius:8px;background:transparent;color:inherit;padding:9px 13px;font:inherit;display:inline-flex;align-items:center;gap:8px;cursor:pointer}.demo-dialog .btn.primary{background:#b4c7f9;color:#15213a}.dialog-close{position:absolute;right:18px;top:14px;border:0;background:none;color:inherit;font-size:30px;cursor:pointer}.demo-dialog .actions{margin-top:24px}.demo-dialog .field{color:inherit}.demo-dialog .field input,.demo-dialog .field select{background:#21252e;color:#f3f4f5;border-color:#586176}.demo-dialog .quote-editor-row{display:grid;grid-template-columns:2fr .6fr .8fr .7fr;gap:12px;padding:18px 0;border-bottom:1px solid #586176}.discounts{grid-column:1/-1;display:flex;gap:5px;flex-wrap:wrap}.discounts .btn{font-size:12px;padding:6px 9px}.check-option{display:flex;gap:10px;padding:9px 0}.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:8px;overflow:auto;margin-bottom:24px}.calendar-week .map-item{padding:12px}.calendar-week h3{font-size:14px;margin-bottom:12px}.calendar-event{display:block;width:100%;border:0;border-radius:7px;background:var(--mint);color:var(--ink);text-align:left;padding:10px 8px;font:inherit;font-size:12px;cursor:pointer;margin-bottom:8px}.calendar-event small{display:block;margin-top:6px;color:var(--muted)}.form-grid .full{grid-column:1/-1}#form-error{color:#f49c90}.quote-document{background:#fff;color:#15213a;padding:22px}.quote-document th,.quote-document td{background:white;color:#15213a}.demo-dialog table{color:inherit}.demo-dialog progress{height:12px}.demo-dialog .progress-row{margin:20px 0}.demo-dialog select{min-height:42px}
@media(max-width:900px){.operation-row{align-items:flex-start;flex-wrap:wrap}.operation-row .actions{max-width:100%;justify-content:flex-start}.demo-dialog .quote-editor-row{grid-template-columns:1fr 1fr}.calendar-week{grid-template-columns:repeat(7,120px)}}
@media(max-width:700px){.demo-dialog{padding:22px 18px}.demo-dialog .quote-editor-row{grid-template-columns:1fr 1fr}.demo-dialog .quote-editor-row .field:first-child{grid-column:1/-1}.handler-crm-root .panel .panel-body{padding:18px}.handler-crm-root .topbar select{max-width:180px}}
@media print{body>*{display:none!important}body>#app{display:block!important}.shell{display:none!important}.demo-dialog{position:static;display:block!important;border:0;width:100%;max-height:none;background:white;color:black;box-shadow:none}.demo-dialog .dialog-close,.demo-dialog .btn{display:none!important}.demo-dialog::backdrop{display:none}.quote-document{padding:0}.demo-dialog h2{color:black}}

/* Plan identifiers appear beside the actual sidebar entry. GO has no badge. */
.handler-crm-root .sidebar nav a,.handler-crm-root .sidebar nav .nav-feature{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:9px 11px;font:inherit;font-size:14px;border:0;border-radius:10px;background:transparent;color:#c4cbd7;text-align:left;text-decoration:none;cursor:pointer}
.handler-crm-root .sidebar nav .nav-feature:hover{background:#25334d}
.handler-crm-root .sidebar nav .nav-feature svg{width:18px;height:18px;flex-shrink:0}
.handler-crm-root .sidebar nav .nav-label{flex:1;min-width:0}
.handler-crm-root .sidebar nav .module-badge{flex:0 0 auto;margin-left:auto;font-size:10px;letter-spacing:.2px;padding:3px 5px;font-style:italic;line-height:1.1}
.handler-crm-root .sidebar nav .tier-plus{background:#b4c7f91a;border:1px solid #b4c7f970;color:#b4c7f9}
.handler-crm-root .sidebar nav .tier-max{background:#b4c7f9;border:1px solid #b4c7f9;color:#15213a}
.handler-crm-root .sidebar nav a[aria-current]{background:var(--demo-blue);color:var(--demo-blue-ink)}
.handler-crm-root .sidebar nav a[aria-current] .tier-plus{background:#15213a0d;border-color:#15213a50;color:#15213a}
.handler-crm-root .sidebar nav a,.handler-crm-root .sidebar nav .nav-feature{box-sizing:border-box;max-width:100%;min-width:0}
.handler-crm-root .sidebar nav .nav-label{white-space:normal;overflow-wrap:normal;font-size:13px}
.handler-crm-root .sidebar nav{min-width:0}
.handler-crm-root .sidebar{overflow-x:hidden}
@media(min-width:701px){.handler-crm-root .shell{grid-template-columns:260px minmax(0,1fr)}}

/* Apti staff navigation is distinct from the tenant's business actions. */
.apti-team-spaces{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:42px;padding:7px 14px;border:1px solid #536d94;border-radius:10px;background:#14243b;color:#cad7ff;text-decoration:none;white-space:nowrap;line-height:1.15}
.apti-team-spaces span{font-size:13px;font-weight:650}
.apti-team-spaces small{font-size:9px;letter-spacing:.5px;color:#a9bddb}
.apti-team-spaces:hover{background:#1e3555;border-color:#8aa6cf}
.apti-team-spaces:focus-visible{outline:2px solid #b4c7f9;outline-offset:3px}
@media(max-width:850px){.handler-crm-root .topbar{flex-wrap:wrap}.top-tools{flex-wrap:wrap}.apti-team-spaces{padding:7px 10px}}

/* Shared header control specification: 44px, 10px radius, 20px line icons. */
.handler-crm-root .top-tools{display:flex;align-items:center;gap:10px}
.handler-crm-root .top-tools .apti-team-spaces,.handler-crm-root .top-tools .profile-control,.handler-crm-root .top-tools .header-theme{box-sizing:border-box;height:44px;min-height:44px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);font-size:13px;line-height:1;background:var(--surface);color:var(--ink);margin:0}
.handler-crm-root .top-tools svg{width:20px;height:20px;flex:0 0 20px;stroke-width:1.7}
.handler-crm-root .top-tools .apti-team-spaces{flex-direction:row;background:#14243b;border-color:#536d94;color:#cad7ff;padding:0 14px}
.handler-crm-root .top-tools .apti-team-spaces:hover{background:#1e3555;border-color:#8aa6cf}
.handler-crm-root .profile-control{position:relative;padding:0 12px}
.handler-crm-root .profile-control>svg{pointer-events:none}
.handler-crm-root .profile-control>svg:last-child{width:16px;height:16px;flex-basis:16px;color:var(--muted)}
.handler-crm-root .profile-control select{appearance:none;-webkit-appearance:none;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;height:42px;max-width:190px;padding:0;cursor:pointer;outline:none}
.handler-crm-root .top-tools .header-theme{width:44px;padding:0;cursor:pointer}
.handler-crm-root .profile-control:hover,.handler-crm-root .top-tools .header-theme:hover{background:var(--surface-soft);border-color:#8896ad}
.handler-crm-root .profile-control:focus-within,.handler-crm-root .top-tools .header-theme:focus-visible{outline:2px solid #b4c7f9;outline-offset:3px}
/* Sidebar follows the selected appearance; staff actions keep their own identity. */
[data-theme=light] .handler-crm-root .sidebar{background:#fff;border-right:1px solid #dce1eb;scrollbar-color:#b8c5da #f0f3f9;color:#25334d}
[data-theme=light] .handler-crm-root .brand .brand-name{color:#15213a}
[data-theme=light] .handler-crm-root .brand .brand-product{color:#3c56aa}
[data-theme=light] .handler-crm-root .brand .brand-caption{color:#647087}
[data-theme=light] .handler-crm-root .sidebar nav a,[data-theme=light] .handler-crm-root .sidebar nav .nav-feature{color:#43516a}
[data-theme=light] .handler-crm-root .sidebar nav a:hover,[data-theme=light] .handler-crm-root .sidebar nav .nav-feature:hover{background:#edf2fc;color:#15213a}
[data-theme=light] .handler-crm-root .sidebar nav a[aria-current],[data-theme=light] .handler-crm-root .sidebar nav a[aria-current]:hover{background:#b4c7f9;color:#15213a}
[data-theme=light] .handler-crm-root .sidebar nav .tier-plus{background:#e8efff;border-color:#9aadd8;color:#3c56aa}
[data-theme=light] .handler-crm-root .sidebar nav .tier-max{background:#3c56aa;border-color:#3c56aa;color:#fff}
[data-theme=light] .handler-crm-root .sidebar-bottom a{color:#3c56aa;background:#fff;border-color:#dce1eb}
[data-theme=light] .handler-crm-root .sidebar-bottom a:hover{background:#edf2fc}
[data-theme=light] .handler-crm-root .sidebar::-webkit-scrollbar{width:8px}
[data-theme=light] .handler-crm-root .sidebar::-webkit-scrollbar-track{background:#f0f3f9}
[data-theme=light] .handler-crm-root .sidebar::-webkit-scrollbar-thumb{background:#b8c5da;border-radius:8px;border:2px solid #f0f3f9}
/* Resultado de seguimiento: condicionales y campos con el tema vigente. */
#operation-form[data-kind="task-complete"] [hidden]{display:none!important}
#operation-form[data-kind="task-complete"] .field :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:44px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:11px 12px;font:inherit}
#operation-form[data-kind="task-complete"] .field textarea{min-height:96px;line-height:1.5;resize:vertical}
#operation-form[data-kind="task-complete"] .field :is(input,select,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#operation-form[data-kind="task-complete"] .field small{color:var(--muted);line-height:1.5}

#operation-form[data-kind^="commercial-"] textarea{box-sizing:border-box;width:100%;min-width:0;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit;resize:vertical}

#operation-form[data-kind^="commercial-"] [hidden]{display:none!important}
