/* Centro de comunicaciones V861.5.24: diseño simple, multiempresa, responsive. */
#q524Panel{font-family:inherit;color:#183451;background:white;border:1px solid #d8e5f5;border-radius:14px;padding:18px;margin-bottom:12px;display:grid;gap:16px}
#q524Panel h2{font-size:23px;margin:0 0 5px}#q524Panel h3{font-size:15px;margin:0}#q524Panel p{margin:0}
#q524Panel[hidden],#q524Panel [hidden],#q524LegacyLinks[hidden]{display:none!important}
#q524Panel label{display:grid;gap:6px;font-size:12px;font-weight:750;min-width:0}
#q524Panel input:not([type=checkbox]),#q524Panel select,#q524Panel textarea{box-sizing:border-box;width:100%;min-width:0;padding:10px;border-radius:9px;border:1px solid #c9d9ed;font-size:13px;background:#fff;color:#122c4b;font-family:inherit}
#q524Panel textarea{resize:vertical}#q524Panel button{cursor:pointer;font-family:inherit}
#q524Panel .q524Hero{display:flex;justify-content:space-between;gap:12px;align-items:start}#q524Panel .q524Hero p,#q524Panel .q524Hint{font-size:12px;color:#5a6e84}
#q524Panel .q524Tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #d9e6f5;padding-bottom:10px}#q524Panel .q524Tabs button{font-size:13px;font-weight:750;padding:11px 14px;border:1px solid #cddff5;color:#20538c;background:#f2f7ff;border-radius:9px}#q524Panel .q524Tabs button.q524On{background:#176bd6;color:white;border-color:#176bd6}
#q524Panel .q524Notice{min-height:18px;color:#146a4d;font-size:12px;font-weight:650}#q524Panel .q524Notice.bad{color:#b23e42}
#q524Panel .q524Page{display:grid;gap:14px}#q524Panel .q524Cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#q524Panel .q524More{border:1px solid #dce8f4;border-radius:10px;padding:13px}#q524Panel .q524More summary{cursor:pointer;font-weight:750;font-size:12px}#q524Panel .q524More[open]{display:grid;gap:10px}
#q524Panel .q524SectionTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}#q524Panel #q524PeopleSection{border:1px solid #d9e5f3;border-radius:12px;padding:14px}
#q524Panel .q524Tools{display:flex;gap:8px;align-items:center;margin:10px 0}#q524Panel .q524Tools input{flex:1}#q524Panel .q524Tools button{flex:none}
#q524Panel .q524Workers{border:1px solid #d7e4f2;border-radius:9px;max-height:290px;overflow:auto}#q524Panel .q524Person{padding:10px;border-bottom:1px solid #e5edf6}#q524Panel .q524Person:last-child{border-bottom:0}#q524Panel .q524Pick{display:flex;align-items:center;gap:9px;font-size:12px}#q524Panel .q524Pick strong{display:block}#q524Panel .q524Pick small{display:block;font-size:11px;font-weight:400;color:#60738b;margin-top:3px}#q524Panel .q524PerDates{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px;margin:10px 0 0 30px}
#q524Panel .q524Action{display:flex;gap:10px;flex-wrap:wrap}#q524Panel .q524SendBlock{background:#f3f8fe;border:1px solid #d4e6fa;border-radius:12px;padding:16px;display:grid;gap:12px}#q524Panel label.q524Check{display:flex;align-items:center;gap:9px;font-weight:650}#q524Panel .q524SendBlock button{justify-self:start}
#q524Panel .q524Preview{background:#fff;border:1px solid #cedced;padding:16px;border-radius:10px}#q524Panel .q524Preview[hidden]{display:none}
#q524Panel .q524Table{width:100%;border-collapse:collapse;font-size:11px;margin:12px 0}#q524Panel .q524Table th,#q524Panel .q524Table td{border:1px solid #64748b;padding:6px;text-align:left}
#q524Panel .q524Saved{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #e3ebf5;padding:14px 5px}#q524Panel .q524Saved span{min-width:0;overflow-wrap:anywhere}#q524Panel .q524Saved small{display:block;margin-top:4px;color:#536a82}#q524Panel .q524Saved>div{display:flex;gap:8px;flex-wrap:wrap}#q524Panel .q524Danger{color:#b42f39!important}#q524Panel .q524Empty{padding:25px;text-align:center;color:#536a82;font-size:12px}
#q524LegacyLinks{margin-top:8px;border:1px solid #e0eafa;padding:12px;border-radius:10px;background:#fff}#q524LegacyLinks summary{font-size:12px;font-weight:700;color:#59728b;cursor:pointer}#q524LegacyLinks>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#q524LegacyLinks .q524LegacyBtn{display:inline-flex;gap:6px;align-items:center;border:1px solid #d3e2f2;background:#f7faff;border-radius:9px;padding:8px;color:#20538c;cursor:pointer}
#q524LegacyLinks .q524LegacyBtn small{display:none}
#v861522Toolbar[hidden],#v861522TemplatesHead[hidden]{display:none!important}
@media(max-width:760px){#q524Panel{padding:12px}#q524Panel .q524Cols{grid-template-columns:1fr}#q524Panel .q524Tools{flex-wrap:wrap}#q524Panel .q524Tools input{flex:1 1 100%}#q524Panel .q524Hero{display:block}#q524Panel .q524Saved{align-items:stretch;flex-direction:column}}


/* V861.5.25: layout correction isolated to the email composer. */
#q524Panel{max-width:100%;gap:14px;padding:18px;background:#fff}
#q524Panel .q524Hero{align-items:center;padding:0 2px}
#q524Panel .q524Hero h2{font-size:20px;line-height:1.3}
#q524Panel .q524Hero p{line-height:1.5;font-size:12px}
#q524Panel .q524Tabs{background:#f5f8fd;border:1px solid #e2eaf5;border-radius:11px;padding:5px;gap:5px}
#q524Panel .q524Tabs button{flex:1 1 auto;background:transparent;border:0;border-radius:8px;padding:11px 12px;white-space:normal}
#q524Panel .q524Tabs button.q524On{box-shadow:0 2px 5px #0a45902a;background:#176bd6}
#q524Panel .q524Notice{min-height:0;padding:0;font-size:12px}
#q524Panel .q524Notice:not(:empty){border-left:3px solid #1b9c67;background:#f0faf5;padding:8px 11px;border-radius:6px}
#q524Panel .q524Notice.bad:not(:empty){background:#fff5f5;border-left-color:#db354d}
#q524Panel .q524Page{gap:14px}
#q524Panel .q525Section{display:grid;gap:12px;padding:18px;border:1px solid #dfebf6;background:#fff;border-radius:12px;min-width:0}
#q524Panel .q525SectionHead h3{font-size:15px;color:#163c60;margin:0 0 3px;font-weight:850}
#q524Panel .q525SectionHead p{font-size:12px;color:#6b7c90;line-height:1.45;margin:0}
#q524Panel .q525StepLabel{font-size:15px;font-weight:850;color:#163c60;margin-bottom:0}
#q524Panel #q524PeopleSection{padding:18px;background:#fff}
#q524Panel .q524SectionTitle{margin:0;gap:10px}
#q524Panel .q524SectionTitle h3{font-size:13px;margin-bottom:4px}
#q524Panel #q524WorkerCount{white-space:nowrap;border-radius:30px;background:#eaf2fc;color:#1d5c9b;font-size:11px;font-weight:750;padding:6px 10px}
#q524Panel label{color:#264b6d;line-height:1.35;font-size:12px}
#q524Panel input:not([type=checkbox]),#q524Panel select,#q524Panel textarea{font-size:13px;padding:11px 12px;border-color:#cfdfef;outline-offset:2px}
#q524Panel input:focus-visible,#q524Panel select:focus-visible,#q524Panel textarea:focus-visible,#q524Panel button:focus-visible{outline:2px solid #2168ba;outline-offset:2px}
#q524Panel #q524_body{min-height:96px}
#q524Panel .q524Tools{margin:0;display:grid;grid-template-columns:minmax(210px,1fr) auto auto;gap:8px}
#q524Panel .q524Tools input{width:100%}
#q524Panel .q524Tools button{white-space:nowrap}
#q524Panel .q524Workers{max-height:320px;overflow-y:auto;overscroll-behavior:contain}
#q524Panel .q525Worker{padding:0;border-bottom:1px solid #e5edf6;background:#fff}
#q524Panel .q525Worker:nth-child(even){background:#fbfdff}
#q524Panel .q525Worker.q525Selected{background:#f3f8ff}
#q524Panel .q525Worker:last-child{border:0}
/* Strict grid avoids legacy CSS separating the checkbox and worker name. */
#q524Panel label.q525WorkerMain{display:grid!important;grid-template-columns:20px minmax(0,1fr) minmax(80px,160px)!important;gap:11px!important;align-items:center!important;justify-content:start!important;text-align:left!important;width:100%!important;box-sizing:border-box!important;padding:12px 14px!important;margin:0!important;cursor:pointer}
#q524Panel label.q525WorkerMain>input[type=checkbox]{appearance:checkbox!important;-webkit-appearance:checkbox!important;width:17px!important;min-width:17px!important;max-width:17px!important;height:17px!important;margin:0!important;accent-color:#176bd6!important;justify-self:start!important;align-self:center!important;position:static!important;float:none!important;transform:none!important}
#q524Panel .q525WorkerIdentity{display:block!important;min-width:0!important;text-align:left!important;margin:0!important;padding:0!important;position:static!important;float:none!important}
#q524Panel .q525WorkerIdentity strong{display:block!important;font-size:12px!important;line-height:1.4;color:#153e66;white-space:normal;overflow-wrap:anywhere}
#q524Panel .q525WorkerIdentity small{display:block!important;color:#6e8194;font-size:11px!important;margin-top:3px}
#q524Panel .q525WorkerRole{display:block!important;align-self:center;justify-self:end!important;text-align:right!important;font-size:11px!important;font-weight:650!important;color:#546e85!important;white-space:normal;overflow-wrap:anywhere}
#q524Panel .q524PerDates{margin:0 14px 12px 45px!important;padding:12px!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px!important;background:#fff;border:1px solid #d3e3f5;border-radius:9px}
#q524Panel .q524PerDates label{font-size:11px;font-weight:750}
#q524Panel .q525Final{background:#fbfdff}
#q524Panel .q525Final .q524Action{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#q524Panel .q525Final .q524Action .btn{font-size:12px}
#q524Panel .q524SendBlock{gap:13px;background:#eff6ff;border-radius:11px;padding:16px;border:1px solid #d2e3f6}
#q524Panel .q525SendTitle h3{margin:0 0 3px;font-size:14px}
#q524Panel .q525SendTitle p{font-size:12px;color:#5d7188}
#q524Panel label.q524Check{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;justify-content:start!important;text-align:left!important;width:100%!important;font-size:12px!important;font-weight:650;padding:0!important;margin:0!important}
#q524Panel label.q524Check input[type=checkbox]{width:17px!important;min-width:17px!important;max-width:17px!important;height:17px!important;margin:0!important;appearance:checkbox!important;justify-self:start!important;float:none!important;position:static!important;accent-color:#176bd6}
#q524Panel #q524Send{background:#1267ce;font-size:13px;padding:12px 22px;min-width:170px}
#q524Panel #q524Preview{overflow:auto}
#q524Panel .q524Saved{padding:13px 8px}
#q524Panel .q524Saved>div{flex:0 0 auto}
#q524Panel .q524Page[hidden],#q524Panel .q525Section[hidden]{display:none!important}
@media(max-width:900px){#q524Panel .q524Tools{grid-template-columns:1fr 1fr}#q524Panel .q524Tools input{grid-column:1/-1}}
@media(max-width:650px){#q524Panel{padding:12px}#q524Panel .q525Section{padding:13px}#q524Panel .q524Cols{grid-template-columns:1fr}#q524Panel .q524Hero{display:grid;grid-template-columns:1fr}#q524Panel label.q525WorkerMain{grid-template-columns:20px minmax(0,1fr)!important}#q524Panel .q525WorkerRole{grid-column:2;justify-self:start!important;text-align:left!important;font-size:10px!important;margin-top:-4px}#q524Panel .q524PerDates{margin-left:12px!important;margin-right:12px!important}#q524Panel .q524Action .btn{flex:1 1 130px}}

/* V861.5.26: empresa independiente, solo modelos propios y correo nuevo por defecto. */
#q524Panel .q526Chooser{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
#q524Panel .q526Chooser label{margin:0;min-width:0}
#q524Panel .q526Chooser #q526DeleteChosen{margin-bottom:0;padding:10px 13px;border:1px solid #f0c7cc;background:#fff5f6;color:#b42f39;border-radius:9px}
#q524Panel .q526Chooser #q526DeleteChosen:disabled{opacity:.38;cursor:not-allowed}
#q524Panel .q526Table{background:#f9fbfe}
#q524Panel .q526Table summary{color:#194d82;font-size:13px}
#q524Panel .q526Table[open]{display:grid;gap:10px}
#q524Panel #q524PeopleSection[hidden]{display:none!important}
@media(max-width:620px){#q524Panel .q526Chooser{grid-template-columns:1fr}#q524Panel .q526Chooser #q526DeleteChosen{justify-self:start}}

/* V873: historial ejecutivo compacto, con filtros y paginación sin alterar la auditoría. */
#q524Panel .q873HistoryTools{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,210px);gap:10px;align-items:center}
#q524Panel .q873HistoryTools input,#q524Panel .q873HistoryTools select{margin:0;padding:9px 11px;min-width:0}
#q524Panel .q873HistoryCount{font-size:12px;color:#65778d;margin:0}
#q524Panel .q873HistoryRow{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e1eaf3;padding:10px 8px}
#q524Panel .q873HistoryRow>span{display:grid;min-width:0;gap:5px;flex:1}
#q524Panel .q873HistoryRow strong,#q524Panel .q873HistoryRow small{overflow-wrap:anywhere}
#q524Panel .q873State{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.02em;border-radius:15px;padding:3px 8px;background:#edf2f8;color:#355370}
#q524Panel .q873State-enviado{background:#e8f7ef;color:#166043}
#q524Panel .q873State-programado{background:#fff3db;color:#795300}
#q524Panel .q873State-error{background:#fce8eb;color:#9a2435}
#q524Panel .q873HistoryPager{display:flex;align-items:center;justify-content:flex-end;gap:12px;font-size:12px;color:#5e748b}
#q524Panel .q873HistoryPager button{padding:7px 11px;border:1px solid #cddff0;background:#fff;border-radius:7px;color:#125ca4;font-weight:700}
#q524Panel .q873HistoryPager button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:680px){#q524Panel .q873HistoryTools{grid-template-columns:minmax(0,1fr)}#q524Panel .q873HistoryRow{align-items:start;flex-direction:column}#q524Panel .q873HistoryPager{justify-content:center}}
