.monthly-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid #b7d9df;background:linear-gradient(120deg,#e8f5f4,#f5f9fc);padding:22px;border-radius:18px;color:#153d4b}.monthly-hero h2{margin:6px 0;font-size:24px}.monthly-hero p{margin:0;font-size:13px;color:#557582}.monthly-hero small{font-size:10px;letter-spacing:1.6px;font-weight:700;color:#087c86}.monthly-actions{display:flex;gap:9px;align-items:end;flex-wrap:wrap;margin:16px 0}.monthly-actions .btn{min-height:42px}.monthly-actions label{max-width:260px}.monthly-grid{max-width:100%;max-height:66dvh;overflow:auto;overscroll-behavior:contain;border:1px solid #bdcfd9;border-radius:12px;position:relative;background:#fff;color:#193b49}.monthly-grid table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font:12px system-ui;table-layout:fixed}.monthly-grid th,.monthly-grid td{border-right:1px solid #d6e2e9;border-bottom:1px solid #d6e2e9;padding:0;min-width:136px;width:136px;max-width:136px;text-align:center}.monthly-grid thead th{position:sticky;top:0;z-index:3;background:#e7f2f7;color:#173f51;padding:12px 8px;font-size:11px;height:76px;overflow-wrap:anywhere}.monthly-grid th small{display:block;margin-top:8px}.monthly-grid th .btn{font-size:10px;padding:3px 7px;min-height:24px}.monthly-grid .monthly-date{position:sticky;left:0;min-width:115px;width:115px;background:#f0f6f9;z-index:2;padding:10px;color:#245469}.monthly-grid thead .monthly-date{z-index:4;background:#dcecf2}.monthly-grid input{width:100%;min-width:130px;height:43px;border:0!important;border-radius:0!important;padding:8px 5px!important;text-align:center;font:600 12px system-ui;box-sizing:border-box;background:#fff;color:#234759;margin:0!important}.monthly-grid input:focus{outline:3px solid #20a3b3!important;outline-offset:-3px;background:#e4f7f8!important}.monthly-grid input.night{background:#e6eaf9;color:#3e4c88}.monthly-grid input.rest{background:#f4f5f7;color:#7b8192}.monthly-grid input.report{background:#fdeced;color:#a43e4d}.monthly-rule-list{max-height:360px;overflow:auto}.monthly-rule,.monthly-person{display:flex;gap:10px;flex-wrap:wrap;align-items:center;border-bottom:1px solid #d4e1e7;padding:12px 0}.monthly-rule strong{flex-basis:100%;font-size:13px}.monthly-rule label{max-width:140px}.monthly-rule input{max-width:160px}.monthly-person strong{min-width:200px;max-width:280px}.monthly-person strong small{display:block;font-weight:400;font-size:11px}.monthly-person label{font-size:12px;max-width:200px}.monthly-person input[type=checkbox]{width:18px;height:18px;min-height:18px;display:inline;vertical-align:middle}.monthly-person input[type=date]{width:145px}.monthly-grid td small{display:block;font-size:9px;padding:4px}.monthly-actions .btn:hover{filter:brightness(1.12);box-shadow:0 3px 12px #087c8625}.monthly-hero input{min-width:155px}@media(max-width:767px){.monthly-hero{padding:16px;align-items:stretch;flex-direction:column}.monthly-hero h2{font-size:20px}.monthly-actions{gap:7px}.monthly-actions>.btn{flex:1 1 160px;font-size:12px}.monthly-grid{max-height:68dvh}.monthly-grid th,.monthly-grid td{min-width:124px;width:124px;max-width:124px}.monthly-grid .monthly-date{min-width:90px;width:90px;font-size:10px}.monthly-grid input{min-width:120px;min-height:44px}.monthly-person strong{width:100%;max-width:100%}}

.monthly-source-value{height:44px;padding:8px!important;overflow-wrap:anywhere}.monthly-source label{display:block;margin:12px 0}.monthly-source select{max-width:100%;min-height:44px}.monthly-roster-note{color:#9b4d00!important;font-weight:500}.monthly-roster-issues p{padding:8px;border-bottom:1px solid #8ba7b733}

.monthly-cycle-reference{display:block;padding:7px 5px;background:#fff4df;color:#704b0e;font-size:11px}.monthly-cycle-reference small{display:block;font-size:10px;line-height:1.4;margin-top:3px}

.monthly-security-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:14px 0}.monthly-security-list label{display:flex;flex-direction:column;gap:6px;font-size:12px;padding:10px;border:1px solid #8ba7b733;border-radius:10px}.monthly-security-list select{min-height:44px;width:100%}.monthly-note-group{padding:10px 0;border-bottom:1px solid #8ba7b733}.monthly-note-group summary{cursor:pointer;line-height:1.6}
