.wcal {display:inline-flex;flex-wrap:wrap;align-items:center;gap:5px 7px;max-width:100%;vertical-align:middle}
.wcal>label {font-size:12px;font-weight:500;color:#45576a;cursor:pointer}
.wcal .wcal-fields {display:inline-flex;align-items:center;border:1px solid #b8c3ce;border-radius:4px;background:#fff;min-height:30px}
.wcal .wcal-fields:focus-within {outline:2px solid #52769a;outline-offset:1px}
.wcal .wcal-fields input {width:140px;max-width:100%;min-width:0;flex:none;border:0;outline:0;background:transparent;padding:5px 3px 5px 8px;font:inherit;font-size:13px;line-height:19px;font-variant-numeric:tabular-nums;color:#172e44;box-shadow:none}
.wcal .wcal-fields .wcal-open {display:inline-grid;place-items:center;width:29px;height:28px;min-height:0;padding:0;border:0;background:transparent;color:#4d6478;cursor:pointer;box-shadow:none;border-radius:3px}
.wcal .wcal-open:hover,.wcal .wcal-open[aria-expanded=true] {background:#eaf0f5;color:#153b5b}
.wcal .wcal-fields .wcal-open:focus-visible,.wcal-popup :focus-visible {outline:2px solid #52769a;outline-offset:-2px}
.wcal .wcal-fields:has([aria-invalid=true]) {border-color:#a02b27}
.wcal-error {display:block;color:#932e28;font-size:12px;line-height:1.5}
.wcal-error:empty {display:none}
.wcal>.wcal-error {flex-basis:100%}
.wcal-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wcal-popup {box-sizing:border-box;position:fixed;inset:auto;z-index:9500;margin:0;padding:9px 10px 7px;width:min(284px,calc(100vw - 16px));max-width:none;max-height:calc(100dvh - 16px);overflow:auto;border:1px solid #bcc8d3;border-radius:6px;background:white;color:#172e44;box-shadow:0 5px 17px #122b4326;font:13px/1.45 "Microsoft YaHei",system-ui,sans-serif}
.wcal-popup * {box-sizing:border-box}
.wcal-popup::backdrop {background:transparent;pointer-events:none}
.wcal-popup .wcal-head,.wcal-popup .wcal-jump,.wcal-popup .wcal-foot {display:flex;align-items:center}
.wcal-popup .wcal-head,.wcal-popup .wcal-foot {justify-content:space-between}
.wcal-popup .wcal-head {padding-bottom:5px}
.wcal-popup button,.wcal-popup input,.wcal-popup select {font:inherit;color:inherit}
.wcal-popup button {border:0;box-shadow:none;background:transparent;border-radius:3px;padding:0;cursor:pointer}
.wcal-popup button:disabled {color:#b4bec7;cursor:default}
.wcal-popup button:hover:not(:disabled) {background:#edf2f7}
.wcal-popup .wcal-head>button {width:29px;min-height:28px;font-size:22px;line-height:1}
.wcal-popup .wcal-jump {gap:7px}
.wcal-popup .wcal-jump label {display:inline-flex;align-items:center;gap:3px;color:inherit}
.wcal-popup .wcal-jump input,.wcal-popup .wcal-jump select {padding:2px 4px;height:28px;border:1px solid #c4cfd8;background:white;border-radius:3px}
.wcal-popup .wcal-jump input {width:68px}
.wcal-popup table {width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.wcal-popup th,.wcal-popup td {text-align:center;vertical-align:middle;padding:0;border:0;background:white}
.wcal-popup th {height:24px;color:#586a7c;font-size:11px;font-weight:500}
.wcal-popup td {height:30px}
.wcal-popup td button {width:31px;height:28px;min-height:0;font-size:13px;font-variant-numeric:tabular-nums}
.wcal-popup .wcal-adjacent {color:#748291}
.wcal-popup [aria-current=date] {text-decoration:underline;text-underline-offset:3px}
.wcal-popup td[aria-selected=true] button,.wcal-popup td[aria-selected=true] button:hover {background:#173955;color:white;font-weight:650}
.wcal-popup .wcal-foot {margin-top:5px;padding-top:5px;border-top:1px solid #dce3e9;color:#55697a;font-size:11px}
.wcal-popup .wcal-foot button {padding:3px 7px;color:#1a4569;font-size:13px;font-weight:600}
@media(max-width:550px){.wcal .wcal-fields {min-height:36px}.wcal .wcal-fields .wcal-open {width:34px;height:34px}.wcal-popup td {height:34px}.wcal-popup td button {height:32px}}

@supports selector(input::-webkit-datetime-edit) {
  input[data-chinese-date]:not([data-chinese-date=""]):not(:focus) {position:relative;min-width:10.5em}
  input[data-chinese-date]:not([data-chinese-date=""]):not(:focus)::-webkit-datetime-edit {color:transparent}
  input[data-chinese-date]:not([data-chinese-date=""]):not(:focus)::before {
    content:attr(data-chinese-date);position:absolute;left:.65em;top:50%;transform:translateY(-50%);pointer-events:none;white-space:nowrap
  }
}
