#sheet-month-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;border:1px solid #cbd5e1;border-radius:12px;padding:22px;background:#fff;color:#243447;font:14px/1.5 'Noto Sans KR',sans-serif;box-shadow:0 18px 70px #152d4550}
#sheet-month-dialog::backdrop{background:#132b4766}
#sheet-month-dialog header,#sheet-month-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
#sheet-month-dialog h2{font-size:19px;color:#185a9c;margin:0}
#sheet-month-dialog p{margin:12px 0}
#sheet-month-company{font-weight:700}
#sheet-month-dialog .month-help{font-size:12px;color:#62758a}
#sheet-month-dialog button{padding:7px 12px;border:1px solid #b9c8d7;border-radius:5px;background:#f5f8fc;color:#243447;font:inherit;cursor:pointer;white-space:normal}
#sheet-month-dialog button:disabled{opacity:.45;cursor:not-allowed}
#sheet-month-dialog input[type=number],#sheet-month-dialog input[type=text]{padding:8px;border:1px solid #b9c8d7;border-radius:5px;box-sizing:border-box;font:inherit}
#sheet-month-year{width:110px;margin-left:8px}
#sheet-month-dialog .month-actions{display:flex;gap:8px;margin:14px 0 10px}
#sheet-month-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
#sheet-month-grid label{display:grid;grid-template-columns:18px 1fr;gap:3px 8px;border:1px solid #d6e0ea;padding:12px 10px;border-radius:7px;cursor:pointer}
#sheet-month-grid input{width:17px;height:17px;margin:3px 0;accent-color:#185a9c}
#sheet-month-grid small{grid-column:2;font-size:11px;color:#62758a}
#sheet-month-grid label:has(input:checked){background:#eaf3ff;border-color:#185a9c}
#sheet-month-grid .month-existing small{color:#956221}
#sheet-month-dialog .month-duplicates{display:flex;align-items:center;gap:8px;margin-top:16px}
#sheet-month-name-label{display:block;font-size:12px}
#sheet-month-name{display:block;width:100%;margin-top:6px}
#sheet-month-name:disabled{background:#f0f2f5}
#sheet-month-status{white-space:pre-line;color:#185a9c;font-size:13px}
#sheet-month-dialog footer{justify-content:flex-end;border-top:1px solid #e1e8ef;padding-top:14px}
#sheet-month-dialog #sheet-month-confirm{background:#185a9c;border-color:#185a9c;color:#fff}
#sheet-month-dialog :focus-visible{outline:2px solid #c48c20;outline-offset:2px}
@media(max-width:480px){#sheet-month-dialog{padding:16px}#sheet-month-grid{grid-template-columns:repeat(3,1fr)}#sheet-month-grid label{padding:9px 7px}}
@media print{#sheet-month-dialog{display:none!important}}
