/* SIGLAH V4 Paso 4 - SOLO ROL MENSUAL: scoped styles */
.m4-monthly-admin,.m4-monthly-worker,.m4-monthly-worker-results{--m4-blue:#0a79bd;--m4-ink:#123353;--m4-muted:#607994;--m4-line:#d9e6f4;--m4-soft:#f3f9ff;color:var(--m4-ink)}
.m4-module-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.m4-eyebrow{font-size:.7rem;font-weight:800;color:#0d83bc;letter-spacing:.1em}
.m4-module-title h2{font-size:clamp(1.35rem,2.3vw,1.85rem);margin:4px 0 4px}
.m4-module-title p{margin:0;color:var(--m4-muted);font-size:.93rem;line-height:1.45}
.m4-privacy{background:#e5f6ff;color:#0a6ea6;padding:9px 12px;border-radius:30px;font-size:.76rem;font-weight:700;white-space:nowrap}
.m4-tabs{display:flex;gap:8px;background:#edf6fd;border-radius:14px;padding:6px;margin-bottom:20px;max-width:610px}
.m4-tabs .m4-tab{flex:1;white-space:normal;border:0;border-radius:10px;background:transparent;color:#315877;padding:12px 14px;font-weight:750;cursor:pointer}
.m4-tabs .m4-tab.is-selected{background:#fff;color:#096ca9;box-shadow:0 3px 12px #1f4a6c1d}
#m4DraftWorkspace[hidden],#m4PublishedWorkspace[hidden]{display:none!important}
.m4-card{border:1px solid var(--m4-line);border-radius:17px;background:#fff;padding:19px;box-shadow:0 5px 17px #1a457408}
.m4-inline-title h3{font-size:1.16rem;margin:0 0 5px}.m4-inline-title p{margin:0;color:var(--m4-muted);font-size:.89rem}
.m4-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0 13px}
.m4-filters label{display:grid;gap:6px;font-size:.82rem;font-weight:700;color:#2c4d6b}
.m4-filters select,.m4-filters input{background:#fff;border:1px solid #bfd2e5;border-radius:10px;padding:11px;min-height:44px;color:#123353;max-width:100%}
.m4-filters #m4PubYear{width:108px}.m4-filters button{min-height:44px;padding:10px 16px}
.m4-filter-search{flex:1;min-width:175px}.m4-filter-search input{width:100%}
.m4-status{color:#597491;font-size:.87rem;margin:11px 0}
.m4-status.m4-error{color:#b42332}
.m4-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:13px 0 17px}
.m4-summary-item{border:1px solid #dceafa;border-radius:13px;background:linear-gradient(140deg,#fff 25%,#eaf6ff);padding:14px 16px;min-width:0}
.m4-summary-item span{display:block;font-size:.76rem;font-weight:700;color:#54718f}
.m4-summary-item strong{display:block;font-size:1.25rem;margin-top:5px;color:#0c4a83}
.m4-groups{display:flex;gap:9px;margin:10px 0 12px;flex-wrap:wrap}
.m4-group{border:1px solid #cbdff0;background:#f4f9ff;color:#2c5979;border-radius:9px;padding:9px 14px;font-size:.9rem;cursor:pointer}
.m4-group.is-active{background:#0b78b9;border-color:#0b78b9;color:#fff;font-weight:750}
.m4-tablewrap,#m4DraftWorkspace #preview,#schedulePanel #grid{overflow:auto;max-width:100%;border:1px solid #dce7f2;border-radius:12px;background:#fff;scrollbar-color:#9cb9d1 #e9f3fa}
.m4-tablewrap table,#m4DraftWorkspace #preview table,#schedulePanel #grid table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.79rem}
.m4-tablewrap th,.m4-tablewrap td,#m4DraftWorkspace #preview th,#m4DraftWorkspace #preview td,#schedulePanel #grid th,#schedulePanel #grid td{padding:9px 9px!important;border-right:1px solid #e5eef7;border-bottom:1px solid #e8eff7;text-align:center;white-space:nowrap;vertical-align:middle}
.m4-tablewrap tr:nth-child(even) td,#m4DraftWorkspace #preview tr:nth-child(even) td,#schedulePanel #grid tbody tr:nth-child(even) td{background:#f7fbff}
.m4-tablewrap th,#m4DraftWorkspace #preview th,#schedulePanel #grid th{position:sticky;top:0;z-index:2;background:#e2f2fe!important;color:#123e68;font-weight:780}
.m4-tablewrap th:first-child,.m4-tablewrap td:first-child,#m4DraftWorkspace #preview th:first-child,#m4DraftWorkspace #preview td:first-child,#schedulePanel #grid th:first-child,#schedulePanel #grid td:first-child{position:sticky;left:0;z-index:3;min-width:185px;max-width:255px;white-space:normal;text-align:left;font-weight:700;background:#fff;box-shadow:3px 0 7px #1c426012}
.m4-tablewrap th:first-child,#m4DraftWorkspace #preview th:first-child,#schedulePanel #grid th:first-child{z-index:4;background:#d9eeff!important}
.m4-tablewrap tr:nth-child(even) td:first-child,#m4DraftWorkspace #preview tr:nth-child(even) td:first-child,#schedulePanel #grid tr:nth-child(even) td:first-child{background:#f7fbff}
.m4-tablewrap .m4-dayhead{min-width:40px;font-size:.74rem}
.m4-tablewrap .m4-dayhead small{display:block;font-size:.59rem;color:#68849c;margin-top:2px}
.m4-tablewrap .m4-sun{background:#d8e9fb!important;color:#065a93}
.m4-turncell{font-weight:740;min-width:38px}
.m4-turncell[data-code="M"]{color:#0b73a9}.m4-turncell[data-code="T"]{color:#a66012}.m4-turncell[data-code="N"],.m4-turncell[data-code="MN"]{color:#604aa8}
.m4-turncell[data-code="V"],.m4-turncell.m4-vac{background:#f9e2e6!important;color:#a43e56}
.m4-turncell.m4-birthday{background:#dff6e6!important;color:#165b38}
.m4-turncell.m4-both{background:linear-gradient(135deg,#dff6e6 50%,#fae3e6 50%)!important;color:#11496a}
.m4-legend{display:flex;align-items:center;flex-wrap:wrap;gap:15px;margin:15px 0 2px;font-size:.79rem;color:#617a92}
.m4-swatch{display:inline-block;width:11px;height:11px;border-radius:3px;vertical-align:-1px;margin-right:6px;border:1px solid #aabed0}
.m4-sw-birth{background:#dff6e6}.m4-sw-vac{background:#fae3e6}.m4-sw-both{background:linear-gradient(135deg,#dff6e6 50%,#fae3e6 50%)}
#m4DraftWorkspace>h2{font-size:1.25rem}.m4-monthly-admin #m4DraftWorkspace>.actions{display:flex;flex-wrap:wrap;gap:8px}.m4-monthly-admin #m4DraftWorkspace>.notice{margin-top:16px}
.m4-monthly-worker .row{gap:10px!important;align-items:center}
.m4-monthly-worker #search{border-radius:10px;min-height:43px}
.m4-monthly-worker #status{font-size:.82rem;color:#607994}
.m4-monthly-worker-results .m4-summary{margin:0 0 15px}
.m4-worker-mobile{display:none}
.m4-mobile-head{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:16px}
.m4-mobile-head label{display:grid;gap:6px;flex:1;color:#305472;font-weight:740;font-size:.85rem}
.m4-mobile-head select{width:100%;min-height:44px;padding:9px 11px;border-radius:10px;border:1px solid #bed4e5;background:#fff;color:#163e62}
.m4-outline{border:1px solid #b8d5eb;background:#eff8ff;border-radius:10px;padding:10px 12px;min-height:44px;color:#0a6ca8;font-weight:700}
.m4-calendar-title{font-weight:750;color:#143d64;margin:10px 0}.m4-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.m4-cal-head{text-align:center;color:#65809a;font-size:.72rem;font-weight:800;padding:5px 0}
.m4-cal-day{min-width:0;min-height:64px;border:1px solid #deebf6;border-radius:9px;background:#f7fbff;padding:6px 2px;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center}
.m4-cal-day.m4-outside{border:0;background:transparent}.m4-cal-day .m4-n{color:#55728b;font-size:.67rem}.m4-cal-day strong{color:#145181;font-size:.88rem}.m4-cal-day.m4-birthday{background:#def7e6;border-color:#a3d8b4}.m4-cal-day.m4-vac{background:#fae5e8;border-color:#e4b2bd}.m4-cal-day.m4-both{background:linear-gradient(135deg,#def7e6 50%,#fae5e8 50%)}
.m4-cal-day.m4-today{outline:2px solid #248bd0;outline-offset:1px}
.m4-mobile-stats{display:flex;gap:9px;flex-wrap:wrap;margin:11px 0;color:#58758f;font-size:.77rem}
@media(max-width:1100px){.m4-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.m4-privacy{display:none}}
@media(max-width:760px){.m4-module-title{display:block}.m4-card{padding:12px}.m4-filters{gap:8px}.m4-filters button{width:100%}.m4-filter-search{flex-basis:100%}.m4-summary{gap:7px}.m4-summary-item{padding:10px}.m4-summary-item strong{font-size:1.02rem}.m4-summary-item span{font-size:.65rem}.m4-tabs .m4-tab{padding:10px 7px;font-size:.83rem}.m4-worker-mobile{display:block}.m4-monthly-worker-results #grid{display:none}.m4-monthly-worker-results.m4-fulltable #grid{display:block}.m4-cal-day{min-height:58px}.m4-monthly-worker .row{display:flex;flex-wrap:wrap}.m4-monthly-worker #downloadPdf{width:100%}}
