.reg-calendar{--rail:180px;--day:36px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.reg-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px}
.reg-toolbar>div,.reg-tools{display:flex;align-items:center;gap:16px}.reg-toolbar h3{margin:0}.reg-summary{color:var(--tx3);font-size:12px}
.reg-ended-toggle{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--tx2);cursor:pointer;white-space:nowrap}.reg-ended-toggle input{accent-color:#475569}.reg-ended-toggle span{color:#94a3b8}
.reg-today{background:#fff;border:1px solid var(--line2);border-radius:6px;padding:5px 10px;font:inherit;font-size:12px;color:var(--tx2);cursor:pointer}
.reg-scroll{overflow-x:auto;overscroll-behavior-x:contain;border-block:1px solid var(--line);scrollbar-width:thin}
.reg-timeline{min-width:calc(var(--rail) + var(--days)*var(--day));width:100%;font-size:12px}
.reg-months,.reg-axis,.reg-row{display:grid;grid-template-columns:var(--rail) repeat(var(--days),minmax(var(--day),1fr));position:relative}
.reg-stock-head,.reg-stock{position:sticky;left:0;z-index:3;background:#fff;border-right:1px solid var(--line);padding-left:18px}
.reg-stock-head{color:var(--tx2);display:flex;align-items:center;background:#f8fafc;font-size:11px}
.reg-months{background:#f8fafc;border-bottom:1px solid var(--line);height:32px}
.reg-month{padding:7px 10px;font-size:11px;color:#475569;border-right:1px solid var(--line)}
.reg-axis{height:46px;background:#fff;border-bottom:1px solid var(--line)}.reg-sort{background:#fff;color:#94a3b8;font-size:10.5px}
.reg-day-head{text-align:center;border-right:1px solid #f0f2f5;padding:5px 0}.reg-day-head b{display:block;font-size:12px;font-weight:600}.reg-day-head small{font-size:10px;color:#94a3b8}
.reg-day-head.rest{background:#f6f7f9}.reg-day-head.is-today{color:#2563eb;background:#eff6ff;box-shadow:inset 1px 0 #93b6fa,inset -1px 0 #93b6fa}.reg-day-head.is-today small{color:#2563eb}
.reg-row{min-height:84px;border-bottom:1px solid #edf0f4}.reg-row:last-child{border-bottom:0}.reg-row[data-ended=true]{display:none}.show-ended .reg-row[data-ended=true]{display:grid}
.reg-stock{grid-column:1;padding:12px 12px 10px 18px;line-height:1.5}.reg-stock>div:first-child{display:flex;align-items:center;gap:6px}.reg-stock b{font-size:13px;font-weight:650;white-space:nowrap}.reg-stock small{font-size:10px;color:#94a3b8}
.reg-stock-range{font-variant-numeric:tabular-nums;color:#64748b;font-size:11px;margin-top:2px}.reg-stock-status{display:flex;align-items:center;justify-content:space-between;gap:3px;margin-top:3px;color:#b45309;font-size:10.5px}.reg-stock-status a{color:#94a3b8;text-decoration:none;font-size:10px}.ended .reg-stock-status{color:#94a3b8}.pending .reg-stock-status{color:#2563eb}
.reg-track{grid-column:2/-1;display:grid;grid-template-columns:repeat(var(--days),minmax(var(--day),1fr));align-items:stretch;position:relative;min-width:0}
.reg-grid-day{border-right:1px solid #f0f2f5;height:100%;z-index:0}.reg-grid-day.rest{background:repeating-linear-gradient(135deg,#f8fafb,#f8fafb 4px,#f2f4f7 4px,#f2f4f7 5px)}
.reg-grid-day.is-today{background:#eff6ff;box-shadow:inset 1px 0 #bad0fa,inset -1px 0 #bad0fa}
.reg-bar{align-self:center;z-index:1;margin:0 3px;height:29px;border:1px solid #f2c48a;border-radius:5px;background:#fff0d8;color:#9a580e;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;font-variant-numeric:tabular-nums}
.ended .reg-bar{background:#edf0f4;border-color:#d7dee6;color:#7f8b9b}.pending .reg-bar{background:#e9f1ff;border-color:#b6cdf5;color:#3961a0}
.reg-free{align-self:center;justify-self:center;z-index:2;color:#059669;font-size:15px;background:#fff;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center}
.reg-caption{display:flex;gap:18px;flex-wrap:wrap;font-size:10.5px;color:#64748b;padding:12px 18px 5px}.reg-caption span{display:flex;align-items:center;gap:5px}.reg-today-key{height:11px;border-left:2px solid #5b8de3}.reg-rest-key{width:10px;height:10px;background:repeating-linear-gradient(135deg,#eef0f4,#eef0f4 2px,#d7dce4 2px,#d7dce4 3px)}.reg-free-key{width:6px;height:6px;border-radius:50%;background:#059669}
.reg-source{padding:0 18px 13px;font-size:10.5px;color:#94a3b8;line-height:1.7}.reg-empty{padding:32px;background:#fff;border:1px solid var(--line);border-radius:10px;color:#64748b}
@media(max-width:768px){.reg-calendar{--rail:142px;--day:34px}.reg-toolbar{padding:14px 12px;align-items:flex-start;gap:12px}.reg-toolbar>div:first-child{display:block}.reg-summary{display:block;margin-top:3px;font-size:11px}.reg-tools{gap:8px}.reg-stock{padding-left:10px;padding-right:8px}.reg-stock>div:first-child{display:block}.reg-stock small{font-size:9.5px}.reg-stock b{font-size:12px}.reg-stock-range{font-size:10px}.reg-stock-status{font-size:10px}.reg-stock-head{padding-left:10px}.reg-toolbar h3{font-size:14px}.reg-today{font-size:11px}.reg-ended-toggle{font-size:11px}.reg-caption{padding-left:12px;gap:12px}.reg-source{padding-left:12px}.reg-row{min-height:94px}}

.reg-month span{position:sticky;left:calc(var(--rail) + 12px);display:inline-block}
.reg-warning{padding:9px 18px;margin:0;font-size:11px;color:#9c783d;background:#fffbf2;border-bottom:1px solid #f0e5d0;line-height:1.7}
