/* Estudio Clientes: estilos encapsulados, sin dependencia del tema */
.ejc-app{--ejc-dark:#111e35;--ejc-violet:#1f6b50;--ejc-violet-soft:#e8f6ef;--ejc-border:#e7ebf2;--ejc-muted:#7b8596;--ejc-text:#263348;--ejc-bg:#f5f7fb;--ejc-radius:17px;display:flex;min-height:100vh;background:var(--ejc-bg);color:var(--ejc-text);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif!important;letter-spacing:0;text-align:left;isolation:isolate;border-radius:18px;overflow:hidden;box-shadow:0 9px 40px rgba(16,30,53,.08)}
.ejc-app *{box-sizing:border-box}.ejc-app a{text-decoration:none!important}.ejc-app h1,.ejc-app h2,.ejc-app h3,.ejc-app p{margin:0;font-family:inherit;letter-spacing:normal}.ejc-app input,.ejc-app button,.ejc-app select,.ejc-app textarea{font-family:inherit;font-size:14px;box-sizing:border-box}.ejc-app button{cursor:pointer}.ejc-app svg{flex:none}.ejc-app [hidden]{display:none!important}
.ejc-sidebar{width:258px;flex:0 0 258px;background:linear-gradient(165deg,#112337 0%,#173349 60%,#0f4d3a 100%);padding:31px 18px 20px;color:white;display:flex;flex-direction:column;gap:27px;min-height:100vh;position:sticky;top:0;align-self:flex-start}.ejc-brand{display:flex;align-items:center;gap:12px;padding:0 10px;color:#fff!important}.ejc-brand .ejc-monogram{display:grid;place-items:center;background:linear-gradient(140deg,#2f8a64,#1e6b50);border-radius:14px;width:45px;height:45px;font-family:Georgia,serif;font-size:27px;line-height:1;box-shadow:0 7px 17px #090f2690}.ejc-monogram span{color:#d5f2e2}.ejc-brand>span:last-child{display:flex;flex-direction:column}.ejc-brand strong{color:#fff;font-size:17px;letter-spacing:2.2px;font-weight:750}.ejc-brand small{font-size:9px;letter-spacing:2.3px;color:#aebbd4;font-weight:650}.ejc-sidebar-label{padding:20px 13px 0;color:#75849d;font-size:10px;letter-spacing:1.3px;font-weight:750}.ejc-sidebar nav{display:flex;flex-direction:column;gap:7px}.ejc-nav-link{display:flex;align-items:center;gap:12px;border-radius:11px;padding:13px 14px;color:#b8c4dc!important;font-weight:580;transition:background .25s,color .25s,transform .25s}.ejc-nav-link:hover{background:#ffffff13;color:white!important;transform:translateX(2px)}.ejc-nav-link.active{background:#2c8e6330;color:white!important;box-shadow:inset 3px 0 0 #4eb183}.ejc-sidebar-bottom{margin-top:auto}.ejc-secure{display:flex;align-items:center;gap:9px;color:#8495b2;padding:16px 9px;font-size:11px}.ejc-secure svg{width:16px}.ejc-account{border-top:1px solid #ffffff20;display:flex;align-items:center;padding:19px 4px 0;gap:10px;min-width:0}.ejc-avatar{display:grid;place-items:center;background:#1f6b50;color:white;font-size:16px;font-weight:700;border-radius:50%;width:37px;height:37px;flex:none}.ejc-account span{min-width:0;flex:1;display:flex;flex-direction:column}.ejc-account strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}.ejc-account small{color:#8d9ab1;font-size:11px}.ejc-account a{color:#a2b0c9!important;display:flex}
.ejc-main{flex:1;min-width:0;display:flex;flex-direction:column}.ejc-topbar{height:73px;flex:0 0 73px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 39px;border-bottom:1px solid var(--ejc-border)}.ejc-topcrumb{font-size:10px;letter-spacing:1.35px;font-weight:800;color:#7b8199}.ejc-topcrumb span{padding:0 12px;color:#bec3d1}.ejc-top-right{display:flex;align-items:center;gap:25px;font-weight:600;font-size:12px;color:#697688}.ejc-top-online{display:flex;align-items:center;gap:9px}.ejc-top-online i{display:inline-block;background:#1dbb91;width:7px;height:7px;border-radius:100%;box-shadow:0 0 0 4px #ddf8ed}.ejc-content{max-width:1440px;width:100%;margin:0 auto;padding:36px 38px 20px;display:flex;flex-direction:column;gap:25px;flex:1}.ejc-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.ejc-eyebrow{color:#1f6b50;font-size:10px;letter-spacing:1.7px;font-weight:850;margin-bottom:5px}.ejc-heading h1{font-size:29px;color:#17243c;line-height:1.23;font-weight:740;margin-bottom:6px}.ejc-heading p{font-size:13px;color:var(--ejc-muted);max-width:680px}.ejc-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 16px;border-radius:10px!important;font-weight:710!important;font-size:12px!important;white-space:nowrap;border:1px solid transparent;min-height:42px;transition:transform .2s,background .2s,box-shadow .2s}.ejc-btn svg{width:17px;height:17px}.ejc-btn:hover{transform:translateY(-1px)}.ejc-btn-primary{color:#fff!important;background:#1f6b50!important;border-color:#1f6b50!important;box-shadow:0 6px 14px rgba(24,96,69,.20)}.ejc-btn-primary:hover{background:#16523d!important;box-shadow:0 10px 18px rgba(24,96,69,.32)}.ejc-btn-outline{background:white!important;color:#394459!important;border-color:#dbe0e9!important}.ejc-btn-outline:hover{background:#f2faf6!important}.ejc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ejc-stat{background:white;border:1px solid var(--ejc-border);padding:19px 19px 17px;border-radius:var(--ejc-radius);min-height:142px;box-shadow:0 3px 15px #1d2f5010;display:flex;flex-direction:column;justify-content:space-between}.ejc-stat-title{font-size:11px;color:#747f92;font-weight:660;display:flex;align-items:center;justify-content:space-between;gap:4px}.ejc-stat-icon{height:34px;width:34px;display:grid;place-items:center;border-radius:10px}.ejc-stat-icon svg{width:17px}.ejc-stat-icon.violet{background:#e8f6ef;color:#1f6b50}.ejc-stat-icon.blue{background:#e9f3ff;color:#3876d4}.ejc-stat-icon.green{background:#dcf9f0;color:#139b73}.ejc-stat-icon.orange{background:#fff1e4;color:#ee9239}.ejc-stat strong{font-size:24px;letter-spacing:-.6px;line-height:1.3;color:#1a2a43;font-weight:780;font-variant-numeric:tabular-nums}.ejc-stat small{color:#9aa3b2;font-size:11px}.ejc-panel{background:white;border:1px solid var(--ejc-border);border-radius:var(--ejc-radius);box-shadow:0 3px 15px #1d2f500c;overflow:hidden}.ejc-panel-head,.ejc-section-head{display:flex;align-items:center;justify-content:space-between;gap:17px;padding:23px 25px}.ejc-panel-head h2,.ejc-section-head h2{font-size:16px!important;color:#1b2941;font-weight:730;line-height:1.3}.ejc-panel-head p{font-size:12px;color:#9aa3b2;margin-top:5px}.ejc-search{min-width:320px;display:flex;align-items:center;gap:7px;background:#f8f9fc;border:1px solid var(--ejc-border);border-radius:9px;padding:0 7px 0 12px}.ejc-search svg{width:16px;color:#a4acc0}.ejc-search input{border:0!important;outline:none;box-shadow:none!important;background:transparent!important;padding:11px 0!important;min-width:0;flex:1;color:#263348}.ejc-search button{border:0!important;border-radius:7px;background:white!important;font-size:11px!important;color:#1f6b50;font-weight:800;padding:7px 10px}.ejc-table-scroll{max-width:100%;overflow-x:auto}.ejc-table{width:100%;border-collapse:collapse;border-spacing:0;white-space:nowrap;margin:0;font-size:12px}.ejc-table thead{background:#f9fafe}.ejc-table th{font-size:10px;font-weight:800;letter-spacing:.8px;color:#94a0b0;padding:14px 22px;text-align:left;border-bottom:1px solid var(--ejc-border);background:transparent}.ejc-table td{padding:17px 22px;border-bottom:1px solid #eff1f5;color:#4e5b70;vertical-align:middle}.ejc-table tr:last-child td{border-bottom:0}.ejc-table tbody tr:not(.ejc-payment-row){transition:background .2s}.ejc-table tbody tr:not(.ejc-payment-row):hover{background:#f8f9fd}.ejc-contract{font-weight:800;color:#1f6b50!important}.ejc-person{display:flex;gap:10px;align-items:center;color:var(--ejc-text)!important}.ejc-person strong{font-size:12px;color:#263348;display:block}.ejc-person small{font-size:11px;color:#9ca4b2;display:block;max-width:210px;overflow:hidden;text-overflow:ellipsis}.ejc-initials{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#e8f6ef;color:#1f6b50;font-size:13px;font-weight:750}.ejc-money-pending,.ejc-due{font-weight:740!important;color:#bb7136!important}.ejc-good{color:#118e70!important}.ejc-pill{display:inline-flex;padding:4px 11px;border-radius:30px;font-weight:750;font-size:10px;letter-spacing:.15px}.ejc-pill.pending{background:#e8f6ef;color:#1f6b50}.ejc-pill.paid{background:#dff8ef;color:#218966}.ejc-pill.late{background:#fff0e9;color:#c26d42}.ejc-row-arrow{display:flex;color:#a0aabe!important}.ejc-row-arrow:hover{color:#1f6b50!important}.ejc-empty{text-align:center;padding:35px 10px!important;color:#8b95a6!important;white-space:normal}.ejc-pagination{padding:17px 23px;border-top:1px solid var(--ejc-border);display:flex;justify-content:space-between;color:#8792a3;font-size:12px}.ejc-pagination a{color:#1f6b50!important;font-weight:750;padding:4px 8px}.ejc-footer{margin-top:auto;display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e6eaf1;padding:17px 0 0;color:#a3adbb;font-size:11px}
.ejc-notice{padding:13px 16px;border-radius:10px;background:#fff0eb;color:#9e5136;border:1px solid #fcd6c9;display:flex;gap:10px;align-items:center}.ejc-notice.is-success{background:#edf9f4;border-color:#c8eadc;color:#1e8364}.ejc-notice.is-info{background:#f0edff;border-color:#dfd9fd;color:#6050a6}.ejc-back a{display:inline-flex;align-items:center;gap:3px;color:#79869a!important;font-size:12px;font-weight:700}.ejc-back a:hover{color:#6258dc!important}.ejc-back svg{width:15px;height:15px}.ejc-detail-heading{margin-top:-9px}.ejc-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--ejc-dark);color:#fff;border-radius:var(--ejc-radius);padding:24px;gap:18px}.ejc-overview>div{display:flex;flex-direction:column;gap:10px;border-right:1px solid #ffffff2a;padding-left:10px}.ejc-overview>div:last-child{border:0}.ejc-overview span{color:#a8bad2;letter-spacing:.8px;font-size:10px;font-weight:700}.ejc-overview strong{font-size:21px;color:#fff;font-weight:800;font-variant-numeric:tabular-nums}.ejc-overview .ejc-good{color:#68e0b3!important}.ejc-overview .ejc-due{color:#ffc288!important}.ejc-two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:17px}.ejc-card-info,.ejc-progress-panel{padding-bottom:24px}.ejc-info-grid{margin:2px 25px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px}.ejc-info-grid .ejc-full{grid-column:1/-1}.ejc-info-grid dt{color:#929cad;font-size:11px;margin-bottom:5px}.ejc-info-grid dd{margin:0;font-size:13px;font-weight:690;color:#27344c;overflow-wrap:anywhere}.ejc-progress-panel{padding:0 24px}.ejc-progress-panel .ejc-section-head{padding:23px 0 16px}.ejc-progress-value{font-size:48px;font-weight:780;letter-spacing:-2px;color:#27344c;line-height:1.3}.ejc-progress-value span{font-size:21px;color:#778398}.ejc-progress-track{height:10px;width:100%;background:#eef0f7;border-radius:15px;overflow:hidden;margin:10px 0}.ejc-progress-track>span{display:block;height:100%;border-radius:15px;background:linear-gradient(90deg,#7465ec,#2bb79a);transition:width .35s}.ejc-progress-panel p{font-size:11px;color:#8f9aac;margin:9px 0 23px}.ejc-progress-break{display:flex;justify-content:space-between;border-top:1px solid #eff1f5;padding:11px 0;color:#8794a5;font-size:12px}.ejc-progress-break strong{color:#263348}.ejc-counter{font-size:11px;font-weight:720;background:#f4f4fc;color:#6567a4;border-radius:20px;padding:6px 12px}.ejc-mini-btn{border:1px solid #dcd8fb!important;background:#f5f3ff!important;color:#6258ca!important;border-radius:8px;font-size:11px!important;padding:7px 10px;font-weight:750}.ejc-mini-btn:hover{background:#eae5ff!important}.ejc-payment-row td{background:#f8f8ff!important;white-space:normal!important}.ejc-payment-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.ejc-payment-form label{font-size:11px;font-weight:700;flex:1;min-width:135px}.ejc-payment-form input{display:block;width:100%;padding:9px 11px!important;border:1px solid #e0e3eb!important;border-radius:8px!important;background:#fff!important;margin-top:5px}.ejc-payment-form .ejc-btn{align-self:end}.ejc-subtext{display:block;color:#8997a8;white-space:normal;font-size:10px}
.ejc-form-section{padding:0 28px 28px;overflow:visible}.ejc-form-section-title{display:flex;align-items:center;gap:15px;padding:24px 0;border-bottom:1px solid #eff1f5;margin-bottom:24px}.ejc-form-section-title>span{display:grid;place-items:center;width:37px;height:37px;color:#6558cf;background:#efecff;border-radius:10px;font-size:12px;font-weight:850}.ejc-form-section-title h2{font-size:16px;font-weight:760;color:#1a2b43}.ejc-form-section-title p{font-size:12px;color:#99a3b2;margin-top:3px}.ejc-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px 17px}.ejc-field{display:flex;flex-direction:column;gap:7px;font-weight:740;font-size:12px;color:#46536a}.ejc-field em{color:#d87968;font-style:normal}.ejc-field.ejc-col-2{grid-column:span 2}.ejc-field.ejc-col-3{grid-column:span 3}.ejc-field input,.ejc-field select,.ejc-field textarea,.ejc-installment-row input{width:100%;margin:0!important;background:#fff!important;color:#24334d!important;border:1px solid #dfe4ed!important;outline:0;box-shadow:none!important;border-radius:9px!important;min-height:43px;padding:10px 12px!important;font-size:13px!important;resize:vertical;transition:border-color .2s,box-shadow .2s}.ejc-field textarea{min-height:80px}.ejc-field input:focus,.ejc-field select:focus,.ejc-field textarea:focus,.ejc-installment-row input:focus{border-color:#8b83ea!important;box-shadow:0 0 0 3px #ece9ff!important}.ejc-field small{color:#929eaf;font-size:10px;font-weight:400}.ejc-distribution{display:flex;gap:15px;margin:27px 0 22px}.ejc-distribution label{flex:1;border:1px solid #e2e5ed;border-radius:11px;padding:14px 16px;display:flex;align-items:center;gap:11px;cursor:pointer;transition:background .2s,border .2s}.ejc-distribution label:has(input:checked){background:#f6f3ff;border-color:#9e92f4}.ejc-distribution input{accent-color:#6456dc;width:16px;height:16px;flex:0 0 auto}.ejc-distribution strong{display:block;font-size:12px;color:#2b374d}.ejc-distribution small{display:block;font-size:10px;color:#91a0ad}.ejc-schedule-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.ejc-schedule-header h3{font-size:14px;color:#26344b;font-weight:750}.ejc-schedule-header>div{font-size:11px;color:#7b88a0}.ejc-installment-row{display:grid;grid-template-columns:100px 1fr 1fr;align-items:center;gap:15px;padding:12px 15px;border:1px solid #edf0f5;background:#fafbfd;border-radius:10px;margin-bottom:9px}.ejc-installment-label{font-size:12px;font-weight:780;color:#5957aa}.ejc-installment-row label{display:block;color:#8994a6;font-size:10px;font-weight:650}.ejc-installment-row input{display:block;margin-top:4px!important;background:#fff!important;min-height:37px;padding:8px 10px!important}.ejc-installment-row .ejc-readonly{background:#f0f2f7!important;color:#677286!important;cursor:default}.ejc-form-error{margin-top:14px;background:#fff0ec;border:1px solid #fbd9ce;color:#b45d46;border-radius:9px;padding:12px;font-size:12px}.ejc-form-actions{display:flex;justify-content:end;gap:12px;padding:0 2px}.ejc-locked-overview{display:flex;align-items:center;gap:24px;flex-wrap:wrap;color:#718098;font-size:13px}.ejc-locked-overview strong{color:#27344b}.ejc-entrance{font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f7f7fc;border:1px solid #e6e5f3;border-radius:16px;padding:40px;text-align:center;color:#39445b}.ejc-entrance strong{font-size:19px}.ejc-entrance p{margin:12px auto}.ejc-entrance a{display:inline-block;padding:11px 20px;border-radius:9px;color:#fff!important;background:#6357d9;text-decoration:none}
@media(max-width:1150px){.ejc-sidebar{width:215px;flex-basis:215px}.ejc-content{padding:28px 22px 15px}.ejc-topbar{padding:0 22px}.ejc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ejc-stat strong{font-size:22px}.ejc-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ejc-field.ejc-col-3{grid-column:span 2}}
@media(max-width:780px){.ejc-app{display:block}.ejc-sidebar{width:100%;padding:14px 15px;display:block}.ejc-brand{display:inline-flex;padding:0}.ejc-sidebar-label,.ejc-sidebar-bottom{display:none}.ejc-sidebar nav{display:flex;flex-direction:row;overflow-x:auto;padding:15px 0 0;gap:7px}.ejc-nav-link{padding:9px 11px;font-size:11px;white-space:nowrap}.ejc-nav-link svg{width:14px}.ejc-topbar{height:50px;flex-basis:50px;padding:0 18px}.ejc-topcrumb{font-size:9px}.ejc-top-right{gap:10px}.ejc-top-online{display:none}.ejc-content{padding:23px 16px}.ejc-heading h1{font-size:23px}.ejc-panel-head{flex-wrap:wrap;padding:19px}.ejc-search{width:100%;min-width:0}.ejc-two-col{grid-template-columns:1fr}.ejc-overview{grid-template-columns:repeat(2,1fr);gap:18px}.ejc-overview>div:nth-child(2){border:0}.ejc-overview strong{font-size:19px}.ejc-form-section{padding:0 17px 20px}}
@media(max-width:510px){.ejc-stats{gap:10px}.ejc-stat{padding:13px;min-height:126px}.ejc-stat-title{font-size:10px}.ejc-stat strong{font-size:16px}.ejc-stat-icon{width:26px;height:26px}.ejc-form-grid{display:flex;flex-direction:column;gap:15px}.ejc-distribution{flex-direction:column;gap:9px}.ejc-installment-row{grid-template-columns:1fr 1fr;gap:8px}.ejc-installment-label{grid-column:1/-1}.ejc-info-grid{grid-template-columns:1fr}.ejc-footer span{display:none}.ejc-top-date{display:none}.ejc-heading .ejc-btn{width:100%}.ejc-form-actions .ejc-btn-primary{white-space:normal}.ejc-overview{padding:17px}.ejc-overview strong{font-size:17px}.ejc-payment-form label{min-width:100%}}

/* Ancho máximo del portal cuando el tema restringe el contenido de páginas */
.ejc-app{width:min(1540px,calc(100vw - 32px));max-width:none;position:relative;left:50%;transform:translateX(-50%);margin-bottom:20px}

/* v2: reemplaza la plantilla del tema y utiliza toda la ventana */
html:has(body.ejc-standalone), body.ejc-standalone { margin:0!important;padding:0!important;min-height:100%;width:100%;max-width:none!important;overflow-x:hidden;background:#f5f7fb; }
body.ejc-standalone .ejc-app{width:100%!important;max-width:none!important;min-height:100vh!important;min-height:100dvh!important;margin:0!important;padding:0!important;left:auto!important;top:auto!important;transform:none!important;position:relative!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
body.ejc-standalone .ejc-sidebar{min-height:100vh;min-height:100dvh;position:sticky;top:0;align-self:flex-start;}
body.ejc-standalone .ejc-main{min-height:100vh;min-height:100dvh}
body.ejc-standalone #wpadminbar{display:none!important}
body.ejc-standalone .ejc-content{max-width:1580px}
.ejc-form-section .ejc-field select{min-height:43px}
.ejc-audit-table td{vertical-align:top!important;font-size:12px}
.ejc-audit-label{font-weight:750;color:#24364e}
.ejc-audit-details{max-width:460px;white-space:normal}
.ejc-audit-details summary{cursor:pointer;color:#6056ca;font-weight:700}
.ejc-audit-details pre{font-size:11px;line-height:1.55;color:#37445d;background:#f5f6fa;border:1px solid #e4e8f0;padding:10px 12px;border-radius:10px;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere;max-height:310px;overflow-y:auto}
.ejc-account-dot{display:inline-flex;align-items:center;border-radius:100px;padding:4px 10px;background:#f4f1ff;color:#665ac5;font-size:11px;font-weight:700}
.ejc-account-dot.off{background:#fff1ed;color:#b95b47}
.ejc-user-form{margin-top:15px}
.ejc-user-form .ejc-btn{align-self:end}
.ejc-inline-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ejc-inline-actions form{margin:0}
.ejc-inline-actions button{border:1px solid #e1e3ec;color:#514c9f;background:#fafaff;border-radius:9px;padding:7px 10px;font-size:11px;font-weight:700}
.ejc-inline-actions button:hover{background:#eeecfc}
.ejc-user-avatar{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f0edff;color:#685ac4;font-size:12px;font-weight:800;margin-right:8px}
.ejc-user-legend{font-size:12px;color:#7b8596;margin-bottom:4px}
@media(max-width:780px){body.ejc-standalone .ejc-sidebar{position:relative;min-height:auto}body.ejc-standalone .ejc-main{min-height:calc(100vh - 155px)}.ejc-audit-details{max-width:250px}}

body.ejc-standalone:has(>.ejc-entrance){display:flex;align-items:center;justify-content:center;min-height:100dvh;padding:25px!important;background:radial-gradient(circle at 20% 20%,#eae8ff 0%,#f5f7fb 45%,#eff1f8 100%)}
body.ejc-standalone>.ejc-entrance{width:min(440px,100%);box-shadow:0 20px 60px rgba(18,31,55,.1);border:1px solid #e6e5f2}

/* v3 · pantalla privada de inicio de sesión */
html:has(body.ejc-standalone){min-height:100%;}
body.ejc-standalone:has(.ejc-login-screen){background:#f6f8fc!important;overflow-x:hidden}
.ejc-login-screen{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(340px,47fr) minmax(400px,53fr);width:100%;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;color:#26354b;box-sizing:border-box}
.ejc-login-screen *{box-sizing:border-box}
.ejc-login-intro{background:radial-gradient(ellipse at 100% 0%,rgba(31,107,80,.22),transparent 46%),linear-gradient(153deg,#15243e 0%,#101c32 64%,#173349 100%);color:#fff;padding:clamp(38px,5vw,92px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.ejc-login-intro::after{content:"";position:absolute;bottom:-195px;right:-200px;width:510px;height:510px;border:1px solid rgba(112,178,148,.16);border-radius:50%;box-shadow:0 0 0 80px rgba(112,178,148,.055),0 0 0 160px rgba(112,178,148,.035);pointer-events:none}
.ejc-login-brand{display:flex;align-items:center;gap:15px;position:relative;z-index:1}
.ejc-login-logo{width:54px;height:54px;display:flex;align-items:center;justify-content:center;border-radius:16px;background:linear-gradient(145deg,#2f8a64,#1f6b50);box-shadow:0 10px 25px rgba(35,24,127,.37);font:34px Georgia,serif;color:#fff}
.ejc-login-logo span{color:#dff5e8}
.ejc-login-brand>span:last-child{display:flex;flex-direction:column}
.ejc-login-brand strong{font-size:19px;font-weight:800;letter-spacing:2.6px;line-height:1.15}
.ejc-login-brand small{color:#a9b6d0;font-size:10px;font-weight:700;letter-spacing:2.1px;line-height:2}
.ejc-login-message{max-width:555px;position:relative;z-index:1;margin:65px 0}
.ejc-login-overline{font-size:11px;letter-spacing:2px;color:#89c8aa;font-weight:800;margin-bottom:23px}
.ejc-login-message h1{font-family:inherit!important;color:#fff!important;font-size:clamp(36px,4vw,64px)!important;line-height:1.12!important;font-weight:760!important;letter-spacing:-1.9px!important;margin:0!important}
.ejc-login-message h1 em{font-style:normal;color:#6fc49a}
.ejc-login-message p{color:#b5c1d5;font-size:15px;line-height:1.85;margin:24px 0 32px;max-width:475px}
.ejc-login-tags{display:flex;flex-wrap:wrap;gap:9px}
.ejc-login-tags span{border:1px solid rgba(185,183,235,.23);background:rgba(255,255,255,.06);border-radius:999px;padding:8px 14px;font-size:11px;color:#d5d9ec}
.ejc-login-note{position:relative;z-index:1;display:flex;align-items:center;gap:10px;font-size:12px;color:#97a8c6}
.ejc-login-note svg{width:16px;height:16px}
.ejc-login-form-side{background:#fbfcff;min-width:0;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:30px 40px}
.ejc-login-form-wrap{width:100%;max-width:410px;margin:auto 0; padding:50px 0}
.ejc-login-mobile-brand{display:none}
.ejc-login-label{color:#1f6b50;font-size:11px;letter-spacing:2px;font-weight:800}
.ejc-login-form-wrap h2{font-family:inherit!important;font-size:39px!important;line-height:1.2!important;color:#18263e!important;margin:13px 0 13px!important;font-weight:770!important;letter-spacing:-1px!important}
.ejc-login-form-wrap>p{color:#7f8ba0;font-size:14px;line-height:1.8;margin:0 0 33px}
.ejc-login-form{display:flex;flex-direction:column;gap:0}
.ejc-login-form>label{font-size:12px;color:#39475b;font-weight:730;margin-bottom:9px}
.ejc-login-form>input{min-height:55px;padding:14px 16px!important;color:#1d2a41!important;border:1px solid #dfe5f0!important;background:white!important;border-radius:11px!important;outline:none!important;box-shadow:none!important;font-size:14px!important;font-family:inherit!important;transition:border-color .2s,box-shadow .2s;margin:0 0 25px!important;width:100%}
.ejc-login-form>input:focus{border-color:#1f6b50!important;box-shadow:0 0 0 4px rgba(31,107,80,.10)!important}
.ejc-login-form>input::placeholder{color:#9fa9bc}
.ejc-login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin:-4px 0 28px}
.ejc-login-options>a{color:#1f6b50!important;text-decoration:none;font-weight:700}
.ejc-login-remember{display:inline-flex;align-items:center;gap:8px;color:#78859b;cursor:pointer}
.ejc-login-remember input{accent-color:#1f6b50;width:15px;height:15px;margin:0}
.ejc-login-submit{height:54px;width:100%;display:flex;align-items:center;justify-content:center;gap:12px;border:0!important;border-radius:11px!important;background:linear-gradient(115deg,#2f8a64,#1f6b50)!important;color:#fff!important;font-size:14px;font-weight:750!important;cursor:pointer;box-shadow:0 12px 22px rgba(24,96,69,.23);transition:transform .2s,box-shadow .2s}
.ejc-login-submit:hover{transform:translateY(-2px);box-shadow:0 16px 28px rgba(24,96,69,.3)}
.ejc-login-submit svg{width:17px;height:17px}
.ejc-login-help{display:flex;gap:9px;align-items:start;border-top:1px solid #ecedf3;margin-top:40px;padding-top:21px;font-size:12px;color:#8996a7}
.ejc-login-help svg{width:16px;height:16px;flex:none}
.ejc-login-alert{background:#fff0ed;border:1px solid #f2ccc4;color:#a94a3a;border-radius:9px;font-size:12px;line-height:1.65;padding:12px 14px;margin-bottom:25px}
.ejc-login-copyright{font-size:11px;color:#a0aabd;text-align:center;width:100%;padding-bottom:5px}
body.ejc-standalone .ejc-login-screen{width:100%;}
@media(max-width:850px){.ejc-login-screen{grid-template-columns:1fr}.ejc-login-intro{display:none}.ejc-login-form-side{min-height:100dvh;padding:26px}.ejc-login-form-wrap{max-width:460px}.ejc-login-mobile-brand{display:block;letter-spacing:1.6px;color:#182641;font-size:12px;font-weight:850;margin-bottom:43px}.ejc-login-mobile-brand span{color:#675be1}.ejc-login-form-wrap h2{font-size:32px!important}}
@media(max-width:430px){.ejc-login-form-side{padding:18px}.ejc-login-form-wrap{padding:30px 0}.ejc-login-form-wrap>p{margin-bottom:25px}.ejc-login-options{align-items:flex-start;flex-direction:column;gap:14px}.ejc-login-copyright{font-size:10px}}
/* v4 · Modalidades de servicio, contratos múltiples y primera contraseña */
.ejc-code-input{display:flex;align-items:center;border:1px solid #dce2ee;border-radius:11px;overflow:hidden;background:#fff;min-height:50px}
.ejc-code-input>span{display:flex;align-items:center;align-self:stretch;padding:0 15px;background:#f0edff;color:#6255c8;font-size:14px;font-weight:830;border-right:1px solid #dce2ee}
.ejc-code-input input{border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;min-height:48px;flex:1;min-width:0;padding:12px!important;font-variant-numeric:tabular-nums}
.ejc-code-input:focus-within{outline:3px solid #ddd7ff;border-color:#796dea}
.ejc-field>small{font-size:11px;line-height:1.5;color:#7c879a;font-weight:450;margin-top:7px}
#ejc-finance[hidden],#ejc-written-help[hidden]{display:none!important}
.ejc-mode-explainer{background:#f5f3ff;color:#4c4a73;border:1px solid #e2dcfe;border-radius:12px;padding:18px 22px;font-size:13px;line-height:1.7;margin:10px 20px 18px}
.ejc-directory-searchbar{background:#fff;border:1px solid var(--ejc-border);border-radius:var(--ejc-radius);padding:18px 22px;box-shadow:0 3px 12px #1b31500a;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.ejc-directory-searchbar>label{font-size:13px;font-weight:760;color:#26334c}
.ejc-directory-searchbar .ejc-search{width:min(100%,750px);flex:1;min-width:270px}
.ejc-clear-search{font-size:12px;font-weight:700;color:#1f6b50!important;white-space:nowrap;padding:7px}
.ejc-written-highlight{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid var(--ejc-border);border-radius:var(--ejc-radius);padding:25px;gap:22px}
.ejc-written-highlight>div{display:flex;flex-direction:column;gap:8px;padding:6px 16px;border-right:1px solid #eaedf5}
.ejc-written-highlight>div:last-child{border:0}
.ejc-written-highlight span{font-size:10px;color:#97a2b4;letter-spacing:.7px;font-weight:800}
.ejc-written-highlight strong{font-size:23px;color:#24334c;font-weight:780}
.ejc-written-highlight small{font-size:11px;color:#8090a5}
.ejc-related .ejc-panel-head{flex-wrap:wrap}
.ejc-first-login{min-height:100vh;min-height:100dvh;background:radial-gradient(ellipse at 20% 25%,#21435a,#111d34 65%);display:grid;place-items:center;padding:28px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.ejc-first-login-card{width:min(100%,520px);background:white;color:#25344f;padding:clamp(25px,5vw,45px);border-radius:20px;box-shadow:0 25px 70px #090d2044}
.ejc-first-login-card .ejc-monogram{display:grid;place-items:center;margin-bottom:20px;width:53px;height:53px}
.ejc-first-login-card h1{font-size:28px;font-weight:780;color:#1e2940;margin:5px 0 14px}
.ejc-first-login-card p{font-size:13px;line-height:1.8;color:#738199;margin-bottom:22px}
.ejc-first-login-form{display:flex;flex-direction:column;gap:20px;margin-bottom:20px}
.ejc-first-login-form label{font-size:12px;color:#39485d;font-weight:750}
.ejc-first-login-form input{display:block;margin-top:7px;min-height:48px;border:1px solid #d8e0ed;border-radius:10px;width:100%;padding:11px 12px;box-sizing:border-box}
.ejc-first-login-form .ejc-btn{white-space:normal;min-height:49px}
@media(max-width:750px){.ejc-written-highlight{grid-template-columns:1fr;gap:4px}.ejc-written-highlight>div{border-right:0;border-bottom:1px solid #eaedf5;padding:13px}.ejc-directory-searchbar{padding:15px}.ejc-directory-searchbar .ejc-search{min-width:0;flex:1 1 100%}}

/* v5 · Marca B&S, sidebar completa y estados financieros */
body.ejc-standalone .ejc-sidebar{position:sticky!important;top:0!important;align-self:flex-start!important;height:100vh!important;height:100dvh!important;min-height:100vh!important;min-height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;overscroll-behavior:contain}
.ejc-brand strong{font-size:14px;letter-spacing:.6px}.ejc-brand small{font-size:9px;letter-spacing:1px}.ejc-login-brand strong{font-size:17px;letter-spacing:.7px}.ejc-login-brand small{letter-spacing:1.5px}
.ejc-pill.mode-proceso{background:#e8f6ef;color:#1f6b50;border:1px solid #b7e0ca}
.ejc-pill.mode-escrito{background:#e7f1fb;color:#2f6ea2;border:1px solid #bdd7ef}
.ejc-pill.written-pending{background:#fff1db;color:#a56815;border:1px solid #f3d49f}
#ejc-service-mode.ejc-mode-escrito{border-color:#5d93c9!important;box-shadow:0 0 0 3px rgba(47,110,162,.10)!important;background:#f2f8fe!important;color:#2f6ea2!important}
#ejc-service-mode.ejc-mode-proceso{border-color:#3b8665!important;background:#f2faf6!important;color:#1f6b50!important}
.ejc-directory-searchbar .ejc-search{max-width:none}.ejc-directory-searchbar .ejc-search input{flex:1}
.ejc-search-status{font-size:11px;color:#687c91;min-height:15px}
#ejc-clear-search{background:transparent!important;font-size:20px!important;line-height:1;color:#66758a;border:0;padding:4px 9px}
.ejc-written-paid-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.ejc-settle-details{min-width:160px;max-width:235px;white-space:normal}
.ejc-settle-details summary{cursor:pointer;color:#116d72;font-size:11px;font-weight:750}
.ejc-settle-details form{display:grid;gap:9px;padding:12px;background:#f5fbfa;border:1px solid #d7eae9;border-radius:10px;margin-top:8px}
.ejc-settle-details label{font-size:11px;font-weight:700}.ejc-settle-details input{width:100%;padding:8px!important;min-height:36px;border:1px solid #d8e2e8;border-radius:8px;background:white}
.ejc-written-highlight{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:780px){body.ejc-standalone .ejc-sidebar{height:auto!important;min-height:0!important;max-height:none!important;position:relative!important;overflow:visible!important}.ejc-written-highlight{grid-template-columns:repeat(2,minmax(0,1fr))}.ejc-written-paid-grid{grid-template-columns:1fr}}
@media(max-width:510px){.ejc-written-highlight{grid-template-columns:1fr}}

.ejc-pill.archived{background:#eef1f5;color:#5b6675;border:1px solid #d9e0e8}.ejc-heading-actions{display:flex;gap:10px;flex-wrap:wrap}.ejc-inline-form{display:inline-flex}.ejc-sidebar-bottom{margin-top:auto;padding-bottom:10px}.ejc-main{min-height:100vh}body.ejc-standalone,body.ejc-standalone .ejc-app{background:var(--ejc-bg)}

/* v7 · Panel lateral fijo sin áreas blancas al desplazarse */
@media (min-width:781px){
  body.ejc-standalone .ejc-app{display:block!important;min-height:100dvh!important;overflow:visible!important}
  body.ejc-standalone .ejc-sidebar{
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:258px!important;height:100vh!important;height:100dvh!important;
    min-height:100vh!important;min-height:100dvh!important;
    max-height:100dvh!important;z-index:50!important;flex-direction:column!important;
    display:flex!important;overflow-y:auto!important;overscroll-behavior:contain;
    padding-bottom:22px!important;background:linear-gradient(168deg,#102c31 0%,#113f38 70%,#0c4a36 100%)!important;
  }
  body.ejc-standalone .ejc-sidebar-bottom{margin-top:auto!important;flex:none!important;padding-bottom:0!important}
  body.ejc-standalone .ejc-main{margin-left:258px!important;width:calc(100% - 258px)!important;min-width:0!important;min-height:100vh!important;min-height:100dvh!important}
}
@media (min-width:781px) and (max-width:1150px){
  body.ejc-standalone .ejc-sidebar{width:215px!important}
  body.ejc-standalone .ejc-main{margin-left:215px!important;width:calc(100% - 215px)!important}
}
@media (max-width:780px){
  body.ejc-standalone .ejc-app{display:block!important}
  body.ejc-standalone .ejc-sidebar{position:relative!important;left:auto!important;top:auto!important;bottom:auto!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;background:linear-gradient(115deg,#102c31,#0c4a36)!important}
  body.ejc-standalone .ejc-main{margin-left:0!important;width:100%!important}
}
.ejc-btn-danger{background:#fff4f3!important;color:#ac423a!important;border:1px solid #eab6b3!important;box-shadow:none!important}
.ejc-btn-danger:hover{background:#ffe9e7!important}
.ejc-delete-form{flex-wrap:wrap;align-items:flex-end;gap:7px}
.ejc-delete-reason{font-size:11px;font-weight:700;color:#758196;display:flex;flex-direction:column;gap:3px}
.ejc-delete-reason input{min-width:145px;border:1px solid #d9dfe9;border-radius:8px;padding:8px;background:#fff;max-width:215px}
.ejc-inline-actions button.ejc-button-danger{color:#a53e36!important;border-color:#edcdca!important;background:#fff4f3!important}
.ejc-inline-actions button.ejc-button-danger:hover{background:#fee6e4!important}
.ejc-password-help-page{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 0%,#dbefe5,#f5f8f6 65%);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.ejc-password-help-card{width:min(100%,515px);border-radius:22px;background:#fff;box-shadow:0 20px 55px #143d3122;border:1px solid #dbe8e1;padding:clamp(24px,5vw,45px);color:#24364a}
.ejc-password-help-card .ejc-monogram{display:inline-grid;place-items:center;width:54px;height:54px;margin-bottom:22px;color:#fff;background:#1f6b50;border-radius:15px;font:30px Georgia,serif}
.ejc-password-help-card h1{font-size:32px;line-height:1.2;margin:12px 0 18px;color:#1c3440}
.ejc-password-help-card p{font-size:15px;line-height:1.85;margin:0 0 28px}
.ejc-password-help-card p a{color:#126b4e;text-decoration:underline;overflow-wrap:anywhere}

/* v8 · Clasificación interactiva y varios procesos asociados a un contrato */
.ejc-sort-link{display:inline-flex;align-items:center;gap:6px;color:#8796ac!important;font-size:10px;font-weight:850;letter-spacing:.8px;white-space:nowrap;text-decoration:none!important}
.ejc-sort-link>span{font-size:14px;line-height:1;color:#9dafba}
.ejc-sort-link.is-active,.ejc-sort-link:hover{color:#146a4b!important}
.ejc-sort-link.is-active>span{color:#146a4b}
.ejc-extra-process{padding:0 24px 24px}
.ejc-add-process-toggle{display:flex;align-items:flex-start;gap:13px;border:1px solid #c9e2d3;border-radius:13px;padding:18px 20px;background:#f3fbf7;cursor:pointer;color:#284636}
.ejc-add-process-toggle input{margin:5px 0 0!important;accent-color:#1f6b50;width:18px;height:18px;flex:none}
.ejc-add-process-toggle span{display:flex;flex-direction:column;gap:5px}
.ejc-add-process-toggle strong{font-size:14px}
.ejc-add-process-toggle small{font-size:12px;font-weight:450;color:#648272}
.ejc-extra-fields{padding-top:22px}
.ejc-extra-fields .ejc-schedule-header{margin-top:18px}
.ejc-extra-fields .ejc-distribution{margin-top:20px}
.ejc-extra-fields [data-extra-schedule] .ejc-installment-row{margin-top:12px}
.ejc-process-optional .ejc-extra-process{padding-top:0}
.ejc-extra-section{overflow:hidden}
.ejc-main-process-summary{margin:0 25px 22px;background:#f4faf7;border-radius:12px;border:1px solid #dcece3;padding:16px 19px;display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.ejc-main-process-summary>strong{color:#1c3444;font-size:13px}
.ejc-main-process-summary>span:last-child{font-size:12px;color:#667c74}
.ejc-secondary-process{border-top:1px solid #e7ebef;padding:24px 0 12px}
.ejc-secondary-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;padding:0 25px 18px;gap:15px}
.ejc-secondary-heading h3{font-size:17px;color:#183b2c;margin:9px 0 0}
.ejc-secondary-stats{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:#86929a}
.ejc-secondary-stats span{display:flex;flex-direction:column;gap:4px}
.ejc-secondary-stats strong{font-size:16px;color:#233d33}
.ejc-process-history{padding:20px 0 7px;border-top:1px solid #edf0f3;margin-top:12px}
.ejc-process-history>strong{display:block;padding:0 25px 12px;font-size:13px;color:#254838}
.ejc-process-add{border-top:1px solid #e4ebe6;padding:20px 25px 24px}
.ejc-process-add>summary{cursor:pointer;display:list-item;color:#14674c;font-size:14px;font-weight:750}
.ejc-process-add-inner{padding:12px 0 0}
.ejc-process-form .ejc-extra-process{padding:8px 0 15px}
.ejc-process-form>.ejc-btn{margin-left:0}
@media(max-width:650px){.ejc-secondary-heading{padding:0 16px 16px}.ejc-process-history>strong{padding-left:16px}.ejc-main-process-summary{margin:0 14px 14px}.ejc-process-add{padding:20px 15px}.ejc-extra-process{padding:0 15px 18px}}

/* v9 · Identificación empresarial, IGV desglosado y cuotas automáticas */
.ejc-app .ejc-tax-breakdown{grid-column:1/-1;background:#f0f8f4;color:#236a4c;font-size:11px;font-weight:650;padding:9px 12px;border:1px solid #cae5d8;border-radius:9px;margin-top:2px}
.ejc-app .ejc-tax-breakdown[hidden]{display:none!important}
.ejc-app .ejc-installment-row:has(.ejc-tax-breakdown:not([hidden])){row-gap:8px}
.ejc-app #ejc-doc-dni[hidden],.ejc-app #ejc-doc-ruc[hidden],.ejc-app #ejc-count-field[hidden]{display:none!important}
.ejc-app .ejc-extra-fields .ejc-field select:focus{outline:2px solid #1f6b50}

/* v10: etiquetas obligatorias alineadas y materias diferenciadas */
.ejc-app .ejc-field-title{display:inline-flex;align-items:baseline;gap:4px;max-width:100%;flex-wrap:wrap;line-height:1.4}
.ejc-app .ejc-field-title em{display:inline!important;align-self:auto;flex:none;margin-left:1px;color:#bf3146;font-size:12px;font-weight:800;line-height:1}
.ejc-app .ejc-code-input>span{color:#1e674f;background:#e8f4ed}
.ejc-app .ejc-area{font-weight:800;letter-spacing:.2px;border:1px solid transparent;white-space:nowrap}
.ejc-app .ejc-area-civil{background:#fff1ba;color:#835600;border-color:#e8d282}
.ejc-app .ejc-area-penal,
.ejc-app .ejc-area-familia-tutelar{background:#e3efff;color:#205baa;border-color:#b6cff2}
.ejc-app .ejc-area-familia{background:#ffe5e9;color:#ad263e;border-color:#f0b6bf}
.ejc-app .ejc-area-administrativo{background:#dcf3e5;color:#16663a;border-color:#addcc2}
/* v11: repetidor de procesos y cronogramas independientes */
#ejc-extra-process-list{display:grid;gap:16px;padding:0 24px}
#ejc-extra-process-list .ejc-extra-process{padding:18px 0 8px;border:1px solid #dae7df;border-radius:14px;background:#fbfdfc;overflow:hidden}
#ejc-extra-process-list .ejc-extra-fields{padding:0 16px}
.ejc-extra-process-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 16px 17px;padding-bottom:13px;border-bottom:1px solid #e3ece7}
.ejc-extra-process-title strong{color:#195d43;font-size:14px}
.ejc-remove-process{color:#8f3340!important;border-color:#eed7dc!important}
.ejc-add-process-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:20px 24px 24px}
.ejc-add-process-actions small{color:#758799;font-size:12px}
@media(max-width:650px){#ejc-extra-process-list{padding:0 14px}.ejc-extra-process-title{align-items:stretch}.ejc-add-process-actions{padding:15px}}

/* v12 · Conceptos independientes, honorarios de éxito y quinto indicador */
.ejc-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.ejc-stat{min-width:0;padding:17px 15px}.ejc-stat strong{font-size:22px}
.ejc-stat-icon.orange{background:#fff1e5;color:#b96524}
.ejc-pill.success-fee{background:#edf6ef;color:#24664a;border:1px solid #c9e4d4}
.ejc-pill.mode-concepto{background:#eaf3fb;color:#27638f;border:1px solid #c5def1}
#ejc-extra-concept-list{display:grid;gap:16px;padding:0 24px}
#ejc-extra-concept-list .ejc-extra-concept{border:1px solid #d9e5ed;background:#fafdff;padding:18px 0 10px;border-radius:14px}
#ejc-extra-concept-list .ejc-extra-fields{padding:0 16px}
.ejc-concept-form .ejc-extra-concept{padding:10px 0}
.ejc-extra-concept [data-concept-error][hidden]{display:none!important}
@media(max-width:1350px){.ejc-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.ejc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.ejc-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ejc-stat strong{font-size:17px}#ejc-extra-concept-list{padding:0 14px}}

.ejc-success-fee-inline{padding:14px 0 0;border-top:1px solid #e7ebf2;margin-top:10px}
.ejc-success-fee-inline>.ejc-form-section-title{padding-top:14px}
.ejc-success-fee-inline[hidden]{display:none!important}

/* v13: pagos vencidos, tarjetas de ficha y logotipo de marca */
.ejc-stat--overdue .ejc-stat-title{color:#a52734!important}
.ejc-stat--overdue .ejc-stat-icon.alert{background:#ffebed!important;color:#bf2335!important}
.ejc-stat--overdue .ejc-overdue-value{color:#c92136!important}
.ejc-overview{grid-template-columns:repeat(5,minmax(0,1fr))}
.ejc-overview .ejc-overdue-value{color:#ff6b74!important}
.ejc-written-highlight:has(.ejc-overdue-value){grid-template-columns:repeat(5,minmax(0,1fr))}
.ejc-written-highlight .ejc-overdue-value{color:#bf2335!important;font-size:19px}
.ejc-custom-logo{overflow:hidden;flex-shrink:0;background:transparent!important;border:0!important;border-radius:12px;box-shadow:none!important;padding:0!important}
.ejc-custom-logo img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;border:0!important;border-radius:10px;box-shadow:none!important;background:transparent!important}
.ejc-brand .ejc-custom-logo{width:45px;height:45px}
.ejc-login-brand .ejc-custom-logo{width:60px;height:60px}
.ejc-password-help-card .ejc-custom-logo,.ejc-first-login-card .ejc-custom-logo{width:54px;height:54px}
@media(max-width:1190px){.ejc-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.ejc-overview>div:nth-child(3){border-right:0}.ejc-written-highlight:has(.ejc-overdue-value){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.ejc-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.ejc-overview>div:nth-child(2),.ejc-overview>div:nth-child(4){border-right:0}.ejc-overview>div:nth-child(3){border-right:1px solid #ffffff2a}.ejc-written-highlight:has(.ejc-overdue-value){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.ejc-overview{gap:12px;padding:16px}.ejc-overview>div{padding-left:0}.ejc-overview strong{font-size:17px}}

/* v14 — Logotipo sin marco blanco y colores accesibles para el cronograma.
   El recorte redondeado se mantiene sobre la imagen, no sobre un fondo. */
.ejc-brand .ejc-monogram.ejc-custom-logo,
.ejc-login-brand .ejc-login-logo.ejc-custom-logo,
.ejc-first-login-card .ejc-monogram.ejc-custom-logo,
.ejc-password-help-card .ejc-monogram.ejc-custom-logo{
  background:none!important;background-color:transparent!important;
  background-image:none!important;border:none!important;box-shadow:none!important;
  padding:0!important;border-radius:12px!important;overflow:hidden!important;
}
.ejc-schedule .ejc-pill.pending{background:#fff2bd!important;color:#765000!important;border:1px solid #edce68!important}
.ejc-schedule .ejc-pill.late{background:#fee5e5!important;color:#ac1e2d!important;border:1px solid #f4abb0!important}
.ejc-schedule .ejc-pill.paid{background:#ddf6e8!important;color:#146c42!important;border:1px solid #a5dabb!important}

.ejc-stat-link{text-decoration:none!important;color:inherit!important}.ejc-stat-link:hover{transform:translateY(-1px);box-shadow:0 8px 20px #1d2f5014}.ejc-money-overdue{font-weight:780!important;color:#c92136!important}.ejc-table td.ejc-money-overdue{font-variant-numeric:tabular-nums}.ejc-stat-link .ejc-stat-title,.ejc-stat-link small{pointer-events:none;}
/* v16 · clientes únicos, expedientes y actuados */
.ejc-nav-sub{margin:-5px 0 3px 21px;padding:8px 13px!important;font-size:12px!important;color:#a8c1bc!important;border-left:1px solid #588d7d;border-radius:6px!important}
.ejc-nav-sub.active{background:rgba(27,121,83,.25)!important}
.ejc-input-search{min-width:200px;flex:1;max-width:560px;min-height:42px;border:1px solid #dfe6ef!important;border-radius:9px;padding:10px 13px!important;background:white!important}
.ejc-wrap-cell{max-width:260px;white-space:normal;min-width:170px;line-height:1.45}
.ejc-people-info{padding:4px 25px 23px}.ejc-people-info>div{padding:7px 0}
.ejc-people-info a{color:#19674e!important;font-weight:700}
.ejc-inline-details{border-top:1px solid #e7ebf2;padding:16px 26px 22px}
.ejc-inline-details summary{font-weight:750;color:#1f6b50;cursor:pointer}
.ejc-compact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:20px 0}
.ejc-compact-form label,.ejc-case-two>label,.ejc-case-segments label{display:flex;flex-direction:column;gap:8px;color:#394a61;font-size:12px;font-weight:750}
.ejc-compact-form label:has(textarea){grid-column:1/-1}
.ejc-compact-form input:not([type=checkbox]),.ejc-compact-form select,.ejc-compact-form textarea,.ejc-new-case-form input,.ejc-new-case-form select,.ejc-new-case-form textarea{padding:12px!important;border:1px solid #dce3ee!important;border-radius:10px!important;min-width:0;max-width:100%;background:#fff!important;color:#26374c;font:inherit}
.ejc-compact-form>div{align-self:center}
.ejc-case-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.ejc-case-span{grid-column:1/-1!important}
.ejc-case-form-inner{padding:6px 26px 25px}
.ejc-new-case-form .ejc-section-head{border-top:1px solid #e8edf3}
.ejc-case-segments{display:flex;gap:5px;align-items:end;flex-wrap:wrap}
.ejc-case-segments>label{min-width:72px;flex:1 1 75px}
.ejc-case-segments>label:first-child{flex:1.2 1 95px}
.ejc-case-segments>label:nth-of-type(4){flex:1 1 95px}
.ejc-case-segments>b{align-self:end;font-size:17px;padding-bottom:15px;color:#92a0b0}
.ejc-case-segments input,.ejc-case-segments select{font-variant-numeric:tabular-nums;font-size:14px!important;font-weight:690!important;padding:13px 8px!important;text-align:center}
.ejc-case-preview{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;margin-top:19px;padding:16px 19px;border:1px solid #bcd9ca;background:#f1faf5;border-radius:12px}
.ejc-case-preview span{font-size:11px;font-weight:800;color:#527b68}.ejc-case-preview strong{font-size:18px;color:#176147;letter-spacing:.5px;font-variant-numeric:tabular-nums}
.ejc-case-form-inner label input[readonly]{background:#f2f5f8!important;color:#455670}
.ejc-new-case-form .ejc-form-actions{padding:15px 26px 29px}
.ejc-case-heading{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ejc-event-form-wrap{padding:0 25px;border-bottom:1px solid #e7ebf2}
.ejc-check-label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px}
.ejc-check-label input{width:17px;height:17px;accent-color:#136b49}
.ejc-event-description{min-width:280px;max-width:560px;white-space:normal!important;line-height:1.55}
.ejc-event-important{background:#fff8df!important}.ejc-event-important td:first-child{border-left:4px solid #d5a31b}
.ejc-pill-important{color:#8a6010;background:#ffebad;border:1px solid #f6d77d}
.ejc-action-menu{position:relative}.ejc-action-menu summary{cursor:pointer;list-style:none;font-size:19px;font-weight:800;color:#3c6356;padding:2px 8px;border-radius:6px}
.ejc-action-menu summary::-webkit-details-marker{display:none}.ejc-action-menu form{position:absolute;right:0;top:100%;z-index:10;min-width:180px;padding:6px;background:#fff;border:1px solid #dce4ee;border-radius:9px;box-shadow:0 10px 26px #24364b29}
.ejc-action-menu button{display:block;text-align:left;width:100%;font:inherit;font-size:12px;padding:10px;border:0;background:white;white-space:nowrap;color:#263a4c;cursor:pointer}.ejc-action-menu button:hover{background:#f1f5f7}.ejc-action-menu .ejc-danger-action{color:#ae2633}
.ejc-admin-links .ejc-admin-link-list{padding:15px 25px 25px;display:grid;gap:12px}.ejc-admin-link-list form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ejc-admin-link-list select{flex:1;min-width:180px;padding:10px;border:1px solid #d9e2ec;border-radius:9px}
@media(max-width:740px){.ejc-case-two,.ejc-compact-form{grid-template-columns:1fr}.ejc-case-segments>b{display:none}.ejc-case-segments>label{flex:1 1 80px}.ejc-case-form-inner{padding:10px 15px 18px}.ejc-event-form-wrap{padding:0 15px}.ejc-case-preview strong{font-size:14px}.ejc-people-info{padding:10px 18px 20px}}

.ejc-admin-contract-link{padding:11px 17px;background:#f1f7f3;border:1px solid #c9ddcf;border-radius:10px}.ejc-admin-contract-link summary{font-size:12px;font-weight:750;color:#19614a;cursor:pointer}.ejc-admin-contract-link form{align-items:center}.ejc-admin-contract-link form select{width:100%;min-width:230px}.ejc-admin-contract-link form p{grid-column:1/-1;color:#49645a;font-size:12px}

.ejc-filter-chips{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.ejc-subpanel{margin-bottom:22px}.ejc-repeat-list{display:grid;gap:12px}.ejc-repeat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.ejc-mini{padding:8px 12px;font-size:.92rem}.ejc-inline-check{margin-left:auto}.ejc-input-search{width:100%;max-width:520px}.ejc-wrap-cell{white-space:normal}.ejc-panel .ejc-panel-head .ejc-btn{margin-left:auto}

.ejc-pill.ejc-case-status-en-proceso{background:#e4f2eb;color:#176c4f;font-weight:750}.ejc-pill.ejc-case-status-finalizado{background:#e8edf3;color:#455369;font-weight:750}

/* v19 · Dos partes procesales claras y controles discretos para añadir nombres. */
.ejc-parties-section .ejc-section-head{align-items:center;flex-wrap:wrap}
.ejc-parties-section .ejc-section-head p{font-size:12px;color:#8192a0;font-weight:500}
.ejc-party-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:0 26px 27px}
.ejc-party-box{min-width:0;border:1px solid #dce6e7;border-radius:14px;background:#fbfcfd;padding:18px 18px 16px;display:flex;flex-direction:column;gap:14px}
.ejc-party-box-head{display:flex;flex-direction:column;gap:4px;padding-bottom:13px;border-bottom:1px solid #e8edef}
.ejc-party-box-head h3{color:#18384a;font-size:16px;font-weight:790;line-height:1.25;margin:0}
.ejc-party-box-head span{font-size:11px;color:#7c8d9b;font-weight:500}
.ejc-party-inputs{display:grid;gap:14px}
.ejc-party-inputs>label,.ejc-repeat-entry>label{display:flex;flex-direction:column;gap:7px;min-width:0;width:100%;font-size:12px;color:#394a61;font-weight:710}
.ejc-party-box input:not([type=checkbox]),.ejc-party-box select{display:block;width:100%!important;min-width:0!important;padding:13px 12px!important;border:1px solid #dbe4ea!important;border-radius:10px!important;font-size:13px!important;line-height:1.4!important;background:#fff!important;color:#18354c!important;box-sizing:border-box}
.ejc-party-box input[readonly]{background:#f1f6f4!important;color:#2c634d!important;font-weight:730!important}
.ejc-party-box .ejc-repeat-list{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.ejc-repeat-stack{display:flex;flex-direction:column;gap:11px;min-width:0}
.ejc-repeat-entry{width:100%;min-width:0;display:flex;align-items:end;gap:9px}
.ejc-add-subtle{align-self:flex-start;border:0!important;background:none!important;color:#19694c!important;font-weight:710!important;font-size:12px!important;padding:6px 0!important;cursor:pointer}
.ejc-add-subtle:hover{text-decoration:underline}
.ejc-remove-entry{border:1px solid #dfe6e8;background:white;color:#8a5960;cursor:pointer;border-radius:8px;width:37px;height:37px;flex:0 0 37px;font-size:19px}
.ejc-correlation-hint{display:block;color:#718995;font-size:11px;font-weight:500;line-height:1.4}
.ejc-compact-form #ejc-numbered-kind[hidden]{display:none!important}
.ejc-compact-form #ejc-other-kind[hidden]{display:none!important}
@media(max-width:850px){.ejc-party-columns{grid-template-columns:1fr;padding:0 16px 20px}.ejc-party-box{padding:15px}}

.ejc-app .ejc-area-laboral{background:#efe5ff;color:#6940a5;border-color:#d4bdf5}
.ejc-case-events-panel{overflow:visible!important}
.ejc-case-events-panel .ejc-table-scroll{overflow-x:auto;overflow-y:visible;padding-bottom:120px}
.ejc-case-events .ejc-action-menu{position:relative;display:inline-block}
.ejc-case-events .ejc-action-menu[open]{z-index:30}
.ejc-case-events .ejc-action-menu form{top:calc(100% + 6px)}
.ejc-case-events .ejc-action-menu summary{background:#f7faf8;min-width:44px;justify-content:center;display:inline-flex;align-items:center}

.ejc-sort-link{color:inherit!important;text-decoration:none;font-weight:800}.ejc-sort-link:hover{color:#146b4d!important}.ejc-meet-option{display:block!important;white-space:nowrap;padding:10px!important;color:#176447!important;text-decoration:none!important;font-size:12px!important;font-weight:650!important}.ejc-meet-option:hover{background:#f1f5f7!important}.ejc-event-edit-form{padding:22px!important}.ejc-event-edit-form input,.ejc-event-edit-form textarea{max-width:100%}.ejc-event-edit-form .ejc-check-label{display:flex;align-items:center;gap:9px}

.ejc-v23-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0}.ejc-v23-tools .ejc-compact-form{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:0}.ejc-v23-module{display:flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid #e1e7e5;border-radius:10px}.ejc-v23-module input{width:18px;height:18px}.ejc-v23-results{padding:18px;display:flex;flex-direction:column;gap:10px}.ejc-v23-results a{color:#17684d;font-weight:700}.ejc-v23-settings{max-width:680px}.ejc-v23-archive-choice{display:flex;gap:8px;align-items:center;font-size:12px;color:#215e47}.ejc-v23-archive-choice input{min-width:15px}

/* v24 · barra lateral: el menú se desplaza, la cuenta permanece anclada abajo. */
@media (min-width:781px) {
  body.ejc-standalone .ejc-sidebar{
    display:flex!important;flex-direction:column!important;
    height:100vh!important;height:100dvh!important;min-height:0!important;
    overflow:hidden!important;gap:13px!important; padding-bottom:16px!important;
  }
  body.ejc-standalone .ejc-sidebar nav{
    min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;
    overflow-x:hidden!important;scrollbar-width:thin;
    scrollbar-color:#537f70 transparent;padding-right:3px;
  }
  body.ejc-standalone .ejc-sidebar-bottom{
    margin-top:auto!important;flex:0 0 auto!important;position:relative!important;
    background:linear-gradient(180deg,#103d32,#103b31);z-index:2;
  }
  body.ejc-standalone .ejc-brand{flex:0 0 auto!important}
}
.ejc-nav-section{color:#9bbeb0;font-size:10px;letter-spacing:1.5px;font-weight:800;margin:15px 12px 6px}
.ejc-nav-collapse{border-radius:10px;color:#cadbd5}
.ejc-nav-collapse summary{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:11px;cursor:pointer;font-size:12px;font-weight:700;list-style:none}
.ejc-nav-collapse summary::-webkit-details-marker{display:none}
.ejc-nav-collapse summary svg{width:16px;flex:none}
.ejc-nav-collapse summary:hover{background:#ffffff15;color:white}
.ejc-nav-chevron{margin-left:auto;opacity:.8;transition:transform .2s}
.ejc-nav-collapse[open] .ejc-nav-chevron{transform:rotate(180deg)}
.ejc-nav-collapse .ejc-nav-sub{padding-left:38px!important;font-size:11px;min-height:37px}
.ejc-v24-report-actions{display:flex;gap:10px;justify-content:flex-end;margin:12px 0 15px}
.ejc-v24-person-delete{margin-bottom:15px}
.ejc-v24-agenda-opt{display:flex;flex-direction:column;gap:12px;padding:12px 0}
.ejc-v24-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#dbe7e3;border-top:1px solid #dbe7e3}
.ejc-v24-dayname{text-align:center;background:#eef5f2;padding:11px 3px;font-weight:800;color:#315d4a}
.ejc-v24-day{background:white;min-height:112px;padding:9px;min-width:0;overflow-wrap:anywhere}
.ejc-v24-day>strong{color:#193c35;font-size:13px}
.ejc-v24-day.ejc-v24-empty{background:#f5f8f6}
.ejc-v24-event{border-left:3px solid #218065;background:#eef8f3;margin-top:5px;padding:4px 6px;border-radius:4px;color:#224938;font-size:11px;line-height:1.3}
.ejc-v24-event a{color:#19614a!important;font-weight:750;white-space:normal}
.ejc-v24-event a[href*='meet.google.com']{background:#d5ecff;color:#145a99!important;border-radius:3px;padding:2px 4px;display:inline-block}
.ejc-v24-google{padding:20px 24px}.ejc-v24-google p{font-size:12px;color:#687989;margin-top:12px}
@media(max-width:780px){.ejc-v24-day{min-height:70px;padding:5px}.ejc-v24-event{font-size:9px}.ejc-v24-dayname{font-size:10px}}

/* v24.1: títulos de navegación con flecha independiente y subopción plegada. */
.ejc-app .ejc-nav-group{display:flex;flex-direction:column;min-width:0;gap:2px}
.ejc-app .ejc-nav-parent{display:flex;align-items:center;gap:8px;min-width:0;border-radius:11px;padding-right:6px;background:transparent}
.ejc-app .ejc-nav-parent>.ejc-nav-link{flex:1 1 auto;min-width:0;padding-right:0;white-space:normal}
.ejc-app .ejc-nav-arrow{flex:0 0 26px;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border:0!important;border-radius:999px;background:transparent!important;color:#d8efe4!important;cursor:pointer;padding:0!important;box-shadow:none!important;margin-right:4px;opacity:.92}
.ejc-app .ejc-nav-arrow:hover,.ejc-app .ejc-nav-arrow:focus-visible{background:#ffffff20!important;outline-offset:2px}
.ejc-app .ejc-nav-arrow span{display:block;font-size:13px;line-height:1;font-weight:700;transform:translateY(-1px);transition:transform .18s ease,opacity .18s ease;color:inherit}
.ejc-app .ejc-nav-arrow[aria-expanded="true"] span{transform:rotate(180deg)}
.ejc-app .ejc-nav-children{padding-left:17px;min-width:0}
.ejc-app .ejc-nav-children[hidden]{display:none!important}
.ejc-app .ejc-nav-children .ejc-nav-sub{display:flex;align-items:center;gap:9px;margin:0!important;min-height:38px;padding:9px 10px!important;color:#bddece!important;border-left:1px solid #70998d;border-radius:7px!important}
.ejc-app .ejc-nav-children .ejc-nav-sub svg{width:15px;height:15px}
/* Formulario de agenda: respetar límites del contenedor y evitar el desbordamiento horizontal. */
.ejc-app .ejc-agenda-form{width:100%;max-width:100%;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;padding:4px 25px 27px;margin:0;align-items:start}
.ejc-app .ejc-agenda-form>label{min-width:0;width:100%;max-width:100%;display:flex;flex-direction:column;gap:8px;grid-column:auto;overflow-wrap:anywhere}
.ejc-app .ejc-agenda-form>label:has(textarea){grid-column:1 / -1}
.ejc-app .ejc-agenda-form input:not([type=checkbox]),.ejc-app .ejc-agenda-form select,.ejc-app .ejc-agenda-form textarea{display:block;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important}
.ejc-app .ejc-agenda-form textarea{min-height:100px;resize:vertical}
.ejc-app .ejc-agenda-form>.ejc-btn{grid-column:1/-1;justify-self:end;min-width:160px;max-width:100%}
@media(max-width:1050px){.ejc-app .ejc-agenda-form{grid-template-columns:minmax(0,1fr)}}

.ejc-app .ejc-nav-group.is-collapsed .ejc-nav-children{display:none!important}
.ejc-app .ejc-nav-children{padding-left:18px;margin-top:2px}
.ejc-app .ejc-nav-children .ejc-nav-sub{background:#ffffff0c}
.ejc-app .ejc-nav-children .ejc-nav-sub.active{background:#2c8e6330;color:#fff!important;border-left-color:#9fd2b8}
.ejc-agenda-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ejc-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(9,18,29,.46)}
.ejc-modal.is-open{display:flex}
.ejc-modal__dialog{width:min(100%,900px);max-height:min(88vh,980px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 28px 90px rgba(10,25,40,.28);padding:28px}
.ejc-modal__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.ejc-modal__head h2{margin:0;font-size:24px;color:#1b2940}
.ejc-modal__close{border:1px solid #d8e2ef;background:#fff;color:#41516b;border-radius:999px;width:38px;height:38px;display:grid;place-items:center;font-size:22px;cursor:pointer}
.ejc-modal__close:hover{background:#f4f7fb}
.ejc-agenda-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ejc-agenda-form label{display:flex;flex-direction:column;gap:8px;min-width:0}
.ejc-agenda-form .ejc-span-2{grid-column:1/-1}
.ejc-agenda-form .ejc-form-actions{grid-column:1/-1;display:flex;justify-content:flex-start}
.ejc-agenda-list{display:flex;flex-direction:column;gap:12px}
.ejc-agenda-item{border:1px solid #dbe4ee;border-radius:16px;padding:16px 18px;background:#fff;display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.ejc-agenda-item__meta{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px;color:#6d7b91;margin-top:6px}
.ejc-agenda-item__title{font-size:17px;font-weight:760;color:#1c2941;margin:0 0 4px}
.ejc-agenda-item__desc{font-size:13px;color:#56657d;line-height:1.6;margin:6px 0 0}
.ejc-agenda-pill{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.2px;background:#eaf5ef;color:#1f6b50;border:1px solid #bddfc9}
.ejc-agenda-empty{color:#7a879b;font-size:14px;padding:10px 2px}
@media(max-width:860px){.ejc-modal__dialog{padding:20px;border-radius:18px}.ejc-agenda-form{grid-template-columns:minmax(0,1fr)}.ejc-agenda-item{flex-direction:column}}
@media(max-width:780px){.ejc-app .ejc-agenda-form{padding:5px 16px 20px;grid-template-columns:minmax(0,1fr)}.ejc-app .ejc-nav-parent{white-space:nowrap}.ejc-app .ejc-nav-parent>.ejc-nav-link{white-space:nowrap}.ejc-app .ejc-nav-group{flex:0 0 auto}}

/* v24.4 · Identidad jurídica, barra superior y buscador global */
.ejc-app .ejc-global-search-inner{box-sizing:border-box;padding:24px 28px 28px;max-width:100%;}
.ejc-app .ejc-global-search-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;max-width:1000px;padding:0!important;margin:0!important;}
.ejc-app .ejc-global-search-form>label{flex:1 1 360px;min-width:0;max-width:780px;display:flex;flex-direction:column;gap:9px;}
.ejc-app .ejc-global-search-form>label input{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:0!important;}
.ejc-app .ejc-global-search-form>button{flex:0 0 auto;align-self:flex-end;margin:0;}
.ejc-app .ejc-topcrumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ejc-app .ejc-top-right{flex:none;}
@media(max-width:680px){.ejc-app .ejc-global-search-inner{padding:18px 18px 22px}.ejc-app .ejc-global-search-form>label{flex:1 1 100%;max-width:none}.ejc-app .ejc-global-search-form>button{width:100%}.ejc-app .ejc-topcrumb{font-size:9px;letter-spacing:.5px}}

/* v25.1 · Portada principal, navegación contextual y limpieza visual */
.ejc-app .ejc-content { gap:19px; padding-top:30px; }
.ejc-app .ejc-back { margin-bottom:-8px; }
.ejc-app .ejc-back a { color:#557766!important; font-weight:700; gap:7px; transition:color .15s ease; }
.ejc-app .ejc-back a:hover { color:#116346!important; }
.ejc-app .ejc-topcrumb a { color:#74839c!important; text-decoration:none!important; }
.ejc-app .ejc-topcrumb a:hover { color:#1c704d!important; }
.ejc-app .ejc-top-view-name { padding:0; color:#52667f; }
.ejc-app .ejc-page-heading { align-items:flex-start; gap:12px 25px; margin-bottom:0; }
.ejc-app .ejc-page-heading>div:first-child { min-width:0; flex:1 1 480px; }
.ejc-app .ejc-page-heading h1 { font-size:clamp(24px,2.5vw,33px); letter-spacing:-.65px; overflow-wrap:anywhere; }
.ejc-app .ejc-page-heading .ejc-heading-actions { flex:0 1 auto; justify-content:flex-end; align-self:center; }
.ejc-app .ejc-page-heading p { margin:4px 0!important; }
.ejc-app .ejc-v24-report-actions { margin:0!important; }
.ejc-app .ejc-expedient-danger { border:1px solid #e3e9eb; border-radius:12px; padding:9px 15px; background:#fcfdfd; max-width:540px; font-size:12px; margin:0 0 -7px; }
.ejc-app .ejc-expedient-danger>summary { cursor:pointer; color:#73839b; font-size:11px; font-weight:700; }
.ejc-app .ejc-expedient-danger[open] { padding-bottom:15px; }
.ejc-app .ejc-expedient-danger form { padding-top:12px; }
.ejc-app .ejc-people-info { padding-bottom:16px; }
.ejc-app .ejc-people-info>div { padding:2px 0; }
.ejc-app .ejc-case-heading { margin-bottom:6px; line-height:1.2; }
.ejc-app .ejc-detail-heading { margin-top:0; }
.ejc-app .ejc-section-head { padding-top:19px; padding-bottom:18px; }
.ejc-app .ejc-panel-head { padding-top:19px; padding-bottom:18px; }
.ejc-app .ejc-inline-details { padding:12px 24px 15px; }
.ejc-app .ejc-sidebar-label { display:none!important; }
.ejc-app .ejc-sidebar { gap:19px; }
.ejc-app .ejc-sidebar nav { gap:6px; }
.ejc-app .ejc-home-nav { margin:0 0 4px; }

/* La portada sirve como puerta de entrada al CRM, sin duplicar el panel financiero. */
.ejc-app .ejc-home { display:flex; flex-direction:column; gap:26px; padding:2px 0 16px; }
.ejc-app .ejc-home-hero { position:relative; isolation:isolate; overflow:hidden; padding:clamp(28px,4.5vw,56px); border-radius:24px; background:linear-gradient(125deg,#102c35 0%,#123b36 58%,#176346 100%); color:#fff; min-height:265px; box-shadow:0 13px 40px rgba(12,55,46,.12); }
.ejc-app .ejc-home-hero:before { content:"";position:absolute;width:470px;height:470px;right:-110px;top:-235px;border-radius:50%;border:1px solid rgba(230,255,240,.20);box-shadow:0 0 0 70px rgba(217,250,236,.055),0 0 0 150px rgba(217,250,236,.035);z-index:-1;pointer-events:none; }
.ejc-app .ejc-home-kicker { display:inline-flex; align-items:center; color:#a8dec8; letter-spacing:2.4px; font-size:11px; font-weight:850; margin-bottom:14px; }
.ejc-app .ejc-home-hero h1 { color:#fff; font-size:clamp(32px,4vw,53px); line-height:1.08; font-weight:790; letter-spacing:-1.7px; margin:0 0 16px; }
.ejc-app .ejc-home-hero h1 em { font-style:normal; color:#a6e5c7; }
.ejc-app .ejc-home-hero p { max-width:650px; color:#cee3de; font-size:14px; line-height:1.75; margin:0 0 20px; }
.ejc-app .ejc-home-welcome { display:flex;align-items:center;gap:9px;max-width:100%;color:#c1ddd2;font-size:12px; }
.ejc-app .ejc-home-status-dot { width:8px;height:8px;border-radius:50%;background:#61dbac;box-shadow:0 0 0 4px rgba(114,218,169,.15);flex:none; }
.ejc-app .ejc-home-section-caption { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:12px; padding:0 2px; }
.ejc-app .ejc-home-section-caption span { color:#267959;letter-spacing:1.6px;font-size:10px;font-weight:840; }
.ejc-app .ejc-home-section-caption h2 { color:#1b2b43;font-size:21px;font-weight:780;margin:5px 0 0;letter-spacing:-.3px; }
.ejc-app .ejc-home-section-caption p { color:#7f90a2;font-size:12px; }
.ejc-app .ejc-home-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:19px; }
.ejc-app .ejc-home-card { min-height:300px; display:flex;flex-direction:column; justify-content:space-between; gap:22px; padding:26px; border:1px solid #e0eae8; background:#fff; box-shadow:0 5px 19px rgba(23,49,62,.055);border-radius:20px;color:#1d3045!important; transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
.ejc-app a.ejc-home-card:hover,.ejc-app a.ejc-home-card:focus-visible { transform:translateY(-4px);box-shadow:0 15px 38px rgba(16,69,55,.13);border-color:#9bcfb6;outline-offset:3px; }
.ejc-app .ejc-home-card-top { display:flex;align-items:flex-start;justify-content:space-between;gap:16px; }
.ejc-app .ejc-home-card-icon { display:grid;place-items:center;width:79px;height:79px;border-radius:19px;background:#e7f4ed;color:#1f7854; }
.ejc-app .ejc-home-card-icon svg { width:40px;height:40px; stroke-width:1.8px; }
.ejc-app .ejc-home-card--people .ejc-home-card-icon { background:#e9f1fb; color:#2c6493; }
.ejc-app .ejc-home-card--cases .ejc-home-card-icon { background:#f4eee2;color:#977437; }
.ejc-app .ejc-home-card-id { font-size:13px;color:#abb9bb;font-weight:800;font-variant-numeric:tabular-nums; }
.ejc-app .ejc-home-card-content h3 { color:#172c43;font-size:22px;letter-spacing:-.4px;font-weight:790;line-height:1.25;margin:0 0 10px; }
.ejc-app .ejc-home-card-content p { color:#718297;font-size:13px;line-height:1.7;margin:0; }
.ejc-app .ejc-home-card-footer { display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf0f0;padding-top:15px;color:#1d7150;font-size:12px;font-weight:750; }
.ejc-app .ejc-home-card-arrow { display:grid;place-items:center;background:#e9f5ef;border-radius:50%;width:30px;height:30px;font-size:19px;line-height:1;color:#1c7955;transition:transform .2s; }
.ejc-app .ejc-home-card:hover .ejc-home-card-arrow { transform:translateX(3px); }
.ejc-app .ejc-home-card--disabled { opacity:.52;cursor:not-allowed; }
.ejc-app .ejc-home-card--disabled .ejc-home-card-footer { color:#6d7b84; }
.ejc-app .ejc-home-footnote { display:flex;align-items:center;gap:9px;margin-top:0;color:#82908e;font-size:12px; }
.ejc-app .ejc-home-footnote svg { width:16px;height:16px; }
@media (max-width:1200px){.ejc-app .ejc-home-cards{gap:14px}.ejc-app .ejc-home-card{padding:21px;min-height:285px}.ejc-app .ejc-home-card-content h3{font-size:20px}}
@media (max-width:950px){.ejc-app .ejc-home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ejc-app .ejc-home-card{min-height:270px}.ejc-app .ejc-home-cards>.ejc-home-card:last-child:nth-child(odd){grid-column:1/-1;max-width:calc(50% - 7px);width:100%;margin-inline:auto}}
@media (max-width:630px){.ejc-app .ejc-content{padding:22px 16px 18px;gap:16px}.ejc-app .ejc-home-hero{min-height:0;padding:29px 25px}.ejc-app .ejc-home-hero h1{font-size:35px;letter-spacing:-1px}.ejc-app .ejc-home-cards{grid-template-columns:1fr}.ejc-app .ejc-home-card{min-height:225px;padding:22px}.ejc-app .ejc-home-card-icon{width:62px;height:62px;border-radius:15px}.ejc-app .ejc-home-card-icon svg{width:31px;height:31px}.ejc-app .ejc-home-cards>.ejc-home-card:last-child:nth-child(odd){grid-column:auto;max-width:none}.ejc-app .ejc-page-heading .ejc-heading-actions{justify-content:flex-start;width:100%;}.ejc-app .ejc-topbar{padding:0 15px}.ejc-app .ejc-topcrumb{letter-spacing:.2px;font-size:10px}.ejc-app .ejc-top-right{gap:9px}.ejc-app .ejc-top-online{display:none}}
@media (prefers-reduced-motion:reduce){.ejc-app .ejc-home-card,.ejc-app .ejc-home-card-arrow{transition:none}}


/* v25.2 · Escala visual y formularios coherentes en todos los módulos. */
.ejc-app *, .ejc-app *::before, .ejc-app *::after { box-sizing:border-box; }
.ejc-app .ejc-admin-link{font-weight:650;min-height:40px;gap:11px}
.ejc-app .ejc-admin-link svg{width:17px;height:17px;flex-shrink:0}
.ejc-app .ejc-nav-section{margin-top:18px;margin-bottom:7px}
.ejc-app .ejc-sidebar nav{gap:3px}
.ejc-app .ejc-sidebar .ejc-nav-link{max-width:100%}
.ejc-app .ejc-panel{min-width:0;max-width:100%}
.ejc-app .ejc-panel > form.ejc-compact-form,
.ejc-app #ejc-new-task-panel > form.ejc-compact-form,
.ejc-app .ejc-case-edit-panel > form.ejc-compact-form{
  width:100%;max-width:100%;min-width:0;margin:0;
  padding:17px clamp(18px,2.4vw,30px) 27px;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;column-gap:20px;row-gap:18px;
}
.ejc-app .ejc-compact-form>label{min-width:0;max-width:100%;width:100%;gap:8px;overflow-wrap:anywhere}
.ejc-app .ejc-compact-form label input:not([type=checkbox]),
.ejc-app .ejc-compact-form label select,
.ejc-app .ejc-compact-form label textarea,
.ejc-app .ejc-case-form-inner label input:not([type=checkbox]),
.ejc-app .ejc-case-form-inner label select,
.ejc-app .ejc-case-form-inner label textarea{
  min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;
  display:block;box-sizing:border-box!important;
}
.ejc-app .ejc-compact-form textarea{resize:vertical}
/* No más botones de guardar que ocupen una columna entera de la cuadrícula. */
.ejc-app .ejc-compact-form>button.ejc-btn,
.ejc-app .ejc-compact-form>.ejc-btn,
.ejc-app .ejc-compact-form>.ejc-form-footer .ejc-btn{
  width:auto!important;min-width:0!important;max-width:100%;min-height:42px!important;
  height:auto!important;padding:10px 18px!important;justify-self:start;align-self:end;
  white-space:normal;text-align:center;line-height:1.35!important;
}
.ejc-app .ejc-compact-form>button.ejc-btn{
  grid-column:1/-1;justify-self:start!important;
}
.ejc-app .ejc-form-footer{grid-column:1/-1!important;display:flex;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:10px;width:100%;padding:5px 0 0;margin:0;min-width:0;
}
.ejc-app .ejc-form-footer .ejc-btn{flex:0 0 auto!important}
.ejc-app .ejc-panel .ejc-inline-details form.ejc-compact-form{
  max-width:100%;min-width:0;margin:0;column-gap:18px;row-gap:14px;
}
.ejc-app .ejc-inline-details .ejc-compact-form>button.ejc-btn{
  grid-column:1/-1;justify-self:start!important;
}
/* El botón de Calendar no debe convertirse en una columna de ancho completo. */
.ejc-app .ejc-v24-google form.ejc-google-settings{
  max-width:850px;width:100%;padding:0;display:flex;flex-wrap:wrap;
  align-items:flex-end;gap:14px;
}
.ejc-app .ejc-google-settings>label{flex:1 1 360px;max-width:680px;min-width:0}
.ejc-app .ejc-google-settings>button.ejc-btn{
  flex:0 0 auto;grid-column:auto;justify-self:auto!important;align-self:flex-end;
  min-height:43px!important;padding:10px 17px!important;
}
.ejc-app .ejc-v23-settings{max-width:850px!important}
.ejc-app .ejc-v23-settings>button.ejc-btn{max-width:260px;justify-self:start!important}
/* Mantener proporciones equilibradas también en ediciones de expedientes y tareas. */
.ejc-app .ejc-case-edit-panel .ejc-section-head,
.ejc-app #ejc-new-task-panel .ejc-section-head{padding-left:clamp(18px,2.4vw,30px);padding-right:clamp(18px,2.4vw,30px)}
.ejc-app .ejc-case-edit-form label.ejc-case-span{grid-column:1/-1}
.ejc-app .ejc-case-edit-form textarea{min-height:94px}
.ejc-app .ejc-agenda-item .ejc-btn{min-height:39px!important;padding:9px 15px!important}
@media(max-width:800px){
  .ejc-app .ejc-panel > form.ejc-compact-form,
  .ejc-app #ejc-new-task-panel > form.ejc-compact-form,
  .ejc-app .ejc-case-edit-panel > form.ejc-compact-form{grid-template-columns:minmax(0,1fr);padding:15px 18px 23px}
  .ejc-app .ejc-compact-form>button.ejc-btn{grid-column:1/-1}
  .ejc-app .ejc-google-settings>label{flex:1 1 100%}
  .ejc-app .ejc-form-footer{justify-content:flex-start}
}

/* v25.3: reemplazo visual de listas desplegables por botones y modales */
.ejc-app .ejc-action-trigger{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:auto!important;max-width:100%;min-height:39px!important;
  padding:9px 16px!important;margin:8px 0 12px;
  border-radius:10px;font-size:12px!important;font-weight:750!important;
  white-space:normal;text-align:center;box-shadow:none!important;
}
.ejc-app .ejc-btn-danger-outline{
  border:1px solid #e8b9bd!important;background:#fff8f8!important;
  color:#b2333d!important;
}
.ejc-app .ejc-btn-danger-outline:hover{background:#fceced!important;border-color:#d6828c!important}
.ejc-app .ejc-page-heading .ejc-action-trigger{margin:0}
.ejc-app .ejc-page-heading .ejc-heading-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ejc-app .ejc-section-head>.ejc-action-trigger{margin:0 0 0 auto}
.ejc-system-modal{padding:16px;align-items:center;justify-content:center}
.ejc-system-modal>.ejc-modal__dialog{
  width:min(100%,640px)!important;max-height:min(88dvh,920px);
  padding:clamp(18px,3vw,28px)!important;border-radius:18px;
}
.ejc-system-modal .ejc-modal__head h2{font-size:20px;line-height:1.3}
.ejc-system-modal__body{max-width:100%;min-width:0}
.ejc-system-modal__body>form,
.ejc-system-modal__body>.ejc-process-add-inner>form{
  margin:0!important;padding:0!important;max-width:100%;width:100%;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
.ejc-system-modal__body label{display:flex;flex-direction:column;min-width:0;max-width:100%;gap:7px!important}
.ejc-system-modal__body input:not([type=checkbox]),
.ejc-system-modal__body select,
.ejc-system-modal__body textarea{
  width:100%!important;max-width:100%;min-width:0;
}
.ejc-system-modal__body label:has(textarea),
.ejc-system-modal__body form>p,
.ejc-system-modal__body form>.ejc-col-2,
.ejc-system-modal__body form>.ejc-col-3{
  grid-column:1/-1;
}
.ejc-system-modal__body form>button.ejc-btn{
  grid-column:1/-1!important;justify-self:start!important;align-self:start!important;
  width:auto!important;min-width:140px;max-width:100%;padding:10px 20px!important;
}
.ejc-system-modal__body .ejc-audit-details pre,
.ejc-system-modal__body pre{white-space:pre-wrap;word-break:break-word;max-height:55vh;overflow:auto}
.ejc-system-modal__footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:12px;border-top:1px solid #eef0f3}
.ejc-system-modal__cancel{width:auto!important;min-height:38px;padding:9px 16px!important}
.ejc-app .ejc-table td .ejc-action-trigger{margin:0;white-space:nowrap}
@media(max-width:650px){
 .ejc-system-modal__body>form,
 .ejc-system-modal__body>.ejc-process-add-inner>form{grid-template-columns:minmax(0,1fr)}
 .ejc-app .ejc-page-heading .ejc-heading-actions{justify-content:flex-start}
}

/* Modal fuera del contenedor transformado: no puede recortarse por scroll. */
.ejc-system-modal{font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;color:#263348;box-sizing:border-box}
.ejc-system-modal *, .ejc-system-modal *::before,.ejc-system-modal *::after{box-sizing:border-box}
.ejc-system-modal .ejc-compact-form label{max-width:100%;min-width:0}
.ejc-system-modal .ejc-btn{width:auto;max-width:100%;min-height:40px}
.ejc-system-modal .ejc-process-form,.ejc-system-modal .ejc-concept-form{max-width:100%;min-width:0}
.ejc-system-modal .ejc-process-add-inner{padding:0;max-width:100%}
.ejc-system-modal .ejc-process-form .ejc-col-2,.ejc-system-modal .ejc-process-form .ejc-col-3{min-width:0}
.ejc-system-modal .ejc-process-form .ejc-field{min-width:0}
.ejc-system-modal .ejc-process-form .ejc-field-title{font-size:12px}
.ejc-system-modal .ejc-system-modal__body>form>button.ejc-btn,
.ejc-system-modal .ejc-system-modal__body>.ejc-process-add-inner>form>button.ejc-btn{width:auto!important;min-height:42px!important}

/* Opciones de fichas · Componente unificado y minimalista.
   Hereda la tipografía y la paleta del panel; sustituye los antiguos estilos
   de botones grandes y elimina adornos, sombras individuales y scroll lateral. */
.ejc-options-modal {
  padding:18px;
  background:rgba(12,27,38,.40);
}
.ejc-options-modal [hidden] { display:none!important; }
.ejc-options-modal .ejc-modal__dialog {
  width:min(440px,100%);
  max-width:100%;
  max-height:calc(100dvh - 44px);
  overflow-x:hidden;
  overflow-y:auto;
  padding:0;
  background:#fff;
  border:1px solid #e7ebf2;
  border-radius:16px;
  box-shadow:0 18px 54px rgba(15,30,40,.18);
  color:#263348;
}
.ejc-options-modal .ejc-modal__head {
  margin:0;
  padding:19px 21px 5px;
  border:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.ejc-options-modal .ejc-modal__head h2 {
  margin:0;
  font-size:16px;
  line-height:1.35;
  font-weight:740;
  letter-spacing:0;
  color:#1b2941;
}
.ejc-options-modal .ejc-modal__close {
  flex:0 0 30px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #dbe0e9;
  border-radius:9px;
  background:white;
  color:#657186;
  font-size:19px;
  line-height:1;
  box-shadow:none;
}
.ejc-options-modal .ejc-modal__close:hover { background:#f5f7fb; }
.ejc-options-modal .ejc-options-subtitle {
  padding:0 21px;
  margin:0;
  color:#8b95a6;
  font-size:11px;
  line-height:1.5;
}
.ejc-options-modal .ejc-options-list {
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:15px 15px 17px;
  margin:0;
  min-width:0;
}
.ejc-options-modal .ejc-options-entry,
.ejc-app .ejc-options-modal .ejc-options-entry {
  appearance:none;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:11px;
  width:100%;
  min-width:0;
  min-height:40px;
  margin:0;
  padding:9px 10px;
  text-align:left;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#394459;
  font-family:inherit;
  font-size:12px;
  line-height:1.45;
  font-weight:710;
  letter-spacing:0;
  white-space:normal;
  box-shadow:none;
  cursor:pointer;
  text-decoration:none;
  transition:background .15s,border-color .15s,color .15s;
}
.ejc-options-modal .ejc-options-entry:hover,
.ejc-options-modal .ejc-options-entry:focus-visible {
  background:#f2faf6;
  color:#1f6b50;
  border-color:#e1eee7;
  box-shadow:none;
  transform:none;
  outline-offset:2px;
}
.ejc-options-modal .ejc-option-symbol {
  flex:0 0 17px;
  width:17px;
  height:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#7b8596;
}
.ejc-options-modal .ejc-option-symbol svg {
  flex:none;
  width:17px;
  height:17px;
  stroke-width:1.8;
}
.ejc-options-modal .ejc-options-entry:hover .ejc-option-symbol{color:#1f6b50}
.ejc-options-modal .ejc-options-danger,
.ejc-app .ejc-options-modal .ejc-options-danger {
  margin-top:6px;
  padding-top:12px;
  min-height:43px;
  border-top:1px solid #ecf0f4;
  border-radius:0 0 9px 9px;
  color:#b13e4d;
}
.ejc-options-modal .ejc-options-danger .ejc-option-symbol{color:#b13e4d}
.ejc-options-modal .ejc-options-danger:hover,
.ejc-options-modal .ejc-options-danger:focus-visible {
  color:#a02b3a;
  background:#fff6f6;
  border-color:#f4e6e6;
}
.ejc-options-modal [data-ejc-option-panel] {
  padding:16px 21px 21px;
  min-width:0;
  overflow-x:hidden;
}
.ejc-options-modal .ejc-options-back {
  margin:0 0 13px;
  padding:0;
  display:inline-flex;
  gap:6px;
  border:0;
  background:transparent;
  color:#1f6b50;
  font-family:inherit;
  font-size:12px;
  line-height:1.4;
  font-weight:700;
  cursor:pointer;
}
.ejc-options-modal .ejc-options-form {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:13px;
  width:100%;
  min-width:0;
  padding:0;
  margin:0;
  border:0;
  background:none;
}
.ejc-options-modal .ejc-options-form h3{
  color:#1b2941;
  font-size:15px;
  line-height:1.35;
  font-weight:730;
  margin:0;
}
.ejc-options-modal .ejc-options-form>p:not(.ejc-options-warning){
  font-size:12px;
  line-height:1.6;
  color:#7b8596;
  margin:0;
}
.ejc-options-modal .ejc-options-form label{
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  gap:6px;
  font-size:12px;
  color:#394459;
  font-weight:700;
}
.ejc-options-modal .ejc-options-form input[type=text],
.ejc-options-modal .ejc-options-form select {
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:42px;
  padding:9px 12px;
  border:1px solid #dbe0e9;
  border-radius:10px;
  background:white;
  font-size:13px;
  color:#263348;
}
.ejc-options-modal .ejc-options-form input:focus-visible,
.ejc-options-modal .ejc-options-form select:focus-visible {
  outline:2px solid #9fcab5;
  outline-offset:2px;
}
.ejc-options-modal .ejc-options-form .ejc-btn,
.ejc-options-modal .ejc-options-yesno .ejc-btn {
  flex:0 0 auto;
  align-self:flex-start;
  width:auto;
  max-width:100%;
  min-height:40px;
  padding:9px 14px;
  font-size:12px;
  border-radius:10px;
  margin:0;
}
.ejc-options-modal .ejc-options-warning{
  margin:0;
  width:100%;
  padding:11px 13px;
  border:1px solid #f1e0c8;
  background:#fff9f0;
  border-radius:10px;
  font-size:12px;
  line-height:1.6;
  color:#805d37;
}
.ejc-options-modal .ejc-options-yesno{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin:0;
}
.ejc-options-modal .ejc-options-related{
  width:100%;
  border-top:1px solid #e7ebf2;
  padding-top:14px;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.ejc-options-modal .ejc-options-related strong{font-size:12px;color:#263348}
.ejc-options-modal .ejc-options-related p{
  font-size:12px;
  color:#7b8596;
  line-height:1.6;
  margin:0;
}
.ejc-options-modal .ejc-options-related label.ejc-options-check{
  flex-direction:row;
  align-items:center;
  gap:9px;
  border:1px solid #e7ebf2;
  border-radius:10px;
  padding:10px;
  font-weight:600;
  cursor:pointer;
}
.ejc-options-modal .ejc-options-related input[type=checkbox]{
  width:17px;
  height:17px;
  flex:0 0 17px;
  accent-color:#1f6b50;
}
.ejc-options-modal .ejc-options-related small{color:#7b8596;font-weight:400}
@media(max-width:520px){
  .ejc-options-modal{padding:12px}
  .ejc-options-modal .ejc-modal__dialog{max-height:calc(100dvh - 24px)}
  .ejc-options-modal .ejc-modal__head{padding:17px 16px 4px}
  .ejc-options-modal .ejc-options-subtitle{padding:0 16px}
  .ejc-options-modal .ejc-options-list{padding:13px 10px 15px}
  .ejc-options-modal [data-ejc-option-panel]{padding:14px 16px 18px}
}
@media(prefers-reduced-motion:reduce){
  .ejc-options-modal .ejc-options-entry{transition:none}
}

/* v26 Importación y revisión de expedientes */
.ejc-import-panel{padding-bottom:20px;margin-bottom:20px}
.ejc-case-upload,.ejc-import-confirm{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:18px 24px 8px}
.ejc-case-upload label{display:grid;gap:8px;width:min(100%,520px);font-weight:700;font-size:13px}
.ejc-case-upload input[type=file]{width:100%;border:1px solid #d9e3e8;border-radius:11px;padding:12px;background:#f9fbfa}
.ejc-import-confirm label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600}
.ejc-import-confirm p{margin:0;line-height:1.6;font-size:13px;color:#66758a}
.ejc-latest-act{max-width:260px;min-width:170px;white-space:normal}.ejc-latest-act strong{font-size:12px;line-height:1.45;display:block}
.ejc-review-modal .ejc-modal__dialog{width:min(100%,490px);overflow-x:hidden;max-height:85vh;padding:0}
.ejc-review-modal .ejc-modal__head{margin:0;padding:20px 22px;border-bottom:1px solid #e7eef0}
.ejc-review-modal .ejc-modal__head h2{font-size:18px;margin:0}
.ejc-review-modal-body{padding:20px 22px 24px}.ejc-review-modal-body p{line-height:1.65;font-size:14px;color:#33465b;margin:0 0 14px}
.ejc-review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px}.ejc-review-actions .ejc-btn{width:auto!important;min-height:42px!important;padding:10px 16px!important}
@media(max-width:640px){.ejc-case-upload,.ejc-import-confirm{padding:12px 16px}.ejc-review-modal-body{padding:16px}.ejc-review-actions{flex-direction:column;align-items:stretch}.ejc-review-actions .ejc-btn{width:100%!important}}

/* v27 — importación masiva segura, tabla desplazable y editable */
.ejc-import-confirm-v27{padding:0 22px 20px!important;align-items:stretch!important;gap:12px}
.ejc-import-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 0 3px;font-size:12px;color:#617184}
.ejc-import-select-all{display:inline-flex!important;align-items:center;gap:9px!important;cursor:pointer;font-weight:750;color:#183f33}
.ejc-import-select-all input,.ejc-import-row-select{width:18px!important;height:18px!important;accent-color:#1f6b50;flex:none}
.ejc-import-scroll-shell{border:1px solid #dce5eb;border-radius:12px;overflow:hidden;min-width:0}
.ejc-import-scroll-top{height:17px;overflow-x:auto;overflow-y:hidden;background:#f3f6f9;border-bottom:1px solid #e3e9ee}
.ejc-import-scroll-top>div{height:1px}
.ejc-import-scroll{max-height:min(62vh,580px);overflow:auto;scrollbar-gutter:stable}
.ejc-import-table{min-width:1280px;table-layout:auto;white-space:normal}
.ejc-import-table thead{position:sticky;top:0;z-index:2;background:#f6f8fa}
.ejc-import-table thead th{background:#f6f8fa!important;white-space:nowrap;font-size:10px;padding:11px 12px}
.ejc-import-table tbody td{padding:10px 12px;vertical-align:middle;min-width:100px;font-size:12px}
.ejc-import-table td:nth-child(1){min-width:65px;text-align:center}
.ejc-import-table td:nth-child(2){min-width:170px}
.ejc-import-table td:nth-child(3){min-width:230px}
.ejc-import-table td:nth-child(4){min-width:245px}
.ejc-import-table td:nth-child(5){min-width:155px}
.ejc-import-table td:nth-child(6){min-width:130px}
.ejc-import-table td:nth-child(7){min-width:190px}
.ejc-import-table input:not([type=checkbox]){width:100%!important;max-width:100%!important;box-sizing:border-box;min-height:38px!important;border:1px solid #d8e2e8;border-radius:8px;padding:8px 10px;background:#fff;color:#1f3240;font-size:12px!important}
.ejc-import-row-disabled{background:#f1f3f5!important;color:#84909b}
.ejc-import-row-disabled strong{color:#7b8792!important}
.ejc-import-row-disabled input{opacity:.55}
.ejc-import-row-disabled .ejc-subtext{white-space:normal;max-width:230px}
.ejc-import-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:10px 0}
.ejc-import-actions>span{color:#607789;font-size:12px;font-weight:700}
@media(max-width:650px){.ejc-import-confirm-v27{padding:0 12px 16px!important}.ejc-import-actions{flex-wrap:wrap}.ejc-import-table{min-width:1280px}}

/* v27.1 — Edición segura de número judicial en vista previa */
.ejc-import-number-input{font-family:inherit!important;font-weight:700!important;letter-spacing:.01em!important;min-width:245px!important}
.ejc-import-number-help{display:block;font-size:10px;color:#8491a0;margin-top:4px;white-space:nowrap;font-weight:400}
.ejc-import-table td:nth-child(3){min-width:285px}
.ejc-import-row-disabled .ejc-import-number-input{opacity:1!important;border-color:#b7c7d2!important;background:#fff!important;color:#243f4c!important}
.ejc-import-row-disabled .ejc-import-name-input,.ejc-import-row-disabled .ejc-import-dni-input{opacity:1!important;background:#fff!important}
.ejc-import-row-invalid[data-import-error="1"] .ejc-import-number-input{border-color:#d89a9a!important;background:#fffafa!important}
.ejc-import-row-ok{background:#fff!important;color:#253b49!important}
.ejc-import-table [data-import-row-note]:empty{display:none}

/* v28.1 - reconocimiento discreto del registro al volver a los directorios. */
.ejc-app .ejc-returned-row { background-color: #f1f7f4!important; transition:background-color .65s ease; }

/* v28.3 · Seguimiento de expedientes: correlativo y navegación horizontal disponible */
.ejc-app .ejc-order-column{min-width:52px!important;width:52px!important;max-width:60px!important;padding-left:15px!important;padding-right:10px!important;text-align:center!important;white-space:nowrap;font-variant-numeric:tabular-nums;color:#738496;font-weight:650}
.ejc-app .ejc-order-column:first-child{position:sticky;left:0;z-index:2;background:#fff;box-shadow:1px 0 0 #e8eef2}
.ejc-app .ejc-table thead .ejc-order-column:first-child{z-index:3;background:#f9fafe}
.ejc-app .ejc-table tbody tr:hover .ejc-order-column:first-child{background:#f8f9fd}
.ejc-app .ejc-opposing-cell{min-width:210px;max-width:340px;white-space:pre-line;line-height:1.45}
.ejc-app .ejc-case-table-scroll{overflow-x:auto;overflow-y:visible;max-width:100%;scrollbar-width:thin;scrollbar-color:#aebfc3 #f4f7f8}
.ejc-app .ejc-case-horizontal-bar{position:sticky;top:0;z-index:15;height:16px;overflow-x:auto;overflow-y:hidden;background:#f3f7f6;border-bottom:1px solid #d5e2e0;scrollbar-width:auto;scrollbar-color:#86aaa0 #e8f1ee;max-width:100%;}
.ejc-app .ejc-case-horizontal-track{height:1px;pointer-events:none}
/* Filtros de materia: todos blancos y verdes en reposo; color solo al seleccionar. */
.ejc-app .ejc-filter-chips button{
  --chip-active-bg:#206a50;
  --chip-active-color:#fff;
  background:#fff;
  color:#185b44;
  border:1px solid #cfe2da;
  padding:10px 17px;
  min-height:42px;
  border-radius:999px;
  font:inherit;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.ejc-app .ejc-filter-chips button:hover:not(.active){background:#f1f8f4;border-color:#a7cabc}
.ejc-app .ejc-filter-chips button:focus-visible{outline:2px solid #36876c;outline-offset:3px}
.ejc-app .ejc-filter-chips button[data-filter-value="CI"]{--chip-active-bg:#f4ca53;--chip-active-color:#503b06}
.ejc-app .ejc-filter-chips button[data-filter-value="FC"]{--chip-active-bg:#c83b52;--chip-active-color:#fff}
.ejc-app .ejc-filter-chips button[data-filter-value="PE"],
.ejc-app .ejc-filter-chips button[data-filter-value="FT"]{--chip-active-bg:#286fbd;--chip-active-color:#fff}
.ejc-app .ejc-filter-chips button[data-filter-value="LA"]{--chip-active-bg:#7951b2;--chip-active-color:#fff}
.ejc-app .ejc-filter-chips button.active{
  background:var(--chip-active-bg);
  color:var(--chip-active-color);
  border-color:var(--chip-active-bg);
  box-shadow:0 2px 5px rgba(19,45,39,.08);
}
.ejc-app .ejc-case-table-scroll tbody{transition:opacity .14s ease}
.ejc-app .ejc-case-table-scroll tbody.ejc-filter-updating{opacity:.7}
@media (prefers-reduced-motion:reduce){
  .ejc-app .ejc-filter-chips button,
  .ejc-app .ejc-case-table-scroll tbody{transition:none!important}
}
.ejc-app .ejc-area-penal,
.ejc-app .ejc-area-familia-tutelar{background:#e3efff;color:#205baa;border-color:#b6cff2}

.ejc-app .ejc-case-directory{overflow:visible!important}
.ejc-app .ejc-case-directory>.ejc-panel-head{border-radius:14px 14px 0 0}

.ejc-app .ejc-case-horizontal-bar.is-floating{position:fixed!important;top:auto!important;bottom:10px!important;z-index:999;height:18px!important;max-width:100%;border-radius:9px;box-shadow:0 3px 14px rgba(18,49,41,.20);border:1px solid #b7d4c9;background:#f5faf7}

body .ejc-case-horizontal-floating{position:fixed!important;top:auto!important;bottom:10px!important;z-index:99999;display:block;height:18px;overflow-x:auto;overflow-y:hidden;background:#f5faf7;border:1px solid #b7d4c9;border-radius:9px;box-shadow:0 3px 14px rgba(18,49,41,.20);scrollbar-width:auto;scrollbar-color:#83aa9d #e8f1ee}
body .ejc-case-horizontal-floating[hidden]{display:none!important}

/* v28.6 - Editor compacto, de dos columnas, para partes procesales */
.ejc-app .ejc-case-edit-form>.ejc-edit-party-region{grid-column:1/-1;width:100%;min-width:0;align-self:stretch}
.ejc-edit-party-bar{display:flex;align-items:end;gap:18px;flex-wrap:wrap;margin-bottom:14px}
.ejc-edit-party-bar>label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:750;min-width:220px}
.ejc-edit-party-bar>small{font-size:12px;color:#8291a0;padding-bottom:10px}
.ejc-edit-party-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ejc-edit-party-columns>.ejc-party-box{min-width:0;align-items:stretch}
.ejc-edit-party-primary{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#394a61}
.ejc-edit-party-box .ejc-edit-small-title{font-size:12px;font-weight:700;color:#4b6474}
.ejc-edit-party-box .ejc-repeat-stack{width:100%;min-width:0}
.ejc-edit-party-box .ejc-repeat-entry label{flex:1 1 auto;min-width:0}
.ejc-app .ejc-edit-party-box .ejc-add-subtle{width:auto!important;min-height:0!important;padding:7px 0!important;box-shadow:none!important}
@media(max-width:900px){.ejc-edit-party-columns{grid-template-columns:minmax(0,1fr)}}

/* v28.7 · Selección de cliente y expedientes en contratos */
.ejc-app #ejc-contract-person-selector {width:100%;min-width:0;max-width:100%}
.ejc-app .ejc-contract-cases-status {padding:0 30px 12px;color:#63768a;font-size:13px;line-height:1.6}
.ejc-app .ejc-contract-cases-status.is-error {color:#b42333}
.ejc-app .ejc-contract-cases-list {padding:0 30px 26px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ejc-app .ejc-contract-case-item {display:flex;align-items:center;gap:12px;min-width:0;border:1px solid #dae5e5;background:#fff;border-radius:12px;padding:13px 15px;cursor:pointer;line-height:1.4}
.ejc-app .ejc-contract-case-item:has(input:checked) {background:#eef7f1;border-color:#a4d2b7}
.ejc-app .ejc-contract-case-item input[type=checkbox]{appearance:auto;width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#1f7153}
.ejc-app .ejc-contract-case-title {display:flex;flex-direction:column;min-width:0;gap:4px;font-size:13px;color:#193a36}
.ejc-app .ejc-contract-case-title strong {font-size:13px;overflow-wrap:anywhere}
.ejc-app .ejc-contract-case-title small {font-size:11px;color:#738392}
.ejc-app .ejc-contract-cases-empty {grid-column:1/-1;color:#6c8090;margin:2px 0}
@media(max-width:750px){.ejc-app .ejc-contract-cases-list{grid-template-columns:1fr;padding:0 18px 20px}.ejc-app .ejc-contract-cases-status{padding:0 18px 12px}}

/* v28.8: edición explícita y auditada de cliente al crear contrato */
.ejc-person-edit-control{display:flex;flex-direction:column;gap:8px;padding:13px 16px;background:#f8fbf9;border:1px solid #d6e6de;border-radius:12px;min-width:0}
.ejc-person-edit-control[hidden]{display:none!important}
.ejc-person-edit-check{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:750;color:#1c6047;cursor:pointer}
.ejc-person-edit-check input{appearance:auto!important;width:17px!important;height:17px!important;min-height:0!important;margin:0!important;accent-color:#1e7051;flex:none}
.ejc-person-edit-warning{margin:0!important;line-height:1.55;font-size:12px;color:#80621e;background:#fff9ec;border:1px solid #f0dfb3;border-radius:9px;padding:10px 12px}
.ejc-person-edit-control small{font-size:11px;color:#62796d;font-weight:500}

.ejc-form-grid>.ejc-person-edit-control{grid-column:1/-1}

/* v28.9 | Resoluciones agrupadas: controles sobrios y coherentes con el formulario */
.ejc-app .ejc-resolution-group{grid-column:1/-1;border:1px solid #e1e8e5;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:12px;min-width:0;background:#fafcfb}
.ejc-app .ejc-resolution-group[hidden]{display:none!important}
.ejc-app .ejc-resolution-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.ejc-app .ejc-resolution-heading strong{font-size:13px;color:#263f38}
.ejc-app .ejc-resolution-group small{font-size:12px;color:#718078}
.ejc-app [data-ejc-resolution-list]{display:flex;flex-direction:column;gap:9px}
.ejc-app .ejc-resolution-row{display:flex;gap:10px;align-items:end;max-width:490px}
.ejc-app .ejc-resolution-row label{flex:1;min-width:0}
.ejc-app .ejc-resolution-remove{height:42px;padding:0 13px;border:1px solid #dfbcbc;background:#fff;color:#a33636;border-radius:9px;font-size:12px;font-weight:700;cursor:pointer}
.ejc-app .ejc-resolution-remove:hover{background:#fff6f6}
.ejc-app .ejc-resolution-add{width:auto!important;min-height:38px!important;padding:8px 14px!important;font-size:12px!important}
@media(max-width:530px){.ejc-app .ejc-resolution-row{max-width:100%}}

/* v29.1 - Desplazamiento horizontal accesible y autoría real de los actuados. */
.ejc-app .ejc-case-events-panel .ejc-event-horizontal-bar{
  position:sticky;top:0;z-index:16;height:17px;overflow-x:auto;overflow-y:hidden;
  max-width:100%;background:#eff6f3;border-top:1px solid #e0ebe7;
  border-bottom:1px solid #d9e5e0;scrollbar-width:auto;
  scrollbar-color:#86a99c #edf5f1;
}
.ejc-app .ejc-event-horizontal-track{height:1px;pointer-events:none}
.ejc-app .ejc-event-horizontal-bar[hidden]{display:none!important}
.ejc-app .ejc-case-events-panel .ejc-event-table-scroll{
  max-width:100%;overflow-x:auto;overflow-y:visible;
  scrollbar-width:thin;scrollbar-color:#98b2aa #f4f7f6;
}
.ejc-event-users{min-width:190px;line-height:1.55;white-space:normal!important}
.ejc-event-users div+div{margin-top:5px;padding-top:5px;border-top:1px solid #eef2f2}
.ejc-event-users span{display:block;color:#8796a4;font-size:11px}
.ejc-event-users strong{font-weight:700;font-size:12px;color:#273d47}
body .ejc-event-horizontal-floating{
  position:fixed!important;top:auto!important;bottom:12px!important;z-index:99999;
  display:block;height:18px;overflow-x:auto;overflow-y:hidden;
  background:#eff8f4;border:1px solid #b9d5ca;border-radius:10px;
  box-shadow:0 4px 16px rgba(18,49,41,.20);
  scrollbar-width:auto;scrollbar-color:#86aa9b #eaf3ee;
}
body .ejc-event-horizontal-floating[hidden]{display:none!important}

/* v29.3: el número de presentación PJ aparece solo para escritos judiciales. */
.ejc-app .ejc-compact-form #ejc-pj-filing-field[hidden]{display:none!important}
.ejc-app .ejc-compact-form #ejc-pj-filing-field small,
.ejc-app .ejc-event-edit-form label small{font-size:11px;font-weight:400;line-height:1.45;color:#758499}

/* v29.4 — controles compactos para la edición y eliminación reversible. */
.ejc-app .ejc-case-events-panel .ejc-event-horizontal-bar{display:none!important}
.ejc-event-delete-modal .ejc-modal__dialog{width:min(100%,510px);padding:24px;overflow-x:hidden}
.ejc-event-delete-modal .ejc-event-delete-description{font-size:14px;line-height:1.65;color:#425265;margin:0 0 10px}
.ejc-event-delete-label{font-size:13px;font-weight:750;color:#24483b;margin:0 0 16px;overflow-wrap:anywhere}
.ejc-event-delete-form{display:flex;flex-direction:column;gap:16px}
.ejc-event-delete-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:700}
.ejc-event-delete-form input{width:100%;max-width:100%;min-width:0;padding:12px;border:1px solid #dce5eb;border-radius:11px}
.ejc-event-delete-actions,.ejc-edit-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ejc-event-delete-actions .ejc-btn,.ejc-edit-actions .ejc-btn{width:auto!important;min-height:41px!important;padding:10px 16px!important}
.ejc-removed-event-list{margin-top:14px;border:1px solid #dbe5e3;border-radius:14px;padding:14px}
.ejc-removed-event-list>summary{color:#215c48;cursor:pointer;font-weight:700;font-size:14px}
.ejc-removed-event-rows{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.ejc-removed-event-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px 12px;border:1px solid #e5e9ee;border-radius:11px}
.ejc-removed-event-row strong{font-size:13px;display:block}
.ejc-removed-event-row small{display:block;color:#798492;line-height:1.6}
.ejc-removed-event-row .ejc-btn{width:auto!important}
.ejc-app .ejc-event-edit-form [hidden]{display:none!important}
@media(max-width:540px){.ejc-removed-event-row{align-items:flex-start;flex-direction:column}.ejc-event-delete-modal .ejc-modal__dialog{padding:18px}}

/* v29.7: formularios de actuados y tareas separados, compactos y coherentes */
.ejc-app .ejc-case-tasks-panel{overflow:visible}
.ejc-app .ejc-case-tasks-head{align-items:center;gap:12px}
.ejc-app .ejc-task-count{color:#236c53;background:#eaf6ef;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:700;white-space:nowrap}
.ejc-app .ejc-tasks-toolbar{padding:0 24px 14px;display:flex;justify-content:flex-start}
.ejc-app .ejc-case-tasks-empty{padding:8px 24px 23px;color:#7d8da0;font-size:13px}
.ejc-app .ejc-case-task-list{padding:0 24px 16px;display:grid;gap:10px}
.ejc-app .ejc-case-task-row{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f8fafb;border:1px solid #e2e9ed;border-radius:13px;padding:16px 18px;min-width:0}
.ejc-app .ejc-case-task-text{flex:1;min-width:0}
.ejc-app .ejc-case-task-text strong{display:block;color:#182e46;font-size:14px}
.ejc-app .ejc-case-task-text p{margin:6px 0;color:#4e6478;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.ejc-app .ejc-case-task-text small{display:block;margin-top:6px;line-height:1.5;color:#6f8394}
.ejc-app .ejc-case-task-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.ejc-app .ejc-case-task-actions form{margin:0}
.ejc-app .ejc-creation-modal{align-items:center;justify-content:center;padding:18px}
.ejc-app .ejc-creation-modal .ejc-modal__dialog{width:min(100%,790px);max-height:min(90dvh,850px);padding:0!important;overflow-y:auto!important;overflow-x:hidden!important;background:#fff;border-radius:19px;box-shadow:0 18px 70px rgba(13,35,40,.24)}
.ejc-app .ejc-creation-modal .ejc-modal__head{position:sticky;top:0;z-index:2;padding:18px 26px;border-bottom:1px solid #e7edf1;background:#fff;margin:0;gap:16px}
.ejc-app .ejc-creation-modal .ejc-modal__head h2{font-size:20px;line-height:1.3;font-weight:800;color:#152e42}
.ejc-app .ejc-creation-modal .ejc-modal__head p{font-size:12px;color:#8190a1;margin-top:4px}
.ejc-app .ejc-creation-modal .ejc-compact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:23px 26px 0!important;gap:17px 20px;min-width:0}
.ejc-app .ejc-creation-modal .ejc-compact-form>label{margin:0;align-self:start}
.ejc-app .ejc-creation-modal .ejc-compact-form .ejc-case-span{grid-column:1/-1}
.ejc-app .ejc-creation-modal .ejc-compact-form textarea{min-height:115px;resize:vertical}
.ejc-app .ejc-creation-modal .ejc-creation-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:15px 0 20px;margin:0;border-top:1px solid #e7edf1;align-self:end}
.ejc-app .ejc-creation-modal .ejc-creation-actions .ejc-btn{width:auto!important;min-width:120px!important;min-height:40px!important;padding:10px 17px!important;flex:0 0 auto!important}
.ejc-app .ejc-creation-modal .ejc-task-created-field{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:3px 0;color:#394a61;font-size:12px;font-weight:700}
.ejc-app .ejc-creation-modal .ejc-task-created-field strong{font-size:15px;color:#193e34;font-weight:800}
.ejc-app .ejc-creation-modal .ejc-task-created-field small{font-size:11px;color:#778b9a;font-weight:400}
.ejc-app .ejc-creation-modal .ejc-check-label{font-size:12px;flex-direction:row!important}
.ejc-app .ejc-creation-modal [hidden]{display:none!important}
@media(max-width:720px){
  .ejc-app .ejc-creation-modal{padding:10px}
  .ejc-app .ejc-creation-modal .ejc-modal__dialog{max-height:94dvh;border-radius:14px}
  .ejc-app .ejc-creation-modal .ejc-compact-form{grid-template-columns:minmax(0,1fr);padding:18px!important;gap:12px}
  .ejc-app .ejc-creation-modal .ejc-modal__head{padding:15px 18px}
  .ejc-app .ejc-creation-modal .ejc-creation-actions{justify-content:stretch}
  .ejc-app .ejc-creation-modal .ejc-creation-actions .ejc-btn{flex:1 1 0!important;min-width:0!important}
  .ejc-app .ejc-case-task-row{flex-direction:column;align-items:stretch}
  .ejc-app .ejc-case-task-actions{justify-content:flex-end}
}
/* Al alternar entre Escrito y Resolución, el encabezado y el selector no cambian de coordenadas. */
.ejc-app .ejc-creation-modal{align-items:flex-start!important;padding-top:clamp(14px,6vh,65px)!important}
@media(max-width:720px){.ejc-app .ejc-creation-modal{padding-top:10px!important}}

/* v29.8 — Tareas privadas, pendientes y culminadas */
.ejc-task-v298-list{padding:16px 22px;display:flex;flex-direction:column;gap:10px;min-width:0}
.ejc-task-v298-item{display:flex;gap:18px;justify-content:space-between;align-items:flex-start;background:#fff;border:1px solid #e2e9ef;border-radius:13px;padding:16px 18px;min-width:0}
.ejc-task-v298-info{min-width:0;flex:1}
.ejc-task-v298-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ejc-task-v298-top strong{font-size:15px;color:#193348}
.ejc-task-v298-info p{font-size:13px;line-height:1.6;color:#52667b;margin:8px 0}
.ejc-task-v298-meta{display:flex;gap:6px 15px;flex-wrap:wrap;margin-top:9px;font-size:12px;color:#6b7c90;line-height:1.65}
.ejc-task-v298-meta strong{font-weight:700;color:#31475b}
.ejc-task-v298-status,.ejc-task-v298-urgent{border-radius:99px;padding:3px 9px;font-size:11px;font-weight:750;background:#fff2d7;color:#855a11}
.ejc-task-v298-status.completed{color:#196c4d;background:#e8f6ee}
.ejc-task-v298-urgent{background:#fee8e7;color:#b33939}
.ejc-task-v298-files{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.ejc-task-file-link{font-size:12px;color:#1e7054;font-weight:600;text-decoration:underline}
.ejc-task-v298-actions{flex:0 0 auto}
.ejc-task-v298-completed{border-top:1px solid #e5eaf0;margin-top:16px;padding-top:16px}
.ejc-task-v298-completed>h3{font-size:16px;padding:0 22px;color:#243a4c}
.ejc-task-form-panel-v298 .ejc-compact-form{padding:20px 24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px 20px}
.ejc-task-form-panel-v298 .ejc-compact-form label{min-width:0}
.ejc-task-form-panel-v298 .ejc-task-public-choice{display:flex;gap:10px;align-items:center}
.ejc-task-form-panel-v298 .ejc-task-public-choice input{width:18px;flex:0 0 18px}
.ejc-task-actions-v298{grid-column:1/-1}
.ejc-task-actions-v298 .ejc-btn{width:auto!important;min-width:140px}
.ejc-case-tasks-panel .ejc-task-v298-item{margin-bottom:8px}
.ejc-task-confirm-modal .ejc-modal__dialog{width:min(100%,460px);padding:0;border-radius:18px}
.ejc-task-confirm-modal .ejc-modal__head{margin:0;padding:18px 22px;border-bottom:1px solid #e7edf1}
.ejc-task-confirm-content{padding:22px}
.ejc-task-confirm-content p{margin:0 0 18px;font-size:15px;color:#2a3e50}
.ejc-task-confirm-actions{display:flex;flex-wrap:wrap;gap:10px}
.ejc-task-confirm-actions .ejc-btn{width:auto!important}
@media(max-width:800px){.ejc-task-form-panel-v298 .ejc-compact-form{grid-template-columns:1fr}.ejc-task-v298-item{flex-direction:column}.ejc-task-v298-list{padding:12px}.ejc-task-v298-actions{align-self:flex-end}}

/* v29.9: formularios de tareas coherentes y modales compactos */
.ejc-app .ejc-task-general-modal .ejc-modal__dialog{width:min(100%,780px);max-height:90dvh;overflow-x:hidden}
.ejc-app .ejc-task-general-modal .ejc-task-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding:22px 26px 0!important;align-items:start;min-width:0}
.ejc-app .ejc-task-general-modal .ejc-task-create-form>label{min-width:0;margin:0;display:flex;flex-direction:column;gap:8px;font-weight:700;font-size:13px;color:#33465d}
.ejc-app .ejc-task-general-modal .ejc-task-create-form>label[data-ejc-task-other-client][hidden]{display:none!important}
.ejc-app .ejc-task-general-modal .ejc-task-create-form input:not([type=checkbox]),
.ejc-app .ejc-task-general-modal .ejc-task-create-form select,
.ejc-app .ejc-task-general-modal .ejc-task-create-form textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid #dbe4ed;border-radius:12px;background:#fff;color:#18334b;font-size:14px;padding:11px 13px;min-height:45px}
.ejc-app .ejc-task-general-modal .ejc-task-create-form textarea{min-height:108px;resize:vertical}
.ejc-app .ejc-task-general-modal .ejc-task-actions-v298{grid-column:1/-1;padding:18px 0 22px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e6ecf1}
.ejc-app .ejc-task-general-modal .ejc-task-actions-v298 .ejc-btn{width:auto!important;min-width:112px;min-height:40px;font-size:13px;padding:9px 17px}
.ejc-app .ejc-task-public-choice-v299,
.ejc-app .ejc-creation-modal .ejc-task-public-choice-v299,
.ejc-app .ejc-task-general-modal .ejc-task-create-form>label.ejc-task-public-choice-v299{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:15px;padding:14px 16px;border-radius:13px;border:1px solid #e0e8ed;background:#f8faf9;font-size:13px;font-weight:700;color:#285543;min-width:0}
.ejc-app .ejc-task-public-choice-v299 span{min-width:0;flex:1}
.ejc-app .ejc-task-public-choice-v299 input[type=checkbox],
.ejc-app .ejc-creation-modal .ejc-task-public-choice-v299 input[type=checkbox]{appearance:auto!important;flex:0 0 23px!important;width:23px!important;min-width:23px!important;height:23px!important;min-height:23px!important;margin:0 0 0 auto!important;accent-color:#207054;cursor:pointer}
.ejc-app .ejc-caution-hint{border-left:3px solid #e0ac3d;background:#fff8ea;padding:10px 14px;border-radius:8px;color:#705c35;font-size:12px;line-height:1.5;margin:0}
.ejc-app .ejc-case-edit-form [data-ejc-edit-notebook-other][hidden],
.ejc-app .ejc-case-edit-form [data-ejc-edit-caution-code][hidden]{display:none!important}
@media(max-width:720px){
  .ejc-app .ejc-task-general-modal .ejc-task-create-form{grid-template-columns:minmax(0,1fr);padding:16px!important;gap:14px}
  .ejc-app .ejc-task-general-modal .ejc-task-actions-v298{justify-content:stretch}
  .ejc-app .ejc-task-general-modal .ejc-task-actions-v298 .ejc-btn{flex:1 1 0!important}
}

/* v30: documentación personal y resoluciones individuales */
.ejc-contact-document-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.ejc-contact-document-fields label{min-width:0}
.ejc-document-edit-note{grid-column:1/-1;font-size:12px!important;color:#7b6220;background:#fffaf0;border:1px solid #f1e1b5;padding:10px 13px;border-radius:10px;line-height:1.55}
.ejc-resolution-entry{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid #dce9e3;background:#f9fbfa;border-radius:13px;padding:16px;margin-top:12px;min-width:0}
.ejc-resolution-entry-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#1d5341}
.ejc-resolution-entry .ejc-case-span{grid-column:1/-1}
.ejc-resolution-group .ejc-resolution-heading{align-items:center}
.ejc-resolution-heading>div{display:flex;flex-direction:column;gap:5px}
.ejc-resolution-heading small{font-weight:400;color:#7b8993;line-height:1.5}
@media(max-width:680px){.ejc-contact-document-fields,.ejc-resolution-entry{grid-template-columns:minmax(0,1fr)}}

.ejc-app .ejc-resolution-row.ejc-resolution-entry{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;align-items:stretch;gap:12px}
.ejc-app .ejc-resolution-entry .ejc-resolution-entry-head,.ejc-app .ejc-resolution-entry>.ejc-case-span{grid-column:1/-1}
@media(max-width:680px){.ejc-app .ejc-resolution-row.ejc-resolution-entry{grid-template-columns:minmax(0,1fr)}}

/* V30.1: Sumilla y selector de agenda alineados a la izquierda. */
.ejc-add-actuado-form > .ejc-act-sumilla-left{grid-column:1!important;grid-row:auto!important}
.ejc-add-actuado-form > #ejc-agenda-event-fields{grid-column:1!important;justify-self:stretch;text-align:left}
.ejc-add-actuado-form #ejc-agenda-event-fields .ejc-check-label{justify-content:flex-start!important;text-align:left}
@media(max-width:740px){.ejc-add-actuado-form > .ejc-act-sumilla-left,.ejc-add-actuado-form > #ejc-agenda-event-fields{grid-column:1/-1!important}}

/* V30.3: portada compacta y cargo del usuario */
.ejc-app .ejc-home-hero{min-height:0;padding:22px 30px;border-radius:19px}
.ejc-app .ejc-home-hero h1{font-size:clamp(27px,3vw,37px);line-height:1.06;margin:7px 0 9px}
.ejc-app .ejc-home-hero p{font-size:12px;line-height:1.45;margin:0 0 10px;max-width:760px}
.ejc-app .ejc-home-hero:before{width:330px;height:330px;top:-185px}
.ejc-app .ejc-home-card{min-height:195px;padding:19px;gap:12px}
.ejc-app .ejc-home-card-icon{width:53px;height:53px;border-radius:13px}
.ejc-app .ejc-home-card-icon svg{width:27px;height:27px}
.ejc-app .ejc-home-card-content h3{font-size:19px;margin-bottom:5px}
.ejc-app .ejc-home-card-content p{font-size:12px;line-height:1.4}
.ejc-app .ejc-home-card-footer{padding-top:9px}
.ejc-app .ejc-home-section-caption h2{font-size:18px}
.ejc-app .ejc-home-section-caption{gap:7px}
.ejc-app .ejc-home-cards{gap:13px}
.ejc-app .ejc-account .ejc-account-job{color:#c6e7d6;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:630px){.ejc-app .ejc-home-hero{padding:22px}.ejc-app .ejc-home-card{min-height:180px;padding:18px}}

/* V30.4: controles de cierre uniformes y etiquetas */
.ejc-modal__close{appearance:none!important;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 40px;width:40px!important;height:40px!important;border:1px solid #dbe5e9!important;border-radius:12px!important;background:#f8fafb!important;color:#344c55!important;font-family:Arial,sans-serif!important;font-size:23px!important;font-weight:400!important;line-height:1!important;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:background .2s,color .2s,transform .2s,border-color .2s!important;cursor:pointer}
.ejc-modal__close:hover{background:#e7f3ef!important;color:#176348!important;border-color:#a8d4c3!important;transform:rotate(90deg)}
.ejc-modal__close:focus-visible{outline:3px solid #8ecdb6;outline-offset:2px}
.ejc-case-tag{display:inline-block;padding:5px 11px;margin:3px 3px;border-radius:999px;background:#eaf4f0;color:#176348;font-size:12px;font-weight:650;text-decoration:none;border:1px solid #cfe8de}
.ejc-tag-edit{border:1px dashed #9cbcaf;background:white;color:#176348;border-radius:999px;padding:5px 11px;cursor:pointer;font-weight:650}
.ejc-tags-form{padding:24px;display:grid;gap:15px}.ejc-tags-form label{display:grid;gap:8px;font-weight:650}.ejc-tags-form textarea{width:100%;border:1px solid #d8e2ef;border-radius:10px;padding:12px;font:inherit}.ejc-tags-form p{margin:0;color:#667687;font-size:13px}

/* V30.5: editor de etiquetas compacto y coherente con las ventanas del sistema */
.ejc-tags-modal .ejc-modal__dialog{width:min(520px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px);padding:0!important;overflow-y:auto;border-radius:20px!important;box-shadow:0 24px 75px rgba(12,37,48,.25)}
.ejc-tags-modal .ejc-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 26px 20px;margin:0;border-bottom:1px solid #e9eff1}
.ejc-tags-modal .ejc-modal__head h2{font-size:21px;line-height:1.3;font-weight:750;color:#122d39;margin:0 0 5px}
.ejc-tags-modal .ejc-modal__head p{font-size:13px;color:#6c8090;margin:0}
.ejc-tags-modal .ejc-tags-form{display:flex;flex-direction:column;gap:12px;padding:23px 26px 25px}
.ejc-tags-modal .ejc-tags-form>label{display:block;font-size:13px;font-weight:700;color:#203c4c;margin:0}
.ejc-tags-modal .ejc-tags-editor{border:1px solid #d5e1e6;border-radius:12px;padding:11px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#fff;min-height:66px;transition:border-color .2s,box-shadow .2s}
.ejc-tags-modal .ejc-tags-editor:focus-within{border-color:#287b62;box-shadow:0 0 0 3px rgba(40,123,98,.12)}
.ejc-tags-modal .ejc-tags-chips{display:flex;flex-wrap:wrap;gap:7px;width:100%}
.ejc-tags-modal .ejc-tags-chips:empty{display:none}
.ejc-tags-modal .ejc-tags-chip{display:inline-flex;align-items:center;gap:6px;background:#eaf5f0;color:#176348;border:1px solid #cfe7da;border-radius:100px;padding:5px 8px 5px 11px;font-size:12px;font-weight:650}
.ejc-tags-modal .ejc-tags-chip button{border:0;background:transparent;color:#176348;font-size:17px;line-height:1;cursor:pointer;padding:0 3px}
.ejc-tags-modal #ejc-tag-input{flex:1 1 210px;min-width:130px;width:auto;max-width:100%;border:0!important;box-shadow:none!important;outline:0!important;padding:9px 3px;font:inherit;font-size:14px;background:transparent}
.ejc-tags-modal .ejc-tags-add{border:1px solid #bdd9cc;background:#edf7f2;color:#176348;border-radius:9px;padding:9px 13px;font-weight:700;cursor:pointer}
.ejc-tags-modal .ejc-tags-serialized{display:none!important}
.ejc-tags-modal .ejc-tags-help{font-size:12px;line-height:1.6;color:#6c8090;margin:0}
.ejc-tags-modal .ejc-tags-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px;padding-top:17px;border-top:1px solid #edf1f3}
@media(max-width:540px){.ejc-tags-modal .ejc-modal__head{padding:20px}.ejc-tags-modal .ejc-tags-form{padding:20px}.ejc-tags-modal .ejc-tags-actions{flex-wrap:wrap}}

/* V30.9: Edición de cargos del personal existente. */
.ejc-app .ejc-user-job-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:5px}
.ejc-app .ejc-user-job-row .ejc-subtext{margin:0}
.ejc-app .ejc-user-job-edit{border:0!important;background:transparent!important;padding:3px 0!important;color:#1e6e53!important;font:inherit!important;font-size:12px!important;font-weight:700!important;cursor:pointer;white-space:nowrap;box-shadow:none!important}
.ejc-app .ejc-user-job-edit:hover{text-decoration:underline}
.ejc-app .ejc-user-job-edit:focus-visible{outline:2px solid #3e9775;outline-offset:3px;border-radius:3px}
.ejc-app .ejc-user-job-modal .ejc-modal__dialog{width:min(100%,480px);padding:24px;border-radius:18px;overflow-x:hidden}
.ejc-app .ejc-user-job-modal .ejc-modal__head{margin-bottom:9px}
.ejc-app .ejc-user-job-modal .ejc-modal__head h2{font-size:20px}
.ejc-app .ejc-user-job-subtitle{margin:0 0 20px;color:#697e8d;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.ejc-app .ejc-user-job-subtitle strong{color:#183c37}
.ejc-app .ejc-user-job-modal .ejc-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.ejc-app .ejc-user-job-modal input[name="job_title"]{width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 13px;font-size:14px}
.ejc-app .ejc-user-job-help{color:#718391;font-size:12px;line-height:1.5;margin:10px 0 0}
.ejc-app .ejc-user-job-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:23px}
.ejc-app .ejc-user-job-actions .ejc-btn{width:auto!important;min-height:40px!important;padding:9px 17px!important;font-size:13px!important}
@media(max-width:540px){.ejc-app .ejc-user-job-modal .ejc-modal__dialog{padding:18px}.ejc-app .ejc-user-job-actions{justify-content:stretch}.ejc-app .ejc-user-job-actions .ejc-btn{flex:1 1 auto}}

/* v30.10: tareas culminadas en modal y cierre exclusivamente mediante X */
.ejc-task-completed-modal .ejc-modal__dialog{max-width:900px;max-height:85vh;overflow-y:auto}
.ejc-task-group-v298>.ejc-btn{margin:16px 0 4px}
.ejc-modal [data-ejc-modal-close]:not(.ejc-modal__close){display:none!important}
[data-ejc-task-sharing][hidden]{display:none!important}
[data-ejc-task-sharing] select{width:100%;min-height:110px}

/* v30.11 — ajustes de tareas y selección de usuarios */
.ejc-app .ejc-task-group-v298{padding:26px 30px 24px!important;box-sizing:border-box}
.ejc-app .ejc-task-group-v298>.ejc-task-completed-trigger{margin:20px 0 0!important;border:1px solid #d5e0e7!important;border-radius:12px!important;padding:11px 19px!important;min-height:46px;max-width:100%;font-weight:600!important;box-shadow:none!important}
.ejc-app .ejc-task-group-v298>.ejc-task-completed-trigger:hover{border-color:#a9c4b7!important;background:#f3f8f5!important}
.ejc-app .ejc-task-creation-modal .ejc-modal__dialog{width:min(94vw,850px)!important;border-radius:20px!important;padding:26px 30px!important}
.ejc-app .ejc-task-creation-modal .ejc-task-create-form>label{font-size:13px!important;font-weight:500!important;color:#324b58!important;line-height:1.45!important}
.ejc-app .ejc-task-creation-modal .ejc-task-create-form>label>input:not([type=checkbox]),
.ejc-app .ejc-task-creation-modal .ejc-task-create-form>label>select,
.ejc-app .ejc-task-creation-modal .ejc-task-create-form>label>textarea{font-weight:400!important;border-radius:11px!important}
.ejc-app .ejc-task-creation-modal .ejc-modal__head h2{font-weight:700!important}
.ejc-app .ejc-task-creation-modal .ejc-modal__head p{font-weight:400!important}
.ejc-app .ejc-task-share-fieldset{min-width:0;margin:0;padding:15px 16px 14px;border:1px solid #dce6eb;border-radius:13px;background:#fbfcfd}
.ejc-app .ejc-task-share-fieldset legend{padding:0 6px;font-size:13px;font-weight:600;color:#264c43}
.ejc-app .ejc-task-share-fieldset legend span{font-weight:400;color:#718492}
.ejc-app .ejc-task-share-hint{margin:0 0 10px;font-size:12px;font-weight:400;color:#708391}
.ejc-app .ejc-task-share-list{max-height:185px;overflow-y:auto;display:grid;gap:4px}
.ejc-app .ejc-task-share-user{display:flex!important;align-items:center;gap:12px;padding:9px 10px;border-radius:9px;font-weight:400!important;font-size:13px!important;cursor:pointer}
.ejc-app .ejc-task-share-user:hover{background:#edf5f1}
.ejc-app .ejc-task-share-user input[type=checkbox]{appearance:auto!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-height:17px!important;margin:0!important;accent-color:#236a50}
.ejc-app .ejc-task-creation-modal .ejc-task-public-choice-v299{align-self:stretch;min-height:52px;margin-top:7px!important;padding:14px 16px!important;font-weight:500!important;box-sizing:border-box}
@media(max-width:600px){.ejc-app .ejc-task-group-v298{padding:20px!important}.ejc-app .ejc-task-creation-modal .ejc-modal__dialog{padding:19px!important}}

/* v30.12: lista compacta y alineación exacta */
.ejc-app .ejc-task-creation-modal .ejc-task-share-fieldset{padding:9px 12px!important;align-self:start}
.ejc-app .ejc-task-share-list{max-height:116px!important;overflow-y:auto!important;display:flex!important;flex-direction:column!important;gap:0!important}
.ejc-app .ejc-task-share-list .ejc-task-share-user{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-height:32px!important;padding:5px 8px!important;margin:0!important;width:100%!important;box-sizing:border-box!important;text-align:left!important}
.ejc-app .ejc-task-share-list .ejc-task-share-user input[type=checkbox]{display:block!important;position:static!important;flex:0 0 17px!important;width:17px!important;height:17px!important;margin:0!important;padding:0!important;order:0!important}
.ejc-app .ejc-task-share-list .ejc-task-share-user span{display:inline!important;flex:1!important;order:1!important;line-height:1.35!important}
.ejc-app .ejc-task-creation-modal .ejc-task-create-form>label.ejc-task-public-choice-v299{margin-top:23px!important;min-height:45px!important;height:45px!important;align-self:end!important;padding:9px 14px!important}
.ejc-app .ejc-task-v312-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.ejc-app .ejc-task-v312-controls form{margin:0}
.ejc-app .ejc-task-delete-v312{color:#a33d3d!important;border-color:#e7c9c9!important}
.ejc-app .ejc-task-edit-modal .ejc-modal__dialog{width:min(94vw,650px);max-height:90dvh;overflow:auto}
.ejc-app .ejc-task-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px 4px}
.ejc-app .ejc-task-edit-form>label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:500}
.ejc-app .ejc-task-edit-form>label:nth-child(2),.ejc-app .ejc-task-edit-form fieldset,.ejc-app .ejc-task-edit-actions{grid-column:1/-1}
.ejc-app .ejc-task-edit-form input,.ejc-app .ejc-task-edit-form select,.ejc-app .ejc-task-edit-form textarea{width:100%;box-sizing:border-box;border:1px solid #dce4e9;border-radius:10px;padding:10px;font-weight:400}
.ejc-app .ejc-task-edit-actions{display:flex;justify-content:flex-end}
@media(max-width:620px){.ejc-app .ejc-task-edit-form{grid-template-columns:1fr}}

/* v30.14: cuatro tarjetas de inicio, manteniendo la identidad visual institucional */
.ejc-app .ejc-home-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.ejc-app .ejc-home-card--tasks .ejc-home-card-icon{background:#eaf5f1;color:#20745a}
@media(max-width:1450px){.ejc-app .ejc-home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:630px){.ejc-app .ejc-home-cards{grid-template-columns:1fr}}

/* v30.17 — Agenda por expediente */
.ejc-case-agenda-list{display:grid;gap:12px;margin-top:18px}.ejc-case-agenda-item{display:grid;grid-template-columns:minmax(105px,145px) 1fr;gap:18px;padding:16px 18px;border:1px solid #dce7e6;border-radius:14px;background:#fbfdfc;color:#142e3d}.ejc-case-agenda-item__date{font-weight:650;color:#116c52}.ejc-case-agenda-item__kind{display:inline-block;margin-left:12px;font-size:.8rem;color:#71869a}.ejc-case-agenda-item p{margin:7px 0 0;color:#66798c;white-space:pre-wrap}.ejc-case-agenda-item a{display:inline-block;margin-top:8px;color:#0c7654}.ejc-case-tasks-panel .ejc-tasks-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}@media(max-width:600px){.ejc-case-agenda-item{grid-template-columns:1fr;gap:5px}}

/* v30.19 — Espaciado orgánico de las agendas */
.ejc-agenda-list{display:grid;gap:16px;padding:18px 22px 24px}
.ejc-agenda-item{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;border-radius:18px;flex-wrap:wrap}
.ejc-agenda-item>div:first-child{flex:1 1 340px;min-width:0}
.ejc-agenda-item>.ejc-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;flex:0 1 auto;margin-left:auto}
.ejc-agenda-item>.ejc-heading-actions .ejc-btn{margin:0;white-space:nowrap}
.ejc-case-agenda-list{display:grid;gap:14px;padding:18px 22px 24px}
.ejc-case-agenda-item{display:flex;align-items:center;gap:24px;padding:20px 24px;border-radius:16px;flex-wrap:wrap}
.ejc-case-agenda-item__date{flex:0 0 155px}
.ejc-case-agenda-item__body{flex:1 1 340px;min-width:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ejc-case-agenda-item__body>strong{margin-right:2px}
.ejc-case-agenda-item__body>p{flex-basis:100%;margin:4px 0 0}
.ejc-case-agenda-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:auto}
.ejc-case-agenda-actions .ejc-btn{margin:0;white-space:nowrap}
.ejc-case-tasks-panel .ejc-tasks-toolbar{display:flex;gap:14px;flex-wrap:wrap;padding:6px 22px 12px}
@media(max-width:760px){.ejc-agenda-list,.ejc-case-agenda-list{padding:14px}.ejc-agenda-item,.ejc-case-agenda-item{padding:16px;gap:14px}.ejc-agenda-item>.ejc-heading-actions,.ejc-case-agenda-actions{margin-left:0;justify-content:flex-start}.ejc-case-agenda-item__date{flex-basis:100%}}

/* v30.20: portada de seis módulos, tres tarjetas por fila */
.ejc-app .ejc-home-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.ejc-app .ejc-home-card--extrajudicial .ejc-home-card-icon{background:#edf1fa;color:#516d99}
.ejc-app .ejc-home-card--agenda .ejc-home-card-icon{background:#eaf4f7;color:#26788a}
.ejc-app .ejc-extrajudicial-placeholder{min-height:65vh;padding:25px 8px}
.ejc-app .ejc-extrajudicial-placeholder h1{font-size:26px;color:#172c43;margin:0;font-weight:750}
@media(max-width:950px){.ejc-app .ejc-home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:630px){.ejc-app .ejc-home-cards{grid-template-columns:1fr}}
