:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}body{margin:0;background:#fff}.container{padding:12px;max-width:700px;margin:0 auto}.tabs{display:flex;gap:8px;margin-bottom:12px;overflow-x:auto;padding:2px 0 4px;scrollbar-width:thin}.tab{flex:0 0 auto;padding:8px 10px;border:1px solid #ddd;border-radius:10px;background:#f7f7f7;cursor:pointer;white-space:nowrap}.tab.active{background:#eaeaea;font-weight:600}.card{border:1px solid #ddd;border-radius:14px;margin:10px 0;overflow:hidden}.cardHeader{padding:10px 12px;font-weight:700;display:flex;justify-content:space-between;gap:10px}.header-normal{color:#111;background:#f3f3f3}.header-special{color:#b00020;background:#fff0f2}.header-holiday{color:#0b4db8;background:#eef4ff}.cardBody{padding:10px 12px}.row{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-top:1px solid #eee}.row:first-child{border-top:none}.btn{padding:4px 10px;border-radius:8px;border:1px solid #ddd;background:#fff;cursor:pointer}.btn:disabled{cursor:not-allowed;opacity:.6}.small{font-size:12px;opacity:.75}.adminUserName{display:flex;align-items:center;gap:7px;font-weight:700}.presenceDot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;border:1px solid rgba(0,0,0,.16)}.presenceDot.isOnline{background:#1f9d55;box-shadow:0 0 0 2px #1f9d5524}.presenceDot.isOffline{background:#a8adb5}.kwsum{margin-top:14px;font-weight:800}.authGate{min-height:100vh;padding:20px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background:var(--tg-theme-secondary-bg-color, #f4f5f7);color:var(--tg-theme-text-color, #111)}.authGateCard{width:min(100%,380px);padding:24px;box-sizing:border-box;border:1px solid #ddd;border-radius:16px;background:var(--tg-theme-bg-color, #fff);text-align:center;box-shadow:0 8px 28px #00000014}.authGateIcon{margin-bottom:10px;font-size:34px}.authGateTitle{font-size:18px;font-weight:800}.authGateError{margin-top:12px;padding:9px;border:1px solid #f1c0c0;border-radius:8px;background:#fff3f3;color:#8b1a1a;font-size:12px}.authGateButton{width:100%;margin-top:16px;padding:10px;font-weight:700}.monthView{margin-top:12px}.monthToolbar{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;margin-bottom:12px}.monthNavButton{height:38px;padding:0;font-size:25px;line-height:1}.monthTitleButton{border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:17px;font-weight:800;text-transform:capitalize}.monthWeek{margin-bottom:10px;border:1px solid #d9dde3;border-radius:12px;overflow:hidden;background:var(--tg-theme-bg-color, #fff)}.monthWeekSummary{display:flex;align-items:center;gap:8px;min-height:24px;padding:4px 7px;background:#edf1f5;font-size:11px}.monthWeekSummary strong{font-size:12px}.monthWeekFree{margin-left:auto;padding:2px 6px;border-radius:999px;background:#fff3cd;color:#765600;font-weight:700}.monthMatrix{display:grid;grid-template-columns:39px repeat(var(--month-service-count),minmax(0,1fr));width:100%}.monthMatrix>*{min-width:0;border-right:1px solid #e7e9ec;border-bottom:1px solid #e7e9ec}.monthMatrix>:nth-child(1){border-left:0}.monthCorner,.monthPositionLabel{display:flex;align-items:center;justify-content:center;padding:3px 2px;background:#f8f9fa;color:#606770;font-size:9px;font-weight:800}.monthPositionLabel{font-size:10px}.monthServiceHead,.monthAssignment{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;margin:0;border-top:0;border-left:0;border-radius:0;color:inherit;cursor:pointer;font-family:inherit}.monthServiceHead{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;padding:3px 2px;font-size:9px;line-height:1.05}.monthServiceHead strong{margin-top:2px;font-size:11px}.monthServiceHead small{display:block;width:100%;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.monthAssignment{min-height:29px;padding:3px 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff;font-size:9px}.monthAssignment.isAssigned{background:#b9e8c4;color:#064b1c;box-shadow:inset 4px 0 #16833a;font-weight:700}.monthAssignment.isFree{background:#ffd66b;color:#5d3500;box-shadow:inset 4px 0 #e38900;font-weight:700}.monthAssignment.isUnavailable{background:#f5f5f5;color:#bbb;cursor:default}.monthPlaceholder{background:#fafafa}.monthEmpty{margin-top:30px;padding:20px;border:1px dashed #ccd1d7;border-radius:12px;color:#777;text-align:center}.monthModalBackdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box;background:#0000008c}.monthModal{width:min(100%,390px);max-height:85vh;overflow:hidden;border-radius:14px;background:var(--tg-theme-bg-color, #fff);color:var(--tg-theme-text-color, #111);box-shadow:0 18px 60px #0000004d}.monthModalHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px}.monthModalTitle{font-size:16px;font-weight:800}.monthModalSubtitle{margin-top:3px;font-size:12px}.monthModalClose{width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#ffffffbf;color:#333;cursor:pointer;font-size:23px;line-height:28px}.monthModalBody{max-height:calc(85vh - 64px);overflow-y:auto;padding:8px 14px 14px}.monthModalPosition{display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:43px;border-bottom:1px solid #eee}.monthModalPosition:last-child{border-bottom:0}.monthModalPositionLabel{display:flex;flex-direction:column;min-width:0}.monthModalPositionLabel .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monthModalName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700}.monthModalName.isFree{color:#7a4600;font-weight:700}.monthModalAction{padding:5px 8px;color:#b42318;font-size:11px}.monthModalAssign{background:#2e7d32;color:#fff}@media (max-width: 430px){.container{padding:8px}.monthWeek{border-radius:10px}.monthWeekSummary{padding-inline:5px}.monthMatrix{grid-template-columns:32px repeat(var(--month-service-count),minmax(0,1fr))}.monthCorner{font-size:0}.monthPositionLabel{font-size:9px}.monthServiceHead strong{font-size:10px}.monthAssignment{font-size:8px}}
